/* ==========================================================================
   LUXURY EDITORIAL DESIGN SYSTEM - ATHARVA KA
   Palette:
   - Deep Black:     #111110
   - Warm Ivory:     #F4F0E8
   - Champagne Beige:#C8B99F
   - Soft Charcoal:  #282723
   - Muted Taupe:    #8D8375
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
  --lux-deep-black: #111110;
  --lux-warm-ivory: #F4F0E8;
  --lux-champagne: #C8B99F;
  --lux-soft-charcoal: #282723;
  --lux-muted-taupe: #8D8375;
  --lux-border: rgba(200, 185, 159, 0.15);
  --lux-card-bg: #191816;
  --lux-card-border: rgba(200, 185, 159, 0.12);

  /* Completely override template HSL variables so no neon yellow can render */
  --main-h: 38;
  --main-s: 30%;
  --main-l: 70%;
  --main: 38 30% 70%;
  --main-600: #C8B99F !important;
  --main-two-h: 38;
  --main-two-s: 30%;
  --main-two-l: 70%;
  --main-two: 38 30% 70%;
  --main-two-600: #C8B99F !important;
  --heading-font: 'Syne', sans-serif;
  --body-font: 'Plus Jakarta Sans', sans-serif;
}

button.back-to-top-btn,
#back_to_top,
.back-to-top-btn {
  background: #C8B99F !important;
  color: #111110 !important;
}

button.back-to-top-btn svg path,
#back_to_top svg path {
  stroke: #111110 !important;
}

.bg-main-two-600,
.bg-main-600 {
  background-color: var(--lux-champagne) !important;
}

.text-main-two-600,
.text-main-600 {
  color: var(--lux-champagne) !important;
}

.hover-bg-main-two-600:hover {
  background-color: var(--lux-champagne) !important;
}

.hover-text-main-two-600:hover {
  color: var(--lux-champagne) !important;
}

body {
  background-color: var(--lux-deep-black) !important;
  color: var(--lux-warm-ivory) !important;
  font-family: var(--body-font) !important;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}

/* Home-only hero asset loader */
.home-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--lux-deep-black);
  color: var(--lux-warm-ivory);
  transition: opacity 0.75s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.75s ease;
}

.home-loader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(280px, 70vw);
}

.home-loader-kicker,
.home-loader-status {
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-loader-kicker {
  color: var(--lux-champagne);
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.home-loader-status {
  color: var(--lux-muted-taupe);
  font-size: 0.62rem;
}

.home-loader-line {
  position: relative;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: var(--lux-border);
}

.home-loader-line span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: var(--lux-champagne);
  animation: homeLoaderProgress 1.35s ease-in-out infinite;
}

@keyframes homeLoaderProgress {
  0% { transform: translateX(-115%); }
  50% { transform: translateX(185%); }
  100% { transform: translateX(285%); }
}

/* Luxury Global Overrides */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

/* Custom Selection */
::selection {
  background: var(--lux-champagne);
  color: var(--lux-deep-black);
}

/* Luxury Header */
.header-three {
  background: rgba(17, 17, 16, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--lux-border);
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000 !important;
  transition: all 0.3s ease;
  padding: 14px 0;
}

.header-three-logo {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.lux-brand-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--lux-warm-ivory) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
}

.lux-brand-dot {
  width: 6px;
  height: 6px;
  background-color: var(--lux-champagne);
  border-radius: 50%;
  display: inline-block;
}

.header-menu {
  margin-left: auto;
  margin-right: 7vw; /* brought pleasantly inward toward center, not pushed to the extreme edge */
}

.lux-nav-links {
  display: flex;
  align-items: center; /* straight horizontal baseline */
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lux-nav-links li {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.lux-nav-links li:hover {
  transform: translateY(-2px);
}

.lux-nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.68);
  transition: color 0.25s ease;
  position: relative;
  display: inline-block;
  padding: 4px 0;
  line-height: 1;
}

.lux-nav-links a:hover,
.lux-nav-links a.active {
  color: var(--lux-champagne);
}

