/* ==========================================
   PREMIUM 2026 PORTFOLIO — styles.css
   Aesthetic: Dark luxury editorial with
   refined typography & 3D interactions
   ========================================== */

/* === DESIGN TOKENS === */
:root {
  /* Core palette - Deep navy/charcoal base -> Editorial Black/Dark */
  --bg: #050505;
  --bg-2: #08090C;
  --bg-card: #08090C;
  --border: rgba(255, 255, 255, 0.08);
  --border-h: rgba(255, 255, 255, 0.15);

  /* Liquid Glass Palette */
  --glass-bg-1: rgba(255, 255, 255, 0.03);
  --glass-bg-2: rgba(255, 255, 255, 0.05);
  --glass-bg-3: rgba(255, 255, 255, 0.07);
  --glass-bg-4: rgba(255, 255, 255, 0.09);
  --glass-border-1: rgba(255, 255, 255, 0.10);
  --glass-border-2: rgba(255, 255, 255, 0.14);
  --glass-border-3: rgba(255, 255, 255, 0.18);
  --glass-highlight: rgba(76, 111, 255, 0.15); /* Cobalt highlight */

  /* Accent - Cobalt */
  --accent: #4C6FFF; /* Brighter interactive cobalt */
  --accent-dark: #2C3480; /* Deep cobalt */
  --accent-2: #6584FF;
  --accent-3: #8FB8FF;

  /* Text */
  --text: #ffffff;
  --text-muted: #9ca6b5;
  --text-dim: #5c6b7d;

  /* Fonts */
  --f-head: 'Syne', sans-serif;
  --f-body: 'DM Sans', sans-serif;

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

button,
input,
textarea,
a,
[role="button"] {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

p,
h1,
h2,
h3,
span,
a,
strong,
input,
textarea,
button {
  overflow-wrap: anywhere;
}

section,
.container,
.project-card,
.skill-category,
.edu-card,
.cert-item,
.misc-card,
.contact-form,
.contact-item {
  min-width: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

/* === NOISE OVERLAY === */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  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;
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--f-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-bracket {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
  }

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--accent-dark);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease);
}

.btn-nav:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === HERO === */
.hero {
  min-height: min(100vh, 1000px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 60px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 111, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 111, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 20px;
}
.hero-content-left {
  min-width: 0;
}
.hero-content-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  min-width: 0;
}
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 10px;
  }
  .hero-content-right {
    margin-top: 0;
    margin-bottom: 20px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-border-2);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.6);
  }
}

.hero-title {
  font-family: var(--f-head);
  font-size: clamp(2.35rem, 5.2vw, 5.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  white-space: normal;
}

.hero-title-line {
  display: block;
  white-space: pre-wrap; /* allow natural wrapping without breaking words */
}

.hero-title-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 300;
  min-height: 2.2em;
}

.hero-subtitle-prefix {
  margin-right: 4px;
}

#typed-text {
  color: var(--text);
  font-weight: 500;
}

.typed-cursor {
  color: var(--accent);
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: var(--f-head);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Social sidebar */
.social-sidebar {
  position: fixed;
  left: 28px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 100;
  padding-bottom: 0;
}

.social-link {
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: all 0.25s;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--bg-2);
}

.social-link:hover {
  color: #fff;
  border-color: rgba(76, 111, 255, 0.45);
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 0 0 2px rgba(76, 111, 255, 0.16),
    0 0 24px rgba(76, 111, 255, 0.4),
    0 14px 30px rgba(0, 0, 0, 0.34);
}

.social-line {
  width: 1px;
  height: 80px;
  background: var(--text-dim);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce-scroll 2.5s infinite;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--text-dim);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1
  }

  60% {
    transform: translateY(8px);
    opacity: 0
  }
}

@keyframes bounce-scroll {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(-8px)
  }
}

/* === SECTION LABELS & TITLES === */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--f-head);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 64px;
  color: var(--text);
}

.section-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
  font-family: var(--f-body);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent-dark);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(76, 111, 255, 0.25);
}

.btn-ghost {
  background: var(--glass-bg-2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.82rem;
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--border-h);
  color: var(--text);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* === ABOUT === */
.about {
  background: var(--bg-2);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.profile-frame {
  position: relative;
  width: 340px;
}

.profile-image-container {
  width: 340px;
  height: 400px;
  border-radius: var(--r-xl);
  background-image: url("IMG_20260206_145426.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  position: relative;
}

.profile-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 16, 0.4) 0%, transparent 60%);
}

.profile-frame-border {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 1px dashed rgba(232, 255, 71, 0.2);
  border-radius: calc(var(--r-xl) + 8px);
  pointer-events: none;
  animation: rotate-border 30s linear infinite;
}

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

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

.profile-badge {
  position: absolute;
  bottom: 24px;
  right: -16px;
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(232, 255, 71, 0.3);
}

.about-floating-card {
  position: absolute;
  background: rgba(17, 22, 32, 0.9);
  border: 1px solid var(--border-h);
  backdrop-filter: blur(20px);
  padding: 12px 18px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: float-card 4s ease-in-out infinite;
}

.about-floating-card i {
  color: var(--accent);
}

.card-1 {
  top: 20px;
  left: -32px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 80px;
  right: -24px;
  animation-delay: 2s;
}

@keyframes float-card {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-10px)
  }
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.detail-icon {
  width: 38px;
  height: 38px;
  background: rgba(232, 255, 71, 0.08);
  border: 1px solid rgba(232, 255, 71, 0.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.detail-item>div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-item strong {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.detail-item span {
  font-size: 0.95rem;
  color: var(--text);
}

.copy-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.copy-email:hover {
  color: var(--accent);
}

.copy-email i {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  pointer-events: none;
}

.copy-email:hover .copy-tooltip {
  opacity: 1;
  visibility: visible;
}

/* === PROJECTS (GRID LAYOUT) === */
.projects {
  background: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}

.project-card {
  grid-column: span 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  transform-style: preserve-3d;
  height: 100%;
}

.project-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.project-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card-featured {
  grid-column: span 3;
  border-color: rgba(232, 255, 71, 0.32);
  background:
    linear-gradient(135deg, rgba(232, 255, 71, 0.075), transparent 34%),
    var(--bg-card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(232, 255, 71, 0.08);
}

.project-card-featured:hover {
  border-color: rgba(232, 255, 71, 0.58);
  box-shadow: 0 36px 95px rgba(0, 0, 0, 0.56), 0 0 40px rgba(232, 255, 71, 0.1);
}

.project-card-featured .project-img-wrap {
  height: 280px;
}

.project-card-featured .project-info h3 {
  font-size: 1.45rem;
}

.featured-ribbon {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(232, 255, 71, 0.34);
  border-radius: 999px;
  background: rgba(8, 12, 16, 0.78);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: featured-pulse 2.8s ease-in-out infinite;
}

@keyframes featured-pulse {

  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }

  50% {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(232, 255, 71, 0.12);
  }
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--bg-2);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.08);
}

.project-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: rgba(232, 255, 71, 0.03);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 16, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border-h);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.project-overlay-btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.project-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.project-tags span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  background: rgba(232, 255, 71, 0.07);
  border: 1px solid rgba(232, 255, 71, 0.15);
  padding: 3px 10px;
  border-radius: 100px;
}

