/* ========================
   NIFLAMES NEXUS — STYLE.CSS
   ======================== */

/* === CSS VARIABLES === */


:root {
  --blue: #3a8eff;
  --blue-light: #6fb3ff;
  --blue-dark: #1a5fc8;
  --blue-glow: rgba(58, 142, 255, 0.35);

  /* DARK THEME (default) */
  --bg: #060810;
  --bg-2: #0c1120;
  --bg-3: #111827;
  --surface: #131d2e;
  --surface-2: #1a2540;
  --border: rgba(255,255,255,0.08);
  --text: #f0f4ff;
  --text-muted: rgba(240,244,255,0.55);
  --text-faint: rgba(240,244,255,0.25);

  --nav-bg: rgba(6,8,16,0.85);
  --card-bg: #0f1828;
  --card-hover: #16253a;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
}

[data-theme="light"] {
  --bg: #f5f7ff;
  --bg-2: #edf0fa;
  --bg-3: #e4e8f5;
  --surface: #ffffff;
  --surface-2: #f0f3fc;
  --border: rgba(0,0,0,0.08);
  --text: #0a0f1e;
  --text-muted: rgba(10,15,30,0.6);
  --text-faint: rgba(10,15,30,0.3);
  --nav-bg: rgba(245,247,255,0.9);
  --card-bg: #ffffff;
  --card-hover: #f5f8ff;
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* === CANVAS (RIPPLE) === */
#rippleCanvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
#ctaRipple {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* === CUSTOM CURSOR === */
.cursor-outer, .cursor-inner {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.08s, opacity 0.3s;
}
.cursor-outer {
  width: 36px; height: 36px;
  border: 1.5px solid var(--blue);
  transition: width 0.3s, height 0.3s, opacity 0.3s, background 0.3s;
}
.cursor-inner {
  width: 7px; height: 7px;
  background: var(--blue);
}
.cursor-outer.hovered {
  width: 54px; height: 54px;
  background: var(--blue-glow);
  border-color: var(--blue-light);
}
@media (hover: none) {
  .cursor-outer, .cursor-inner { display: none; }
}

/* === PRELOADER === */
.preloader {
  position: fixed; inset: 0;
  background: #030508;
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.preloader-logo {
  width: 50px; height: 50px;
  animation: preloaderSpin 3s ease-in-out infinite;
}
.hex-shape {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: drawHex 2s ease forwards;
}
.preloader-letter {
  fill: var(--blue);
  font-family: var(--font-display);
  font-size: 38px; font-weight: 800;
  animation: fadeIn 1s 0.8s both;
}
@keyframes drawHex {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.preloader-text {
  display: flex; gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: 0.35em;
  color: #fff;
}
.pre-word { opacity: 0; animation: slideUp 0.6s ease forwards; }
.pre-word.delay { animation-delay: 0.25s; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.preloader-bar-wrap {
  width: 220px; height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px; overflow: hidden;
}
.preloader-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--blue-light));
  border-radius: 2px;
  transition: width 0.05s linear;
}
.preloader-percent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-light);
  letter-spacing: 0.1em;
}

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(16px) saturate(180%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition), transform 0.4s ease;
}
.navbar.hidden { transform: translateY(-100%); }
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text);
}
.logo-icon {
  width: 36px; height: 36px;
}
.logo-icon polygon {
  fill: none; stroke: var(--blue); stroke-width: 2;
}
.logo-icon text {
  fill: var(--blue); font-family: var(--font-display);
  font-size: 16px; font-weight: 800;
}
.logo-accent { color: var(--blue); }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--blue);
  transition: left 0.3s ease, right 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { left: 12%; right: 12%; }