.lux-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--lux-champagne);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lux-nav-links a:hover::after {
  width: 100%;
}

.lux-social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--lux-border) !important;
  color: var(--lux-warm-ivory) !important;
  font-size: 1.15rem;
  transition: all 0.25s ease;
  background: rgba(40, 39, 35, 0.7) !important;
}

.lux-social-pill i {
  color: var(--lux-warm-ivory) !important;
  font-size: 1.2rem;
  transition: color 0.25s ease;
}

.lux-social-pill:hover {
  border-color: var(--lux-champagne) !important;
  background: var(--lux-champagne) !important;
  transform: translateY(-2px);
}

.lux-social-pill:hover i {
  color: var(--lux-deep-black) !important;
}

.lux-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--lux-champagne) !important;
  border: 1px solid var(--lux-champagne);
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.lux-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lux-champagne);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.lux-btn-primary span,
.lux-btn-primary i {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.lux-btn-primary:hover {
  color: var(--lux-deep-black) !important;
  box-shadow: 0 4px 20px rgba(200, 185, 159, 0.25);
  transform: translateY(-1px);
}

.lux-btn-primary:hover::before {
  transform: translateY(0);
}

.lux-btn-primary:hover span,
.lux-btn-primary:hover i {
  color: var(--lux-deep-black) !important;
}

/* ==========================================================================
   HERO SECTION - PINNED, OVERSIZED TYPOGRAPHY & PORTRAIT INTERACTION
   ========================================================================== */
.luxury-hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background-color: var(--lux-deep-black);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding-top: 60px;
}

.luxury-hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Ambient Subtle Radial Glow in Background (Behind Text) */
.hero-ambient-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(200, 185, 159, 0.07) 0%, rgba(17, 17, 16, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Background Oversized Typography Layer (Behind Portrait) */
.hero-typo-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  padding-bottom: 2vh;
}

.hero-oversized-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 9.2vw, 10.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--lux-warm-ivory);
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  margin: 0;
  padding: 0;
  will-change: transform;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
}

.hero-oversized-name .name-part {
  display: inline-block;
}

.hero-oversized-name .name-space {
  display: inline-block;
  width: clamp(1rem, 3vw, 3rem);
}

/* Foreground Portrait Layer (VISIBLY IN FRONT OF LETTERS) */
.hero-portrait-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4; /* Higher than text z-index: 2 */
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  width: 100%;
}

.hero-portrait-wrap {
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  will-change: transform;
}

.hero-portrait-img {
  max-height: clamp(480px, 78vh, 880px);
  max-width: 90vw;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.95));
}

/* Bottom fade gradient to guarantee seamless merge into page */
.hero-bottom-blend {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--lux-deep-black) 0%, rgba(17, 17, 16, 0.6) 50%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

/* Editorial Overlays (Title, Description, Details) */
.hero-overlay-info {
  position: absolute;
  inset: 0;
  z-index: 6; /* High z-index for clarity and interaction */
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(80px, 12vh, 120px) clamp(24px, 5vw, 80px) clamp(24px, 4vh, 48px);
}

.hero-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(40, 39, 35, 0.6);
  border: 1px solid var(--lux-border);
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lux-champagne);
  pointer-events: auto;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--lux-champagne);
  box-shadow: 0 0 10px var(--lux-champagne);
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-focus-tag {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lux-muted-taupe);
  text-align: right;
}

.hero-bottom-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.hero-bio-snippet {
  max-width: 360px;
  pointer-events: auto;
}

.hero-bio-snippet p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(244, 240, 232, 0.8);
  margin-bottom: 12px;
}

.hero-bio-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-bio-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lux-champagne);
  border-bottom: 1px solid rgba(200, 185, 159, 0.3);
  padding-bottom: 2px;
}

/* Restrained Scroll Indicator */
.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--lux-muted-taupe);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: auto;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--lux-champagne), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--lux-warm-ivory);
  animation: scrollDown 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* ==========================================================================
   EDITORIAL SECTIONS (ABOUT, EXPERIENCE, PROJECTS, SKILLS, CONTACT)
   ========================================================================== */
