/* ============================================
   SMART TECH MEDIA - Modern Website Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary palette - vibrant */
  --primary: #6C63FF;
  --primary-light: #8B85FF;
  --primary-dark: #4A42DB;
  --secondary: #00D4AA;
  --secondary-light: #33DFBC;
  --secondary-dark: #00B892;
  --accent: #FF6B9D;
  --accent-light: #FF8DB5;
  --accent-dark: #E5507F;
  --warm: #FFB347;
  --electric: #00E5FF;

  /* Neutral palette */
  --dark: #0a0a1a;
  --dark-2: #12122a;
  --dark-3: #1a1a3e;
  --gray-900: #1e1e3f;
  --gray-800: #2a2a50;
  --gray-700: #3d3d6b;
  --gray-600: #5a5a8a;
  --gray-400: #9090b8;
  --gray-300: #b8b8d4;
  --gray-200: #d4d4e8;
  --gray-100: #ededf5;
  --white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6C63FF 0%, #00D4AA 100%);
  --gradient-accent: linear-gradient(135deg, #FF6B9D 0%, #FFB347 100%);
  --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 40%, #12122a 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-vibrant: linear-gradient(135deg, #6C63FF 0%, #FF6B9D 50%, #FFB347 100%);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(108, 99, 255, 0.08);
  --shadow-md: 0 8px 30px rgba(108, 99, 255, 0.12);
  --shadow-lg: 0 20px 60px rgba(108, 99, 255, 0.15);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.3);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--white);
  background: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

ul {
  list-style: none;
}

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

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray-400);
  max-width: 600px;
  line-height: 1.8;
}

/* ---------- Animated Background Particles ---------- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---------- Custom Cursor ---------- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: all 0.15s ease-out;
  opacity: 0.5;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  transition: opacity 0.6s, visibility 0.6s;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--dark-3);
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  animation: loading 1.2s ease-in-out infinite;
}

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

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(108, 99, 255, 0.3)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 25px rgba(108, 99, 255, 0.6)); transform: scale(1.05); }
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 99, 255, 0.1);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo img {
  height: 45px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

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

.nav-cta {
  padding: 10px 28px !important;
  background: var(--gradient-primary);
  border-radius: 50px;
  font-weight: 600 !important;
  color: var(--white) !important;
  transition: all var(--transition-smooth) !important;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

/* Hamburger menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

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

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

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

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  animation: float-slow 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  border-radius: 50%;
  animation: float-slow 10s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

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

.hero-content {
  padding: 40px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 212, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-title .typed-text {
  display: block;
  min-height: 1.2em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--gray-400);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gray-700);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  position: relative;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-float 6s ease-in-out infinite;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(108, 99, 255, 0.25);
  top: 10%;
  left: 10%;
}

.hero-orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(0, 212, 170, 0.2);
  bottom: 15%;
  right: 5%;
  animation-delay: -2s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(255, 107, 157, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -4s;
}

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

.hero-brain-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  z-index: 2;
  opacity: 0.9;
  animation: brain-pulse 4s ease-in-out infinite;
}

@keyframes brain-pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(108, 99, 255, 0.4)); }
  50% { filter: drop-shadow(0 0 40px rgba(108, 99, 255, 0.7)); }
}

/* Floating cards in hero */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 3;
  animation: float-card 5s ease-in-out infinite;
}

.floating-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-card-1 {
  top: 15%;
  right: 0;
  animation-delay: 0s;
}

.floating-card-1 .icon { background: rgba(108, 99, 255, 0.2); }

.floating-card-2 {
  bottom: 25%;
  left: -5%;
  animation-delay: -1.5s;
}

.floating-card-2 .icon { background: rgba(0, 212, 170, 0.2); }

.floating-card-3 {
  bottom: 10%;
  right: 10%;
  animation-delay: -3s;
}

