/* ── Reset & Base ────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

*::selection {
  background-color: #d00000 !important;
  color: #000000 !important;
}

*::-moz-selection {
  background-color: #d00000 !important;
  color: #000000 !important;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: clip;
}

/* Scroll Lock State during Intro Splash */
html.scroll-locked,
body.scroll-locked {
  overflow-y: hidden;
}


/* ── Intro Splash Screen ─────────────────────────── */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.1s cubic-bezier(0.85, 0, 0.15, 1);
  will-change: transform;
}

.intro-screen.slide-up {
  transform: translateY(-100%);
}

.intro-screen.hidden {
  display: none;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: introExit 0.7s cubic-bezier(0.76, 0, 0.24, 1) 3.2s forwards;
  will-change: opacity, transform, filter;
}

.intro-logo-container {
  width: clamp(120px, 25vw, 220px);
  height: clamp(120px, 25vw, 220px);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-logo-svg {
  width: 100%;
  height: 100%;
}

.intro-logo-svg g {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: partReveal 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.intro-logo-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes partReveal {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-15deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.intro-text {
  display: flex;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  color: #000000;
  letter-spacing: -0.02em;
}

.intro-text .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(35px) scale(0.9) rotate(var(--rot, 0deg));
  filter: blur(100px);
  animation: letterFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform, filter;
}

/* Staggered delays and slight rotation offsets for each letter (shifted by +0.8s initial delay) */
.intro-text .letter:nth-child(1) {
  animation-delay: 0.95s;
}

.intro-text .letter:nth-child(2) {
  animation-delay: 1.05s;
}

.intro-text .letter:nth-child(3) {
  animation-delay: 1.15s;
}

.intro-text .letter:nth-child(4) {
  animation-delay: 1.25s;
}

.intro-text .letter:nth-child(5) {
  animation-delay: 1.35s;
}

.intro-text .letter:nth-child(6) {
  animation-delay: 1.45s;
}

.intro-text .letter:nth-child(7) {
  animation-delay: 1.55s;
}

.intro-line {
  width: 0;
  height: 2px;
  background: #000000;
  opacity: 0.8;
  animation: lineExpand 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.75s forwards;
  will-change: width;
}

@keyframes letterFadeIn {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.9) rotate(var(--rot, 0deg));
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    filter: blur(0);
  }
}

@keyframes lineExpand {
  to {
    width: clamp(100px, 20vw, 200px);
  }
}

@keyframes introExit {
  to {
    opacity: 0;
    transform: translateY(-20px);
    filter: blur(8px);
  }
}

/* ── Main Page ───────────────────────────────────── */
.main-page {
  min-height: 100vh;
  background: #000000;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}

.main-page.visible {
  opacity: 1;
}

/* ── Top Navigation Bar ──────────────────────────── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 72px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.top-bar.visible {
  transform: translateY(0);
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  cursor: pointer;
  user-select: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(1);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover .logo-icon {
  transform: rotate(15deg) scale(1.1);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover::after {
  width: 100%;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  position: relative;
  padding: 6px 0;
}

.nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #ffffff;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-tab:hover {
  color: #ffffff;
}

.nav-tab:hover::after {
  width: 100%;
}

/* Hover style using :has() and :not() - dims other tabs when one is hovered */
.nav-tabs:has(.nav-tab:hover) .nav-tab:not(:hover) {
  opacity: 0.35;
}

.contact-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}

.contact-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.contact-btn:hover {
  border-color: #ffffff;
}

.contact-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-btn span {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}

.contact-btn:hover span {
  color: #000000;
}

.contact-btn .arrow-icon {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  transition: transform 0.35s ease, color 0.35s ease;
  stroke: #ffffff;
}

.contact-btn:hover .arrow-icon {
  transform: translateX(3px);
  stroke: #000000;
}

/* ── Mobile Navigation Toggle & Overlay ─────────── */
.menu-toggle-btn {
  display: none;
  position: relative;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 1010;
  padding: 0;
}

.menu-toggle-btn .line {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.4s ease;
  border-radius: 2px;
}

.menu-toggle-btn .line-middle {
  width: 75%;
}

.menu-toggle-btn .line-bottom {
  width: 50%;
}