.lux-section {
  position: relative;
  padding: 120px 0;
  background-color: var(--lux-deep-black);
  border-top: 1px solid var(--lux-border);
}

/* ── About Section: Scroll-pinned split-banner reveal ── */
#about.lux-section {
  padding: 0;
  /* overflow must be visible so pinned wrapper and content are never clipped */
  overflow: visible;
}

/* The stage is the viewport that gets PINNED by ScrollTrigger. */
.about-reveal-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible;
  background:
    radial-gradient(ellipse at 18% 30%, rgba(200, 185, 159, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 70%, rgba(200, 185, 159, 0.05) 0%, transparent 45%),
    var(--lux-deep-black);
}

/* Subtle grain texture overlay for depth */
.about-reveal-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* About section content — sits beneath the split panels (z-index < panels) */
.about-reveal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: auto 0;
  padding-top: clamp(48px, 7vh, 85px);
  padding-bottom: clamp(40px, 6vh, 75px);
  /* Start hidden; JS/GSAP will reveal it as panels slide apart */
  opacity: 0.55;
  transform: translateY(28px);
  will-change: transform, opacity;
}

/* ── Split Panels ── */
/* The banner wrapper fills the stage absolutely, sits above content and CLIPS panels */
.about-split-banner {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden; /* Clips the sliding panels so they never cause horizontal scrollbar */
}

.about-split-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  /* Slightly more than 50% to prevent a 1-px seam */
  width: 50.2%;
  will-change: transform;
  backface-visibility: hidden;
}

/* Luxury warm-ivory base with subtle gradient */
.about-split-panel-left {
  left: 0;
  background: linear-gradient(135deg, #F7F3EC 0%, var(--lux-warm-ivory) 100%);
  transform-origin: left center;
}

.about-split-panel-right {
  right: 0;
  background: linear-gradient(225deg, #F7F3EC 0%, var(--lux-warm-ivory) 100%);
  transform-origin: right center;
}

/* ── Banner Label (01 / ABOUT ME / rule) ── */
.about-split-banner-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--lux-deep-black);
  will-change: transform, opacity;
}

.about-split-index {
  align-self: flex-start;
  margin-top: 26vh;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lux-muted-taupe);
}

.about-split-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 11vw, 11rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: var(--lux-deep-black);
  user-select: none;
  white-space: nowrap;
}

.about-split-rule {
  align-self: flex-end;
  margin-bottom: 26vh;
  width: clamp(34px, 6vw, 90px);
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--lux-muted-taupe));
}

/* Laptop & Medium Screens Optimization — ensures heading & all text fit 100% in viewport */
@media (min-width: 768px) and (max-width: 1440px) {
  .about-reveal-section .about-reveal-content {
    padding-top: clamp(32px, 4.5vh, 55px);
    padding-bottom: clamp(28px, 4vh, 48px);
  }

  .about-reveal-section .lux-eyebrow {
    font-size: 0.72rem;
    margin-bottom: 8px;
  }

  .about-reveal-section .lux-section-title {
    font-size: clamp(1.75rem, 2.2vw, 2.35rem);
    line-height: 1.18;
    margin-bottom: clamp(10px, 1.4vh, 16px) !important;
  }

  .about-reveal-section p.tw-text-lg {
    font-size: clamp(0.86rem, 0.98vw, 0.96rem);
    line-height: 1.55;
    margin-bottom: clamp(10px, 1.3vh, 14px) !important;
  }

  .about-reveal-section .lux-btn-primary {
    padding: 8px 18px;
    font-size: 0.84rem;
  }

  .about-reveal-section .lux-skills-card {
    padding: clamp(12px, 1.3vw, 18px);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(200, 185, 159, 0.12);
  }

  .about-reveal-section .lux-skills-card .lux-eyebrow {
    font-size: 0.68rem;
    margin-bottom: 4px;
  }

  .about-reveal-section .lux-skills-card h4 {
    font-size: 0.98rem;
    margin-bottom: 4px !important;
  }

  .about-reveal-section .lux-skills-card p {
    font-size: 0.8rem !important;
    line-height: 1.42;
    margin-bottom: 0;
  }
}