.floating-card-3 .icon { background: rgba(255, 107, 157, 0.2); }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- About Section ---------- */
.about {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

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

.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.about-brain-box {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-brain-box .decorative-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.about-brain-svg {
  width: 78%;
  height: 78%;
  z-index: 2;
  position: relative;
  animation: brain-pulse 4s ease-in-out infinite;
}

.about-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 1;
}

.about-orb-1 {
  width: 60%;
  height: 60%;
  background: rgba(108, 99, 255, 0.2);
  top: 10%;
  left: 5%;
  animation: orb-float 7s ease-in-out infinite;
}

.about-orb-2 {
  width: 50%;
  height: 50%;
  background: rgba(0, 212, 170, 0.15);
  bottom: 10%;
  right: 5%;
  animation: orb-float 9s ease-in-out infinite reverse;
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-experience-badge .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-experience-badge .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.about-content .about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 35px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
}

.about-feature:hover {
  border-color: rgba(108, 99, 255, 0.2);
  background: rgba(108, 99, 255, 0.05);
  transform: translateY(-2px);
}

.about-feature .feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(108, 99, 255, 0.1);
}

.about-feature h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ---------- Process / How We Work ---------- */
.process {
  padding: var(--section-padding);
  background: var(--dark-2);
  position: relative;
  z-index: 1;
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
}

.process-header .section-subtitle {
  margin: 0 auto;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 15%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent), transparent);
  opacity: 0.2;
}

.process-step {
  text-align: center;
  padding: 40px 30px;
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-smooth);
}

