@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Elegant Light Theme Palette */
  --bg-primary: #fdfdfd;
  --bg-secondary: #f4f5f7;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --accent-gold: #c5a880;
  --accent-blue: #2c3e50;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.15em; /* Prevents descender clipping */
  line-height: 1.2;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.nav-cta {
  padding: 0.8rem 1.8rem;
  background-color: var(--accent-blue);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2);
}

/* Layout Utilities */
section {
  padding: 5rem 2%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  background: radial-gradient(circle at center, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero p.hook {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0; /* For GSAP */
}

.hero h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0; /* For GSAP */
}

.hero h1 span {
  display: block;
}

.hero .subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
  opacity: 0; /* For GSAP */
}

/* Grid Layouts for Sections */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Compact resume sections for storytelling flow */
.resume-section {
  padding: 3.2rem 5%;
  min-height: auto;
}

.section-title i {
  margin-right: 0.6rem;
  color: var(--accent-gold);
}

.timeline.compact {
  max-width: 1000px;
}

.timeline.compact .timeline-item {
  padding: 14px 28px;
  width: 100%;
  margin-bottom: 1rem;
}

.timeline.compact::after {
  left: 12px;
  width: 3px;
}

.timeline.compact .timeline-item::after {
  left: auto;
  right: auto;
  top: 18px;
}

.timeline-content h3 { font-size: 1.05rem; }
.timeline-content h4 { font-size: 0.95rem; color:var(--text-secondary); margin-bottom:0.4rem }
.small-list div { margin: 0.35rem 0; }

/* Skill bars */
.skill-list { display:grid; gap:0.8rem; }
.skill { display:flex; align-items:center; gap:1rem; }
.skill .label { width: 30%; color:var(--text-secondary); font-weight:600 }
.skill .bar { flex:1; height:10px; background:var(--bg-secondary); border-radius:6px; overflow:hidden }
.skill .bar > i { display:block; height:100%; width:0%; background:linear-gradient(90deg,var(--accent-gold),var(--accent-blue)); border-radius:6px }

/* Reduce gaps between sections */
.resume-section + .resume-section, .resume-section + section { margin-top: 0.6rem; }

/* Social icon buttons */
.social-row { display:flex; gap:0.6rem; }
.social-btn { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:8px; background:var(--bg-secondary); color:var(--accent-blue); text-decoration:none; border:1px solid rgba(0,0,0,0.04); transition:all 0.18s ease; }
.social-btn i { font-size:16px; }
.social-btn:hover { transform:translateY(-3px); box-shadow:var(--shadow-sm); background:linear-gradient(90deg,var(--accent-gold),var(--accent-blue)); color:#fff; }

/* Small icon CTAs in header */
.resume-section .nav-cta { padding:0.2rem 0.6rem; border-radius:8px; font-size:0.95rem; height:36px; min-height:36px; }
.resume-section .nav-cta i { margin-right:0.5rem }

/* Ensure header CTAs and social icons are vertically centered and consistent size */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  height: 36px;
  min-height: 36px;
  padding: 0 0.75rem;
}

.nav-cta i, .resume-section .nav-cta i {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
}

/* Square icon CTAs that align with Resume button height */
.nav-cta.icon-cta {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta.icon-cta i { font-size: 14px; }

/* Header CTA wrapper */
.header-ctas {
  display:flex;
  gap:0.6rem;
  justify-content:center;
  align-items:center;
  margin-top:0.8rem;
  flex-wrap:wrap;
}

/* Ensure download-btn does not add extra top margin in header */
.header-ctas .download-btn { margin-top: 0; }

/* Contact CTAs inside cards (align with header style) */
.contact-ctas {
  display:flex;
  gap:1rem;
  align-items:center;
  flex-wrap:wrap;
  margin-top:1.2rem;
}

/* Keep card title on a single line */
.card .section-title {
  font-size: 1.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-btn i {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
}

/* Resume section tweaks */
#summary .card, #trainings .card, #education .card, #other .card {
  min-height: 160px;
}

.nav-links a.active {
  color: var(--accent-gold);
  font-weight: 700;
}

/* Slightly tighter card spacing on small screens */
@media (max-width: 768px) {
  .card {
    padding: 1.6rem;
  }
  #summary .card, #trainings .card, #education .card, #other .card {
    min-height: auto;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Cards (Glassmorphism + Cinematic) */
.card {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

/* Why Me Section */
.why-me .image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-me .image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.why-me .image-wrapper:hover img {
  transform: scale(1.05);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
}

/* Tags/Pills for Skills */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Reduce vertical padding specifically for the Expertise (Core Arsenal) section */


.tag {
  padding: 0.5rem 1.2rem;
  background: var(--bg-secondary);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 5%;
  background: var(--text-primary);
  color: #fff;
}

/* Animations / GSAP Helper Classes */
.reveal-text, .reveal-up {
  opacity: 0;
  transform: translateY(30px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001; /* Keep above mobile menu */
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}

/* Hamburger Animation */
.menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 8rem 5% 4rem;
    justify-content: flex-start;
  }

  /* Clientele & Testimonials should respect container padding on mobile */
  .clientele-section,
  .testimonials-section {
    padding-left: 5%;
    padding-right: 5%;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none; /* Hide top CTA on mobile */
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

/* Gallery Styles */
.gallery-header {
  min-height: 50vh;
  padding-top: 10rem;
}

.gallery-container {
  padding-bottom: 5rem;
}

.gallery-event {
  padding: 4rem 5%;
  min-height: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay span {
  color: #fff;
  border: 1px solid #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--accent-gold);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 20px;
  z-index: 2001;
  transition: color 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--accent-gold);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}