/* Mobile Screen Optimization */
@media (max-width: 767px) {
  .about-reveal-stage {
    min-height: 100svh;
    height: auto;
    overflow: visible;
    display: block;
  }

  .about-reveal-content {
    margin: 0;
    padding-top: 65px;
    padding-bottom: 60px;
  }

  .about-reveal-section .lux-eyebrow {
    font-size: 0.74rem;
    margin-bottom: 8px;
  }

  .about-reveal-section .lux-section-title {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 16px !important;
  }

  .about-reveal-section p.tw-text-lg {
    font-size: 0.94rem;
    line-height: 1.62;
    margin-bottom: 16px !important;
  }

  .about-reveal-section .lux-skills-card {
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(200, 185, 159, 0.12);
  }

  .about-reveal-section .lux-skills-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px !important;
  }

  .about-reveal-section .lux-skills-card p {
    font-size: 0.86rem !important;
    line-height: 1.5;
    margin-bottom: 0;
  }

  /* Mobile Split Banner — vertically stacked & beautifully centered */
  .about-split-banner {
    height: 100svh;
    min-height: 100svh;
  }

  .about-split-banner-label {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    text-align: center;
  }

  .about-split-index {
    align-self: center;
    margin-top: 0;
    font-size: 0.82rem;
    letter-spacing: 0.25em;
  }

  .about-split-title {
    font-size: clamp(2.3rem, 11vw, 3.8rem);
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.04em;
    text-align: center;
  }

  .about-split-rule {
    align-self: center;
    margin-bottom: 0;
    width: 44px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--lux-muted-taupe), transparent);
  }
}

.lux-section-light {
  background-color: var(--lux-warm-ivory) !important;
  color: var(--lux-deep-black) !important;
}

.lux-section-light .lux-section-title,
.lux-section-light h2,
.lux-section-light h3,
.lux-section-light h4 {
  color: var(--lux-deep-black) !important;
}

.lux-section-light p {
  color: #383530 !important;
}

.lux-section-light .lux-meta-tag {
  color: #6d6458 !important;
  border-color: rgba(109, 100, 88, 0.3) !important;
}

.lux-section-header {
  margin-bottom: 64px;
}

.lux-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lux-champagne);
  margin-bottom: 12px;
  display: inline-block;
}

.lux-section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  color: var(--lux-warm-ivory);
  letter-spacing: -0.01em;
}

/* Experience Timeline */
.lux-timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--lux-border);
  margin-top: 40px;
}

.lux-timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.lux-timeline-item:last-child {
  margin-bottom: 0;
}

/* GSAP scroll-in initial state — JS removes/overrides once animated */
.lux-tl-anim {
  opacity: 0;
  transform: translateX(-48px);
}

/* Dot pulse keyframe fired when item enters view */
@keyframes luxDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 185, 159, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(200, 185, 159, 0); }
  100% { box-shadow: 0 0 10px rgba(200, 185, 159, 0.5); }
}
.lux-tl-dot-pulse {
  animation: luxDotPulse 0.7s ease-out forwards;
}

.lux-timeline-dot {
  position: absolute;
  left: -37px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lux-champagne);
  box-shadow: 0 0 10px rgba(200, 185, 159, 0.5);
}

.lux-timeline-date {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lux-champagne);
  margin-bottom: 6px;
}

.lux-timeline-role {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lux-warm-ivory);
  margin-bottom: 4px;
}

.lux-timeline-company {
  font-size: 0.95rem;
  color: var(--lux-muted-taupe);
  margin-bottom: 12px;
}

.lux-timeline-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(244, 240, 232, 0.75);
}

/* Tech Stack Orbit Globe Component */
.lux-orbit-section {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 110px 0 40px 0 !important;
  background-color: #151413;
  overflow: visible;
  box-sizing: border-box;
}

.lux-orbit-section > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.lux-orbit-section .lux-section-header {
  margin-bottom: 100px;
  text-align: center;
  flex-shrink: 0;
  width: 100%;
  position: relative;
  z-index: 5;
}

