/* ════════════════════════════════════════════════════════════
   VARIABLES & THEMING
════════════════════════════════════════════════════════════ */
:root {
  --accent:    #6366f1;
  --accent-2:  #8b5cf6;
  --accent-3:  #06b6d4;
  --gradient:  linear-gradient(135deg, var(--accent), var(--accent-2));
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --font-disp: 'Syne', 'Inter', sans-serif;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

[data-theme="dark"] {
  --bg:             #07070f;
  --bg-2:           #0b0b18;
  --bg-card:        #0f0f1e;
  --bg-card-hover:  #131328;
  --border:         rgba(255, 255, 255, 0.07);
  --border-hover:   rgba(255, 255, 255, 0.14);
  --text:           #e8e8f5;
  --text-muted:     #7878a0;
  --shadow:         0 4px 30px rgba(0, 0, 0, 0.5);
  --shadow-card:    0 8px 40px rgba(0, 0, 0, 0.4);
  --glow:           0 0 60px rgba(99, 102, 241, 0.12);
  --orb-opacity:    0.3;
}

[data-theme="light"] {
  --bg:             #f7f7fc;
  --bg-2:           #efeff8;
  --bg-card:        #ffffff;
  --bg-card-hover:  #fafafe;
  --border:         rgba(0, 0, 0, 0.07);
  --border-hover:   rgba(99, 102, 241, 0.3);
  --text:           #0c0c22;
  --text-muted:     #666680;
  --shadow:         0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card:    0 8px 40px rgba(0, 0, 0, 0.07);
  --glow:           0 0 60px rgba(99, 102, 241, 0.07);
  --orb-opacity:    0.1;
}

/* ════════════════════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════════════════════ */
*, *::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: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ════════════════════════════════════════════════════════════
   CONTAINER
════════════════════════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
════════════════════════════════════════════════════════════ */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-disp);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: var(--font);
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.btn-outline-nav {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
  font-family: var(--font);
}
.btn-outline-nav:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.83rem; }
.btn-white { background: #fff !important; color: #0c0c22 !important; font-weight: 600; }
.btn-white:hover { background: #f0f0f8 !important; transform: none; }

/* ════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: padding 0.35s var(--ease);
}

#navbar.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
#navbar.scrolled .nav-inner { padding-top: 0.9rem; padding-bottom: 0.9rem; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.nav-links { display: flex; gap: 0.1rem; }
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }

.nav-right { display: flex; align-items: center; gap: 0.7rem; }

.theme-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  color: var(--text-muted);
  flex-shrink: 0;
}
.theme-btn:hover { color: var(--text); border-color: var(--border-hover); }
.theme-btn svg { width: 15px; height: 15px; }

.lang-btn {
  height: 36px;
  padding: 0 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--font);
  flex-shrink: 0;
}
.lang-btn:hover { color: var(--accent); border-color: rgba(99,102,241,0.4); }

[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu.open { display: flex; }
.mob-link {
  padding: 0.8rem 0;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  font-size: 0.95rem;
}
.mob-link:last-child { border-bottom: none; }
.mob-link:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  will-change: transform;
}
.orb-a {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -250px; right: -150px;
  animation: orbDrift 10s ease-in-out infinite;
}
.orb-b {
  width: 450px; height: 450px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -150px; left: 5%;
  animation: orbDrift 12s ease-in-out infinite reverse;
  animation-delay: -4s;
}
.orb-c {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-3), transparent 70%);
  top: 40%; left: 45%;
  animation: orbDrift 8s ease-in-out infinite;
  animation-delay: -6s;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-25px, 35px) scale(1.06); }
  66%       { transform: translate(25px, -20px) scale(0.94); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #22c55e;
  margin-bottom: 1.5rem;
}
.pulse-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-h1 {
  font-family: var(--font-disp);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-typing {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
  min-height: 1.8em;
}
.cursor {
  color: var(--accent);
  font-weight: 300;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-top { display: flex; align-items: baseline; }
.stat-num, .stat-suf {
  font-family: var(--font-disp);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-suf { font-size: 1.3rem; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); }
.stat-sep { width: 1px; height: 36px; background: var(--border); }

/* ── CODE CARD ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card), var(--glow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.code-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: var(--shadow-card), 0 0 80px rgba(99, 102, 241, 0.2);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-filename {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.code-body {
  padding: 1.25rem 1.5rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.81rem;
  line-height: 1.9;
}
.code-line       { display: block; }
.code-line.i1    { padding-left: 1.5em; }
.code-line.i2    { padding-left: 3em; }

.kw   { color: #c792ea; }
.var  { color: #82aaff; }
.op   { color: var(--text-muted); }
.pu   { color: var(--text-muted); }
.prop { color: #f78c6c; }
.str  { color: #c3e88d; }
.bool { color: #ff5370; }

[data-theme="light"] .kw   { color: #7c3aed; }
[data-theme="light"] .var  { color: #2563eb; }
[data-theme="light"] .prop { color: #ea580c; }
[data-theme="light"] .str  { color: #16a34a; }
[data-theme="light"] .bool { color: #dc2626; }

.floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.38rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.fb-1 { top: -16px;  right: -24px; animation: fbFloat 4s   ease-in-out infinite; }
.fb-2 { bottom: 60px; right: -40px; animation: fbFloat 4.5s ease-in-out infinite; animation-delay: -1.8s; }
.fb-3 { bottom: -14px; left: 10px;  animation: fbFloat 3.8s ease-in-out infinite; animation-delay: -3.2s; }
@keyframes fbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.35;
  animation: fadeInUp 1s 2.5s both;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-wheel {
  width: 3px; height: 7px;
  background: var(--text-muted);
  border-radius: 100px;
  animation: scrollWheel 2.2s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ════════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════════ */
#about { padding: 7rem 0; }

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-text .section-tag { margin-bottom: 0.75rem; }
.about-text .section-title { text-align: left; margin-bottom: 1.5rem; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.about-tags span {
  padding: 0.3rem 0.75rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 4rem;
}
.about-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}
.about-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateX(4px);
}
.acard-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.about-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.about-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ════════════════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════════════════ */
#services {
  padding: 7rem 0;
  background: var(--bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all 0.35s var(--ease);
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  border-radius: var(--radius);
  filter: blur(0);
}
.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-card), 0 0 50px rgba(99, 102, 241, 0.08);
}

