/* =========================================
   Mabdev IT Solutions - Premium Redesign
   Vibrant, Modern, Elegant
   ========================================= */

/* -----------------------------------------
   CSS Variables
   ----------------------------------------- */
:root {
  /* Deep Slate Backgrounds */
  --color-slate-950: #020617;
  --color-slate-900: #0f172a;
  --color-slate-850: #131c31;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;

  /* Vibrant Blue Spectrum */
  --color-blue-900: #1e3a8a;
  --color-blue-700: #1d4ed8;
  --color-blue-600: #2563eb;
  --color-blue-500: #3b82f6;
  --color-blue-400: #60a5fa;
  --color-blue-300: #93c5fd;

  /* Electric Cyan Accents */
  --color-cyan-500: #06b6d4;
  --color-cyan-400: #22d3ee;
  --color-cyan-300: #67e8f9;

  /* Purple/Violet for Gradients */
  --color-violet-600: #7c3aed;
  --color-violet-500: #8b5cf6;
  --color-violet-400: #a78bfa;

  /* Magenta Pop */
  --color-fuchsia-500: #d946ef;
  --color-fuchsia-400: #e879f9;

  /* Core Colors */
  --color-white: #ffffff;
  --color-black: #000000;

  /* Semantic */
  --color-success: #10b981;
  --color-error: #ef4444;

  /* Typography */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Source Code Pro', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1280px;
  --nav-height: 80px;
}

/* -----------------------------------------
   Reset & Base
   ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-slate-200);
  background: var(--color-slate-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Smooth page transitions */
body.loading * {
  transition: none !important;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Selection */
::selection {
  background: var(--color-blue-500);
  color: var(--color-white);
}

/* -----------------------------------------
   Utility Classes
   ----------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-32) 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-blue-400);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
}

.section__label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-blue-400);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.section__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.section__title span {
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-blue-400) 50%, var(--color-cyan-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-slate-400);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--color-blue-400) 0%, var(--color-cyan-400) 50%, var(--color-violet-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -----------------------------------------
   Animated Background Elements
   ----------------------------------------- */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black, transparent);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.bg-glow--blue {
  background: var(--color-blue-600);
}

.bg-glow--cyan {
  background: var(--color-cyan-500);
}

.bg-glow--violet {
  background: var(--color-violet-600);
}

.bg-glow--fuchsia {
  background: var(--color-fuchsia-500);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(0, -100px) scale(1); }
  75% { transform: translate(-50px, -50px) scale(0.9); }
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* -----------------------------------------
   Navigation
   ----------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-base);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav--scrolled::before {
  opacity: 1;
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  transition: transform var(--transition-base);
}

.nav__logo:hover .nav__logo-img {
  transform: scale(1.05);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-slate-400);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--color-white);
  background: rgba(59, 130, 246, 0.1);
}

.nav__link--cta {
  background: linear-gradient(135deg, var(--color-blue-600) 0%, var(--color-blue-500) 100%);
  color: var(--color-white);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.nav__link--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-cyan-500) 0%, var(--color-blue-400) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav__link--cta:hover {
  background: linear-gradient(135deg, var(--color-blue-600) 0%, var(--color-blue-500) 100%);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 0 60px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.nav__link--cta:hover::before {
  opacity: 1;
}

.nav__link--cta span {
  position: relative;
  z-index: 1;
}

.nav__lang {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-slate-400);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-slate-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav__lang:hover {
  color: var(--color-white);
  border-color: var(--color-blue-500);
  background: rgba(59, 130, 246, 0.1);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-2);
  z-index: 1001;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* -----------------------------------------
   Hero Section - SPECTACULAR
   ----------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--color-slate-950);
}

/* Animated gradient background */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% -20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
  animation: hero-bg-shift 15s ease-in-out infinite;
}

@keyframes hero-bg-shift {
  0%, 100% { opacity: 1; filter: hue-rotate(0deg); }
  50% { opacity: 0.8; filter: hue-rotate(20deg); }
}

/* Floating orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-violet-600));
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--color-cyan-500), var(--color-blue-500));
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--color-fuchsia-500), var(--color-violet-500));
  top: 50%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  25% { transform: translate(30px, -30px) scale(1.05); opacity: 0.7; }
  50% { transform: translate(0, -50px) scale(1); opacity: 0.5; }
  75% { transform: translate(-30px, -20px) scale(0.95); opacity: 0.6; }
}

/* Grid pattern */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image:
    linear-gradient(to bottom, transparent, black 20%, black 80%, transparent),
    radial-gradient(ellipse 100% 100% at 50% 50%, black 30%, transparent 70%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  animation: grid-move 30s linear infinite;
}

@keyframes grid-move {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(80px); }
}

/* Animated particles */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-blue-400);
  border-radius: 50%;
  opacity: 0;
  animation: particle-rise 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 0.5s; }