.lux-orbit-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lux-warm-ivory);
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.lux-orbit-video-wrap {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: clamp(560px, 78vh, 820px);
  margin: 0 auto;
  border-radius: 28px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.lux-orbit-video-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(200, 185, 159, 0.12) 0%, rgba(21, 20, 19, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 1;
}

.lux-orbit-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: scale(1.35);
  transform-origin: center center;
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .lux-orbit-section {
    min-height: auto;
    padding: 60px 0 80px 0 !important;
  }
  .lux-orbit-video-wrap {
    height: clamp(400px, 60vh, 520px);
    border-radius: 18px;
  }
  .lux-orbit-video {
    border-radius: 18px;
  }
}

@media (max-width: 575px) {
  .lux-orbit-section {
    min-height: auto;
    padding: 50px 0 70px 0 !important;
  }
  .lux-orbit-video-wrap {
    height: 340px;
    border-radius: 14px;
  }
  .lux-orbit-video {
    border-radius: 14px;
  }
}



/* Contact Section & Footer */
.lux-contact-box {
  background: var(--lux-card-bg);
  border: 1px solid var(--lux-card-border);
  border-radius: 16px;
  padding: clamp(32px, 6vw, 64px);
  position: relative;
  overflow: hidden;
}

.lux-contact-email {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.3rem, 3.3vw, 2.6rem);
  font-weight: 700;
  color: var(--lux-warm-ivory);
  display: inline-block;
  margin: 24px 0;
  word-break: break-all;
  transition: color 0.25s ease;
}

.lux-contact-email:hover {
  color: var(--lux-champagne);
}

.lux-footer-bar {
  border-top: 1px solid var(--lux-border);
  padding: 32px 0;
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--lux-muted-taupe);
}

/* Scroll to top button styling */
#back_to_top,
.back-to-top-btn,
.footer-three-back-to-top {
  background: var(--lux-champagne) !important;
  color: var(--lux-deep-black) !important;
  border: 1px solid var(--lux-champagne) !important;
}

#back_to_top svg path {
  stroke: var(--lux-deep-black) !important;
}

.tw-offcanvas-open-btn {
  background: rgba(40, 39, 35, 0.8) !important;
  border: 1px solid var(--lux-border) !important;
  color: var(--lux-warm-ivory) !important;
}

.tw-offcanvas-open-btn img {
  filter: invert(1) brightness(1.2);
}

/* ========================================================================
   CERTIFICATION BADGE CAROUSEL
   ======================================================================== */
.cert-carousel-root {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto 0;
  overflow: hidden;
  touch-action: pan-y;
}

.cert-track-wrap {
  position: relative;
  width: min(100%, 1060px);
  height: 390px;
}

.cert-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.cert-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(190px, 25vw, 285px);
  aspect-ratio: 1;
  margin: 0;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lux-border);
  border-radius: 20px;
  background: radial-gradient(circle at 50% 35%, rgba(200, 185, 159, 0.11), rgba(25, 24, 22, 0.96) 70%);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
  will-change: transform, opacity;
}

.cert-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cert-slide--active {
  border-color: rgba(200, 185, 159, 0.7);
  box-shadow: 0 0 0 1px rgba(200, 185, 159, 0.16), 0 0 50px rgba(200, 185, 159, 0.2), 0 24px 65px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.cert-nav {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lux-border);
  border-radius: 50%;
  background: rgba(25, 24, 22, 0.9);
  color: var(--lux-warm-ivory);
  font-size: 1.1rem;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.cert-nav:hover,
.cert-nav:focus-visible {
  background: var(--lux-champagne);
  color: var(--lux-deep-black);
  transform: scale(1.08);
}

.cert-nav--prev { margin-right: clamp(8px, 3vw, 42px); }
.cert-nav--next { margin-left: clamp(8px, 3vw, 42px); }

.cert-carousel-caption {
  min-height: 24px;
  margin-top: 4px;
  color: var(--lux-champagne);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.cert-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.cert-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 240, 232, 0.28);
  transition: width 0.25s ease, border-radius 0.25s ease, background 0.25s ease;
}