.service-icon {
  width: 50px; height: 50px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.35s var(--ease);
}
.service-icon svg { width: 22px; height: 22px; color: var(--accent); }
.service-card:hover .service-icon {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent);
  transform: scale(1.08);
}

.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.65rem; }
.service-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.service-tags span {
  padding: 0.2rem 0.6rem;
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 100px;
  font-size: 0.73rem;
  color: var(--accent);
  font-weight: 500;
}

.service-arrow {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s var(--ease);
  color: var(--accent);
}
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ════════════════════════════════════════════════════════════
   WORK
════════════════════════════════════════════════════════════ */
#work { padding: 7rem 0; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.work-card:hover {
  transform: translateY(-7px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-card);
}

.work-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.work-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #12122a, #1a1a3e);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s var(--ease);
}
.wp-2 { background: linear-gradient(135deg, #0e1f2e, #1a3248); }
.wp-3 { background: linear-gradient(135deg, #1e0e2e, #341848); }
.work-card:hover .work-placeholder { transform: scale(1.04); }
.work-placeholder svg { width: 56px; height: 56px; color: rgba(255,255,255,0.1); }

[data-theme="light"] .work-placeholder     { background: linear-gradient(135deg, #dde0f5, #ccd0f0); }
[data-theme="light"] .wp-2                 { background: linear-gradient(135deg, #d8eaf5, #c5dcee); }
[data-theme="light"] .wp-3                 { background: linear-gradient(135deg, #e8d8f5, #d8c8ee); }
[data-theme="light"] .work-placeholder svg { color: rgba(0,0,0,0.12); }

.work-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
}
.work-card:hover .work-overlay { opacity: 1; }

.work-info { padding: 1.5rem; }
.work-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.4rem;
}
.work-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.work-info p  { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; }

/* ════════════════════════════════════════════════════════════
   NEWS
════════════════════════════════════════════════════════════ */
#news { padding: 7rem 0; background: var(--bg-2); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  color: inherit;
}
.news-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.nc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.nc-source {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c, var(--accent));
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 28%, transparent);
  white-space: nowrap;
}

.nc-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nc-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.nc-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Skeleton loader */
.nc-skeleton { pointer-events: none; gap: 0.65rem; }
.sk-line {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-card-hover) 50%, var(--bg-2) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
.sk-sm  { width: 38%; }
.sk-lg  { width: 88%; height: 13px; }
.sk-sh  { width: 72%; height: 13px; }
.sk-md  { width: 58%; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.news-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
  font-size: 0.9rem;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

#news-ts {
  font-size: 0.78rem;
  color: var(--text-muted);
}

#news-refresh {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s var(--ease);
  font-family: var(--font);
}
#news-refresh:hover {
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent);
}

/* actu.html full-page layout */
.actu-header {
  padding: 8rem 0 3rem;
  text-align: center;
}
.actu-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.actu-back:hover { color: var(--accent); }
.actu-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.actu-filter {
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  font-family: var(--font);
}
.actu-filter:hover,
.actu-filter.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.07);
}
.actu-body { padding: 2rem 0 7rem; }