.nav-ai {
  color: var(--blue) !important;
  border: 1px solid rgba(58,142,255,0.3);
  padding: 0.4rem 0.9rem;
}
.nav-ai:hover { background: rgba(58,142,255,0.1); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.theme-toggle:hover { color: var(--blue); border-color: var(--blue); }
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; padding: 6px;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-inner { text-align: center; }
.mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.mobile-close:hover { color: var(--blue); border-color: var(--blue); }
.mobile-nav-links { margin-bottom: 3rem; }
.mobile-nav-links li { overflow: hidden; }
.mobile-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  transform: translateY(100%);
  opacity: 0;
}
.mobile-menu.open .mobile-link {
  animation: menuItemIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.mobile-menu.open li:nth-child(1) .mobile-link { animation-delay: 0.1s; }
.mobile-menu.open li:nth-child(2) .mobile-link { animation-delay: 0.15s; }
.mobile-menu.open li:nth-child(3) .mobile-link { animation-delay: 0.2s; }
.mobile-menu.open li:nth-child(4) .mobile-link { animation-delay: 0.25s; }
.mobile-menu.open li:nth-child(5) .mobile-link { animation-delay: 0.3s; }
.mobile-menu.open li:nth-child(6) .mobile-link { animation-delay: 0.35s; }
.mobile-menu.open li:nth-child(7) .mobile-link { animation-delay: 0.4s; }
@keyframes menuItemIn {
  to { transform: translateY(0); opacity: 1; }
}
.mobile-link:hover, .ai-mobile { color: var(--blue); }
.mobile-socials {
  display: flex; justify-content: center; gap: 1rem;
  opacity: 0; animation: none;
}
.mobile-menu.open .mobile-socials { animation: fadeIn 0.5s 0.5s forwards; }
.mobile-socials a {
  width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem;
  transition: all var(--transition-fast);
}
.mobile-socials a:hover { color: var(--blue); border-color: var(--blue); background: rgba(58,142,255,0.1); }

/* === SECTION COMMONS === */
.section { padding: 7rem 0; position: relative; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--blue);
  text-transform: uppercase;
  background: rgba(58,142,255,0.1);
  border: 1px solid rgba(58,142,255,0.25);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-muted);
  max-width: 520px; margin: 0 auto;
  font-size: 1.05rem;
}
.text-blue { color: var(--blue); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 500;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0; transition: opacity 0.2s;
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(58,142,255,0.4);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(58,142,255,0.5);
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.btn-large { padding: 1rem 2.25rem; font-size: 1rem; }
.mt-2 { margin-top: 2rem; }

/* === SCROLL REVEAL === */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: none;
}
[style*="--d"] { transition-delay: var(--d, 0s); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ========================
   HERO SECTION
   ======================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 70px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.4);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,8,16,0.95) 40%, rgba(26,95,200,0.25) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 5rem 2rem 5rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-family: var(--font-mono);
  color: var(--blue-light);
  background: rgba(58,142,255,0.08);
  border: 1px solid rgba(58,142,255,0.25);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  animation: badgePulse 1.8s infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(58,142,255,0.6); }
  50% { box-shadow: 0 0 0 5px rgba(58,142,255,0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-gradient {
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-outline {
  -webkit-text-stroke: 2px var(--blue);
  color: transparent;
}
.hero-desc {
  max-width: 540px;
  color: var(--text-muted);
  font-size: 1.1rem; line-height: 1.7;
  margin-bottom: 2.25rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex; align-items: center; gap: 2rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-plus {
  color: var(--blue);
  font-size: 1.5rem; font-weight: 700;
}
.stat-label {
  font-size: 0.78rem; color: var(--text-muted);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-top: 2px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
}
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; right: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s infinite;
}
.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================
   MARQUEE SECTION
   ======================== */
.marquee-section {
  overflow: hidden;
  background: var(--bg-2);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: skewY(-1.5deg);
  margin: -0.5rem 0;
  position: relative; z-index: 2;
}
.marquee-track { overflow: hidden; }
.marquee-inner {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 22s linear infinite;
  width: max-content;
}
.marquee-inner span {
  padding: 0 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.marquee-dot {
  color: var(--blue) !important;
  font-size: 0.7rem !important;
  padding: 0 0.5rem !important;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================
   ABOUT SECTION
   ======================== */
.about { background: var(--bg); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 440px;
}
.about-img-border {
  position: absolute; inset: -12px;
  border: 1.5px solid rgba(58,142,255,0.25);
  border-radius: var(--radius-lg);
  transform: rotate(3deg);
  transition: transform 0.5s ease;
}
.about-image-wrap:hover .about-img-border { transform: rotate(0deg); }
.about-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative; z-index: 1;
}
.about-tag {
  position: absolute; bottom: -20px; right: -20px; z-index: 2;
  background: var(--blue);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(58,142,255,0.4);
}
.about-text {
  color: var(--text-muted);
  margin-bottom: 1rem; line-height: 1.8;
}
.about-pills {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.5rem;
}
.pill {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface);
  transition: all var(--transition-fast);
}
.pill:hover { border-color: var(--blue); color: var(--blue); background: rgba(58,142,255,0.08); }

/* ========================
   SERVICES SECTION
   ======================== */
.services { background: var(--bg-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(58,142,255,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(58,142,255,0.15);
}
.service-img-wrap {
  height: 170px; overflow: hidden; position: relative;
}
.service-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-img-wrap img { transform: scale(1.08); }
.service-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--card-bg));
}
.service-icon {
  position: absolute; top: 140px; right: 20px;
  width: 48px; height: 48px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(58,142,255,0.5);
  z-index: 1;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  padding: 2.5rem 1.5rem 0.5rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 0 1.5rem;
  line-height: 1.65;
}
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 1.25rem 1.5rem;
  font-size: 0.85rem; font-weight: 600;
  color: var(--blue);
  transition: gap var(--transition-fast);
}
.service-link:hover { gap: 10px; }

/* ========================
   SKILLS SECTION
   ======================== */
.skills { background: var(--bg); }
.skills-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.skill-bar-item { margin-bottom: 1.75rem; }
.skill-bar-head {
  display: flex; justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.9rem; font-weight: 500;
}
.skill-pct { color: var(--blue); font-family: var(--font-mono); font-size: 0.8rem; }
.skill-bar-bg {
  height: 5px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}
.skill-bar-fill::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 8px; height: 100%;
  background: var(--blue-light);
  border-radius: 100px;
  box-shadow: 0 0 8px var(--blue-light);
}
.skills-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.skill-card:hover {
  border-color: var(--blue);
  background: rgba(58,142,255,0.06);
  transform: translateY(-4px);
}
.skill-card i {
  font-size: 1.8rem; color: var(--blue);
  margin-bottom: 0.5rem;
  display: block;
}
.skill-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ========================
   PROJECTS SECTION
   ======================== */