.cert-dot--active {
  width: 24px;
  border-radius: 4px;
  background: var(--lux-champagne);
}

@media (prefers-reduced-motion: reduce) {
  .cert-slide { transition-duration: 0.01ms; }
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .hero-overlay-info {
    padding: 100px 24px 32px;
  }
  .hero-bio-snippet {
    display: none; /* Keep hero clean and portrait focal on mobile */
  }
  .hero-bottom-meta {
    justify-content: center;
  }
  .hero-focus-tag {
    display: none;
  }
  .hero-portrait-img {
    max-height: 65vh;
  }
}

@media screen and (max-width: 767px) {
  .hero-name-space,
  .hero-name-suffix {
    display: none !important;
  }
  .luxury-hero-section {
    height: 92svh !important;
    min-height: 92svh !important;
    padding-top: 52px;
  }
  .hero-overlay-info {
    padding: 82px 16px 24px;
  }
  .hero-oversized-name {
    font-size: clamp(2.45rem, 12vw, 3.65rem) !important;
    white-space: nowrap !important;
    padding: 0 !important;
  }
  .hero-typo-container {
    align-items: center;
    padding-bottom: 6vh !important;
  }
  .hero-portrait-img {
    max-height: min(64svh, 600px) !important;
    max-width: 100vw;
  }
  .hero-bottom-blend {
    height: 88px;
  }
  .portfolio-three-area {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
  .portfolio-three-item {
    max-width: 340px;
    margin-right: auto;
    margin-left: auto;
    padding: 18px 18px 16px;
    border-radius: 14px;
  }
  .portfolio-three-wrap {
    margin-bottom: 14px;
  }
  .portfolio-three-item h2 a {
    font-size: 1.22rem;
    line-height: 1.08;
  }
  .portfolio-three-list a {
    padding: 4px 9px;
    font-size: 0.59rem;
  }
  .portfolio-three-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .lux-proj-img-placeholder {
    height: 165px;
    border-radius: 10px;
  }
  .lux-proj-img-placeholder::after {
    font-size: 0.62rem;
    padding: 7px 12px;
  }
  .lux-tl-anim {
    transform: translateY(24px);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s ease;
  }
  .lux-tl-anim.lux-tl-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .cert-carousel-root {
    min-height: 340px;
  }
  .cert-track-wrap {
    height: 300px;
  }
  .cert-slide {
    width: min(58vw, 230px);
    padding: 16px;
  }
  .cert-nav {
    width: 38px;
    height: 38px;
  }
  .cert-nav--prev { margin-right: 3px; }
  .cert-nav--next { margin-left: 3px; }
}

/* ==========================================================================
   INTERACTIVE DOCK NAVBAR (LINKEDIN, GITHUB, CREDLY, AWS BUILDER CENTER)
   Ported & customized from dock.tsx with luxury styling
   ========================================================================== */
.lux-dock-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.lux-dock {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: rgba(20, 19, 18, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(200, 185, 159, 0.24);
  padding: 8px 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.lux-dock:hover {
  border-color: rgba(200, 185, 159, 0.4);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.85), 0 0 20px rgba(200, 185, 159, 0.1);
}

.lux-dock-separator {
  width: 1px;
  height: 24px;
  background: rgba(200, 185, 159, 0.2);
  align-self: center;
  margin: 0 4px;
}

.lux-dock-item-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  will-change: width;
}

.lux-dock-item-inner {
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: width, height;
}

.lux-dock-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--lux-warm-ivory) !important;
  background: rgba(40, 39, 35, 0.7);
  border: 1px solid rgba(200, 185, 159, 0.16);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.lux-dock-link svg {
  width: 55%;
  height: 55%;
  transition: transform 0.15s ease;
}

.lux-dock-link img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: grayscale(1) sepia(0.2) saturate(0.7) brightness(1.3);
  transition: transform 0.15s ease, filter 0.18s ease;
}

