/* ========================================
   AANAXAGORASR — MAIN STYLESHEET
   ======================================== */

:root {
  --primary: #6C63FF;
  --primary-dark: #5A52E0;
  --primary-light: #8B84FF;
  --accent: #FF6B6B;
  --accent2: #4ECDC4;
  --dark: #0A0A1A;
  --dark2: #111128;
  --dark3: #1A1A35;
  --mid: #1E1E40;
  --light: #F8F8FF;
  --text: #E8E8F5;
  --text-muted: #9090B5;
  --border: rgba(108, 99, 255, 0.2);
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --glow: 0 0 30px rgba(108,99,255,0.4);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 13px;
  position: relative;
  z-index: 1001;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar a { color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.topbar a:hover { color: var(--primary-light); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 10, 26, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; color: white;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.logo-main { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; color: white; }
.logo-sub { display: block; font-size: 10px; color: var(--text-muted); letter-spacing: 0.5px; }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; transition: var(--transition);
  display: flex; align-items: center; gap: 4px;
}
.nav-link:hover { color: var(--primary-light); background: rgba(108,99,255,0.1); }
.nav-cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; text-decoration: none; padding: 10px 20px; border-radius: 50px;
  font-size: 14px; font-weight: 600; transition: var(--transition);
  box-shadow: 0 4px 15px rgba(108,99,255,0.4);
}
.nav-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(108,99,255,0.6); }

/* DROPDOWNS */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius);
  min-width: 200px; padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-10px);
  transition: all 0.25s ease; box-shadow: var(--shadow); z-index: 999;
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block; padding: 10px 14px; color: var(--text-muted); text-decoration: none;
  border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition);
}
.dropdown a:hover { color: var(--primary-light); background: rgba(108,99,255,0.1); }

.mega-dropdown {
  min-width: 520px; display: flex; flex-direction: row;
  left: 50%; padding: 16px; gap: 8px;
}
.dropdown-col { flex: 1; padding: 0 8px; border-right: 1px solid var(--border); }
.dropdown-col:last-child { border-right: none; }
.dropdown-col strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-light); margin-bottom: 8px; padding: 4px 6px; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.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); }

/* ===== SECTION DEFAULTS ===== */
section { padding: 100px 0; position: relative; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary-light);
  background: rgba(108,99,255,0.15); padding: 6px 16px; border-radius: 50px;
  border: 1px solid rgba(108,99,255,0.3); margin-bottom: 16px;
}
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.2; margin-bottom: 16px;
}
.section-header p { color: var(--text-muted); font-size: 18px; max-width: 560px; margin: 0 auto; }
.section-header.light h2 { color: white; }
.section-header.light p { color: rgba(255,255,255,0.7); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; text-decoration: none; padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 15px; position: relative; overflow: hidden;
  transition: var(--transition); box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(108,99,255,0.6); }
.btn-primary.large { padding: 18px 44px; font-size: 17px; }
.btn-3d { transform-style: preserve-3d; }
.btn-3d:hover { transform: translateY(-4px) rotateX(5deg); }
.btn-glow {
  position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover .btn-glow { opacity: 1; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px; color: white;
  text-decoration: none; padding: 14px 28px; border-radius: 50px;
  font-weight: 500; font-size: 15px; background: var(--glass);
  border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
  transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-outline {
  display: inline-block; color: var(--primary-light); text-decoration: none;
  padding: 14px 32px; border-radius: 50px; border: 2px solid var(--primary);
  font-weight: 600; font-size: 15px; transition: var(--transition);
}
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }

.btn-call {
  display: inline-flex; align-items: center; gap: 10px; color: white;
  text-decoration: none; padding: 16px 32px; border-radius: 50px;
  font-weight: 600; font-size: 17px; background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3); transition: var(--transition);
}
.btn-call:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; background: var(--dark);
  padding: 120px 0 80px;
}
.hero-3d-bg {
  position: absolute; inset: 0; z-index: 0;
}
#heroCanvas { width: 100%; height: 100%; display: block; }

/* Radial gradient overlay */
.hero-section::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 60% 50%, rgba(108,99,255,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(255,107,107,0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative; z-index: 2; max-width: 680px;
  padding: 0 24px; margin-left: max(24px, calc(50vw - 600px));
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--primary-light); background: rgba(108,99,255,0.15); padding: 8px 18px;
  border-radius: 50px; border: 1px solid rgba(108,99,255,0.3); margin-bottom: 24px;
  animation: fadeInDown 0.8s ease both;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(42px, 7vw, 80px);
  font-weight: 800; line-height: 1.05; margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.title-line { display: block; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent2), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 18px; color: var(--text-muted); line-height: 1.8; margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.4s both; max-width: 560px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; animation: fadeInUp 0.8s ease 0.6s both; }

