/*
  Global style definitions for the interactive portfolio.  A cohesive
  colour palette and typography set the tone for a modern, elegant
  single‑page design.  Sections flow vertically with generous
  spacing to encourage scrolling and discovery.  Subtle animations
  reveal content as the user progresses down the page.
*/

/* Colour palette */
:root {
  --bg: #0a0f1a;
  --bg-secondary: #151e30;
  --card-bg: #101828;
  --text: #e5e7eb;
  --subtext: #94a3b8;
  --accent: #bf00ff;
  --accent-light: #d17cfb;
  --border: #1e293b;
  --radius: 8px;
}

/* Reset and base typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  line-height: 1.6;
  /* Ensure content isn't hidden beneath the fixed header */
  padding-top: 60px;
}

img,
iframe {
  max-width: 100%;
  border-radius: var(--radius);
  display: block;
}

h1, h2, h3, h4 {
  color: var(--text);
}

/* Hero section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
  text-align: center;
  position: relative;
  padding: 0 20px;
}

/* Fixed header and navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--subtext);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
  font-size: 0.9rem;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--accent);
}

/* Profile photo in hero */
.profile-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

/* Offset sections for anchor navigation */
section {
  scroll-margin-top: 80px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero .typed {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  min-height: 60px;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--subtext);
  margin-top: 10px;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--accent);
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* Section wrappers */
section {
  padding: 80px 20px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  color: var(--accent);
  position: relative;
}

/* About */
.about p {
  max-width: 800px;
  margin: 0 auto 20px;
  color: var(--subtext);
}

/* Timeline for experience */
.timeline {
  position: relative;
  margin-left: 40px;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -19px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-item h3 {
  font-size: 1.2rem;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.timeline-item span {
  font-size: 0.85rem;
  color: var(--subtext);
}

.timeline-item ul {
  margin-top: 8px;
  padding-left: 20px;
  list-style: disc;
  color: var(--subtext);
}

.timeline-item ul li {
  margin-bottom: 6px;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.project-media {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.project-media iframe,
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.project-content {
  padding: 15px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h4 {
  margin-bottom: 10px;
  color: var(--accent-light);
  font-size: 1.1rem;
}

.project-content ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--subtext);
  font-size: 0.9rem;
}

.project-content ul li {
  margin-bottom: 6px;
}

/* Skills */
.skills-group {
  margin-bottom: 40px;
}
.skills-group h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--accent-light);
  text-align: center;
}
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.skill-badges img {
  height: 32px;
}



/* Certifications */
.certifications-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--subtext);
}
.certifications-list li {
  list-style: none;
  padding-left: 16px;
  position: relative;
}
.certifications-list li::before {
  content: '\2022'; /* bullet symbol */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

/* Learning */
.learning-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: disc;
  color: var(--subtext);
  padding-left: 20px;
}
.learning-list li {
  margin-bottom: 6px;
}

/* Contact */
.contact-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.contact-icons a {
  color: var(--accent);
  font-size: 1rem;
  transition: color 0.2s ease;
  text-decoration: none;
  margin: 0 15px;
}
.contact-icons a:hover {
  color: var(--accent-light);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 50;
}
.scroll-top.show {
  opacity: 1;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* three equal columns */
  gap: 8px;
  margin-top: 8px;
}

.photo-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover; /* keeps aspect ratio while filling its cell */
  border-radius: 4px;
}

.education-section {
  margin-top: 60px;
  text-align: center;
}

.education-section h2 {
  font-size: 2rem;
  color: #e600e6; /* Stylish purple-pink */
  margin-bottom: 30px;
}

.education-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.education-card {
  background: linear-gradient(145deg, #1a1f2b, #11141d);
  color: #f2f2f2;
  width: 500px;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 0 16px rgba(170, 0, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  text-align: left;
}

.education-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(190, 0, 255, 0.4);
}

.education-card h3 {
  color: #ff80ff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.education-card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.skill-badge {
  display: inline-block;
  margin: 6px 8px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  cursor: default;
}

.skill-badge:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.1);
}


@media (max-width: 850px) {
  .education-cards {
    flex-direction: column;
    align-items: center;
  }

  .education-card {
    width: 90%;
  }
}