.project-info h3 {
  font-family: var(--f-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.project-info p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* === SKILLS === */
.skills {
  background: var(--bg-2);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: all 0.4s var(--ease);
  transform-style: preserve-3d;
}

.skill-category:hover {
  border-color: var(--border-h);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.skill-cat-icon {
  width: 40px;
  height: 40px;
  background: rgba(232, 255, 71, 0.08);
  border: 1px solid rgba(232, 255, 71, 0.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.95rem;
}

.skill-cat-header h3 {
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s;
  cursor: default;
}

.skill-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232, 255, 71, 0.05);
  transform: translateY(-3px);
}

/* === EDUCATION === */
.education {
  background: var(--bg);
}

.education-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 780px;
}

.edu-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  opacity: 0;
  transform: translateY(40px);
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 0 0 0 var(--r-xl);
}

.edu-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.edu-card:hover {
  border-color: var(--border-h);
  transform: translateX(6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.edu-card.visible:hover {
  transform: translateX(6px);
}

.edu-icon {
  width: 52px;
  height: 52px;
  background: rgba(232, 255, 71, 0.08);
  border: 1px solid rgba(232, 255, 71, 0.15);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

.edu-card:hover .edu-icon {
  background: rgba(232, 255, 71, 0.15);
  transform: scale(1.1);
}

.edu-body {
  flex: 1;
}

.edu-date {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.edu-body h3 {
  font-family: var(--f-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.edu-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.edu-progress {
  height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
  margin-top: 18px;
  overflow: hidden;
}

.edu-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(232, 255, 71, 0.4));
  border-radius: 2px;
  width: 0%;
  transition: width 1.5s var(--ease);
  position: relative;
}

.edu-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%)
  }

  100% {
    transform: translateX(100%)
  }
}

.edu-progress-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: right;
  letter-spacing: 0.04em;
}

/* === CERTIFICATIONS === */
.certifications {
  background: var(--bg-2);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.3s var(--ease);
}

.cert-item:hover {
  border-color: rgba(76, 111, 255, 0.35);
  background: rgba(76, 111, 255, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(76, 111, 255, 0.12);
}

.cert-item i {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cert-item span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cert-item:hover span {
  color: var(--text);
}

/* === STRENGTHS === */
.strengths {
  background: var(--bg);
}

.strengths-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.strength-tag {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: default;
  transition: all 0.3s var(--ease);
}

.strength-tag:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(76, 111, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(76, 111, 255, 0.25);
}

/* === MISC (Languages & Hobbies) === */
.misc {
  background: var(--bg-2);
}

.misc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.misc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: all 0.4s var(--ease);
}

.misc-card:hover {
  border-color: var(--border-h);
}

.misc-title {
  font-family: var(--f-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.misc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.misc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.misc-list li:last-child {
  border-bottom: none;
}

.misc-list li:hover {
  padding-left: 8px;
}

.misc-lang {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.misc-lang i {
  color: var(--accent);
  width: 16px;
}

.misc-level {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* === CONTACT === */
.contact {
  background: var(--bg);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  perspective: 1200px;
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 380px;
}

.contact-details {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease), background 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.contact-item:hover {
  border-color: rgba(76, 111, 255, 0.35);
  background: rgba(76, 111, 255, 0.06);
  transform: translateX(6px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35), 0 0 20px rgba(76, 111, 255, 0.1);
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(76, 111, 255, 0.12);
  border: 1px solid rgba(76, 111, 255, 0.25);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.88rem;
  flex-shrink: 0;
}

.contact-item a,
.contact-item span {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-item:hover a,
.contact-item:hover span {
  color: var(--text);
}

.contact-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 17px;
  background: #0f141f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease);
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.06);
  color: #fff;
  border-color: rgba(76, 111, 255, 0.45);
  box-shadow:
    0 0 0 2px rgba(76, 111, 255, 0.18),
    0 0 28px rgba(76, 111, 255, 0.4),
    0 20px 38px rgba(0, 0, 0, 0.42);
}

.contact-form-wrapper {
  position: relative;
  width: 100%;
}

.contact-form {
  background: rgba(12, 16, 24, 0.78);
  border: 1px solid var(--border-h);
  border-radius: var(--r-xl);
  padding: 40px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  transition: transform 0.36s var(--ease), border-color 0.3s var(--ease), box-shadow 0.36s var(--ease), opacity 0.36s var(--ease);
}

.contact-form:hover {
  border-color: rgba(76, 111, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.52), 0 0 32px rgba(76, 111, 255, 0.1);
}

.contact-form.is-submitting {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(232, 255, 71, 0.4);
  background: rgba(232, 255, 71, 0.02);
  box-shadow: 0 0 0 3px rgba(232, 255, 71, 0.06);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* === FOOTER === */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--f-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.footer-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-link[aria-label="GitHub"],
.social-btn[aria-label="GitHub"] {
  background: linear-gradient(145deg, #24292f, #0d1117);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.social-link[aria-label="LinkedIn"],
.social-btn[aria-label="LinkedIn"] {
  background: linear-gradient(145deg, #0a66c2, #004182);
  color: #fff;
  border-color: rgba(10, 102, 194, 0.55);
}

.social-btn[aria-label="Facebook"] {
  background: linear-gradient(145deg, #1877f2, #0d47a1);
  color: #fff;
  border-color: rgba(24, 119, 242, 0.55);
}

.social-btn[aria-label="Instagram"] {
  background:
    radial-gradient(circle at 30% 105%, #fdf497 0 12%, #fd5949 34%, transparent 48%),
    linear-gradient(145deg, #833ab4, #e1306c 50%, #f77737);
  color: #fff;
  border-color: rgba(225, 48, 108, 0.55);
}

.social-link:hover,
.social-btn:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  color: var(--text);
  padding: 16px 22px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(120px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.45s var(--ease);
  z-index: 10000;
  backdrop-filter: blur(20px);
  font-size: 0.9rem;
  font-weight: 500;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.toast i {
  color: #4ade80;
  font-size: 1.2rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    display: flex;
    justify-content: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .social-sidebar {
    display: none;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    grid-column: span 1;
  }

  .project-card-featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section-title {
    margin-bottom: 48px;
  }

  .nav-cta {
    display: none;
  }



  .nav-menu li {
    width: min(100%, 320px);
    text-align: center;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.035);
    font-size: clamp(1.05rem, 6vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0;
  }

  .nav-link::after,
  .nav-link::before {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding-top: 20px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .profile-frame {
    width: 280px;
  }

  .profile-image-container {
    width: 280px;
    height: 320px;
  }

  .card-1,
  .card-2 {
    display: none;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .misc-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card-featured {
    grid-column: span 1;
  }

  .project-card-featured .project-img-wrap {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .about-text,
  .about-image {
    transform: none;
  }

  .navbar.scrolled,
  .nav-menu,
  .about-floating-card,
  .project-overlay,
  .project-overlay-btn,
  .contact-form,
  .toast {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  html {
    scroll-padding-top: 68px;
  }

  .navbar {
    padding: 14px 0;
  }

  .section {
    padding: 64px 0;
  }

  .section-label {
    font-size: 0.68rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 36px;
    letter-spacing: 0;
  }

  .hero {
    min-height: auto;
    padding: 96px 0 64px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-badge {
    max-width: 100%;
    font-size: 0.75rem;
    padding: 7px 12px;
  }

  .hero-title {
    font-size: clamp(2.25rem, 13vw, 3.1rem);
    letter-spacing: 0;
  }

  .hero-subtitle {
    font-size: 1rem;
    min-height: 3em;
  }

  .hero-description {
    margin-bottom: 28px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stat-item {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.02);
  }

  .stat-divider {
    display: none;
  }

  .profile-frame {
    width: min(100%, 260px);
  }

  .profile-image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 8;
    border-radius: var(--r-lg);
  }

  .profile-badge {
    right: 12px;
    bottom: 16px;
  }

  .about-details,
  .contact-details {
    gap: 12px;
  }

  .detail-item,
  .contact-item {
    align-items: flex-start;
  }

  .copy-email,
  .contact-item a,
  .contact-item span {
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
  }

  .project-info,
  .skill-category,
  .edu-card,
  .cert-item,
  .misc-card {
    padding: 22px 18px;
  }

  .project-img-wrap {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .project-overlay {
    flex-wrap: wrap;
    padding: 16px;
  }

  .project-links,
  .project-overlay {
    flex-direction: column;
  }

  .project-links .btn,
  .project-overlay-btn {
    width: 100%;
    justify-content: center;
  }

  .edu-card {
    flex-direction: column;
    gap: 16px;
  }

  .edu-card:hover,
  .edu-card.visible:hover {
    transform: none;
  }

  .cert-item {
    align-items: flex-start;
  }

  .strength-tag {
    width: 100%;
    text-align: center;
  }

  .misc-list li {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .form-group input,
  .form-group textarea {
    padding: 13px 14px;
  }

  .footer-links {
    justify-content: center;
    gap: 14px 18px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .btn {
    padding: 13px 18px;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .project-info,
  .skill-category,
  .edu-card,
  .cert-item,
  .misc-card {
    padding: 18px 14px;
  }
}

/* === GSAP INITIAL STATES === */
html.js-anim-ready .about-text {
  opacity: 0;
  transform: translateX(-60px);
}

html.js-anim-ready .about-image {
  opacity: 0;
  transform: translateX(60px);
}

/* === PREMIUM MOTION LAYER === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  z-index: 10001;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 18px rgba(232, 255, 71, 0.45);
  transform-origin: left center;
}

/* === CINEMATIC WELCOME INTRO === */
.welcome-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030508;
  overflow: hidden;
  will-change: transform, opacity;
  transition: opacity 0.6s var(--ease);
}

.welcome-intro.is-dismissed {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.welcome-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.welcome-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 95vw);
  height: min(600px, 90vh);
  background: radial-gradient(circle, rgba(76, 111, 255, 0.18) 0%, rgba(37, 99, 235, 0.08) 45%, transparent 75%);
  filter: blur(60px);
}

.welcome-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}

.welcome-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.welcome-brand {
  font-family: var(--f-head);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.welcome-bracket {
  color: var(--accent);
}

.welcome-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.welcome-headline {
  font-family: var(--f-head);
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: #fff;
}

.welcome-line {
  display: block;
}

.welcome-word {
  display: inline-block;
}

.welcome-accent {
  color: #7dd3fc;
  -webkit-text-fill-color: #7dd3fc;
  font-style: italic;
  font-weight: 700;
  display: block;
}

.welcome-accent .welcome-word {
  color: #7dd3fc;
  -webkit-text-fill-color: #7dd3fc;
}

.welcome-tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.welcome-meter-track {
  width: min(260px, 60vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.welcome-meter-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4C6FFF, #93c5fd);
  box-shadow: 0 0 16px rgba(76, 111, 255, 0.7);
  border-radius: inherit;
}

.btn-skip-intro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: var(--f-body);
}

.btn-skip-intro:hover {
  background: rgba(76, 111, 255, 0.18);
  border-color: rgba(76, 111, 255, 0.45);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(76, 111, 255, 0.25);
}

.btn-skip-intro:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes loader-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.navbar {
  will-change: transform, padding, background;
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.navbar.menu-open {
  transform: translateY(0);
}

.nav-logo,
.footer-logo,
.btn,
.btn-nav,
.social-link,
.social-btn,
.project-overlay-btn,
.skill-chip,
.strength-tag {
  -webkit-tap-highlight-color: transparent;
}

.nav-link,
.footer-links a {
  isolation: isolate;
}

.nav-link::before,
.footer-links a::before {
  content: '';
  position: absolute;
  inset: auto 0 -7px 0;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(232, 255, 71, 0.2), transparent 70%);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before,
.footer-links a:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.footer-links a {
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(232, 255, 71, 0.08), transparent 28%),
    radial-gradient(circle at var(--mx, 50%) var(--my, 35%), rgba(0, 229, 255, 0.11), transparent 26%);
  opacity: 0.8;
  transition: opacity 0.3s var(--ease);
}

.hero-grid-overlay {
  animation: grid-drift 22s linear infinite;
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 60px 60px, 60px 60px;
  }
}

.hero-badge,
.section-label {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 34px rgba(0, 0, 0, 0.25);
}

.section-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(232, 255, 71, 0.16);
  border-radius: 999px;
  background: rgba(232, 255, 71, 0.045);
}

.hero-title-accent {
  background: linear-gradient(110deg, var(--accent), #fff 45%, var(--accent-2));
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: premium-gradient 5s ease-in-out infinite;
}

@keyframes premium-gradient {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.btn::before,
.btn-nav::before,
.project-overlay-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease);
}

.btn:hover::before,
.btn-nav:hover::before,
.project-overlay-btn:hover::before {
  transform: translateX(120%);
}

.btn-nav,
.project-overlay-btn {
  position: relative;
  overflow: hidden;
}

.btn:hover,
.btn-nav:hover,
.project-overlay-btn:hover,
.social-link:hover,
.social-btn:hover {
  will-change: transform;
}

.profile-frame,
.project-card,
.skill-category,
.edu-card,
.cert-item,
.misc-card,
.contact-form,
.contact-item,
.detail-item,
.strength-tag {
  position: relative;
}

.project-card,
.skill-category,
.edu-card,
.cert-item,
.misc-card,
.contact-form,
.contact-item,
.detail-item {
  overflow: hidden;
}

.project-card::after,
.skill-category::after,
.edu-card::after,
.cert-item::after,
.misc-card::after,
.contact-form::after,
.contact-item::after,
.detail-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(232, 255, 71, 0.11), transparent 42%);
  transition: opacity 0.35s var(--ease);
}

.project-card:hover::after,
.skill-category:hover::after,
.edu-card:hover::after,
.cert-item:hover::after,
.misc-card:hover::after,
.contact-form:hover::after,
.contact-item:hover::after,
.detail-item:hover::after {
  opacity: 1;
}

.project-card,
.skill-category {
  transform: translateZ(0);
}

.project-card:hover,
.skill-category:hover {
  border-color: rgba(232, 255, 71, 0.24);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(232, 255, 71, 0.05);
}

.project-card-inner,
.project-info,
.skill-cat-header,
.skill-chips,
.edu-body,
.cert-item>*,
.misc-card>*,
.contact-form>*,
.contact-item>* {
  position: relative;
  z-index: 1;
}

.project-img-wrap::after,
.profile-image-container::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.16) 45%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
  z-index: 2;
}

.project-card:hover .project-img-wrap::after,
.profile-frame:hover .profile-image-container::before {
  transform: translateX(120%);
}

.project-overlay-btn {
  transform: translateY(10px) scale(0.96);
  opacity: 0;
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

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

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

.skill-chips {
  gap: 10px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.skill-chip i {
  font-size: 1.14rem;
  line-height: 1;
}

.skill-chip:hover {
  box-shadow: 0 12px 28px rgba(232, 255, 71, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skill-category:hover .skill-cat-icon,
.edu-card:hover .edu-icon,
.contact-item:hover .contact-icon,
.detail-item:hover .detail-icon {
  box-shadow: 0 0 24px rgba(232, 255, 71, 0.18);
}

.edu-progress {
  position: relative;
}

.edu-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 2.8s infinite;
}

.scroll-indicator,
.about-floating-card,
.profile-badge {
  will-change: transform;
}

.profile-badge {
  animation: float-card 4.4s ease-in-out infinite 0.4s;
}

.contact-form:focus-within {
  border-color: rgba(232, 255, 71, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.form-group input:focus,
.form-group textarea:focus {
  transform: translateY(-2px);
}

.toast {
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), #4ade80);
}

/* ==========================================================
   LIQUID GLASS 2.0
   Apple-inspired water/glass material system.
   Everything below is additive and layered on top of the
   rules above — no properties are duplicated with !important.
   ========================================================== */

:root {
  /* Liquid Glass hierarchy — level 0 (bg) through 5 (highlight) */
  --lg-0: rgba(255, 255, 255, 0.00);
  --lg-1: rgba(255, 255, 255, 0.035);
  --lg-2: rgba(255, 255, 255, 0.07);
  --lg-3: rgba(255, 255, 255, 0.11);
  --lg-4: rgba(255, 255, 255, 0.16);
  --lg-5: rgba(255, 255, 255, 0.24);

  --lg-border-1: rgba(255, 255, 255, 0.08);
  --lg-border-2: rgba(255, 255, 255, 0.14);
  --lg-border-3: rgba(255, 255, 255, 0.22);

  --lg-blue-tint: rgba(120, 160, 255, 0.10);
  --lg-shadow: 0 24px 60px rgba(0, 0, 0, 0.30);
  --lg-shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.38);
  --lg-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 1. Base atmosphere -------------------------------- */
.noise-overlay,
.hero-grid-overlay {
  display: none !important;
}

body {
  background: #03060a;
}

.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #03060a;
}

/* very large, very slow, differently-timed light masses —
   deliberately not "blobs": heavy blur removes any hard edge */
.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  will-change: transform;
}

.blob-1 {
  width: 74vw;
  height: 74vw;
  background: radial-gradient(circle at 40% 40%, rgba(70, 110, 190, 0.42), rgba(10, 20, 40, 0) 68%);
  top: -20%;
  left: -18%;
  opacity: 0.55;
  animation: liquid-drift-a 32s ease-in-out infinite alternate;
}

.blob-2 {
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle at 60% 60%, rgba(50, 90, 160, 0.36), rgba(10, 20, 40, 0) 70%);
  bottom: -22%;
  right: -14%;
  opacity: 0.5;
  animation: liquid-drift-b 24s ease-in-out infinite alternate;
}

.blob-3 {
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle at 50% 50%, rgba(90, 140, 215, 0.28), rgba(10, 20, 40, 0) 72%);
  top: 28%;
  left: 38%;
  opacity: 0.4;
  animation: liquid-drift-c 40s ease-in-out infinite alternate;
}

@keyframes liquid-drift-a {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(6%, 8%) scale(1.08);
  }
}

@keyframes liquid-drift-b {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-7%, -5%) scale(1.05);
  }
}

@keyframes liquid-drift-c {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-4%, 6%) scale(1.1);
  }
}

/* faint reflected sheen — a single soft diagonal band of light,
   not a moving spotlight tied to the cursor */
.liquid-sheen {
  position: absolute;
  inset: -10% -10%;
  background: linear-gradient(115deg,
      transparent 30%,
      rgba(200, 220, 255, 0.05) 46%,
      rgba(255, 255, 255, 0.03) 52%,
      transparent 64%);
  opacity: 0.7;
  animation: sheen-drift 26s ease-in-out infinite;
}

@keyframes sheen-drift {

  0%,
  100% {
    transform: translate(-4%, -2%) rotate(0deg);
  }

  50% {
    transform: translate(4%, 3%) rotate(1.2deg);
  }
}

/* underwater caustic texture — SVG turbulence, kept extremely
   subtle (opacity ~0.05) so it reads as "moving light", not pattern */
.liquid-caustic {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: screen;
  filter: url(#causticTurbulence);
  animation: caustic-shift 46s linear infinite;
}

@keyframes caustic-shift {
  0% {
    transform: scale(1.15) translate(0%, 0%);
  }

  50% {
    transform: scale(1.22) translate(-1.5%, 1%);
  }

  100% {
    transform: scale(1.15) translate(0%, 0%);
  }
}

/* ---------- 2. Floating glass navbar --------------------------- */
.navbar {
  top: 14px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

.navbar.scrolled {
  padding: 0 !important;
  background: transparent !important;
}

.nav-container {
  pointer-events: auto;
  justify-content: space-between;
  background:
    linear-gradient(155deg, var(--lg-4) 0%, var(--lg-1) 55%, var(--lg-blue-tint) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--lg-border-2);
  box-shadow: var(--lg-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  padding: 10px 12px 10px 22px;
  width: auto;
  max-width: 92vw;
  margin: 0 auto;
  gap: 22px;
  white-space: nowrap;
  transition: padding 0.4s var(--lg-ease), box-shadow 0.4s var(--lg-ease), backdrop-filter 0.4s var(--lg-ease), border-radius 0.4s var(--lg-ease);
}

.navbar.scrolled .nav-container {
  backdrop-filter: blur(34px) saturate(200%);
  -webkit-backdrop-filter: blur(34px) saturate(200%);
  box-shadow: var(--lg-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  border-color: var(--lg-border-3);
}

.nav-menu {
  gap: 4px;
  white-space: nowrap;
}

.nav-link {
  padding: 8px 15px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.25s var(--lg-ease), background 0.25s var(--lg-ease);
}

.nav-link::after {
  display: none;
}

.nav-link:hover {
  color: #fff;
  background: var(--lg-2);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  }

.btn-nav {
  border-radius: 18px;
  background: linear-gradient(155deg, var(--lg-4), var(--lg-2));
  border: 1px solid var(--lg-border-2);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-nav:hover {
  background: linear-gradient(155deg, var(--lg-5), var(--lg-3));
  transform: translateY(-1px);
}

/* ---------- 3. Glass edge lighting (shared highlight) ----------- */
.project-card,
.skill-category,
.edu-card,
.cert-item,
.misc-card,
.contact-form,
.contact-item,
.about-floating-card,
.form-group input,
.form-group textarea {
  position: relative;
}

.project-card::before,
.skill-category::before,
.edu-card::before,
.cert-item::before,
.misc-card::before,
.contact-form::before,
.contact-item::before,
.about-floating-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(130% 90% at 6% 0%, rgba(255, 255, 255, 0.10), transparent 46%);
  opacity: 0.9;
  z-index: 0;
}

/* level-2 glass on the main content cards */
.project-card,
.skill-category,
.edu-card,
.cert-item,
.misc-card {
  background: linear-gradient(160deg, var(--lg-2), var(--lg-1) 60%, rgba(90, 130, 210, 0.05));
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--lg-border-1);
  box-shadow: var(--lg-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.project-card-featured {
  background: linear-gradient(160deg, var(--lg-3), var(--lg-1) 60%, rgba(120, 160, 255, 0.06));
  border-color: var(--lg-border-2);
}

.project-card:hover,
.skill-category:hover,
.edu-card:hover,
.cert-item:hover,
.misc-card:hover {
  border-color: var(--lg-border-2);
  box-shadow: var(--lg-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.contact-form {
  background: linear-gradient(160deg, var(--lg-2), var(--lg-1) 55%, rgba(90, 130, 210, 0.05));
  border: 1px solid var(--lg-border-1);
}

.contact-item {
  background: linear-gradient(160deg, var(--lg-2), var(--lg-1));
  border: 1px solid var(--lg-border-1);
}

/* level-3 glass on inputs, level-4 on their focus state */
.form-group input,
.form-group textarea {
  background: var(--lg-2);
  border: 1px solid var(--lg-border-1);
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.18);
}

.form-group input:focus,
.form-group textarea:focus {
  background: var(--lg-3);
  border-color: rgba(168, 199, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(168, 199, 255, 0.12), inset 0 1px 6px rgba(0, 0, 0, 0.16);
}

/* ---------- 4. Social + circular controls ----------------------- */
.social-link,
.social-btn {
  background: linear-gradient(155deg, var(--lg-3), var(--lg-1));
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--lg-border-1);
  box-shadow: var(--lg-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.16);
  color: var(--accent);
}

.social-link:hover,
.social-btn:hover {
  background: linear-gradient(155deg, var(--lg-4), var(--lg-2));
  border-color: var(--lg-border-2);
  color: #fff;
  transform: translateY(-3px) scale(1.06);
}

/* ---------- 5. Physical button micro-interactions --------------- */
.btn,
.btn-nav,
.social-link,
.social-btn {
  transition: transform 0.22s var(--lg-ease), box-shadow 0.22s var(--lg-ease), background 0.22s var(--lg-ease), border-color 0.22s var(--lg-ease);
}

.btn:active,
.btn-nav:active {
  transform: translateY(0) scale(0.985);
}

.btn-primary {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--lg-border-2);
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), var(--lg-shadow);
}

.btn-primary:hover {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.10));
  transform: translateY(-2px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), var(--lg-shadow-lg);
}

.btn-ghost {
  background: var(--lg-1);
  border: 1px solid var(--lg-border-1);
  color: var(--accent-2);
}

.btn-ghost:hover {
  background: var(--lg-2);
  border-color: var(--lg-border-2);
  color: #fff;
}

/* ---------- 6. Hero, title & badge in glass light ---------------- */
.hero-content {
  background: transparent;
}

.hero-title {
  color: #fff;
}

.hero-title-accent {
  background: linear-gradient(135deg, #ffffff, var(--accent) 55%, var(--accent-2));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-badge {
  background: var(--lg-2);
  border: 1px solid var(--lg-border-1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--accent-2);
}

.section-title {
  color: #fff;
}

.section-title em {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.32);
}

/* extremely subtle reflection sweep across the hero title only —
   irregular timing so it never reads as "an effect looping" */
.hero-title {
  position: relative;
  overflow: hidden;
}

.hero-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-14deg);
  animation: title-sweep 13s ease-in-out infinite;
  pointer-events: none;
}

@keyframes title-sweep {
  0% {
    left: -60%;
    opacity: 0;
  }

  8% {
    opacity: 0.9;
  }

  22% {
    left: 120%;
    opacity: 0;
  }

  100% {
    left: 120%;
    opacity: 0;
  }
}

/* ---------- 7. Project image + card physical hover -------------- */
.project-card:hover {
  transform: translateY(-6px) scale(1.008);
}

.project-img-wrap img {
  filter: saturate(1);
  transition: transform 0.6s var(--lg-ease), filter 0.6s var(--lg-ease);
}

.project-card:hover .project-img-wrap img {
  filter: saturate(1.08);
}

.project-overlay {
  background: rgba(4, 7, 10, 0.55);
}

/* ---------- 8. Icon chips / tags on level-3 glass ---------------- */
.tech-tag,
.strength-tag,
.skill-chip {
  background: var(--lg-2);
  border: 1px solid var(--lg-border-1);
  color: var(--accent-2);
}

.tech-tag:hover,
.strength-tag:hover,
.skill-chip:hover {
  background: var(--lg-3);
  border-color: var(--lg-border-2);
  color: #fff;
}

.featured-ribbon {
  background: var(--lg-3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--lg-border-2);
  color: #fff;
}

/* ---------- 9. Body copy tuned for the glass background ---------- */
p,
.project-info p,
.about-text p,
.edu-body p,
.contact-info p {
  color: rgba(255, 255, 255, 0.66);
}

.project-info h3,
.skill-cat-header h3,
.edu-body h3,
.misc-title {
  color: #fff;
}

.detail-icon,
.edu-icon,
.skill-cat-icon,
.contact-icon {
  background: var(--lg-2);
  border: 1px solid var(--lg-border-1);
  color: var(--accent);
}

/* ---------- 10. Section-to-section liquid continuity ------------- */
.about,
.projects,
.skills,
.education,
.certifications,
.strengths,
.misc,
.contact {
  position: relative;
  background: transparent !important;
}

.about::after,
.projects::after,
.skills::after,
.education::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(80, 120, 200, 0.05));
  pointer-events: none;
}

/* ---------- 11. Preloader — glass filling with light -------------- */
.preloader {
  background:
    radial-gradient(circle at 50% 35%, rgba(140, 175, 255, 0.10), transparent 40%),
    linear-gradient(180deg, #05080d 0%, #03060a 100%);
}

.preloader-logo {
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preloader-bar {
  background: var(--lg-1);
  border: 1px solid var(--lg-border-1);
  position: relative;
}

.preloader-fill {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  box-shadow: 0 0 16px rgba(168, 199, 255, 0.5);
}

.preloader-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer 1.6s infinite;
}

/* ---------- 12. Thin glass scrollbar ------------------------------ */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 199, 255, 0.35) transparent;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(200, 220, 255, 0.32), rgba(140, 170, 230, 0.18));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(220, 235, 255, 0.45), rgba(160, 190, 240, 0.28));
  background-clip: padding-box;
}

/* ---------- 13. Mobile: intentional, not "desktop but smaller" --- */
@media (max-width: 768px) {
  .nav-container {
    padding: 10px 16px;
    border-radius: 22px;
    width: 90vw;
    gap: 10px;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(14, 20, 30, 0.9), rgba(4, 8, 12, 0.94));
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--lg-border-2);
    border-radius: 22px;
    box-shadow: var(--lg-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    padding: 14px;
    gap: 10px;
    min-height: 0;
    bottom: auto;
    transform: none;
    transition: none;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-link {
    background: var(--lg-1);
    border-color: var(--lg-border-1);
  }

  .hero-title {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }

  .liquid-blob {
    filter: blur(90px);
  }

  .liquid-caustic {
    opacity: 0.035;
  }
}

/* ---------- 14. Reduced motion — extend, don't fight the block above */
@media (prefers-reduced-motion: reduce) {

  .liquid-blob,
  .liquid-sheen,
  .liquid-caustic,
  .hero-title::after,
  .project-card:hover {
    animation: none !important;
    transform: none !important;
  }
}

/* ---------- 15. Motion Initial States ---------- */
.section-label, .section-title, .misc-card,
.about-image, .edu-card, .contact-info,
.about-text,
.cert-item, .strength-tag {
  opacity: 0;
}

/* Critical interaction cards: always visible by default so they never stay blank */
.skill-category,
.skill-chips,
.skill-chip,
.contact-form {
  opacity: 1 !important;
  visibility: visible !important;
}

/* === NEW SECTIONS CSS === */

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 24px;
  transition: all 0.3s var(--ease);
}
.service-icon {
  width: 54px;
  height: 54px;
  background: rgba(232, 255, 71, 0.08);
  border: 1px solid rgba(232, 255, 71, 0.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--f-head);
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Solutions Section */
.solutions-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 768px) {
  .solutions-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.audience-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.audience-list li {
  font-size: 1.1rem;
  color: var(--text-muted);
}
.client-problems {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.process-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 24px;
}
.step-number {
  font-family: var(--f-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
}
.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-family: var(--f-head);
}
.process-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
}
.faq-item h4 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
  font-family: var(--f-head);
}
.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* === SIGNATURE DEVELOPER MONOLITH === */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  perspective: 1200px;
  opacity: 1; /* Safe CSS fallback so content is never stuck hidden */
  transition: opacity 0.4s var(--ease);
}

html.js-anim-ready .hero-visual-wrapper {
  opacity: 0; /* Only primed when GSAP has taken control */
}

.dev-monolith {
  width: 100%;
  background: rgba(8, 10, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(76, 111, 255, 0.08),
    0 0 32px rgba(76, 111, 255, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.dev-monolith:hover {
  border-color: rgba(76, 111, 255, 0.35);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(76, 111, 255, 0.18),
    0 0 45px rgba(76, 111, 255, 0.22);
}

/* Monolith Header */
.monolith-header {
  height: 42px;
  padding: 0 14px;
  background: rgba(4, 6, 9, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.monolith-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.m-dot-red { background: #ff5f56; }
.m-dot-amber { background: #ffbd2e; }
.m-dot-green { background: #27c93f; }

.monolith-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.monolith-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 0.02em;
}

.monolith-tab.active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.monolith-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(39, 201, 63, 0.1);
  border: 1px solid rgba(39, 201, 63, 0.25);
  font-size: 0.65rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.05em;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  background: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 8px #27c93f;
  animation: pulse-dot 2s infinite;
}

/* Monolith Body */
.monolith-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Code Pane */
.monolith-code-pane {
  padding: 14px 16px;
  background: rgba(3, 4, 7, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.62;
  color: #e2e8f0;
  overflow-x: auto;
}

.monolith-code-pane .code-line {
  white-space: pre;
}

.monolith-code-pane .code-line.indent {
  padding-left: 14px;
}

.monolith-code-pane .code-line.indent-2 {
  padding-left: 28px;
}

.code-keyword { color: #f87171; font-weight: 600; }
.code-var { color: #93c5fd; }
.code-prop { color: #cbd5e1; }
.code-string { color: #7dd3fc; }
.code-comment { color: #64748b; font-style: italic; }
.code-fn { color: #a78bfa; }
.code-bool { color: #fbbf24; }
.code-param { color: #f472b6; }

/* Viewport Card */
.monolith-viewport-card {
  background: linear-gradient(180deg, rgba(14, 18, 27, 0.85) 0%, rgba(9, 12, 18, 0.95) 100%);
  border: 1px solid rgba(76, 111, 255, 0.25);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.viewport-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.viewport-card-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: monospace;
}

.viewport-card-badge {
  font-size: 0.58rem;
  color: #a5b4fc;
  background: rgba(76, 111, 255, 0.15);
  border: 1px solid rgba(76, 111, 255, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.viewport-preview-content {
  width: 100%;
}

.vp-mini-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.vp-logo-chip {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--f-head);
  letter-spacing: -0.02em;
}

.vp-nav-pills {
  display: flex;
  gap: 4px;
}

.vp-nav-pills span {
  width: 14px;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
}

.vp-mini-hero {
  text-align: center;
  padding: 8px 0 10px;
}

.vp-hero-badge {
  display: inline-block;
  font-size: 0.58rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3px;
}

.vp-hero-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--f-head);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.vp-hero-copy {
  font-size: 0.65rem;
  color: var(--text-muted);
  max-width: 290px;
  margin: 0 auto;
  line-height: 1.4;
}

.vp-project-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.vp-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 0.62rem;
  color: #cbd5e1;
}

.vp-strip-item i {
  color: var(--accent);
  font-size: 0.75rem;
}

/* Monolith Footer Bar */
.monolith-footer-bar {
  padding: 10px 16px;
  background: rgba(4, 6, 9, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
}

.m-footer-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-footer-label {
  font-size: 0.56rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.m-footer-value {
  color: #e2e8f0;
  font-family: monospace;
  font-weight: 600;
}

.m-footer-status {
  color: #60a5fa;
}

.m-footer-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive tweaks for Monolith */
@media (max-width: 480px) {
  .monolith-code-pane {
    font-size: 0.65rem;
    padding: 10px 12px;
  }
  .monolith-header {
    padding: 0 10px;
  }
  .monolith-tab {
    padding: 3px 6px;
    font-size: 0.65rem;
  }
  .monolith-footer-bar {
    padding: 8px 12px;
  }
  .m-footer-label {
    font-size: 0.52rem;
  }
  .m-footer-value {
    font-size: 0.62rem;
  }
}

/* === SERVICES HOVER === */
.service-card {
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 255, 71, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(232, 255, 71, 0.05);
  background: rgba(255, 255, 255, 0.03);
}
.service-icon {
  transition: transform 0.4s var(--ease);
}
.service-card:hover .service-icon {
  transform: scale(1.08);
}

/* === PROCESS TIMELINE === */
.process-wrapper {
  position: relative;
}
.process-line-track {
  position: absolute;
  top: 48px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

@media (max-width: 768px) {
  .process-line-track {
    top: 20px;
    bottom: 20px;
    left: 24px;
    width: 2px;
    height: auto;
    right: auto;
  }
  .process-line-fill {
    width: 100%;
    height: 0%;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-step {
    padding-left: 60px;
  }
}

/* ==========================================
   CINEMATIC WELCOME INTRO (STAGE 1)
   ========================================== */
.welcome-intro {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  color: #ffffff;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.welcome-intro.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  display: none !important;
  transform: translateY(-20px) !important;
}

.welcome-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.welcome-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(76, 111, 255, 0.18) 0%, rgba(76, 111, 255, 0.04) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.welcome-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 80%);
}

.welcome-container {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 90%;
  text-align: center;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffffff;
  margin-bottom: 24px;
}

.welcome-brand .welcome-bracket {
  color: var(--accent);
}

.welcome-brand .welcome-monogram {
  color: #ffffff;
}

.welcome-text-wrap {
  margin-bottom: 28px;
}

.welcome-headline {
  font-family: var(--f-head);
  font-size: clamp(1.8rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 14px;
}

.welcome-headline .welcome-line {
  display: block;
}

.welcome-headline .welcome-accent {
  color: #7dd3fc;
  -webkit-text-fill-color: #7dd3fc;
  font-style: italic;
  font-weight: 700;
  display: block;
}

.welcome-headline .welcome-accent .welcome-word {
  color: #7dd3fc;
  -webkit-text-fill-color: #7dd3fc;
}

.welcome-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

.welcome-tagline {
  font-family: var(--f-body);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(12px);
}

.welcome-meter-track {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.welcome-meter-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, var(--accent));
  box-shadow: 0 0 12px var(--accent);
  border-radius: 999px;
  transition: width 0.1s linear;
}

.welcome-controls {
  opacity: 0;
  transform: translateY(10px);
}

.btn-skip-intro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--f-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(10px);
}

.btn-skip-intro:hover {
  background: rgba(76, 111, 255, 0.12);
  border-color: rgba(76, 111, 255, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-skip-intro i {
  font-size: 0.72rem;
  color: var(--accent);
}

/* ==========================================
   INTERACTIVE FAQ ACCORDION
   ========================================== */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.faq-item.active {
  border-color: rgba(76, 111, 255, 0.35);
  background: rgba(76, 111, 255, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(76, 111, 255, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.faq-question:hover {
  color: #93c5fd;
}

.faq-item.active .faq-question {
  color: #ffffff;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: rgba(76, 111, 255, 0.18);
  border-color: rgba(76, 111, 255, 0.4);
  color: #60a5fa;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
}

.faq-answer-inner {
  padding: 0 24px 22px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 14px;
}

/* ==========================================
   CONTACT MESSAGE DELIVERY STAGE (STAGE 3)
   ========================================== */
.contact-form-wrapper {
  position: relative;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  opacity: 1 !important;
  visibility: visible !important;
}

.contact-form.is-hidden {
  display: none !important;
}

/* ==========================================
   CONTACT MESSAGE DELIVERY STAGE (TRUCK DELIVERY v2 REFERENCE)
   ========================================== */
.delivery-stage {
  display: none; /* Must remain hidden until form submission */
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.delivery-stage.is-active {
  display: flex !important;
}

.delivery-stage .delivery-capsule {
  background: #04060c;
  border: 1px solid rgba(76, 111, 255, 0.35);
  border-radius: 30px;
  padding: 12px 12px 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 34px rgba(76, 111, 255, 0.14);
  overflow: hidden;
}

.delivery-stage .capsule-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font: 600 0.72rem 'JetBrains Mono', ui-monospace, Consolas, monospace;
  letter-spacing: 0.07em;
  color: #93c5fd;
  margin-bottom: 6px;
}

.delivery-stage .capsule-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  animation: td-dp 1.2s infinite;
}

@keyframes td-dp {
  50% { opacity: 0.35; transform: scale(0.7); }
}

.delivery-stage .scene {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.delivery-stage .wheel {
  transform-box: fill-box;
  transform-origin: center;
}

.delivery-stage .legA,
.delivery-stage .legB {
  transform-origin: 0 -22px;
}

.delivery-stage .walking .legA {
  animation: td-swing 0.46s ease-in-out infinite alternate;
}

.delivery-stage .walking .legB {
  animation: td-swing 0.46s ease-in-out -0.23s infinite alternate reverse;
}

@keyframes td-swing {
  from { transform: rotate(-27deg); }
  to { transform: rotate(27deg); }
}

.delivery-stage .star {
  animation: td-tw 3s ease-in-out infinite;
}

.delivery-stage .star:nth-child(2n) {
  animation-delay: -1.3s;
}

.delivery-stage .star:nth-child(3n) {
  animation-delay: -2.1s;
}

@keyframes td-tw {
  50% { opacity: 0.2; }
}

.delivery-stage .beam,
.delivery-stage .pool,
.delivery-stage .tail,
.delivery-stage .brake,
.delivery-stage .hazard {
  opacity: 0;
  transition: opacity 0.35s;
}

.delivery-stage .lights .beam { opacity: 0.55; }
.delivery-stage .lights .pool { opacity: 0.7; }
.delivery-stage .lights .tail { opacity: 1; }
.delivery-stage .braking .brake { opacity: 1; }

.delivery-stage .hazard-on .hazard {
  animation: td-hz 0.5s steps(1) infinite;
}

@keyframes td-hz {
  50% { opacity: 1; }
}

.delivery-stage .smoke circle,
.delivery-stage .dust circle {
  opacity: 0;
}

.delivery-stage .driving .smoke circle {
  animation: td-puff 1s ease-out infinite;
}

.delivery-stage .driving .dust circle {
  animation: td-dust 0.7s ease-out infinite;
}

.delivery-stage .smoke circle:nth-child(2),
.delivery-stage .dust circle:nth-child(2) {
  animation-delay: 0.33s;
}

.delivery-stage .smoke circle:nth-child(3),
.delivery-stage .dust circle:nth-child(3) {
  animation-delay: 0.66s;
}

@keyframes td-puff {
  0% { opacity: 0.5; transform: translate(0, 0) scale(0.5); }
  100% { opacity: 0; transform: translate(-34px, -16px) scale(1.7); }
}

@keyframes td-dust {
  0% { opacity: 0.4; transform: translate(0, 0) scale(0.4); }
  100% { opacity: 0; transform: translate(-40px, -8px) scale(1.8); }
}

.delivery-stage .win {
  fill: #1b2436;
  transition: fill 0.6s;
}

.delivery-stage .received .win {
  fill: #fcd34d;
}

.delivery-stage .doorlit {
  opacity: 0;
  transition: opacity 0.5s;
}

.delivery-stage .dooropen .doorlit {
  opacity: 1;
}

.delivery-stage .outcome {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px;
  border-radius: 30px;
  background: #04060c;
  border: 1px solid rgba(76, 111, 255, 0.35);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55);
  animation: td-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.delivery-stage .outcome.show {
  display: flex !important;
}

@keyframes td-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.delivery-stage .badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.delivery-stage .badge.ok {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #10b981;
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.3);
}

.delivery-stage .badge.ok svg {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: td-tick 0.6s 0.25s ease forwards;
}

@keyframes td-tick {
  to { stroke-dashoffset: 0; }
}

.delivery-stage .badge.err {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ef4444;
}

.delivery-stage .outcome h3 {
  font-family: var(--f-head);
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.delivery-stage .outcome p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.delivery-stage .receipt {
  font: 0.75rem 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color: #7dd3fc;
  margin-bottom: 16px;
}

.delivery-stage .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 480px) {
  .delivery-stage .delivery-capsule {
    border-radius: 24px;
    padding: 10px 8px 6px;
  }
  .delivery-stage .scene {
    border-radius: 14px;
  }
  .delivery-stage .outcome {
    border-radius: 24px;
    padding: 24px 16px;
  }
  .delivery-stage .capsule-status {
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-wrapper, .dev-monolith, .process-line-fill, .service-card,
  .welcome-intro, .delivery-stage .scene *,
  .delivery-stage .walking .legA, .delivery-stage .walking .legB,
  .delivery-stage .driving .smoke circle, .delivery-stage .driving .dust circle,
  .delivery-stage .hazard-on .hazard, .delivery-stage .badge.ok svg {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}