/* ════════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════════ */
#contact {
  padding: 7rem 0;
  background: var(--bg-2);
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}
.contact-bg-orb {
  position: absolute;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 65%);
  top: -150px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 50%;
}
.contact-box .section-title { margin-bottom: 0; }
.contact-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 1.25rem auto 2.5rem;
  line-height: 1.75;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}
.contact-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.contact-link:hover {
  background: rgba(99, 102, 241, 0.07);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════════ */
/* Hero — fires on load via CSS animation */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.75s var(--ease) both;
}
.fade-in-right {
  opacity: 0;
  transform: translateX(48px);
  animation: fadeRight 0.85s var(--ease) both;
}
@keyframes fadeUp    { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeRight { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 0.35; transform: translateY(0); } }

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.38s; }
.delay-4 { animation-delay: 0.52s; }
.delay-5 { animation-delay: 0.68s; }

/* Scroll reveal — toggled by JS */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { display: none; }
  .hero-desc   { margin: 0 auto 2rem; }
  .hero-actions, .available-badge { justify-content: center; }
  .hero-stats  { justify-content: center; }

  .about-container { grid-template-columns: 1fr; gap: 3rem; }
  .about-cards { padding-top: 0; }
  .about-text .section-title { text-align: center; }
  .about-text .section-tag { display: block; text-align: center; }
  .about-tags { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links, .btn-outline-nav { display: none; }
  .menu-btn { display: flex; }

  section { padding: 5rem 0 !important; }

  .services-grid,
  .work-grid { grid-template-columns: 1fr; }

  .contact-box { padding: 3rem 1.5rem; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .stat-sep   { display: none; }
  .hero-h1    { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ════════════════════════════════════════════════════════════
   CONTACT FORM
════════════════════════════════════════════════════════════ */
.contact-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.2rem;
}
.contact-alts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.contact-alts a {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.2s;
}
.contact-alts a:hover { opacity: 0.7; }

/* Service cards clickables */
a.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ════════════════════════════════════════════════════════════
   MOBILE — améliorations supplémentaires
════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .container { padding: 0 1.1rem; }

  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { justify-content: center; width: 100%; }
  .contact-alts { justify-content: center; }

  .project-title { font-size: 1.85rem; }
  .project-lead  { font-size: 0.95rem; }
  .project-cta   { flex-direction: column; }
  .project-cta .btn { justify-content: center; }
  .project-meta  { gap: 0.5rem; }

  .feature-item  { padding: 1rem 1.1rem; gap: 0.75rem; }
  .feature-icon  { font-size: 1.2rem; }
  .feature-item p { font-size: 0.82rem; }

  .sidebar-card  { padding: 1.1rem; }
  .testimonial-card { padding: 1.75rem 1.25rem; }
  .testimonial-text { font-size: 0.95rem; }

  .work-info     { padding: 1.1rem; }
  .work-info h3  { font-size: 0.95rem; }
  .about-card    { padding: 1rem 1.1rem; }

  .hero-stats    { gap: 1rem; }
  .stat-num, .stat-suf { font-size: 1.6rem; }

  .section-title { font-size: 1.75rem; }
  .contact-box   { padding: 2.5rem 1.25rem; }

  .news-footer   { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