.process-step:hover {
  border-color: rgba(108, 99, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.process-step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.process-step:nth-child(1) .process-step-number { background: rgba(108, 99, 255, 0.15); color: var(--primary-light); border: 2px solid rgba(108, 99, 255, 0.3); }
.process-step:nth-child(2) .process-step-number { background: rgba(0, 212, 170, 0.15); color: var(--secondary-light); border: 2px solid rgba(0, 212, 170, 0.3); }
.process-step:nth-child(3) .process-step-number { background: rgba(255, 107, 157, 0.15); color: var(--accent-light); border: 2px solid rgba(255, 107, 157, 0.3); }
.process-step:nth-child(4) .process-step-number { background: rgba(255, 179, 71, 0.15); color: var(--warm); border: 2px solid rgba(255, 179, 71, 0.3); }
.process-step:nth-child(5) .process-step-number { background: rgba(0, 229, 255, 0.15); color: var(--electric); border: 2px solid rgba(0, 229, 255, 0.3); }
.process-step:nth-child(6) .process-step-number { background: rgba(108, 99, 255, 0.15); color: var(--primary-light); border: 2px solid rgba(108, 99, 255, 0.3); }

.process-step .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ---------- Services Section ---------- */
.services {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.services-header {
  text-align: center;
  margin-bottom: 70px;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

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

.service-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px 35px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: rgba(108, 99, 255, 0.15);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:nth-child(2)::before { background: linear-gradient(90deg, #00D4AA, #00E5FF); }
.service-card:nth-child(3)::before { background: linear-gradient(90deg, #FF6B9D, #FFB347); }
.service-card:nth-child(4)::before { background: linear-gradient(90deg, #FFB347, #FF6B9D); }
.service-card:nth-child(5)::before { background: var(--gradient-primary); }
.service-card:nth-child(6)::before { background: linear-gradient(90deg, #00E5FF, #6C63FF); }
.service-card:nth-child(7)::before { background: linear-gradient(90deg, #FF6B9D, #6C63FF); }
.service-card:nth-child(8)::before { background: linear-gradient(90deg, #00D4AA, #FFB347); }

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  position: relative;
}

.service-card:nth-child(1) .service-icon { background: rgba(108, 99, 255, 0.12); }
.service-card:nth-child(2) .service-icon { background: rgba(0, 212, 170, 0.12); }
.service-card:nth-child(3) .service-icon { background: rgba(255, 107, 157, 0.12); }
.service-card:nth-child(4) .service-icon { background: rgba(255, 179, 71, 0.12); }
.service-card:nth-child(5) .service-icon { background: rgba(0, 229, 255, 0.12); }
.service-card:nth-child(6) .service-icon { background: rgba(108, 99, 255, 0.12); }
.service-card:nth-child(7) .service-icon { background: rgba(255, 107, 157, 0.12); }
.service-card:nth-child(8) .service-icon { background: rgba(0, 212, 170, 0.12); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--gray-400);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  padding: 5px 14px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--gray-300);
  font-weight: 500;
}

/* ---------- Stats / Numbers ---------- */
.stats {
  padding: 80px 0;
  background: var(--dark-2);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 212, 170, 0.08) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-smooth);
}

.stat-card:hover {
  border-color: rgba(108, 99, 255, 0.15);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card:nth-child(1) .stat-number { color: var(--primary-light); }
.stat-card:nth-child(2) .stat-number { color: var(--secondary); }
.stat-card:nth-child(3) .stat-number { color: var(--accent); }
.stat-card:nth-child(4) .stat-number { color: var(--warm); }

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ---------- Team Section ---------- */
.team {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.team-header {
  text-align: center;
  margin-bottom: 70px;
}

.team-header .section-subtitle {
  margin: 0 auto;
}

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

.team-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.team-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
}

.team-card:hover::after {
  transform: scaleX(1);
}

.team-card:hover {
  border-color: rgba(108, 99, 255, 0.15);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.team-card:nth-child(1) .team-avatar {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 212, 170, 0.2));
  border: 2px solid rgba(108, 99, 255, 0.3);
  color: var(--primary-light);
}

.team-card:nth-child(2) .team-avatar {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(0, 229, 255, 0.2));
  border: 2px solid rgba(0, 212, 170, 0.3);
  color: var(--secondary);
}

.team-card:nth-child(3) .team-avatar {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(255, 179, 71, 0.2));
  border: 2px solid rgba(255, 107, 157, 0.3);
  color: var(--accent);
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(108, 99, 255, 0.15);
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: inline-block;
  padding: 4px 16px;
  border-radius: 50px;
}

.team-card:nth-child(1) .team-role { color: var(--primary-light); background: rgba(108, 99, 255, 0.1); }
.team-card:nth-child(2) .team-role { color: var(--secondary); background: rgba(0, 212, 170, 0.1); }
.team-card:nth-child(3) .team-role { color: var(--accent); background: rgba(255, 107, 157, 0.1); }

.team-description {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 20px;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.team-skill {
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--gray-300);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: var(--section-padding);
  background: var(--dark-2);
  position: relative;
  z-index: 1;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 70px;
}

.testimonials-header .section-subtitle {
  margin: 0 auto;
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 50px;
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  position: relative;
}

.testimonial-card .quote-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.3;
}

.testimonial-text {
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--gray-200);
}

.testimonial-author {
  font-weight: 600;
  font-size: 1rem;
}

.testimonial-author-role {
  color: var(--gray-600);
  font-size: 0.85rem;
}

/* ---------- CTA Section ---------- */
.cta {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.cta-wrapper {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-wrapper::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: -200px;
  right: -100px;
}

.cta-wrapper::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -150px;
  left: -50px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: var(--white);
  color: var(--primary-dark);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all var(--transition-smooth);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ---------- Contact Section ---------- */
.contact {
  padding: var(--section-padding);
  background: var(--dark-2);
  position: relative;
  z-index: 1;
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  padding-top: 20px;
}

.contact-methods {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.contact-method:hover {
  border-color: rgba(108, 99, 255, 0.2);
  background: rgba(108, 99, 255, 0.05);
  transform: translateX(5px);
}

.contact-method .method-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(108, 99, 255, 0.1);
}

.contact-method h4 {
  font-size: 0.85rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-method p {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
}

.contact-method p a {
  color: var(--white);
}

.contact-method p a:hover {
  color: var(--primary-light);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239090b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--dark-2);
  color: var(--white);
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-smooth);
}

.footer-social a:hover {
  background: rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column ul li a {
  font-size: 0.88rem;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--gray-600);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: var(--gray-600);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

/* ---------- Animations (scroll-triggered) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-brain-box {
    max-width: 450px;
    margin: 0 auto;
  }

  .about-brain-svg {
    width: 70%;
    height: 70%;
  }

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

  .process-grid::before {
    display: none;
  }

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

  .contact .container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    transition: right var(--transition-smooth);
    border-left: 1px solid rgba(108, 99, 255, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .process-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .about-brain-box {
    max-width: 340px;
    margin: 0 auto;
  }

  .about-brain-svg {
    width: 75%;
    height: 75%;
  }

  .about-experience-badge {
    bottom: -12px;
    right: -8px;
    padding: 18px 22px;
  }

  .about-experience-badge .number {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero-stat {
    text-align: center;
  }

  .about-content .about-features {
    grid-template-columns: 1fr;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .cta-wrapper {
    padding: 60px 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

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