/* Fancy, Modern Portfolio Enhancements */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&family=Montserrat:wght@700;900&display=swap');

:root {
  --primary: #31331f; /* Moss */
  --accent: #455763;  /* Navy */
  --secondary-accent: #645d3b; /* Olive */
  --background: #ebe5dc; /* White Chocolate */
  --background-alt: #e8e2da; /* Sand */
  --background-gradient: linear-gradient(120deg, #ebe5dc 0%, #e8e2da 100%);
  --text: #24221e; /* Raisin Black */
  --muted: #d6c9b4; /* Wood */
  --border: 1.5px solid #d5cdbc; /* Oat */
  --card-radius: 18px;
  --button-radius: 999px;
  --shadow: 0 2px 12px rgba(49,51,31,0.08);
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--background-gradient);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* Animated Gradient Hero Background */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--primary), var(--accent), var(--background));
  background-size: 200% 200%;
  animation: gradientMove 8s ease-in-out infinite;
  text-align: center;
  padding: 0 1.5rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fancy Profile Photo */
.profile-pic.circle {
  width: 260px !important;
  height: 260px !important;
  max-width: 90vw;
  max-height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  margin-bottom: 2.2rem;
  margin-top: 2.5rem;
  box-shadow: 0 8px 32px rgba(74,144,226,0.18), var(--glow);
  transition: box-shadow 0.4s;
}
.profile-pic.circle:hover {
  box-shadow: 0 16px 48px rgba(0,201,167,0.18), 0 0 64px var(--accent);
}

/* Fancy Typography */
.hero-title {
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0 0 0.7rem 0;
  color: var(--text);
  letter-spacing: -2px;
  text-shadow: 0 2px 16px rgba(74,144,226,0.08);
}
.typing {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  min-height: 2.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,201,167,0.08);
}
.hero-desc {
  font-size: 1.18rem;
  color: var(--text);
  margin-top: 0.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  opacity: 1;
  font-weight: 500;
}
.hero-subtitle {
  color: #f5f5dc; /* or #fff for white */
}

/* --- Navbar --- */
.navbar {
  width: 100%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.2rem 3.5vw 0 3.5vw;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
  border: none;
  box-shadow: none;
}
.nav-logo {
  display: block;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
}
.nav-logo a {
  color: var(--primary);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.navbar a {
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.2rem 0.1rem;
  transition: color 0.2s;
  overflow: hidden;
}
.navbar a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
  margin-top: 2px;
  border-radius: 2px;
}
.navbar a.active::after, .navbar a:hover::after {
  width: 100%;
}
.navbar a.active, .navbar a:hover {
  color: var(--primary);
  font-weight: 700;
}

/* Fancy Section Titles */
.section-title {
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--primary);
  letter-spacing: -1px;
  text-shadow: 0 2px 12px rgba(74,144,226,0.08);
}
.section-desc {
  font-size: 1.13rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  opacity: 1;
  font-weight: 500;
}

/* Section background alternation */
.section {
  padding: 4.5rem 0 3.5rem 0;
  margin: 0 auto;
  max-width: 1100px;
  background: var(--background);
  transition: background 0.3s;
}
.section.alt {
  background: var(--background-alt);
}
.section.muted {
  background: var(--muted);
}

/* Section divider styles */
.divider {
  width: 100%;
  height: 48px;
  display: block;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
}
.divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Example: use accent or secondary-accent for divider fill */
.divider-accent {
  fill: var(--accent);
}
.divider-secondary {
  fill: var(--secondary-accent);
}

/* Remove card and border styles */
.card, .card.flat {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 2.5rem !important;
  transition: none !important;
}
.card img, .cert-img {
  width: 100%;
  max-width: 320px;
  border-radius: 18px;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 32px rgba(74,144,226,0.10), 0 0 24px var(--accent);
  border: 2px solid var(--muted);
  transition: box-shadow 0.3s;
}
.card img:hover, .cert-img:hover {
  box-shadow: 0 8px 48px rgba(0,201,167,0.18), 0 0 64px var(--primary);
}

/* Responsive card grid layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 2.5rem 0 0 0;
  width: 100%;
}
@media (max-width: 700px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* Fancy Contact Icons */
.contact-icons, .contact-icons.flat {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  background: none;
  box-shadow: none;
}
.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--primary);
  font-size: 2.2rem;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  padding: 0.7rem;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s, box-shadow 0.3s;
  position: relative;
}
.contact-icon:hover {
  color: var(--accent);
  background: var(--muted);
  box-shadow: 0 2px 16px var(--primary), 0 0 24px var(--accent);
}
.contact-label {
  font-size: 1rem;
  color: var(--text);
  margin-top: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
}

