/* =====================================================
   AANYA KAPOOR — PORTFOLIO STYLESHEET
   Design system: White / Soft Lavender / Purple / Light Pink
   Typography: Outfit (display) + Poppins (body)
   ===================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Core palette */
  --color-white: #ffffff;
  --color-lavender: #f1ecfb;
  --color-lavender-deep: #e3d9f7;
  --color-pink: #fbe6f0;
  --color-pink-deep: #f3c6de;
  --color-purple: #7c4fdb;
  --color-purple-deep: #5a35b0;
  --color-purple-soft: #a684e8;

  /* Text */
  --text-dark: #2e2440;
  --text-mid: #5f5473;
  --text-light: #8b81a0;
  --text-on-dark: #f4f0fb;

  /* Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 20px 50px rgba(124, 79, 219, 0.12);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7c4fdb 0%, #a684e8 50%, #f3c6de 100%);
  --gradient-soft: linear-gradient(135deg, #f1ecfb 0%, #fbe6f0 100%);
  --gradient-dark: linear-gradient(135deg, #3a2670 0%, #5a35b0 50%, #8a4fb0 100%);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Spacing / radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --section-padding: 130px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; } /* Lenis handles smooth scroll */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--color-white);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-dark); font-weight: 600; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- 3. CUSTOM CURSOR ---------- */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--color-purple); }
.cursor-outline { width: 34px; height: 34px; border: 1.5px solid var(--color-purple-soft); transition: width .2s var(--ease), height .2s var(--ease), opacity .2s ease; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-outline { display: none; } }

/* ---------- 4. PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--gradient-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
}
.preloader-inner { display: flex; gap: 6px; font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--color-purple-deep); }
.preloader-letter { opacity: 0; transform: translateY(20px); display: inline-block; }
.preloader-bar { width: 180px; height: 3px; background: rgba(124,79,219,0.15); border-radius: 10px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0%; background: var(--gradient-primary); border-radius: 10px; }

/* ---------- 5. FLOATING BACKGROUND SHAPES ---------- */
.bg-shapes { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; }
.shape-1 { width: 420px; height: 420px; background: var(--color-lavender-deep); top: -100px; left: -120px; }
.shape-2 { width: 360px; height: 360px; background: var(--color-pink-deep); top: 30%; right: -140px; }
.shape-3 { width: 300px; height: 300px; background: var(--color-purple-soft); bottom: 5%; left: 10%; opacity: 0.2; }
.shape-4 { width: 260px; height: 260px; background: var(--color-lavender); bottom: -80px; right: 15%; opacity: 0.4; }

