:root {
  --primary: #d83a27;
  --bg-pink: #fde8e8;
  --text-dark: #1a1a1a;
  --text-grey: #666;
  --border-grey: #eaedf2;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow: hidden; 
  position: relative;
}

.bg-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg width="60" height="104.1" viewBox="0 0 60 104.1" xmlns="http://www.w3.org/2000/svg"><path d="M30 0 L60 17.3 L60 52 L30 69.3 L0 52 L0 17.3 Z" fill="none" stroke="%23f0f0f0" stroke-width="1"/></svg>');
  background-size: 120px;
  background-repeat: repeat;
  z-index: -2;
  opacity: 0.8;
  pointer-events: none;
}

/* FIXED HEADER & NAV */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 4vw;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 961px) {
  header.nav-hidden {
    transform: translateY(-100%);
  }
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: lowercase;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
}

.contact-top {
  display: flex; gap: 25px; align-items: center;
}
.contact-top a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}
.contact-top a:hover { color: var(--primary); }

.vertical-nav-container {
  position: fixed;
  right: 2vw;
  top: 55%;
  transform: translateY(-50%);
  height: 400px;
  z-index: 100;
}

.vertical-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.vertical-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  transform: rotate(-90deg);
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: lowercase;
}

/* HORIZONTAL SCROLL WRAPPER */
.scroll-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}
.scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.panel {
  min-width: 100vw; 
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px 10vw 0 5vw;
}

.panel-content {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

/* TYPOGRAPHY */
.section-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-grey);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  border: 1px solid var(--border-grey);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-dark);
  background: white;
  text-transform: lowercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  cursor: pointer;
}

.btn:hover {
  border-color: var(--text-dark);
  background: #fdfdfd;
}

.secondary-btn {
  background: transparent;
  border: none;
  box-shadow: none;
}
.secondary-btn:hover {
  background: transparent;
  text-decoration: underline;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up { transform: translateY(40px); }
.fade-in { transform: scale(0.97); }
.zoom-in { transform: scale(0.9); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

.split-panel {
  display: flex;
  gap: 80px;
}
.split-left, .split-right {
  flex: 1;
}

/* --- PANEL 1: HERO (Adapted) --- */
.hero-section {
  padding-left: 5vw;
}

.left-content {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-bottom: 40px;
}

.intro { margin-bottom: 40px; position: relative; }
.pink-bg {
  position: absolute;
  top: -60px; left: 10%;
  width: 320px; height: 360px;
  background-color: var(--bg-pink);
  z-index: -1;
}

.greeting {
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 1.5px; color: var(--text-grey);
  margin-bottom: 10px;
}

.name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 10vw, 8.5rem);
  color: var(--primary); font-weight: 800;
  letter-spacing: -3px; line-height: 0.9;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.description {
  max-width: 520px; font-size: 1.05rem;
  line-height: 1.6; color: var(--text-grey);
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 20px; align-items: center; }

.quick-facts { 
  display: flex; gap: 40px;
  border-top: 1px solid var(--border-grey);
  padding-top: 30px; margin-top: auto;
}
.fact { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-grey); }
.fact i { color: var(--primary); }

.right-content {
  flex: 0.9; height: 100%; position: relative;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-image-wrapper {
  position: relative;
  width: 100%; height: 85%; max-width: 550px;
  margin-bottom: 20px;
}
.person-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}


/* --- PANEL 2: YAZDA VIDEO --- */
.video-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.yazda-video {
  width: 100%;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  border: 1px solid #eee;
  background: black;
}

.video-accent-bg {
  position: absolute;
  top: -30px; right: -30px;
  width: 200px; height: 200px;
  background: var(--bg-pink);
  z-index: 1;
}

/* --- PANEL 3: EXPERIENCE GRID --- */
.experience-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -10px;
  top: -10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--primary);
  z-index: 5;
}

.bg-orange { border-color: #fca5a5; }
.bg-yellow { border-color: #fef08a; }
.bg-grey { border-color: #d1d5db; }

.timeline-content {
  background: white;
  padding: 30px;
  padding-bottom: 50px;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  height: 100%;
  position: relative;
}

.timeline-content:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.06); transform: translateY(-3px); }

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.timeline-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text-dark);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.timeline-role {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-grey);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.timeline-content p {
  color: var(--text-grey);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Expansion Magic */
.expand-icon {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: opacity 0.3s;
}
.expand-icon i { margin-right: 5px; transition: transform 0.3s; }
.timeline-item.expanded .expand-icon i { transform: rotate(180deg); }

.expanded-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
}

.timeline-item.expanded .expanded-details {
  max-height: 500px;
  margin-top: 20px;
  opacity: 1;
}