.lux-dock-link img.lux-dock-image--credly {
  filter: none;
}

.lux-dock-credly-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66%;
  height: 66%;
  color: var(--lux-champagne);
  background: #050505;
  border: 1px solid rgba(200, 185, 159, 0.75);
  border-radius: 3px;
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  text-indent: -0.06em;
  transition: transform 0.15s ease, color 0.18s ease, border-color 0.18s ease;
}

.lux-dock-link--credly {
  background: #050505;
}

.lux-dock-link:hover {
  background: var(--lux-champagne) !important;
  color: var(--lux-deep-black) !important;
  border-color: var(--lux-champagne) !important;
  box-shadow: 0 6px 20px rgba(200, 185, 159, 0.35);
}

.lux-dock-link:hover svg {
  transform: scale(1.08);
}

.lux-dock-link:hover img {
  transform: scale(1.08);
  filter: grayscale(1) sepia(0.25) saturate(0.8) brightness(0.38);
}

.lux-dock-link:hover img.lux-dock-image--credly {
  filter: none;
}

.lux-dock-link:hover .lux-dock-credly-mark {
  transform: scale(1.08);
  color: var(--lux-warm-ivory);
  border-color: var(--lux-warm-ivory);
}

/* Floating Dock Tooltip */
.lux-dock-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  white-space: nowrap;
}

.lux-dock-tooltip.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lux-dock-tooltip-label {
  background: #191816;
  color: var(--lux-warm-ivory);
  border: 1px solid rgba(200, 185, 159, 0.28);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.lux-dock-tooltip-arrow {
  color: #191816;
  margin-top: -1px;
}

@media screen and (max-width: 767px) {
  .back-to-top-wrapper.back-to-top-btn-show {
    right: 24px;
    bottom: 88px;
  }

  .lux-dock-container {
    bottom: 16px;
  }
  .lux-dock {
    padding: 6px 10px;
  }
}



/* ==========================================================================
   PORTFOLIO THREE / WORKS SECTION (Light Luxury Ivory + Pinned Shape)
   ========================================================================== */
.portfolio-three-area {
  background-color: #F4F0E8 !important; /* luxury ivory */
  position: relative;
  overflow: clip;
  z-index: 1;
}

.portfolio-three-shape {
  position: sticky !important;
  top: 96px !important;
  height: 1px;
  pointer-events: none;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 0 !important;
}

.portfolio-three-shape-title {
  color: #111110 !important; /* Bold prominent black WORKS */
  font-family: inherit;
  font-weight: 800 !important;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -0.02em;
  opacity: 0.95;
  user-select: none;
  white-space: nowrap;
  font-size: min(23vw, 420px);
}

@media screen and (max-width: 1799px) {
  .portfolio-three-shape-title {
    font-size: min(23vw, 380px);
  }
}
@media screen and (max-width: 1499px) {
  .portfolio-three-shape-title {
    font-size: min(23vw, 320px);
  }
}
@media screen and (max-width: 1199px) {
  .portfolio-three-shape-title {
    font-size: min(23vw, 260px);
  }
}
@media screen and (max-width: 991px) {
  .portfolio-three-shape-title {
    font-size: min(23vw, 200px);
  }
}
@media screen and (max-width: 767px) {
  .portfolio-three-shape-title {
    font-size: min(23vw, 150px);
  }
}
@media screen and (max-width: 575px) {
  .portfolio-three-shape-title {
    font-size: 110px;
  }
}
@media screen and (max-width: 424px) {
  .portfolio-three-shape-title {
    font-size: 90px;
  }
}

.portfolio-three-wrapper {
  position: relative;
  z-index: 2;
}

.portfolio-three-item {
  max-width: 825px;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 20px 40px -15px rgba(0, 0, 0, 0.08),
    0 4px 6px -2px rgba(0, 0, 0, 0.04);
  padding: 34px 34px 30px;
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.portfolio-three-item:hover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.15),
    0 10px 20px -5px rgba(0, 0, 0, 0.06);
}