/* ---------- 6. GLASSMORPHISM ---------- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* ---------- 7. NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 22px 0;
  transition: padding .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(124,79,219,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-dark); letter-spacing: -0.5px; }
.logo-dot { color: var(--color-purple); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link { position: relative; font-size: 0.95rem; font-weight: 500; color: var(--text-mid); transition: color .25s ease; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gradient-primary); transition: width .3s var(--ease);
}
.nav-link:hover { color: var(--color-purple-deep); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 22px; border-radius: 50px; color: #fff !important;
  background: var(--gradient-primary); box-shadow: 0 8px 20px rgba(124,79,219,0.25);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(124,79,219,0.35); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; z-index: 1100; }
.nav-toggle span { height: 2px; width: 100%; background: var(--text-dark); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }

/* ---------- 8. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 50px;
  font-weight: 500; font-size: 0.95rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s ease;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 10px 28px rgba(124,79,219,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(124,79,219,0.4); }
.btn-outline { border: 1.5px solid var(--color-purple-soft); color: var(--color-purple-deep); background: rgba(255,255,255,0.4); }
.btn-outline:hover { background: var(--color-lavender); transform: translateY(-3px); }

/* ---------- 9. SECTION UTILITIES ---------- */
section { position: relative; z-index: 1; padding: var(--section-padding) 0; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--color-purple); font-weight: 600; margin-bottom: 14px;
}
.eyebrow.center { display: block; text-align: center; }
.eyebrow.light { color: var(--color-pink-deep); }
.section-title { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 20px; letter-spacing: -1px; }
.section-title.center { text-align: center; }
.section-title.light { color: #fff; }
.section-subtitle { color: var(--text-mid); font-size: 1.05rem; max-width: 620px; }
.section-subtitle.center { margin: 0 auto 60px; text-align: center; }

/* reveal-up animation base state (animated via GSAP) */
.reveal-up { opacity: 0; transform: translateY(50px); }

/* ---------- 10. HERO ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-title { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.1; margin: 10px 0 24px; letter-spacing: -1.5px; }
.hero-title .line { display: block; }
.hero-name {
  background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline { font-size: 1.1rem; color: var(--text-mid); max-width: 480px; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 18px; margin-bottom: 56px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; }
.hero-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; }
.hero-stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--color-purple-deep); }
.hero-stat span:not(.hero-stat-num) { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--color-purple-deep); }
.hero-stat p { width: 100%; font-size: 0.82rem; color: var(--text-light); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-glow {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: var(--gradient-primary); filter: blur(90px); opacity: 0.35; z-index: -1;
}
.hero-card { padding: 20px; width: 100%; max-width: 400px; }
.hero-illustration { width: 100%; height: auto; }

.floating-chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; font-size: 0.85rem;
}
.floating-chip strong { display: block; font-family: var(--font-display); font-size: 0.95rem; color: var(--text-dark); }
.floating-chip small { color: var(--text-light); }
.chip-icon { font-size: 1.4rem; }
.chip-1 { top: 8%; left: -8%; }
.chip-2 { bottom: 10%; right: -10%; }

.scroll-indicator {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--color-purple-soft); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-indicator span { width: 4px; height: 8px; border-radius: 4px; background: var(--color-purple); animation: scrollDot 1.6s ease infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 11. ABOUT ---------- */
.about { background: linear-gradient(180deg, #fff 0%, var(--color-lavender) 100%); }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 70px; align-items: start; margin-top: 30px; }
.about-summary { color: var(--text-mid); margin-bottom: 20px; font-size: 1.02rem; }
.about-highlights { display: grid; gap: 22px; margin-top: 30px; }
.highlight-item { display: flex; gap: 16px; align-items: flex-start; }
.highlight-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
  background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.highlight-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.highlight-item p { font-size: 0.92rem; color: var(--text-light); }

.about-visual { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 26px; }
.about-card { padding: 50px 30px; display: flex; align-items: center; justify-content: center; }
.about-ring {
  width: 220px; height: 220px; border-radius: 50%;
  border: 2px dashed var(--color-purple-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.about-ring-num { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: var(--color-purple-deep); }
.about-ring-label { font-size: 0.85rem; color: var(--text-mid); margin-top: 6px; }
.about-mini-card { padding: 26px; font-family: var(--font-display); font-style: italic; color: var(--color-purple-deep); font-size: 1.05rem; text-align: center; }

/* ---------- 12. SKILLS ---------- */
.skills-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.skill-card {
  background: var(--color-white);
  border: 1px solid rgba(124,79,219,0.08);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  box-shadow: 0 10px 30px rgba(124,79,219,0.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s ease;
  position: relative;
}
.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 50px rgba(124,79,219,0.18);
  background: linear-gradient(160deg, #ffffff 0%, var(--color-lavender) 100%);
}
.skill-icon {
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 18px;
  background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.skill-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.skill-card p { font-size: 0.88rem; color: var(--text-light); }

/* ---------- 13. EXPERIENCE TIMELINE ---------- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-top: 20px; }
.timeline-line {
  position: absolute; left: 20px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--color-purple-soft), var(--color-pink-deep));
}
.timeline-item { position: relative; padding-left: 64px; margin-bottom: 46px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: 11px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gradient-primary); box-shadow: 0 0 0 6px rgba(124,79,219,0.12);
}
.timeline-card { padding: 32px; }
.timeline-duration {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 1px;
  color: var(--color-purple); background: var(--color-lavender); padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.timeline-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.timeline-company { display: block; color: var(--color-purple-deep); font-weight: 500; font-size: 0.92rem; margin-bottom: 16px; }
.timeline-card ul { display: grid; gap: 8px; }
.timeline-card li { position: relative; padding-left: 18px; color: var(--text-mid); font-size: 0.92rem; }
.timeline-card li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-purple-soft); }

/* ---------- 14. SERVICES ---------- */
.services { background: linear-gradient(180deg, var(--color-lavender) 0%, #fff 100%); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  padding: 40px 32px; border-radius: var(--radius-md);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; background: var(--gradient-primary);
  transition: opacity .4s ease; z-index: -1;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(124,79,219,0.16); }
.service-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--color-pink-deep); margin-bottom: 14px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text-mid); font-size: 0.92rem; }

/* ---------- 15. ACHIEVEMENTS ---------- */
.achievements { background: var(--gradient-dark); overflow: hidden; }
.achievements-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.achievement-item p { color: rgba(244,240,251,0.75); margin-top: 6px; font-size: 0.92rem; }
.achievement-num, .achievement-item .light {
  font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; color: #fff;
}

/* ---------- 16. PORTFOLIO / CASE STUDIES ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.portfolio-card {
  background: #fff; border-radius: var(--radius-md); padding: 34px;
  border: 1px solid rgba(124,79,219,0.08);
  box-shadow: 0 10px 30px rgba(124,79,219,0.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.portfolio-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(124,79,219,0.15); }
.portfolio-industry {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--color-purple-deep); background: var(--color-lavender); padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
}
.portfolio-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.portfolio-block { margin-bottom: 14px; }
.portfolio-block strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-pink-deep); margin-bottom: 3px; }
.portfolio-block p { font-size: 0.9rem; color: var(--text-mid); }

/* ---------- 17. TESTIMONIALS ---------- */
.testimonials { background: linear-gradient(180deg, #fff 0%, var(--color-pink) 100%); }
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card { padding: 34px; }
.testimonial-quote { font-size: 0.98rem; color: var(--text-mid); font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-family: var(--font-display); font-size: 0.85rem;
}
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author small { color: var(--text-light); font-size: 0.8rem; }

/* ---------- 18. CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: flex-start; }
.contact-details { margin-top: 34px; display: grid; gap: 18px; }
.contact-details li { display: flex; align-items: center; gap: 14px; font-size: 0.96rem; color: var(--text-mid); }
.contact-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--color-lavender);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-details a:hover { color: var(--color-purple-deep); }

.contact-form { padding: 40px; display: grid; gap: 20px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 0.85rem; font-weight: 500; color: var(--text-mid); }
.form-row input, .form-row textarea {
  padding: 14px 18px; border-radius: 14px; border: 1.5px solid rgba(124,79,219,0.15);
  background: rgba(255,255,255,0.7); font-size: 0.94rem; color: var(--text-dark);
  transition: border-color .25s ease, box-shadow .25s ease;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--color-purple); box-shadow: 0 0 0 4px rgba(124,79,219,0.12);
}
.form-submit { justify-self: flex-start; margin-top: 6px; }
.form-success {
  display: none; color: var(--color-purple-deep); font-size: 0.9rem; font-weight: 500;
  background: var(--color-lavender); padding: 12px 18px; border-radius: 12px;
}
.form-success.show { display: block; }

/* ---------- 19. FOOTER ---------- */
.footer { background: var(--gradient-dark); padding: 60px 0 34px; text-align: center; }
.footer .logo { color: #fff; }
.footer-tagline { color: rgba(244,240,251,0.7); margin: 14px 0 26px; font-size: 0.92rem; }
.footer-socials { display: flex; justify-content: center; gap: 16px; margin-bottom: 30px; }
.footer-socials a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background .3s ease, transform .3s ease;
}
.footer-socials a:hover { background: var(--color-purple-soft); transform: translateY(-4px); }
.footer-copy { color: rgba(244,240,251,0.5); font-size: 0.82rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; }

/* ---------- 20. BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(124,79,219,0.3);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }
