/* ═══════════════════════════════════════════
   SYNOK PORTFOLIO — COMPLETE REDESIGN
   Modern, Responsive, Motion-Rich
   ═══════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bg: #0a0a0f;
  --bg-alt: #111118;
  --bg-elevated: #18182a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --text: #f0f0f5;
  --text-secondary: #8888a4;
  --text-muted: #55556a;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --accent-2: #a855f7;
  --accent-3: #2dd4bf;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.4s var(--ease-out);
  --container: 1200px;
  --header-h: 72px;
}

[data-theme="light"] {
  --bg: #f8f8fc;
  --bg-alt: #ffffff;
  --bg-elevated: #f0f0f6;
  --surface: rgba(0, 0, 0, 0.02);
  --surface-hover: rgba(0, 0, 0, 0.04);
  --text: #0f0f1a;
  --text-secondary: #5a5a72;
  --text-muted: #9999aa;
  --accent: #4f46e5;
  --accent-light: #6366f1;
  --accent-glow: rgba(79, 70, 229, 0.2);
  --accent-2: #7c3aed;
  --accent-3: #0d9488;
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.6s var(--ease-smooth), color 0.6s var(--ease-smooth);
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ── LOADER ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 0.2em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-line {
  width: 60px;
  height: 2px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.loader-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: loaderSlide 1.2s ease-in-out infinite;
  transform-origin: left;
}

@keyframes loaderSlide {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(1); transform-origin: left; }
  51% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

.loader-counter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── CURSOR ── */
.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    mix-blend-mode: difference;
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: transform 0.15s var(--ease-out);
  }

  .cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  }

  .cursor.hovering .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
  }

  .cursor.hovering .cursor-dot {
    transform: translate(-50%, -50%) scale(2);
    background: var(--accent);
  }
}

/* ── GRAIN OVERLAY ── */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' 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)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: grainShift 0.5s steps(10) infinite;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(3%, 1%); }
  30% { transform: translate(-1%, 4%); }
  40% { transform: translate(4%, -2%); }
  50% { transform: translate(-3%, 2%); }
  60% { transform: translate(1%, -4%); }
  70% { transform: translate(-4%, 3%); }
  80% { transform: translate(2%, -1%); }
  90% { transform: translate(3%, 4%); }
}

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg), transparent);
  opacity: 0.9;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: opacity 0.4s var(--ease-out);
}

.header.scrolled::before {
  opacity: 1;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}

.header.hidden {
  transform: translateY(-100%);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition) !important;
}

.nav-cta:hover,
.nav-cta.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.theme-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.theme-btn:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

.theme-icon {
  width: 18px;
  height: 18px;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-spring);
}

.theme-icon.moon { display: none; }

[data-theme="light"] .theme-icon.sun { display: none; }
[data-theme="light"] .theme-icon.moon { display: block; }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 50%;
  border: 1px solid var(--border);
  z-index: 110;
}

.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.burger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.scroll-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.1s linear;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.mobile-menu.open .mobile-menu-bg {
  opacity: 1;
}

.mobile-menu-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
  transform: translateY(30px);
  opacity: 0;
}

.mobile-menu.open .mobile-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

.mobile-link:hover {
  background: var(--surface-hover);
}

.mobile-link-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.mobile-link-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mobile-link.active .mobile-link-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.6;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translateX(-50%) scale(1); opacity: 0.4; }
  100% { transform: translateX(-50%) scale(1.15); opacity: 0.7; }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  opacity: 0.4;
  animation: gridFade 4s ease-in-out infinite alternate;
}

@keyframes gridFade {
  0% { opacity: 0.25; }
  100% { opacity: 0.5; }
}

.hero-content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  width: 100%;
}

.hero-top {
  margin-bottom: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
}

.badge-pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0; }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line-inner {
  display: inline-block;
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 550px;
}

.separator {
  color: var(--text-muted);
  margin: 0 2px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 30px var(--accent-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 15px;
}

/* ── HERO STATS ── */
.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-plus {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ── HERO SCROLL INDICATOR ── */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-arrow {
  width: 24px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.scroll-arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow span:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

.scroll-text {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── MARQUEE ── */
.marquee {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.marquee-dot {
  color: var(--accent) !important;
  font-size: 8px !important;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTIONS ── */
.section {
  padding: clamp(80px, 12vh, 140px) 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.label-line {
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-label span:last-child {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: clamp(40px, 6vh, 64px);
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-text p {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-text strong {
  color: var(--accent);
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all 0.3s var(--ease-out);
}

.about-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateX(8px);
}

.about-card-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.about-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-card-content strong {
  font-size: 15px;
  font-weight: 600;
}

.about-card-content span {
  font-size: 13px;
  color: var(--text-muted);
}

.trust-section {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.trust-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-item {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
}

.trust-item:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-hover);
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.skill-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.skill-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.skill-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.skill-experience {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.skill-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
}

.skill-card:hover .skill-tags span {
  border-color: var(--accent-glow);
  color: var(--accent-light);
}

/* ── PROJECTS ── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.project-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent, rgba(168, 85, 247, 0.05));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.project-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

.project-item:hover::before {
  opacity: 1;
}

.project-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: color 0.4s var(--ease-out);
}

.project-item:hover .project-number {
  color: var(--accent-glow);
}

.project-content {
  position: relative;
  z-index: 1;
}

.project-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.project-year,
.project-category {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-category {
  color: var(--accent-light);
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 16px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tech span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: gap 0.3s var(--ease-out);
}

.project-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out);
}

.project-link:hover {
  gap: 12px;
}

.project-link:hover svg {
  transform: translate(2px, -2px);
}

.project-visual {
  position: relative;
  z-index: 1;
}

.project-img-placeholder {
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-alt));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out);
}

.project-img-placeholder span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.project-item:hover .project-img-placeholder {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* ── JOURNEY / TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  z-index: 1;
  transition: all 0.3s var(--ease-out);
}

.timeline-item:first-child .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: scale(1.3);
}

.timeline-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all 0.3s var(--ease-out);
}

.timeline-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateX(8px);
}

.timeline-date {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 6px;
}

.timeline-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── RESOURCES ── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.resource-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.resource-card::after {
  content: '→';
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 18px;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
}

.resource-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.resource-card:hover::after {
  color: var(--accent);
  transform: translate(4px, -4px);
}

.resource-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.resource-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.resource-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.resource-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.resource-handle {
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 500;
}

/* ── CTA SECTION ── */
.cta-section {
  padding: clamp(60px, 10vh, 120px) 0;
}

.cta-block {
  text-align: center;
  padding: clamp(48px, 8vw, 80px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--surface), var(--surface-hover));
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 200%;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%);
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  position: relative;
}

.cta-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-desc {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vh, 80px) 0 clamp(24px, 4vh, 40px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-back-top {
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-back-top:hover {
  color: var(--accent);
}

/* ── CONTACT PAGE ── */
.contact-page main {
  padding-top: calc(var(--header-h) + 60px);
  min-height: calc(100vh - 100px);
}

.contact-hero {
  padding: clamp(40px, 8vh, 80px) 0;
}

.contact-title {
  margin-bottom: clamp(32px, 5vh, 56px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.form-label .optional {
  color: var(--text-muted);
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s var(--ease-out);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.toggle-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.toggle-switch {
  position: relative;
  cursor: pointer;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  transition: background 0.3s ease;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s var(--ease-spring);
}

.toggle-switch input:checked + .toggle-track {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(20px);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.form-status {
  min-height: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.form-status.success {
  color: #22c55e;
}

.form-status.error {
  color: #ef4444;
}

/* Contact info */
.contact-info-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.contact-info-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-info-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}

.contact-link-item:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateX(6px);
}

.contact-link-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.contact-link-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.contact-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-link-text strong {
  font-size: 14px;
  font-weight: 600;
}

.contact-link-text span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ══════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════ */

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 60px);
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-scroll {
    display: none;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-number {
    font-size: 36px;
  }

  .project-visual {
    display: none;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 12px;
    padding: 6px 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .skill-card {
    padding: 22px;
  }

  .project-item {
    padding: 22px;
  }

  .cta-block {
    padding: 32px 22px;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-dot {
    left: -30px;
    width: 12px;
    height: 12px;
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .grain {
    display: none;
  }

  .cursor {
    display: none;
  }
}

/* ── SELECTION ── */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ── FOCUS VISIBLE ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
