/* ── Design Tokens ── */
:root {
  --cyan: #22d3ee;
  --neon: #7c3aed;
  --dark: #050816;
  --panel: #0b1022;
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  --glass-border: rgba(255, 255, 255, 0.14);
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 1.75rem;
  --sidebar-w: 200px;
  --sidebar-w-md: 64px;
  color-scheme: dark;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #e2e8f0;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.12), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(124, 58, 237, 0.18), transparent 40%),
    var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden;
}

/* ══════════════════════════════════════
   SIDEBAR NAVIGATION (Floating Capsule)
   ══════════════════════════════════════ */
.sidebar-nav {
  position: fixed;
  top: 50%;
  left: 1.5rem;
  transform: translateY(-50%);
  width: 72px; /* collapsed width */
  height: max-content;
  max-height: calc(100vh - 3rem);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.5rem;
  background: rgba(20, 20, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px; /* pill shape */
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-radius 0.4s ease;
  overflow: hidden;
}

.sidebar-nav:hover {
  width: 220px;
  background: rgba(30, 30, 35, 0.85);
  border-radius: 2rem; /* slightly less round when expanded */
}

.sidebar-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.sidebar-brand-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--cyan), var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-left: 0.2rem;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.sidebar-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 0.3rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.sidebar-label {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar-nav:hover .sidebar-label {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-item:hover, .sidebar-item.active-nav {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-item:hover svg {
  transform: scale(1.1);
}

.sidebar-item.active-nav {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Main content offset for sidebar */
.main-content {
  padding-left: 100px;
  width: 100%;
}

.site-footer {
  padding-left: 100px;
}

/* ═══ MOBILE BOTTOM NAV ═══ */
.mobile-nav-dock {
  display: none;
  position: fixed;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(96vw, 460px);
}

.mobile-nav-shell {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.15rem;
  border-radius: 1rem;
  padding: 0.3rem;
}

.mobile-nav-item {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.75);
  padding: 0.55rem 0.2rem;
  border-radius: 0.65rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-item:hover {
  color: var(--cyan);
}

.mobile-nav-item.active-nav {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.3);
}

/* ── Responsive: Sidebar → Medium → Mobile ── */
@media (max-width: 1023px) and (min-width: 768px) {
  /* On tablet sizes, let the capsule behave exactly the same: 
     diminished shape by default and expands via hover */
}

@media (max-width: 767px) {
  .sidebar-nav {
    display: none;
  }

  .mobile-nav-dock {
    display: block;
  }

  .main-content {
    padding-left: 0;
    padding-bottom: 5rem;
  }

  .site-footer {
    padding-left: 0;
    padding-bottom: 4rem;
  }
}

/* ══════════════════════════════════════
   SCROLL PROGRESS
   ══════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(to right, var(--cyan), var(--neon));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.65);
  z-index: 120;
}

/* ══════════════════════════════════════
   GLASS & BG EFFECTS
   ══════════════════════════════════════ */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 70%);
  pointer-events: none;
}

.noise::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='50' cy='40' r='1'/%3E%3Ccircle cx='120' cy='70' r='1'/%3E%3Ccircle cx='30' cy='120' r='1'/%3E%3Ccircle cx='140' cy='130' r='1'/%3E%3C/g%3E%3C/svg%3E");
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(124, 58, 237, 0.06), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: left 0.06s linear, top 0.06s linear;
  mix-blend-mode: screen;
}

/* ══════════════════════════════════════
   ANIMATION SYSTEM
   ══════════════════════════════════════ */