.particle:nth-child(10) { left: 15%; animation-delay: 1.5s; }
.particle:nth-child(11) { left: 25%; animation-delay: 2.5s; }
.particle:nth-child(12) { left: 35%; animation-delay: 3.5s; }
.particle:nth-child(13) { left: 45%; animation-delay: 4.5s; }
.particle:nth-child(14) { left: 55%; animation-delay: 5.5s; }
.particle:nth-child(15) { left: 65%; animation-delay: 6.5s; }
.particle:nth-child(16) { left: 75%; animation-delay: 7.5s; }
.particle:nth-child(17) { left: 85%; animation-delay: 0.25s; }
.particle:nth-child(18) { left: 95%; animation-delay: 1.25s; }
.particle:nth-child(19) { left: 5%; animation-delay: 2.25s; }
.particle:nth-child(20) { left: 12%; animation-delay: 3.25s; }

@keyframes particle-rise {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Hero content */
.hero__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 900px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-cyan-400);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-8);
  padding: var(--space-3) var(--space-5);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  animation: badge-glow 3s ease-in-out infinite;
}

.hero__badge::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--color-cyan-400);
  border-radius: 50%;
  animation: badge-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px var(--color-cyan-400);
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.5; }
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.2); }
  50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.4); }
}

.hero__headline {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-8xl));
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--space-8);
  letter-spacing: -0.02em;
}

.hero__headline-line {
  display: block;
  overflow: hidden;
}

.hero__headline-text {
  display: inline-block;
  color: var(--color-white);
}

.hero__headline-gradient {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--color-blue-400) 0%,
    var(--color-cyan-400) 25%,
    var(--color-violet-400) 50%,
    var(--color-fuchsia-400) 75%,
    var(--color-blue-400) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s linear infinite;
}

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

.hero__description {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--color-slate-400);
  max-width: 600px;
  margin-bottom: var(--space-10);
  line-height: 1.8;
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-blue-600) 0%, var(--color-blue-500) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-cyan-500) 0%, var(--color-blue-400) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.4);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary span {
  position: relative;
  z-index: 1;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-slate-200);
  border: 1px solid var(--color-slate-700);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--color-blue-500);
  color: var(--color-blue-400);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
}

.btn__icon {
  transition: transform var(--transition-base);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* Hero stats */
.hero__stats {
  display: flex;
  gap: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
  text-align: left;
}

.hero__stat-value {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.hero__stat-value span {
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-slate-500);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll-icon {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-slate-600);
  border-radius: var(--radius-full);
  position: relative;
}

.hero__scroll-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-blue-400);
  border-radius: var(--radius-full);
  animation: scroll-dot 2s ease-in-out infinite;
}

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

@keyframes scroll-dot {
  0%, 100% { opacity: 1; top: 8px; }
  50% { opacity: 0.3; top: 20px; }
}

/* -----------------------------------------
   Services Section
   ----------------------------------------- */
.services {
  background: linear-gradient(180deg, var(--color-slate-950) 0%, var(--color-slate-900) 100%);
  position: relative;
  overflow: hidden;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.service-card {
  position: relative;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue-500), var(--color-cyan-400), var(--color-violet-500));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(59, 130, 246, 0.1),
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(59, 130, 246, 0.1);
}

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

.service-card:hover::after {
  opacity: 1;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  color: var(--color-blue-400);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-white);
}

.service-card__description {
  font-size: var(--text-sm);
  color: var(--color-slate-400);
  line-height: 1.8;
}

/* -----------------------------------------
   Tech Stack Section
   ----------------------------------------- */
.tech {
  background: var(--color-slate-900);
  position: relative;
  overflow: hidden;
}

.tech::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.tech-category {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.tech-category::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(59, 130, 246, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.tech-category:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
}

.tech-category:hover::after {
  opacity: 1;
}

.tech-category__name {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tech-category__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tech-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
}

.tech-item__name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-slate-200);
}

.tech-item__level {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-slate-500);
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
}

.tech-item__level--expert {
  color: var(--color-cyan-400);
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* -----------------------------------------
   Portfolio Section
   ----------------------------------------- */
.portfolio {
  background: linear-gradient(180deg, var(--color-slate-900) 0%, var(--color-slate-950) 100%);
  position: relative;
  overflow: hidden;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.project-card {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 50%,
    rgba(139, 92, 246, 0.1) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(59, 130, 246, 0.1),
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(59, 130, 246, 0.15);
}

.project-card:hover::before,
.project-card:hover::after {
  opacity: 1;
}

.project-card__header {
  position: relative;
  padding: var(--space-8);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  z-index: 1;
}

.project-card__category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-1) var(--space-3);
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan-400);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.project-card__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.project-card__description {
  font-size: var(--text-sm);
  color: var(--color-slate-400);
  line-height: 1.8;
}

.project-card__body {
  position: relative;
  padding: var(--space-8);
  z-index: 1;
}

.project-card__highlights {
  margin-bottom: var(--space-6);
}

.project-card__highlight {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-slate-300);
  margin-bottom: var(--space-2);
}