/* Fancy Footer */
.footer {
  width: 100%;
  background: transparent;
  color: var(--text);
  text-align: center;
  padding: 2.5rem 0 1.2rem 0;
  font-size: 1rem;
  border: none;
  margin-top: 2.5rem;
  opacity: 0.7;
  letter-spacing: 0.5px;
}

/* Responsive Tweaks */
@media (max-width: 700px) {
  .navbar {
    padding: 1.2rem 1.2rem 0 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .nav-links {
    gap: 1.2rem;
  }
  .profile-pic.circle {
    width: 90px;
    height: 90px;
    margin-top: 1.2rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .section {
    padding: 0 0.5rem;
  }
  .contact-icons, .contact-icons.flat {
    gap: 1.2rem;
  }
  .contact-icon {
    font-size: 1.4rem;
    padding: 0.4rem;
  }
}

/* Subtle fade-in for AOS */
[data-aos] {
  opacity: 0;
  transform: translateY(16px);
  transition-property: opacity, transform;
  transition-duration: 0.7s;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: none;
} 
/* Project Slideshow Modal (Styled to match your theme) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: var(--modal-bg, rgba(36, 34, 30, 0.96));
  backdrop-filter: blur(6px);
}
[data-theme="dark"] .modal {
  --modal-bg: rgba(235, 229, 220, 0.96);
}
.modal-content {
  margin: auto;
  max-width: 90%;
  position: relative;
}
.slide {
  display: none;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(0, 201, 167, 0.2), var(--glow);
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--text);
  padding: 12px 18px;
  background-color: var(--modal-btn-bg, rgba(255,255,255,0.12));
  border-radius: 8px;
  user-select: none;
  transition: background 0.3s ease, color 0.3s;
}
[data-theme="dark"] .prev, [data-theme="dark"] .next {
  --modal-btn-bg: rgba(49,51,31,0.18);
  color: var(--primary);
}
.prev:hover, .next:hover {
  background-color: var(--accent);
  color: var(--background);
}
.prev { left: 0.8rem; }
.next { right: 0.8rem; }

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  font-weight: bold;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  z-index: 1100;
  transition: color 0.3s;
}
[data-theme="dark"] .close {
  color: var(--primary);
}
.project-gallery button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
.project-gallery button:hover {
  background: var(--accent);
}

/* Split hero section layout */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem 2rem;
  flex-wrap: wrap;
}
.hero-image {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
}
.hero-content {
  flex: 2 1 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 260px;
  max-width: 600px;
}
.hero-content .hero-title,
.hero-content .typing,
.hero-content .hero-desc {
  text-align: left;
  align-self: flex-start;
}
@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
    gap: 2.2rem;
    padding: 2.2rem 1rem 1.5rem 1rem;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-content .hero-title,
  .hero-content .typing,
  .hero-content .hero-desc {
    text-align: center;
    align-self: center;
  }
}

/* Stats section styles */
.stats-section {
  background: var(--background-alt);
  padding: 3.5rem 0 2.5rem 0;
}
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.stat-card {
  background: var(--background);
  border: var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2.5rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
  margin-bottom: 1.2rem;
}
.stat-number {
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.stat-label {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .stats-grid {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
  .stat-card {
    min-width: 0;
    width: 100%;
    padding: 1.2rem 1rem;
  }
}

/* Testimonials section styles */
.testimonials-section {
  background: var(--background-alt);
  padding: 4rem 0 3rem 0;
}
.testimonial-card {
  background: var(--background);
  border: var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  max-width: 380px;
  margin: 0 auto;
}
.testimonial-quote {
  font-size: 1.18rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.2rem;
  opacity: 0.92;
}
.testimonial-author {
  font-size: 1rem;
  color: var(--secondary-accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Download CV button */
.download-cv-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--secondary-accent));
  color: #fff;
  border: none;
  border-radius: var(--button-radius);
  padding: 0.7em 2.1em;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  outline: none;
  margin-top: 1.5em;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.download-cv-btn:hover {
  background: linear-gradient(90deg, var(--secondary-accent), var(--accent));
  color: #fff;
  box-shadow: 0 4px 24px rgba(49,51,31,0.12);
}