@media screen and (max-width: 1699px) {
  .portfolio-three-item {
    max-width: 760px;
  }
}
@media screen and (max-width: 1499px) {
  .portfolio-three-item {
    max-width: 660px;
  }
}
@media screen and (max-width: 1399px) {
  .portfolio-three-item {
    max-width: 570px;
  }
}
@media screen and (max-width: 1199px) {
  .portfolio-three-item {
    max-width: 470px;
  }
}
@media screen and (max-width: 991px) {
  .portfolio-three-item {
    max-width: 100%;
  }
}

/* 2-column staggered stack: Card 2 placed 617px lower */
.portfolio-three-item:nth-child(even) {
  margin-top: 617px;
  margin-bottom: 0;
}
@media screen and (max-width: 1399px) {
  .portfolio-three-item:nth-child(even) {
    margin-top: 480px;
  }
}
@media screen and (max-width: 991px) {
  .portfolio-three-item:nth-child(even) {
    margin-top: 40px;
  }
}

.portfolio-three-wrap {
  margin-bottom: 24px;
}

.portfolio-three-item h2 a {
  color: #111110 !important;
  font-family: inherit;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
  text-decoration: none;
}
.portfolio-three-item h2 a:hover {
  color: #9E7D3B !important;
}

.portfolio-three-list ul {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.portfolio-three-list a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111110 !important;
  background: #EAE6DF;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.portfolio-three-list a:hover {
  background: #111110 !important;
  color: #ffffff !important;
}

.portfolio-three-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #EAE6DF;
  color: #111110 !important;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.portfolio-three-btn:hover {
  background: #111110 !important;
  color: #ffffff !important;
  transform: rotate(45deg);
}

.lux-proj-img-placeholder {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #e4ded3 0%, #d8d0c2 50%, #cec5b5 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.lux-proj-img-placeholder::after {
  content: 'VIEW ARCHITECTURE';
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: rgba(17, 17, 16, 0.4);
  border: 1px solid rgba(17, 17, 16, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
}
.portfolio-three-item:hover .lux-proj-img-placeholder {
  transform: scale(1.02);
}

/* Final mobile overrides: these intentionally follow the portfolio base rules. */
@media screen and (max-width: 767px) {
  html,
  body {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
  html,
  body,
  #smooth-wrapper,
  #smooth-content,
  .header-three {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
  }
  body {
    display: block !important;
    flex: none !important;
    align-items: initial !important;
  }
  #smooth-wrapper {
    display: block !important;
    flex: 0 0 100% !important;
    align-self: stretch !important;
  }
  #smooth-content,
  .luxury-hero-section,
  .portfolio-three-area,
  .lux-section,
  .lux-orbit-section {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
  }
  .lux-orbit-title {
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
    letter-spacing: 0.08em;
    line-height: 1.02;
  }
  .portfolio-three-shape-title {
    font-size: 170px !important;
    transform: rotate(-90deg);
    transform-origin: center center;
  }
  .portfolio-three-shape {
    top: 76px !important;
  }
  .portfolio-three-area {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
  .portfolio-three-item,
  .portfolio-three-item:nth-child(even) {
    width: min(340px, calc(100vw - 32px));
    max-width: 340px;
    height: 360px;
    min-height: 360px;
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
    padding: 18px 18px 16px;
    border-radius: 14px;
  }
  .portfolio-three-item:nth-child(even) {
    margin-top: 28px;
  }
  .portfolio-three-item {
    margin-bottom: 28px !important;
  }
  .portfolio-three-item:last-child {
    margin-bottom: 0 !important;
  }
  .portfolio-three-wrap {
    min-height: 92px;
    margin-bottom: 14px;
  }
  .portfolio-three-item h2 a {
    font-size: 1.22rem;
    line-height: 1.08;
  }
  .portfolio-three-list a {
    padding: 4px 9px;
    font-size: 0.59rem;
  }
  .portfolio-three-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .lux-proj-img-placeholder {
    height: 165px;
    border-radius: 10px;
  }
  .lux-proj-img-placeholder::after {
    font-size: 0.62rem;
    padding: 7px 12px;
  }
}