/* Reveal (fade in up) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.stagger-children>* {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.stagger-active>*:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.stagger-active>*:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.stagger-active>*:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.stagger-active>*:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.stagger-active>*:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.stagger-active>*:nth-child(6) { transition-delay: 0.40s; }
.stagger-children.stagger-active>*:nth-child(7) { transition-delay: 0.47s; }
.stagger-children.stagger-active>*:nth-child(8) { transition-delay: 0.54s; }
.stagger-children.stagger-active>*:nth-child(9) { transition-delay: 0.61s; }
.stagger-children.stagger-active>*:nth-child(10) { transition-delay: 0.68s; }

.stagger-children.stagger-active>* {
  opacity: 1;
  transform: translateY(0);
}

/* Fade Variants */
.fade-in {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.fade-in.show {
  opacity: 1;
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-left.show {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-right.show {
  opacity: 1;
  transform: translateX(0);
}

.fade-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-scale.show {
  opacity: 1;
  transform: scale(1);
}

/* Parallax */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Page Section Transitions */
.page-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Tilt Card */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.tilt-card .depth {
  transform: translateZ(28px);
}

.tilt-card:hover {
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.5), 0 0 30px rgba(34, 211, 238, 0.1);
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero-shell {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: visualFloat 7s ease-in-out infinite;
}

@keyframes visualFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-frame {
  width: min(380px, 100%);
  aspect-ratio: 4/5;
  position: relative;
  --mx: 50%;
  --my: 50%;
  clip-path: polygon(10% 0, 100% 0, 100% 84%, 76% 100%, 0 100%, 0 16%);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.26), rgba(124, 58, 237, 0.28));
  border: 1px solid rgba(34, 211, 238, 0.38);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.2), 0 0 56px rgba(124, 58, 237, 0.2);
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.09), transparent 35%),
    radial-gradient(circle at 84% 16%, rgba(34, 211, 238, 0.32), transparent 35%);
}

.hero-frame.is-hovered {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.38), 0 0 64px rgba(124, 58, 237, 0.28);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(36px);
  border-radius: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: brightness(0.9) saturate(1.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-frame.is-hovered .hero-photo-img {
  transform: translateZ(52px) scale(1.06);
  filter: brightness(1.05) saturate(1.2);
}

.hero-border-fx {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, var(--cyan), var(--neon), var(--cyan));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: spinBorder 4s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: dest-out;
  padding: 2px;
}

.hero-frame.is-hovered .hero-border-fx {
  opacity: 1;
}

@keyframes spinBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-copy {
  position: relative;
  z-index: 2;
}

/* Social Chips */
.social-chip {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.58);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.social-chip:hover {
  border-color: rgba(34, 211, 238, 0.7);
  color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.15);
}

@media (min-width: 1024px) {
  .hero-shell {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    justify-items: start;
    align-items: center;
  }
}

/* ══════════════════════════════════════
   ABOUT
   ══════════════════════════════════════ */
.about-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.08);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.3rem;
}
/* ══════════════════════════════════════
   TIMELINE (ZIGZAG)
   ══════════════════════════════════════ */
.timeline-vertical {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-vertical::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.5), rgba(124, 58, 237, 0.5), transparent);
}

.timeline-v-item {
  position: relative;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.timeline-v-item.show-timeline {
  opacity: 1;
  transform: translateX(0);
}

/* Base Dot (Mobile/Left aligned) */
.timeline-v-item::before {
  content: "";
  position: absolute;
  left: calc(-2.5rem + 1px);
  top: 1.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.9);
  background: var(--dark);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.1);
  transition: all 0.3s ease;
  z-index: 2;
}

.timeline-v-item:hover::before {
  background: var(--cyan);
  box-shadow: 0 0 12px 5px rgba(34, 211, 238, 0.25);
}

.timeline-v-item:hover {
  border-color: rgba(34, 211, 238, 0.4) !important;
}

/* Zigzag on Desktop */
@media (min-width: 768px) {
  .timeline-vertical {
    padding-left: 0;
  }
  
  .timeline-vertical::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-v-item {
    width: calc(50% - 1.5rem);
  }

  .timeline-v-item:nth-child(odd) {
    margin-right: auto;
    transform: translateX(-24px);
    text-align: right;
  }
  
  .timeline-v-item:nth-child(even) {
    margin-left: auto;
    transform: translateX(24px);
  }

  .timeline-v-item:nth-child(odd).show-timeline,
  .timeline-v-item:nth-child(even).show-timeline {
    transform: translateX(0);
  }

  /* Dots */
  .timeline-v-item:nth-child(odd)::before {
    left: auto;
    right: calc(-1.5rem - 9px); /* properly scale from right edge */
    top: 1.5rem;
  }
  
  .timeline-v-item:nth-child(even)::before {
    left: calc(-1.5rem - 9px); /* properly scale from left edge */
    top: 1.5rem;
  }
}