.menu-toggle-btn:hover .line-middle,
.menu-toggle-btn:hover .line-bottom {
  width: 100%;
}

/* Active state (Hamburger animated to X) */
.menu-toggle-btn.active .line-top {
  transform: translateY(7px) rotate(45deg);
  width: 100%;
}

.menu-toggle-btn.active .line-middle {
  opacity: 0;
  width: 0;
}

.menu-toggle-btn.active .line-bottom {
  transform: translateY(-7px) rotate(-45deg);
  width: 100%;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1005;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 769px) {
  .mobile-nav-overlay {
    display: none !important;
  }
}


.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-content {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  text-align: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  letter-spacing: -0.03em;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease;
}

.mobile-nav-overlay.active .mobile-nav-link {
  transform: translateY(0);
  opacity: 1;
}

/* Staggered transition delays for nav links when menu opens */
.mobile-nav-overlay.active .mobile-nav-link[data-index="0"] {
  transition-delay: 0.1s;
}

.mobile-nav-overlay.active .mobile-nav-link[data-index="1"] {
  transition-delay: 0.15s;
}

.mobile-nav-overlay.active .mobile-nav-link[data-index="2"] {
  transition-delay: 0.2s;
}

.mobile-nav-overlay.active .mobile-nav-link[data-index="3"] {
  transition-delay: 0.25s;
}

.mobile-nav-overlay.active .mobile-nav-link[data-index="4"] {
  transition-delay: 0.3s;
}

.mobile-nav-link:hover {
  color: #ffffff;
}

.mobile-contact-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}

.mobile-contact-link .arrow-icon {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  transition: transform 0.35s ease;
}

.mobile-contact-link:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.mobile-contact-link:hover .arrow-icon {
  stroke: #000000;
  transform: translateX(3px);
}


/* ── Hero Content ────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 72px clamp(1.5rem, 4vw, 3rem) 2rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-play-state: paused;
}

.main-page.visible .hero-title {
  animation-play-state: running;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
  animation-play-state: paused;
}

.hero-subtitle::selection {
  background-color: #000000 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-weight: 1000;
}

.hero-subtitle::-moz-selection {
  background-color: #000000 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-weight: 1000;
}

.main-page.visible .hero-subtitle {
  animation-play-state: running;
}

.hero-easter {
  font-size: 1.5rem;
  font-weight: 1000;
  color: rgb(0, 0, 0);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
  animation-play-state: paused;
}

.hero-easter::selection {
  background-color: #ff0000 !important;
  color: #000000 !important;
}

.hero-easter::-moz-selection {
  background-color: #ff0000 !important;
  color: #000000 !important;
}

.main-page.visible .hero-easter {
  animation-play-state: running;
}


/* ── Hero Title Word Cut & Pop Animation ─────────── */
.change-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  height: 1.15em;
  overflow: visible;
  transition: width 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  text-align: left;
}

.word-strike {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  color: transparent;
  /* hide original text */
  user-select: none;
  opacity: 0.85;
  /* Group opacity to prevent double-stacking in overlapping split halves */
}

/* The horizontal slash cut from the middle */
.word-strike::after {
  content: '';
  position: absolute;
  left: 0;
  top: 52%;
  width: 0;
  height: 9px;
  background: #ffffff;
  transform: translateY(-10%);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  z-index: 2;
}

.change-wrapper.cut .word-strike::after {
  width: 100%;
}

.change-wrapper.split .word-strike::after {
  opacity: 0;
}

.strike-half {
  position: absolute;
  inset: 0;
  color: #ffffff;
  /* Use solid white to prevent brighter overlap seam; opacity is controlled by parent */
  white-space: nowrap;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

.strike-top {
  clip-path: polygon(0 0, 100% 0, 100% 52%, 0 52%);
}

.strike-bottom {
  clip-path: polygon(0 48%, 100% 48%, 100% 100%, 0 100%);
}

.change-wrapper.split .strike-top {
  opacity: 0;
}

.change-wrapper.split .strike-bottom {
  opacity: 0;
}

.word-pop {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.change-wrapper.pop .word-pop {
  opacity: 1;
}

/* Cool glowing cursor for typewriter */
.typewriter-cursor {
  display: inline-block;
  width: 4px;
  height: 1.15em;
  background-color: #ffffff;
  margin-left: 4px;
  vertical-align: middle;
  animation: blinkCursor 0.8s steps(2, start) infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes blinkCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── Glow Orb (ambient decoration) ───────────────── */
.glow-orb {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 1.5s ease;
}

.main-page.visible .glow-orb {
  opacity: 1;
}

.glow-orb--primary {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
}

.glow-orb--secondary {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
}

/* ── Scroll indicator ────────────────────────────── */
.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.6s ease 1.2s;
}

.main-page.visible .scroll-indicator {
  opacity: 0.4;
}

.scroll-indicator:hover {
  opacity: 0.8 !important;
}

.scroll-line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    top: -100%;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 100%;
  }
}