.exp-divider {
  border: none;
  border-top: 1px solid var(--border-grey);
  margin-bottom: 15px;
}

.deep-dive {
  list-style: none;
}
.deep-dive li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-grey);
  margin-bottom: 10px;
}
.deep-dive li strong { color: var(--text-dark); }

/* --- PANEL 4: TOOLKIT & AWARDS (Adapted) --- */
.skill-category {
  margin-bottom: 30px;
}
.skill-category h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.tags {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tags span {
  padding: 8px 16px; background: #fff;
  border: 1px solid var(--border-grey);
  font-size: 0.85rem; font-weight: 600;
  border-radius: 20px;
}

.edu-item {
  font-size: 0.95rem; line-height: 1.6; margin-bottom: 10px; color: var(--text-grey);
}
.edu-item strong { color: var(--text-dark); }

.pink-blob-bg {
  position: absolute;
  width: 200px; height: 200px;
  background: var(--bg-pink);
  border-radius: 50%;
  z-index: -1;
  top: -50px; left: -50px;
}

.split-right .section-header { position: relative; }

.awards-list { list-style: none; }
.awards-list li {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px; background: #fff;
  border: 1px solid var(--border-grey);
  margin-bottom: 15px; transition: box-shadow 0.3s;
}
.awards-list li:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.03); }

.award-icon {
  min-width: 50px; height: 50px;
  background: #fdf5e6; color: #d4a017;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; border-radius: 50%;
}

.award-text { display: flex; flex-direction: column; }
.award-rank {
  font-size: 1.05rem; font-weight: 800;
  color: var(--primary); margin-bottom: 5px;
}
.award-title { font-weight: 500; font-size: 0.95rem; line-height: 1.5; color: var(--text-grey); }

/* --- PANEL 5: CTA --- */
.centered {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative; height: 100%;
}
.cta-pink-blob {
  position: absolute; width: 400px; height: 400px;
  background: var(--bg-pink); border-radius: 50%;
  z-index: -1; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.cta-title {
  font-family: 'Playfair Display', serif; font-size: 4rem;
  color: var(--text-dark); line-height: 1.1; margin-bottom: 30px;
}
.cta-desc {
  font-size: 1.1rem; color: var(--text-grey); margin-bottom: 40px; max-width: 500px; line-height: 1.6;
}
.cta-buttons { display: flex; align-items: center; gap: 20px; }
.cta-btn { background: var(--primary); color: white; border-color: var(--primary); padding: 18px 40px; font-size: 1rem; }
.cta-btn:hover { background: #c3301f; color: white; }


/* --- MOBILE RESPONSIVENESS (< 960px) --- */
@media (max-width: 960px) {
  body { overflow: auto; }
  
  .scroll-container {
    display: block;
    height: auto; width: 100%;
    overflow: visible;
  }
  
  .panel {
    min-width: 100%; height: auto; min-height: 100vh;
    padding: 120px 5vw 60px 5vw;
    display: block;
  }
  
  header {
    flex-direction: column;
    padding: 15px 5vw; gap: 15px;
    background: white; border-bottom: 1px solid var(--border-grey);
  }
  
  .logo { font-size: 1.6rem; }
  
  .main-nav { 
    flex-wrap: wrap; justify-content: center; gap: 15px; 
    transition: all 0.3s ease;
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
  }
  
  .contact-top { 
    display: flex; /* Keep visible on mobile originally */
    flex-wrap: wrap; justify-content: center; width: 100%;
    transition: all 0.3s ease;
    max-height: 100px;
    opacity: 1;
    overflow: hidden;
    margin-top: 5px;
  }
  
  /* Class applied by JavaScript during downward scroll */
  header.nav-hidden .main-nav,
  header.nav-hidden .contact-top {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
  }
  
  header.nav-hidden {
    padding-bottom: 10px; /* Snug up the logo */
  }

  .vertical-nav-container { display: none; }
  
  .split-panel { flex-direction: column; gap: 50px; }
  .left-content, .right-content, .split-left, .split-right { width: 100%; flex: none; }
  
  .right-content { height: 400px; margin-top: 30px; }
  .person-img { height: 100%; object-fit: cover; object-position: top; mask-image: none; -webkit-mask-image: none; }
  
  .name { font-size: 4.5rem; }
  .section-title { font-size: 3rem; margin-bottom: 25px; }
  
  .experience-timeline { grid-template-columns: 1fr; padding-left: 0; }
  
  .quick-facts { flex-direction: column; gap: 15px; align-items: flex-start; }

  .video-accent-bg { display: none; }
  
  .cta-title { font-size: 2.8rem; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons .btn { width: 100%; text-align: center; }

  .skills-wrap { margin-bottom: 50px; }
}