.timeline-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
}

.timeline-badge.badge-neon {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.12);
  color: #a78bfa;
}

/* ══════════════════════════════════════
   PROJECT CARDS
   ══════════════════════════════════════ */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, filter 0.35s ease;
}

.project-card.is-hiding,
.project-card.is-showing {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  filter: blur(2px);
}

.project-card.is-hidden {
  display: none !important;
}

.project-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.project-preview {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: brightness(0.75) saturate(0.9);
}

.project-card:hover .project-preview img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1.1);
}

.project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 8, 22, 0.85));
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-preview::after {
  opacity: 0.5;
}

.project-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: flex;
  gap: 0.4rem;
}

.project-overlay a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  backdrop-filter: blur(12px);
  background: rgba(5, 8, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
}

.project-card:hover .project-overlay a {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .project-overlay a:nth-child(2) {
  transition-delay: 0.06s;
}

.project-overlay a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}



/* ══════════════════════════════════════
   SKILLS — PILLS
   ══════════════════════════════════════ */
.skill-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: default;
}
.skill-pill span {
  font-weight: 600;
  font-size: 0.85rem;
  color: #e2e8f0;
  letter-spacing: 0.05em;
}
.skill-pill:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.25);
  color: #fff;
}

.reveal-random {
  opacity: 0;
  transform: translateY(15px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-random.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ══════════════════════════════════════
   CONTACT
   ══════════════════════════════════════ */
.contact-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 0.85rem 1.2rem;
  outline: none;
  color: #e2e8f0;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-input::placeholder {
  color: #64748b;
}

.contact-input:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  border: none;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.5), 0 0 80px rgba(34, 211, 238, 0.15);
}

.btn-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--neon), var(--cyan));
  background-size: 200% 200%;
  animation: btnShimmer 3s ease-in-out infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
  opacity: 1;
}

@keyframes btnShimmer {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ══════════════════════════════════════
   SECTION TITLES
   ══════════════════════════════════════ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cyan));
}

.section-label::after {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--cyan));
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
}

.section-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  max-width: 600px;
}

/* ══════════════════════════════════════
   FLOATING ORBS
   ══════════════════════════════════════ */
.floating-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.25;
  animation: floatOrb 8s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15px, -20px) scale(1.05); }
  50% { transform: translate(-10px, -35px) scale(0.95); }
  75% { transform: translate(20px, -15px) scale(1.03); }
}

/* ══════════════════════════════════════
   SPLASHSCREEN
   ══════════════════════════════════════ */
#splashscreen {
  pointer-events: none;
}

#splashscreen.slide-up #splash-bg-strips > div {
  transform: translateY(-100%);
}

.splash-text-reveal {
  animation: splashReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-text-hide {
  animation: splashHide 0.7s cubic-bezier(0.77, 0, 0.175, 1) forwards !important;
}

@keyframes splashReveal {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes splashHide {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

/* ══════════════════════════════════════
   PROJECT MODAL
   ══════════════════════════════════════ */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.project-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 18, 0.88);
  backdrop-filter: blur(10px);
}

.project-modal-content {
  position: relative;
  z-index: 1;
  width: min(820px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-3xl);
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.7), 0 0 60px rgba(124, 58, 237, 0.12);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-modal-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
}

.project-modal-body {
  padding: 2rem;
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(5, 8, 22, 0.7);
  backdrop-filter: blur(10px);
  color: #e2e8f0;
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-modal-close:hover {
  border-color: rgba(34, 211, 238, 0.6);
  transform: rotate(90deg);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

.site-footer a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #67e8f9;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 640px) {
  .project-preview {
    height: 160px;
  }

  .project-modal-img {
    height: 200px;
  }

  .hero-frame {
    width: min(300px, 90%);
  }
}

/* ══════════════════════════════════════
   UTILITY ANIMATIONS
   ══════════════════════════════════════ */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.pulse-dot {
  position: relative;
}

.pulse-dot::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.5;
  animation: pulse-ring 2s ease-out infinite;
}

section[id] {
  scroll-margin-top: 2rem;
}

::selection {
  background: rgba(34, 211, 238, 0.3);
  color: #fff;
}