/* ===== DESIGN TOKENS ===== */
:root {
  --color-bg: #ffffff;
  --color-surface: #f5f5f7;
  --color-dark: #1d1d1f;
  --color-mid: #6e6e73;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-accent-light: rgba(0, 113, 227, 0.08);
  --color-accent-glow: rgba(0, 113, 227, 0.4);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-white: #ffffff;

  /* Futuristic accent colors */
  --color-cyber-blue: #00d4ff;
  --color-cyber-purple: #7c3aed;
  --color-cyber-pink: #ec4899;

  --font-heading: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(0, 113, 227, 0.3);

  --transition: 200ms ease;
  --transition-slow: 400ms ease;

  --nav-height: 72px;
}

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

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-bg);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0; color: var(--color-mid); }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-4xl) 0;
}

.section-surface {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  overflow: visible;
}

.section-header h2 {
  padding-bottom: 0.15em;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin: 0 0 var(--space-md) 0;
  display: block;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--color-mid);
  margin-top: var(--space-md);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-cta {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-cta:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ===== NAVBAR — semi-transparent ===== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--color-border);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-md);
}

.logo-link {
  display: flex;
  align-items: center;
  margin-right: auto;
  transition: opacity var(--transition);
}

.logo-link:hover {
  opacity: 0.75;
}

.nav-logo {
  height: var(--nav-height);
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-dark);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 1px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO — Futuristic theme ===== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f1a 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Animated gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
  animation: float-orb 15s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  animation: float-orb 12s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Particle canvas container */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 113, 227, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 113, 227, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Scan line effect */
.hero-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 212, 255, 0.02) 50%,
    transparent 100%
  );
  background-size: 100% 4px;
  animation: scanline 8s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.hero-content {
  max-width: 780px;
  padding: 0 var(--space-lg);
  z-index: 2;
  position: relative;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cyber-blue);
  margin-bottom: var(--space-lg);
  display: block;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.hero h1 {
  margin-bottom: var(--space-lg);
  color: var(--color-white);
  text-shadow: 0 0 40px rgba(0, 113, 227, 0.3);
}

/* Gradient text effect for hero title */
.hero h1 .word {
  background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-subline {
  font-size: 1.25rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* Glowing CTA buttons in hero */
.hero .btn-cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-cyber-blue) 100%);
  box-shadow: 0 0 20px rgba(0, 113, 227, 0.4), 0 0 40px rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero .btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hero .btn-cta:hover::before {
  left: 100%;
}

.hero .btn-cta:hover {
  box-shadow: 0 0 30px rgba(0, 113, 227, 0.6), 0 0 60px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-cyber-blue);
  color: var(--color-cyber-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2.5s ease-in-out infinite;
  z-index: 2;
}

.scroll-indicator span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Animated scroll line */
.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-cyber-blue), transparent);
  margin: 10px auto 0;
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 1; height: 60px; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== WORD SPLIT ANIMATION ===== */
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.word-reveal .word.visible {
  opacity: 1;
  transform: none;
}

/* ===== STATS BAR ===== */
#stats {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

#stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 113, 227, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 400ms ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 113, 227, 0.15);
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.stat-number span {
  background: linear-gradient(135deg, var(--color-cyber-blue), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ===== SERVICES ===== */
#services {
  background: var(--color-bg);
}

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

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Animated border glow */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: all 400ms ease;
}

.service-card:hover::before {
  background: linear-gradient(135deg, var(--color-accent), var(--color-cyber-blue), var(--color-cyber-purple));
  opacity: 1;
}

.service-card:hover {
  background: var(--color-bg);
  box-shadow: 0 20px 40px rgba(0, 113, 227, 0.15), 0 0 30px rgba(0, 113, 227, 0.1);
  transform: translateY(-8px);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--color-accent), var(--color-cyber-blue));
  color: var(--color-white);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(0, 113, 227, 0.4);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ===== PORTFOLIO ===== */
#portfolio {
  background: var(--color-surface);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.portfolio-filter-btn {
  padding: 0.625rem 1.5rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: var(--color-dark);
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 300ms ease;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.portfolio-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-border);
  position: relative;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  /* background: linear-gradient(135deg, var(--color-accent), var(--color-cyber-purple), var(--color-cyber-blue)); */
  border-radius: calc(var(--radius-md) + 2px);
  opacity: 0;
  z-index: -1;
  transition: opacity 400ms ease;
}

.portfolio-card:hover::before {
  opacity: 1;
}

.portfolio-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 113, 227, 0.2), 0 0 40px rgba(0, 113, 227, 0.1);
}