.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap; animation: fadeInUp 0.8s ease 0.8s both;
}
.stat-card {
  display: flex; flex-direction: column;
  border-left: 3px solid var(--primary); padding-left: 16px;
}
.stat-number {
  font-family: 'Space Grotesk', sans-serif; font-size: 42px; font-weight: 800;
  background: linear-gradient(135deg, white, var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.stat-number + span { font-size: 32px; font-weight: 800; color: var(--primary-light); -webkit-text-fill-color: var(--primary-light); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* 3D Floating Cards */
.hero-3d-card {
  position: absolute; z-index: 2;
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 16px 20px; min-width: 140px; text-align: center;
}
.card-icon { font-size: 28px; margin-bottom: 6px; }
.hero-3d-card span { font-size: 13px; font-weight: 600; color: white; }
.floating { top: 20%; right: 18%; animation: float3d 6s ease-in-out infinite; }
.floating-2 { top: 50%; right: 8%; animation: float3d 6s ease-in-out infinite 2s; }
.floating-3 { top: 75%; right: 22%; animation: float3d 6s ease-in-out infinite 4s; }

@keyframes float3d {
  0%, 100% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
  33% { transform: translateY(-16px) rotateY(10deg) rotateX(5deg); }
  66% { transform: translateY(-8px) rotateY(-5deg) rotateX(-3deg); }
}

.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 12px; z-index: 2;
  animation: bounce 2s infinite;
}
.scroll-mouse {
  width: 26px; height: 42px; border: 2px solid var(--text-muted); border-radius: 13px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-wheel {
  width: 4px; height: 8px; background: var(--primary-light); border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ===== VIDEO SECTION ===== */
.video-section { background: var(--dark2); }
.video-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.video-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  aspect-ratio: 16/9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-overlay {
  position: absolute; inset: 0; background: rgba(10,10,26,0.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; cursor: pointer; transition: var(--transition);
}
.video-overlay p { color: white; font-weight: 500; }
.play-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(108,99,255,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(108,99,255,0.6); } 70% { box-shadow: 0 0 0 20px rgba(108,99,255,0); } 100% { box-shadow: 0 0 0 0 rgba(108,99,255,0); } }

.video-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.video-info p { color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; }
.video-points { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.video-points li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.check { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

/* ===== SERVICES SECTION ===== */
.services-section { background: var(--dark3); overflow: hidden; }
.services-bg-3d {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(108,99,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(78,205,196,0.06) 0%, transparent 50%);
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card-3d {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden;
  transform-style: preserve-3d; transition: transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
  opacity: 0; transform: translateY(30px);
}
.service-card-3d.animate-in { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }

.service-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--icon-color) 20%, transparent), color-mix(in srgb, var(--icon-color) 10%, transparent));
  border: 1px solid color-mix(in srgb, var(--icon-color) 40%, transparent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: var(--icon-color);
}
.service-card-3d h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.service-card-3d p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--primary-light);
  text-decoration: none; font-weight: 600; font-size: 14px; transition: var(--transition);
}
.service-link:hover { gap: 10px; }
.card-shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15), transparent 60%);
  transition: opacity 0.3s;
}
.services-cta { text-align: center; margin-top: 48px; }

/* ===== TECH SECTION ===== */
.tech-section { background: var(--dark2); }
.tech-orbit-container {
  position: relative; width: 500px; height: 500px; margin: 0 auto;
}
.tech-center-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--glow); z-index: 2;
}
.tech-center-circle span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; text-align: center; }
.tech-center-circle small { font-size: 10px; color: rgba(255,255,255,0.7); }

.tech-items { position: absolute; inset: 0; animation: orbitRotate 20s linear infinite; }
.tech-item {
  position: absolute; top: 50%; left: 50%;
  transform: rotate(var(--angle)) translateX(220px) rotate(calc(-1 * var(--angle)));
}
@keyframes orbitRotate { to { transform: rotate(360deg); } }
.tech-items:hover { animation-play-state: paused; }