.project-card__highlight::before {
  content: '';
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-cyan-400));
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.project-card__tech-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--color-slate-400);
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.project-card__tech-tag:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--color-blue-400);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-blue-400);
  transition: all var(--transition-fast);
}

.project-card__link:hover {
  color: var(--color-cyan-400);
  gap: var(--space-3);
}

.project-card__link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.project-card__link:hover svg {
  transform: translateX(4px);
}

.portfolio__cta {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-slate-400);
  font-style: italic;
}

/* -----------------------------------------
   About Section
   ----------------------------------------- */
.about {
  background: var(--color-slate-950);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: start;
}

.about__image-wrapper {
  position: relative;
}

.about__image {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--color-slate-800), var(--color-slate-900));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-3xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, transparent 50%, rgba(139, 92, 246, 0.2) 100%);
}

.about__image::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--color-blue-500), var(--color-violet-500));
  border-radius: var(--radius-3xl);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.about__image:hover::after {
  opacity: 1;
}

.about__image-placeholder {
  color: var(--color-slate-500);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-4);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.about__stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.about__stat {
  text-align: center;
  padding: var(--space-4);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.about__stat:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
}

.about__stat-value {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__stat-label {
  font-size: var(--text-xs);
  color: var(--color-slate-500);
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about__text h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.about__bio {
  font-size: var(--text-base);
  color: var(--color-slate-400);
  line-height: 1.9;
  margin-bottom: var(--space-8);
}

.about__bio p {
  margin-bottom: var(--space-4);
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about__value {
  padding: var(--space-5);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-xl);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--color-blue-500), var(--color-cyan-500)) 1;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.about__value:hover {
  background: rgba(59, 130, 246, 0.05);
  transform: translateX(8px);
}

.about__value-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.about__value-description {
  font-size: var(--text-sm);
  color: var(--color-slate-400);
}

/* -----------------------------------------
   Contact Section
   ----------------------------------------- */
.contact {
  background: linear-gradient(180deg, var(--color-slate-950) 0%, var(--color-slate-900) 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.contact__content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-10);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(20px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-slate-300);
}

.form-group input,
.form-group textarea {
  padding: var(--space-4);
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 0 30px rgba(59, 130, 246, 0.1);
}

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

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

.contact__submit {
  margin-top: var(--space-4);
}

.contact__submit .btn {
  width: 100%;
}

.contact__info {
  margin-top: var(--space-10);
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 500;
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
  transition: all var(--transition-fast);
}

.contact__email:hover {
  filter: brightness(1.2);
}

.contact__response {
  font-size: var(--text-sm);
  color: var(--color-slate-500);
}

.contact__content--email-only {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.contact__content--email-only .contact__info {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  padding: var(--space-10);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(20px);
}

.contact__content--email-only .contact__email {
  font-size: var(--text-xl);
}

/* -----------------------------------------
   Footer
   ----------------------------------------- */
.footer {
  background: var(--color-slate-950);
  padding: var(--space-8) 0;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer__logo {
  height: 28px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer__logo:hover {
  opacity: 1;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-slate-500);
}

.footer__address {
  font-size: var(--text-sm);
  color: var(--color-slate-500);
  text-align: center;
  line-height: 1.6;
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-slate-600);
}

/* -----------------------------------------
   Animations
   ----------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 100ms; }
.stagger-3 { transition-delay: 200ms; }
.stagger-4 { transition-delay: 300ms; }
.stagger-5 { transition-delay: 400ms; }
.stagger-6 { transition-delay: 500ms; }

/* Text reveal animation */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal.visible span {
  transform: translateY(0);
}

/* -----------------------------------------
   Mobile Responsive
   ----------------------------------------- */
@media (max-width: 1024px) {
  .hero__stats {
    gap: var(--space-8);
  }

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

  .about__image-wrapper {
    order: -1;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    transition: right var(--transition-base);
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: var(--space-4);
  }

  .nav__link {
    font-size: var(--text-xl);
    padding: var(--space-3) var(--space-6);
  }

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

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

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

  .hero__headline {
    font-size: clamp(var(--text-3xl), 10vw, var(--text-5xl));
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-6);
    align-items: flex-start;
  }

  .hero__cta {
    flex-direction: column;
  }

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

  .section__title {
    font-size: var(--text-3xl);
  }

  .services__grid,
  .tech__grid {
    grid-template-columns: 1fr;
  }

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

  .project-card {
    min-width: 0;
  }

  .about__stats {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .footer__brand {
    flex-direction: column;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-8));
  }

  .section {
    padding: var(--space-20) 0;
  }

  .hero__badge {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-4);
  }

  .hero__description {
    font-size: var(--text-base);
  }

  .contact__form {
    padding: var(--space-6);
  }
}

/* -----------------------------------------
   Custom Cursor (Optional - Desktop)
   ----------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-blue-400);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease, width 0.15s ease, height 0.15s ease;
    transform: translate(-50%, -50%);
  }

  .cursor--hover {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--color-cyan-400);
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--color-blue-400);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
  }
}