.projects { background: var(--bg-2); }
.projects-filter {
  display: flex; justify-content: center; gap: 0.75rem;
  margin-bottom: 3rem; flex-wrap: wrap;
}
.filter-btn {
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  transition: all var(--transition-fast);
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(58,142,255,0.08);
}
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(58,142,255,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.project-card.hidden { display: none; }
.project-img-wrap {
  height: 200px; overflow: hidden; position: relative;
}
.project-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-img-wrap img { transform: scale(1.07); }
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(6,8,16,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-view-btn {
  width: 50px; height: 50px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  border: none; cursor: pointer;
  transform: scale(0.7); transition: transform var(--transition);
  box-shadow: 0 4px 20px rgba(58,142,255,0.5);
}
.project-card:hover .project-view-btn { transform: scale(1); }
.project-video-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
}
.project-info { padding: 1.5rem; }
.project-tag {
  display: inline-block;
  font-size: 0.72rem; font-family: var(--font-mono);
  letter-spacing: 0.1em; color: var(--blue);
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.project-info p {
  color: var(--text-muted);
  font-size: 0.86rem; line-height: 1.6;
}

/* VIDEO MODAL */
.video-modal {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: opacity 0.35s ease;
}
.video-modal.open { pointer-events: all; opacity: 1; }
.video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.video-modal-content {
  position: relative; z-index: 1;
  width: min(90vw, 900px);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.video-modal.open .video-modal-content { transform: scale(1); }
.modal-close {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 40px; height: 40px;
  background: var(--blue); color: #fff;
  border-radius: 50%; border: none;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(58,142,255,0.5);
  transition: transform var(--transition-fast);
}
.modal-close:hover { transform: rotate(90deg) scale(1.1); }
.video-wrap {
  position: relative; padding-bottom: 56.25%;
  border-radius: var(--radius); overflow: hidden;
  background: #000;
}
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* ========================
   EXPERIENCE SECTION
   ======================== */
.experience { background: var(--bg); }
.timeline { max-width: 780px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 20px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.timeline-item {
  display: flex; gap: 2rem;
  margin-bottom: 3rem;
  padding-left: 0;
  position: relative;
}
.timeline-dot {
  flex-shrink: 0;
  width: 41px; height: 41px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.timeline-dot::after {
  content: '';
  width: 11px; height: 11px;
  background: var(--blue);
  border-radius: 50%;
}
.timeline-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.timeline-card:hover {
  border-color: rgba(58,142,255,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue);
  letter-spacing: 0.1em;
  display: block; margin-bottom: 0.5rem;
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.4rem;
}
.timeline-company {
  display: block;
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.timeline-company i { color: var(--blue); margin-right: 4px; }
.timeline-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.timeline-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1rem;
}
.timeline-tags span {
  font-size: 0.72rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: rgba(58,142,255,0.1);
  color: var(--blue);
  font-family: var(--font-mono);
}

/* ========================
   CTA SECTION
   ======================== */
.cta-section {
  padding: 8rem 2rem;
  background: var(--bg-2);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(58,142,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800; margin: 1rem 0 1.25rem;
  line-height: 1.15;
}
.cta-sub {
  color: var(--text-muted);
  max-width: 540px; margin: 0 auto 2.5rem;
  font-size: 1.05rem; line-height: 1.7;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.cta-contact-row {
  display: flex; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.cta-contact-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: var(--text-muted);
  transition: color var(--transition-fast);
}
.cta-contact-item i { color: var(--blue); }
.cta-contact-item:hover { color: var(--blue); }

/* ========================
   FOOTER
   ======================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 4rem 2rem 2rem; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-logo-icon {
  width: 44px; height: 44px; flex-shrink: 0;
}
.footer-logo-icon polygon { fill: none; stroke: var(--blue); stroke-width: 2; }
.footer-logo-icon text { fill: var(--blue); font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 4px;
}
.footer-logo-text span { color: var(--blue); }
.footer-tagline { font-size: 0.82rem; color: var(--text-faint); }
.footer-links-group h4 {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.25rem; color: var(--text);
}
.footer-links-group a {
  display: block; font-size: 0.88rem;
  color: var(--text-muted); margin-bottom: 0.75rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer-links-group a:hover { color: var(--blue); padding-left: 4px; }
.footer-socials { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.social-link:hover {
  color: var(--blue); border-color: var(--blue);
  background: rgba(58,142,255,0.1);
  transform: translateY(-3px);
}
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.83rem; color: var(--text-faint);
}

/* ========================
   WHATSAPP & BACK TO TOP
   ======================== */
.whatsapp-btn {
  position: fixed; left: 1.5rem; bottom: 2rem; z-index: 900;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}
.wa-pulse {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: waPulse 2s infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 2rem; z-index: 900;
  width: 48px; height: 48px;
  background: var(--blue);
  border-radius: 50%;
  color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(58,142,255,0.4);
  transition: all var(--transition);
  opacity: 0; transform: translateY(10px); pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: all; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(58,142,255,0.6); }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 380px; margin: 0 auto; }
  .skills-layout { grid-template-columns: 1fr; gap: 3rem; }
  .skills-cards { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 5rem 0; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4.5rem); }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 19px; }
  .timeline-item { gap: 1.25rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats { gap: 1.25rem; }
  .stat-num { font-size: 1.7rem; }
}

@media (max-width: 560px) {
  .container { padding: 0 1.25rem; }
  .hero-cta { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .skills-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-contact-row { flex-direction: column; align-items: center; gap: 1rem; }
  .timeline-card { padding: 1.25rem; }
}

/* Light mode overrides */
[data-theme="light"] .hero-bg-img { filter: saturate(0.6) brightness(0.55); }
[data-theme="light"] .hero-overlay { background: linear-gradient(135deg, rgba(245,247,255,0.92) 40%, rgba(26,95,200,0.15) 100%); }
[data-theme="light"] .hero-title, [data-theme="light"] .hero-badge { color: #0a0f1e; }
[data-theme="light"] .hero-badge { color: var(--blue-dark); }
[data-theme="light"] .preloader { background: #fff; }
[data-theme="light"] #rippleCanvas { opacity: 0.3; }

/* === LIGHT MODE — Fix all black/dark surfaces === */

/* Pills */
[data-theme="light"] .pill {
  background: var(--surface);
  border-color: rgba(0,0,0,0.1);
  color: var(--text-muted);
}

/* Skill cards */
[data-theme="light"] .skill-card {
  background: var(--surface);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .skill-card span { color: var(--text-muted); }

/* Service cards */
[data-theme="light"] .service-card {
  background: var(--card-bg);
  border-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .service-img-overlay {
  background: linear-gradient(to bottom, transparent 40%, #fff);
}

/* Project cards */
[data-theme="light"] .project-card {
  background: var(--card-bg);
  border-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .project-overlay { background: rgba(10,15,30,0.45); }
[data-theme="light"] .project-video-badge {
  background: rgba(255,255,255,0.85);
  color: #0a0f1e;
  border-color: rgba(0,0,0,0.12);
}

/* Timeline / Journey cards */
[data-theme="light"] .timeline-card {
  background: var(--surface);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .timeline-card h3 { color: var(--text); }
[data-theme="light"] .timeline-card p { color: var(--text-muted); }
[data-theme="light"] .timeline-dot {
  background: var(--bg);
  border-color: var(--blue);
}
[data-theme="light"] .timeline::before { background: rgba(0,0,0,0.1); }

/* Mobile menu */
[data-theme="light"] .mobile-menu { background: var(--bg); }
[data-theme="light"] .mobile-link { color: var(--text-muted); }
[data-theme="light"] .mobile-link:hover { color: var(--blue); }

/* CTA section */
[data-theme="light"] .cta-section { background: var(--bg-2); }

/* Footer */
[data-theme="light"] .footer { background: var(--bg); }
[data-theme="light"] .footer-links-group a { color: var(--text-muted); }

/* Nav */
[data-theme="light"] .navbar { background: var(--nav-bg); }

/* Marquee */
[data-theme="light"] .marquee-section { background: var(--bg-2); }
[data-theme="light"] .marquee-inner span { color: var(--text-muted); }

/* About image border */
[data-theme="light"] .about-img-border { border-color: rgba(58,142,255,0.2); }

/* Scroll hint */
[data-theme="light"] .hero-scroll-hint span { color: var(--text-faint); }

/* Filter buttons */
[data-theme="light"] .filter-btn {
  background: var(--surface);
  border-color: rgba(0,0,0,0.1);
  color: var(--text-muted);
}
[data-theme="light"] .filter-btn.active,
[data-theme="light"] .filter-btn:hover {
  background: rgba(58,142,255,0.08);
  border-color: var(--blue);
  color: var(--blue);
}

/* Skill bars */
[data-theme="light"] .skill-bar-bg { background: rgba(0,0,0,0.07); }

/* About section */
[data-theme="light"] .about { background: var(--bg); }

/* Services section */
[data-theme="light"] .services { background: var(--bg-2); }

/* Experience / Journey section */
[data-theme="light"] .experience { background: var(--bg); }

/* Projects section */
[data-theme="light"] .projects { background: var(--bg-2); }


/* HERO SECTION */

.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:120px 20px 80px;
  position:relative;
}

.hero-content{
  max-width:900px;
  margin:auto;
}

.hero-title{
  font-size:clamp(2.2rem,5vw,4.5rem);
  line-height:1.1;
}

.hero-desc{
  font-size:1rem;
  max-width:650px;
  margin:auto;
  margin-top:20px;
}

.hero-cta{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:30px;
}

.hero-stats{
  margin-top:40px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:25px;
  flex-wrap:wrap;
}

.stat{
  text-align:center;
}

.stat-num{
  font-size:1.6rem;
  font-weight:700;
}

.stat-label{
  font-size:.9rem;
  opacity:.7;
}

/* ABOUT SECTION */

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

.about-img{
  border-radius:14px;
}

.about-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}

.pill{
  padding:6px 14px;
  border-radius:20px;
  font-size:.8rem;
  background:#111;
  border:1px solid rgba(255,255,255,0.1);
}

/* SERVICES */

.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.service-card{
  padding:20px;
}

/* SKILLS */

.skills-layout{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:60px;
}

.skills-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
}

.skill-card{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:10px;
  background:#111;
}

/* MARQUEE */

.marquee-section{
  overflow:hidden;
  white-space:nowrap;
  padding:14px 0;
}

.marquee-inner span{
  font-size:14px;
}

/* TABLET RESPONSIVE */

@media (max-width:1024px){

  .about-grid{
    grid-template-columns:1fr;
    text-align:center;
  }

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

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

}

/* MOBILE RESPONSIVE */

@media (max-width:768px){

  .hero{
    padding:100px 20px 60px;
  }

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

  .hero-desc{
    font-size:.95rem;
  }

  .hero-cta{
    flex-direction:column;
    align-items:center;
  }

  .hero-stats{
    flex-direction:column;
    gap:15px;
  }

  .stat-divider{
    display:none;
  }

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

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

}

/* SMALL PHONES */

@media (max-width:480px){

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

  .hero-desc{
    font-size:.9rem;
  }

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

  .pill{
    font-size:.7rem;
  }

}

.skills-cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
}

@media (max-width:768px){
  .skills-cards{
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width:480px){
  .skills-cards{
    grid-template-columns:repeat(2,1fr);
  }
}

/* CTA SECTION */

.cta-section{
  position:relative;
  padding:120px 20px;
  text-align:center;
  overflow:hidden;
}

.cta-content{
  max-width:900px;
  margin:auto;
  position:relative;
  z-index:2;
}

.cta-title{
  font-size:clamp(2rem,5vw,3.5rem);
  line-height:1.2;
  margin-top:10px;
}

.cta-sub{
  max-width:650px;
  margin:20px auto;
  font-size:1rem;
  opacity:0.85;
}

/* BUTTONS */

.cta-btns{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  margin-top:30px;
}

.btn-large{
  padding:14px 26px;
  font-size:1rem;
}

/* CONTACT ROW */

.cta-contact-row{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
  margin-top:40px;
}

.cta-contact-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.95rem;
  text-decoration:none;
}

/* TABLET */

@media (max-width:1024px){

  .cta-section{
    padding:100px 20px;
  }

  .cta-title{
    font-size:2.4rem;
  }

}

/* MOBILE */

@media (max-width:768px){

  .cta-section{
    padding:80px 20px;
  }

  .cta-title{
    font-size:2rem;
  }

  .cta-sub{
    font-size:.95rem;
  }

  .cta-btns{
    flex-direction:column;
    align-items:center;
  }

  .btn-large{
    width:100%;
    max-width:260px;
  }

  .cta-contact-row{
    flex-direction:column;
    gap:12px;
  }

}

/* SMALL PHONES */

@media (max-width:480px){

  .cta-title{
    font-size:1.7rem;
  }

  .cta-sub{
    font-size:.9rem;
  }

  .cta-contact-item{
    font-size:.85rem;
  }

}

/* ========================
   JOURNEY CARD (Experience as Projects)
   ======================== */
.journey-card {
  padding: 1.5rem !important;
}
.journey-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1rem 0;
  cursor: pointer;
}
.journey-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.journey-img-wrap:hover img { transform: scale(1.04); }
/* Overlay hidden by default — image always fully visible */
.journey-img-overlay {
  position: absolute; inset: 0;
  background: rgba(6,8,16,0.52);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.journey-img-wrap:hover .journey-img-overlay { opacity: 1; }
/* Touch devices: always show button at bottom of image */
@media (hover: none) {
  .journey-img-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(6,8,16,0.75) 0%, transparent 60%);
  }
}
.journey-view-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(58,142,255,0.45);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.journey-view-btn:hover {
  background: var(--blue-light);
  transform: scale(1.05);
}

/* ========================
   COMPLETE RESPONSIVE OVERHAUL
   ======================== */

/* === Large Tablets (max 1100px) === */
@media (max-width: 1100px) {
  .nav-container { padding: 0 1.5rem; }
  .nav-link { padding: 0.45rem 0.65rem; font-size: 0.82rem; }
  .hero-content { padding: 4rem 1.5rem; }
  .hero-title { font-size: clamp(2.5rem, 7vw, 5rem); }
  .section { padding: 5.5rem 0; }
  .container { padding: 0 1.5rem; }
  .about-grid { gap: 3.5rem; }
  .skills-layout { gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* === Tablets (max 900px) === */
@media (max-width: 900px) {
  .section { padding: 5rem 0; }
  .section-title { font-size: clamp(1.8rem, 5vw, 2.8rem); }
  .section-header { margin-bottom: 3rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .about-image-wrap { max-width: 340px; margin: 0 auto; }
  .about-pills { justify-content: center; }
  .about-content .btn { margin: 0 auto; display: inline-flex; }

  .skills-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .skills-cards { grid-template-columns: repeat(4, 1fr); }

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

  .timeline { max-width: 100%; }
  .journey-img-wrap { height: 180px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-inner { padding: 3rem 1.5rem 2rem; }
}

/* === Mobile (max 768px) === */
@media (max-width: 768px) {
  html { font-size: 15px; }

  /* Navbar */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-container { padding: 0 1.25rem; height: 62px; }
  .nav-logo span { font-size: 1rem; }
  .logo-icon { width: 30px; height: 30px; }

  /* Hero */
  .hero { padding-top: 62px; }
  .hero-content { padding: 3.5rem 1.25rem 3rem; text-align: center; }
  .hero-title { font-size: clamp(2rem, 9vw, 3.5rem); }
  .hero-desc { font-size: 0.95rem; margin: 0 auto 1.75rem; max-width: 100%; }
  .hero-cta { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 1rem; align-items: center; }
  .stat-divider { display: none; }
  .stat { align-items: center; }
  .stat-num { font-size: 1.8rem; }
  .hero-scroll-hint { display: none; }
  .hero-badge { font-size: 0.75rem; }

  /* Marquee */
  .marquee-section { transform: none; margin: 0; }
  .marquee-inner span { font-size: 0.78rem; padding: 0 1rem; }

  /* About */
  .section { padding: 4.5rem 0; }
  .container { padding: 0 1.25rem; }
  .about-image-wrap { max-width: 300px; aspect-ratio: 1/1; }
  .about-tag { bottom: -14px; right: -8px; padding: 0.75rem 1rem; font-size: 0.8rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-img-wrap { height: 150px; }

  /* Skills */
  .skills-cards { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .skill-card { padding: 1rem 0.5rem; }
  .skill-card i { font-size: 1.5rem; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
  .projects-filter { gap: 0.5rem; }
  .filter-btn { padding: 0.45rem 1rem; font-size: 0.8rem; }

  /* Journey / Experience */
  .timeline::before { left: 16px; }
  .timeline-item { gap: 1rem; }
  .timeline-dot { width: 33px; height: 33px; }
  .timeline-card { padding: 1.25rem !important; }
  .timeline-card h3 { font-size: 1rem; }
  .journey-card { padding: 1.25rem !important; }
  .journey-img-wrap { height: 160px; }
  .timeline-tags { gap: 0.35rem; }
  .timeline-tags span { font-size: 0.68rem; padding: 0.2rem 0.6rem; }

  /* CTA */
  .cta-section { padding: 5rem 1.25rem; }
  .cta-title { font-size: clamp(1.7rem, 7vw, 2.5rem); }
  .cta-sub { font-size: 0.93rem; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 280px; justify-content: center; }
  .cta-contact-row { flex-direction: column; align-items: center; gap: 0.85rem; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-inner { padding: 2.5rem 1.25rem 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; font-size: 0.78rem; }

  /* Floating buttons */
  .whatsapp-btn { left: 1rem; bottom: 1.5rem; width: 46px; height: 46px; font-size: 1.3rem; }
  .wa-pulse { width: 46px; height: 46px; }
  .back-to-top { right: 1rem; bottom: 1.5rem; width: 42px; height: 42px; font-size: 0.9rem; }
}

/* === Small Phones (max 560px) === */
@media (max-width: 560px) {
  html { font-size: 14px; }
  .container { padding: 0 1rem; }
  .nav-container { padding: 0 1rem; }

  .hero-title { font-size: clamp(1.85rem, 8.5vw, 3rem); }
  .hero-content { padding: 3rem 1rem 2.5rem; }

  .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .about-image-wrap { max-width: 260px; }
  .about-tag { right: -4px; }

  .skills-cards { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .skill-card i { font-size: 1.3rem; }
  .skill-card span { font-size: 0.65rem; }

  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-logo-text { font-size: 1rem; }
  .footer-socials { justify-content: flex-start; }

  .journey-img-wrap { height: 145px; }
  .timeline-card h3 { font-size: 0.95rem; }
  .timeline::before { left: 14px; }
  .timeline-dot { width: 29px; height: 29px; }
  .timeline-dot::after { width: 9px; height: 9px; }

  .btn { padding: 0.75rem 1.4rem; font-size: 0.88rem; }
  .btn-large { padding: 0.85rem 1.6rem; font-size: 0.92rem; }

  .pill { font-size: 0.75rem; padding: 0.3rem 0.8rem; }
  .section-label { font-size: 0.68rem; letter-spacing: 0.15em; }
}

/* === Extra Small (max 400px) === */
@media (max-width: 400px) {
  html { font-size: 13.5px; }
  .hero-title { font-size: clamp(1.7rem, 8vw, 2.6rem); }
  .skills-cards { grid-template-columns: repeat(2, 1fr); }
  .about-image-wrap { max-width: 220px; }
  .journey-img-wrap { height: 130px; }
  .timeline-item { gap: 0.75rem; }
  .timeline-card { padding: 1rem !important; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-logo span { display: none; }
  .cta-section { padding: 4rem 1rem; }
  .projects-filter { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
  .filter-btn { flex-shrink: 0; }
}

/* === Fix overflow on all screens === */
* { max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
.hero-bg-img { max-width: none; }
.marquee-inner { max-width: none; }
.preloader-bar-wrap { max-width: 220px; }

/* === Ensure no horizontal scroll === */
body, html { overflow-x: hidden; width: 100%; }
.container { width: 100%; box-sizing: border-box; }
.section { width: 100%; overflow-x: hidden; }
.projects-grid, .services-grid, .skills-cards, .about-grid, .skills-layout, .footer-top {
  width: 100%;
}
/* ===============================================
   NEURAL CANVAS — AI Coming Soon section only
   =============================================== */
#aiNeuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}



/* ===============================================
   NIFLAMES AI — COMING SOON SECTION
   =============================================== */
.ai-coming-soon {
  position: relative;
  padding: 130px 20px 120px;
  overflow: hidden;
  text-align: center;
  /* Dark default — pure deep navy */
  background: #04091c;
}

/* Light mode — white/pearl */
[data-theme="light"] .ai-coming-soon {
  background: #f5f8ff;
}

/* ---- Background decorative layer ---- */
.ai-cs-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.ai-cs-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.orb-a {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(58,142,255,0.18) 0%, transparent 70%);
  top: -180px; left: -160px;
  animation: csOrbDrift 12s ease-in-out infinite alternate;
}
.orb-b {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(124,58,237,0.16) 0%, transparent 70%);
  bottom: -120px; right: -120px;
  animation: csOrbDrift 15s ease-in-out infinite alternate-reverse;
}
.orb-c {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: csOrbDrift 9s ease-in-out infinite alternate;
}

/* Light mode orbs — more vivid since bg is white */
[data-theme="light"] .orb-a { background: radial-gradient(circle, rgba(58,142,255,0.22) 0%, transparent 70%); }
[data-theme="light"] .orb-b { background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%); }
[data-theme="light"] .orb-c { background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%); }

@keyframes csOrbDrift {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.18) translate(30px,-25px); }
}

.ai-cs-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,142,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,142,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black, transparent);
}
[data-theme="light"] .ai-cs-grid {
  background-image:
    linear-gradient(rgba(58,142,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,142,255,.1) 1px, transparent 1px);
}

.ai-cs-scanline {
  position: absolute;
  top: -2%; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(58,142,255,0.45), transparent);
  animation: csScan 5s linear infinite;
}
[data-theme="light"] .ai-cs-scanline {
  background: linear-gradient(90deg, transparent, rgba(58,142,255,0.6), transparent);
}
@keyframes csScan {
  from { top: -2%; }
  to   { top: 102%; }
}

/* ---- Content wrapper ---- */
.ai-cs-wrap {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ---- Status pill ---- */
.ai-cs-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 12px;
  border-radius: 100px;
  background: rgba(58,142,255,.1);
  border: 1px solid rgba(58,142,255,.28);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--blue-light, #6fb3ff);
}
[data-theme="light"] .ai-cs-pill {
  background: rgba(58,142,255,.08);
  border-color: rgba(58,142,255,.35);
  color: var(--blue-dark, #1a5fc8);
}
[data-theme="light"] .ai-cs-pill-text { color: rgba(10,15,30,0.65); }
[data-theme="light"] .ai-cs-pill-tag {
  background: rgba(58,142,255,.12);
  color: var(--blue-dark);
}

.ai-cs-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3a8eff;
  box-shadow: 0 0 10px #3a8eff;
  animation: csDotBeat 1.8s ease-in-out infinite;
}
@keyframes csDotBeat {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(.6); opacity: .5; }
}
.ai-cs-pill-text { color: rgba(240,244,255,.7); }
.ai-cs-pill-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(58,142,255,.18);
  color: #3a8eff;
  font-size: .65rem;
  letter-spacing: .14em;
}

/* ---- Hex brand mark ---- */
.ai-cs-brand { position: relative; margin-bottom: -4px; }
.ai-cs-hex-wrap {
  position: relative;
  width: 100px; height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-cs-hex {
  width: 80px; height: 80px;
  filter: drop-shadow(0 0 20px rgba(58,142,255,.7));
  animation: csHexBreath 4s ease-in-out infinite alternate;
}
@keyframes csHexBreath {
  from { filter: drop-shadow(0 0 12px rgba(58,142,255,.5)); }
  to   { filter: drop-shadow(0 0 32px rgba(58,142,255,1)); }
}
.ai-cs-hex-outer {
  fill: none; stroke: #3a8eff; stroke-width: 2;
  transform-origin: 40px 40px;
  animation: csHexSpin 20s linear infinite;
}
.ai-cs-hex-inner {
  fill: rgba(58,142,255,.07);
  stroke: rgba(58,142,255,.4); stroke-width: 1;
}
.ai-cs-hex-text {
  fill: #3a8eff;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 20px; font-weight: 800; letter-spacing: -1px;
}
@keyframes csHexSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ai-cs-hex-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(58,142,255,.2);
  animation: csRingPulse 3s ease-out infinite;
}
.ring-1 { width: 110px; height: 110px; animation-delay: 0s; }
.ring-2 { width: 140px; height: 140px; animation-delay: .8s; }
.ring-3 { width: 170px; height: 170px; animation-delay: 1.6s; }
@keyframes csRingPulse {
  0%   { transform: scale(.85); opacity: .6; }
  100% { transform: scale(1.1); opacity: 0; }
}

/* ---- Headline ---- */
.ai-cs-headline { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ai-cs-pre-title {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(240,244,255,.4);
}
[data-theme="light"] .ai-cs-pre-title { color: rgba(10,15,30,.4); }

.ai-cs-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(3.8rem, 10vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  color: #f0f4ff;
  font-style: normal;
  margin: 0;
}
[data-theme="light"] .ai-cs-title { color: #0a0f1e; }

.ai-cs-em {
  font-style: normal;
  background: linear-gradient(120deg, #3a8eff 0%, #a855f7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 250% 100%;
  animation: csGradShift 5s ease infinite alternate;
}
@keyframes csGradShift {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 0%; }
}

.ai-cs-subtitle {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240,244,255,.35);
  margin-top: 4px;
}
[data-theme="light"] .ai-cs-subtitle { color: rgba(10,15,30,.4); }

/* ---- Description ---- */
.ai-cs-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(240,244,255,.55);
  max-width: 600px;
}
[data-theme="light"] .ai-cs-desc { color: rgba(10,15,30,.6); }

/* ---- Feature chips ---- */
.ai-cs-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ai-cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: rgba(240,244,255,.6);
  transition: all .25s ease;
  cursor: default;
}
[data-theme="light"] .ai-cs-chip {
  background: rgba(255,255,255,.7);
  border-color: rgba(58,142,255,.2);
  color: rgba(10,15,30,.65);
  box-shadow: 0 2px 8px rgba(58,142,255,.08);
}
.ai-cs-chip i { color: #3a8eff; font-size: .78rem; }
.ai-cs-chip:hover {
  background: rgba(58,142,255,.12);
  border-color: rgba(58,142,255,.35);
  color: #f0f4ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(58,142,255,.18);
}
[data-theme="light"] .ai-cs-chip:hover { color: #0a0f1e; }

/* ---- Progress bar ---- */
.ai-cs-progress-wrap { width: 100%; max-width: 480px; }
.ai-cs-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(240,244,255,.4);
  letter-spacing: .08em;
}
[data-theme="light"] .ai-cs-progress-header { color: rgba(10,15,30,.45); }
.ai-cs-progress-header i { color: #3a8eff; margin-right: 5px; }
.ai-cs-progress-pct { color: #3a8eff; font-weight: 700; }

.ai-cs-progress-track {
  position: relative;
  height: 5px;
  background: rgba(255,255,255,.07);
  border-radius: 100px;
  overflow: hidden;
}
[data-theme="light"] .ai-cs-progress-track { background: rgba(58,142,255,.12); }

.ai-cs-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3a8eff, #a855f7, #06b6d4);
  background-size: 200% 100%;
  border-radius: 100px;
  animation:
    csFillGrow 2s cubic-bezier(.25,.46,.45,.94) 1s forwards,
    csBarShift 3s ease infinite 3s;
}
@keyframes csFillGrow { from { width:0%; } to { width:68%; } }
@keyframes csBarShift {
  0%,100% { background-position: 0% 0%; }
  50%     { background-position: 100% 0%; }
}
.ai-cs-progress-glow {
  position: absolute;
  top: 0; left: 0;
  height: 100%; width: 68%;
  background: linear-gradient(90deg, transparent 60%, rgba(255,255,255,.35));
  border-radius: 100px;
  animation: csFillGrow 2s cubic-bezier(.25,.46,.45,.94) 1s forwards;
}

/* ---- CTA button ---- */
.ai-cs-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.ai-cs-btn-primary {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  border-radius: 100px;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #3a8eff 0%, #7c3aed 100%);
  box-shadow: 0 8px 36px rgba(58,142,255,.4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.ai-cs-btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 52px rgba(58,142,255,.6);
}
.ai-cs-btn-inner {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
}
.ai-cs-btn-shine {
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: rgba(255,255,255,.2);
  transform: skewX(-20deg);
  animation: csShine 3.5s ease-in-out infinite;
}
@keyframes csShine {
  0%  { left: -75%; opacity: 0; }
  20% { opacity: 1; }
  50% { left: 120%; opacity: 0; }
  100%{ left: 120%; opacity: 0; }
}
.ai-cs-cta-note {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(240,244,255,.28);
  letter-spacing: .06em;
}
[data-theme="light"] .ai-cs-cta-note { color: rgba(10,15,30,.35); }

/* ---- Divider ---- */
.ai-cs-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  margin-top: 8px;
}
.ai-cs-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58,142,255,.35), transparent);
}
[data-theme="light"] .ai-cs-divider-line {
  background: linear-gradient(90deg, transparent, rgba(58,142,255,.5), transparent);
}
.ai-cs-divider-icon {
  color: rgba(58,142,255,.5);
  font-size: .9rem;
  animation: csDivIconPulse 2.5s ease-in-out infinite;
}
@keyframes csDivIconPulse {
  0%,100% { color: rgba(58,142,255,.4); }
  50%     { color: rgba(58,142,255,.9); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .ai-coming-soon { padding: 90px 16px 80px; }
  .ai-cs-title { font-size: 3.4rem; letter-spacing: -2px; }
  .ai-cs-chips { gap: 8px; }
  .ai-cs-chip { font-size: .72rem; padding: 7px 14px; }
  .ai-cs-btn-inner { padding: 13px 28px; }
}

@media (max-width: 768px) {
  .about-pills {
    margin-bottom: 20px;
  }

  .about-content .btn {
    margin-top: 10px;
  }
}