.scroll-text {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Animations ──────────────────────────────────── */
@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Grain overlay (texture) ─────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ── Contact Modal ───────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.modal {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 420px;
  width: 90%;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  font-size: 1.1rem;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link-icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-link-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-link-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.contact-link-value {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  position: relative;
  padding: 0 clamp(1.5rem, 4vw, 3rem) 3rem;
  z-index: 10;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.12) 30%,
      rgba(255, 255, 255, 0.12) 70%,
      transparent 100%);
  margin-bottom: 3rem;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.footer-logo-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: invert(1);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-logo-container:hover .footer-logo-img {
  transform: rotate(-15deg) scale(1.1);
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.footer-copyright {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.footer-link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.footer-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Projects Scroll Track & Section ─────────────── */
.projects-scroll-track {
  position: relative;
  height: 380vh;
  /* Scroll duration */
}

.projects-section {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  z-index: 10;
}

.projects-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  position: absolute;
  top: 6rem;
  left: clamp(1.5rem, 4vw, 3rem);
  z-index: 10;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-section.visible .projects-title {
  opacity: 1;
  transform: translateY(0);
}

.projects-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #ffffff;
  margin-top: 12px;
}

/* ── 3D Stack Scene ──────────────────────────────── */
.projects-stack-scene {
  position: relative;
  width: 340px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  margin-top: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
  perspective: 150px;
  /* Perfect depth ratio for panorama rotateY folding */
}

.projects-section.visible .projects-stack-scene {
  opacity: 1;
  transform: translateY(10);
}

.projects-stack {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* Preserve 3D translations for nested children */
}

.stack-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform, opacity, filter;
  transition: none;
  /* Smooth animations managed dynamically in JS physics loop */
  pointer-events: none;
  transform-style: preserve-3d;
}

.stack-slot.active {
  pointer-events: auto;
}

/* ── Black and White Background with animations ─── */
.projects-bg {
  position: absolute;
  inset: 0;
  background: #000000;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.projects-bg-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(65deg);
  transform-origin: center center;
}

.projects-bg-circles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bg-circle {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  animation: spinCircle 40s linear infinite;
  transform-origin: center;
}

.bg-circle--1 {
  width: 450px;
  height: 450px;
  animation-duration: 35s;
}

.bg-circle--2 {
  width: 700px;
  height: 700px;
  animation-direction: reverse;
  animation-duration: 50s;
}

.bg-circle--3 {
  width: 1000px;
  height: 1000px;
  animation-duration: 70s;
}

.projects-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, #000000 80%);
  z-index: 1;
  pointer-events: none;
}

@keyframes spinCircle {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ── Project Card Component Styles ───────────────── */
project-card {
  display: block;
  height: 100%;
}

.project-card {
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9),
    0 0 25px rgba(255, 255, 255, 0.02);
}

.project-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #050505;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.placeholder-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #141414 0%, #050505 100%);
}

.project-card-placeholder-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-card-placeholder-glow {
  opacity: 1;
}

.project-card-placeholder-text {
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  user-select: none;
  transition: color 0.4s ease;
}

.project-card:hover .project-card-placeholder-text {
  color: rgba(255, 255, 255, 0.04);
}

.project-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.project-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.project-card:hover .project-tag {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.project-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.project-card-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.project-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1rem;
}