.tech-badge {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 12px 16px; min-width: 80px; text-align: center;
  backdrop-filter: blur(10px); transform: translate(-50%, -50%);
  transition: var(--transition);
}
.tech-badge:hover { background: rgba(108,99,255,0.2); border-color: var(--primary); }
.tech-logo { font-size: 20px; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.php-logo { color: #7B7FB5; }
.java-logo { color: #F89820; }
.net-logo { color: #5C2D91; font-size: 14px; }
.android-logo { color: #3DDC84; }
.ios-logo { color: #A2AAAD; }
.oracle-logo { color: #F80000; font-size: 14px; }
.excel-logo { color: #217346; font-size: 14px; }
.win-logo { color: #0078D4; }
.tech-badge span { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ===== PROCESS SECTION ===== */
.process-section { background: var(--dark3); }
.process-3d-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(108,99,255,0.1) 0%, transparent 60%);
}
.process-timeline {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.process-step {
  position: relative; opacity: 0; transform: translateY(30px);
}
.process-step.animate-in { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }
.step-number {
  font-family: 'Space Grotesk', sans-serif; font-size: 56px; font-weight: 800;
  color: rgba(108,99,255,0.15); line-height: 1; margin-bottom: 8px;
}
.step-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 28px; transition: var(--transition);
}
.step-card:hover { background: rgba(108,99,255,0.1); border-color: rgba(108,99,255,0.4); transform: translateY(-4px); }
.step-icon { font-size: 32px; margin-bottom: 12px; }
.step-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ===== PORTFOLIO ===== */
.portfolio-section { background: var(--dark2); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card {
  border-radius: var(--radius); overflow: hidden;
  opacity: 0; transform: scale(0.95);
}
.portfolio-card.animate-in { opacity: 1; transform: scale(1); transition: opacity 0.5s ease, transform 0.5s ease; }
.portfolio-image {
  aspect-ratio: 4/3; position: relative; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.portfolio-image:hover .portfolio-overlay { opacity: 1; }
.portfolio-image:hover .port-icon { transform: scale(0.7); opacity: 0.3; }
.port-icon { font-size: 64px; transition: var(--transition); }
.portfolio-overlay {
  position: absolute; inset: 0; background: rgba(10,10,26,0.9);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; opacity: 0; transition: var(--transition);
}
.portfolio-overlay h4 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; }
.portfolio-overlay p { color: var(--text-muted); font-size: 13px; }
.portfolio-link {
  color: var(--primary-light); text-decoration: none; font-weight: 600;
  border: 1px solid var(--primary); padding: 8px 20px; border-radius: 50px;
  font-size: 13px; transition: var(--transition); margin-top: 4px;
}
.portfolio-link:hover { background: var(--primary); color: white; }
.portfolio-cta { text-align: center; margin-top: 40px; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--dark3); }
.testimonial-slider { overflow: hidden; margin: 0 auto; max-width: 900px; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-card {
  min-width: 100%; padding: 40px 48px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 24px;
  text-align: center;
}
.stars { font-size: 24px; color: #FFD700; margin-bottom: 20px; letter-spacing: 2px; }
.testimonial-card > p { font-size: 18px; line-height: 1.8; color: var(--text); font-style: italic; margin-bottom: 28px; }
.client-info { display: flex; align-items: center; justify-content: center; gap: 14px; }
.client-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px;
}
.client-info strong { display: block; font-weight: 600; }
.client-info span { font-size: 13px; color: var(--text-muted); }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  overflow: hidden; text-align: center; padding: 120px 0;
}
.cta-3d-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(108,99,255,0.2) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(36px, 5vw, 60px); font-weight: 800; margin-bottom: 16px; }
.cta-content p { font-size: 18px; color: var(--text-muted); margin-bottom: 48px; }
.cta-actions { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); }
.footer-top { padding: 80px 0; border-bottom: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin: 20px 0 24px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; background: var(--glass);
  border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; transition: var(--transition);
}
.footer-social a:hover { color: white; background: var(--primary); border-color: var(--primary); }

.footer-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 20px; color: white; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer-col ul a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-contact { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.contact-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.contact-item a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: var(--transition); }
.contact-item a:hover { color: var(--primary-light); }

.footer-newsletter h5 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: white; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; background: var(--glass); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; color: white; font-size: 13px; outline: none;
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form button {
  background: var(--primary); color: white; border: none; border-radius: 8px;
  padding: 10px 16px; font-weight: 600; font-size: 13px; cursor: pointer; transition: var(--transition);
}
.newsletter-form button:hover { background: var(--primary-dark); }

.footer-bottom {
  padding: 24px 0;
  display: flex; flex-direction: column;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: var(--text-muted); font-size: 13px; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags a {
  font-size: 12px; color: var(--text-muted); text-decoration: none;
  background: var(--glass); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 50px; transition: var(--transition);
}
.footer-tags a:hover { color: var(--primary-light); border-color: var(--primary); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: white;
  box-shadow: 0 4px 20px rgba(108,99,255,0.5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(108,99,255,0.7); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  padding: 80px 0 60px; border-bottom: 1px solid var(--border); text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(108,99,255,0.15) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 18px; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary-light); text-decoration: none; }
.breadcrumb span { color: var(--text-muted); }

/* ===== CONTACT FORM ===== */
.contact-form-wrap {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 24px; padding: 48px;
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.5px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; color: white; font-size: 15px;
  font-family: 'Inter', sans-serif; outline: none; transition: var(--transition);
}
.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.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark2); padding: 16px; border-bottom: 1px solid var(--border); gap: 4px; }
  .nav-menu.active { display: flex; }
  .nav-toggle { display: flex; }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--dark3); margin-top: 4px; }
  .mega-dropdown { flex-direction: column; min-width: unset; }

  .hero-content { max-width: 100%; margin-left: 0; }
  .hero-3d-card { display: none; }
  .video-wrapper { grid-template-columns: 1fr; }
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .tech-orbit-container { width: 320px; height: 320px; }
  .tech-item { transform: rotate(var(--angle)) translateX(140px) rotate(calc(-1 * var(--angle))); }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .cta-actions { flex-direction: column; }
  .topbar-inner { flex-direction: column; gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
}