.card-preview {
  height: 200px;
  background: #1d1d1f;
  position: relative;
  overflow: hidden;
}

/* Animated shine effect on hover */
.card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.portfolio-card:hover .card-preview::before {
  left: 150%;
}

.card-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.08));
  pointer-events: none;
}

/* Client logo in card preview */
.card-preview .client-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 60%;
  max-height: 60%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 400ms ease;
}

.portfolio-card:hover .client-logo {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.card-body {
  padding: var(--space-lg);
}

.category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.portfolio-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
}

.portfolio-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* ===== WHY ARCAN ===== */
#why-arcan {
  background: var(--color-bg);
}

.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.differentiator {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all 300ms ease;
}

.differentiator:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 113, 227, 0.2);
  transform: translateY(-4px);
}

.diff-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.25;
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.differentiator h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
}

.differentiator p {
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ===== CONTACT ===== */
#contact {
  background: var(--color-surface);
}

#contact .section-header h2 {
  color: var(--color-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.contact-item h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
  font-size: 1rem;
}

.contact-item a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-accent);
}

.contact-form {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  transition: all 300ms ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

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

.contact-form .btn {
  align-self: flex-start;
}

.form-success {
  text-align: center;
  padding: var(--space-2xl);
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
}

.form-success h3 { color: #059669; margin-bottom: var(--space-sm); }
.form-success p  { color: var(--color-mid); }

/* ===== FOOTER — rgb(245, 245, 247) ===== */
#footer {
  background: var(--color-surface); /* #f5f5f7 */
  color: var(--color-dark);
  padding: var(--space-3xl) 0 var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  color: var(--color-mid);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-dark);
}

.footer-col p {
  color: var(--color-mid);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer-tagline {
  color: var(--color-mid);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 260px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
  text-align: center;
}

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

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

.reveal-scale {
  opacity: 0;
  transform: scale(1.05);
}

.reveal-scale.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container { padding: 0 var(--space-md); }
  section { padding: var(--space-3xl) 0; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
  }

  .nav-menu.open { max-height: 450px; }

  .nav-menu ul { flex-direction: column; width: 100%; gap: 0; }

  .nav-menu a {
    display: block;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu a::after { display: none; }

  .navbar-content .btn { display: none; }

  .hero { padding-top: var(--nav-height); }
  .hero h1 { font-size: 2.5rem; }
  .hero-subline { font-size: 1.1rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .scroll-indicator { bottom: 1rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }

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

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-filters { gap: var(--space-sm); }
  .portfolio-filter-btn { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

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

  .contact-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .contact-form { padding: var(--space-lg); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (max-width: 600px) {
  .container { padding: 0 var(--space-md); }
  section { padding: var(--space-2xl) 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.875rem; }
  .hero-subline { font-size: 1rem; }
  .stats-grid { gap: var(--space-md); }
  .stat-number { font-size: 1.75rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: var(--space-2xl); }
  .contact-form .btn { width: 100%; }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0.25rem 0.125rem;
  transition: color var(--transition);
  line-height: 1;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--color-dark);
}

.lang-sep {
  color: var(--color-border);
  font-size: 0.7rem;
  user-select: none;
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-lg);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8));
    transform: scale(1.05);
  }
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-cyber-blue));
  border-radius: 2px;
  animation: loader-progress 1.5s ease-in-out infinite;
}

@keyframes loader-progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ===== FLOATING ACTION ELEMENTS ===== */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float-around 20s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  width: 200px;
  height: 200px;
  background: var(--color-cyber-purple);
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.floating-shape:nth-child(3) {
  width: 250px;
  height: 250px;
  background: var(--color-cyber-blue);
  bottom: 10%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes float-around {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(50px, -50px) rotate(90deg); }
  50% { transform: translate(0, -100px) rotate(180deg); }
  75% { transform: translate(-50px, -50px) rotate(270deg); }
}

/* ===== CURSOR GLOW EFFECT ===== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ===== GLITCH TEXT EFFECT (optional for headings) ===== */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--color-cyber-pink);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: 2px 0 var(--color-cyber-blue);
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); }
  20% { clip-path: polygon(0 15%, 100% 15%, 100% 45%, 0 45%); }
  40% { clip-path: polygon(0 45%, 100% 45%, 100% 75%, 0 75%); }
  60% { clip-path: polygon(0 25%, 100% 25%, 100% 55%, 0 55%); }
  80% { clip-path: polygon(0 55%, 100% 55%, 100% 85%, 0 85%); }
  100% { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); }
}

/* ===== TYPED CURSOR EFFECT ===== */
.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--color-cyber-blue);
  margin-left: 4px;
  animation: blink-cursor 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