.project-card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-card-link-btn .arrow-icon {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card-link-btn:hover .arrow-icon {
  transform: translateX(4px);
}

.project-card-icon-link {
  color: rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.project-card-icon-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.project-card-icon-link svg {
  width: 18px;
  height: 18px;
}

/* ── Scroll indicator fade on scroll ─────────────── */
.scroll-indicator.fade-out {
  opacity: 0 !important;
  transition: opacity 0.4s ease;
}

/* ── Education & Experience Sections ──────────────── */

.education-section,
.experience-section {
  position: relative;
  padding: 6rem clamp(1.5rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
  z-index: 10;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.education-section.visible,
.experience-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.education-title,
.experience-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 3rem;
  color: #ffffff;
  position: relative;
}

.education-title::after,
.experience-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #ffffff;
  margin-top: 12px;
}

.education-timeline,
.experience-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-2rem - 5px);
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #000;
  transition: background-color 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  z-index: 2;
}

.timeline-item:hover .timeline-dot {
  background: #ffffff;
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.timeline-content {
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.timeline-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item:hover .company-logo-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

.company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  filter: invert(1);
  padding: 16px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item:hover .company-logo {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}


.institution-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-info {
  flex-grow: 1;
}

.timeline-item:hover .timeline-content {
  transform: translateX(8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9),
    0 0 25px rgba(255, 255, 255, 0.02);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.timeline-degree {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.timeline-period {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-period {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.timeline-institution {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .top-bar {
    padding: 0 1.25rem;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .nav-tabs,
  #contact-btn {
    display: none;
  }

  .menu-toggle-btn {
    display: flex;
  }

  .hero {
    padding-top: 60px;
  }

  .glow-orb {
    width: 300px;
    height: 300px;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .education-timeline,
  .experience-timeline {
    padding-left: 1.5rem;
  }

  .timeline-dot {
    left: calc(-1.5rem - 5px);
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .timeline-content {
    flex-direction: column;
    gap: 1.25rem;
  }

  .timeline-logo {
    width: 48px;
    height: 48px;
    padding: 5px;
  }

  .projects-stack-scene {
    width: 280px;
    height: 420px;
    margin-top: 6rem;
  }

  .projects-scroll-track {
    height: 400vh;
  }
}

/* ── Interactive Name Warp Section ────────────────── */
.name-warp-section {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
  overflow: hidden;
  z-index: 10;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.name-warp-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.name-warp-container {
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#name-warp-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.connect-invite-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 650px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  z-index: 20;
}

.connect-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: invert(1);
  margin-bottom: 1.5rem;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.connect-invite-container:hover .connect-logo {
  transform: rotate(360deg) scale(1.1);
}

.connect-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.connect-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.connect-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  margin-top: 1.5rem;
  z-index: 20;
}

.connect-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.connect-btn:hover {
  border-color: #ffffff;
  color: #000000;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.connect-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.connect-btn span {
  position: relative;
  z-index: 1;
}

.connect-btn .arrow-icon {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  transition: transform 0.35s ease;
  stroke: currentColor;
  stroke-width: 2;
}

.connect-btn:hover .arrow-icon {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .name-warp-section {
    min-height: 55vh;
    padding: 4rem 0;
  }

  .name-warp-container {
    height: 250px;
  }

  .connect-btn {
    padding: 12px 30px;
    font-size: 0.88rem;
    margin-top: 1rem;
  }
}

/* ── Custom Cursor ───────────────────────────────── */
.custom-cursor-dot,
.custom-cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) {

  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: none !important;
  }

  .custom-cursor-dot,
  .custom-cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, width, height, background-color, border-color;
    transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1),
      height 0.25s cubic-bezier(0.25, 1, 0.5, 1),
      background-color 0.25s ease,
      border-color 0.25s ease,
      opacity 0.25s ease;
  }

  .custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
  }

  .custom-cursor-ring {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background-color: transparent;
  }

  /* Hover States on Interactive Elements */
  html.has-custom-cursor.cursor-hover .custom-cursor-dot {
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.8);
  }

  html.has-custom-cursor.cursor-hover .custom-cursor-ring {
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  /* Click Active State */
  html.has-custom-cursor.cursor-click .custom-cursor-dot {
    transform: translate(-50%, -50%) scale(1.8);
    background-color: #ffffff;
  }

  html.has-custom-cursor.cursor-click .custom-cursor-ring {
    transform: translate(-50%, -50%) scale(0.65);
    border-color: #ffffff;
  }
}