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

:root {
  --bg: #080b14;
  --bg2: #0d1120;
  --surface: #111827;
  --surface2: #1a2235;
  --border: rgba(255,255,255,0.07);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --grad: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
  --grad2: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

html { scroll-behavior: smooth; }

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(8,11,20,0.9);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.logo span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--grad); color: #fff; text-decoration: none;
  padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-nav:hover { opacity: 0.85; transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; text-align: center;
  padding: 120px 24px 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 { width: 500px; height: 500px; background: var(--purple); top: -150px; left: -100px; animation-delay: 0s; }
.orb2 { width: 400px; height: 400px; background: var(--blue); bottom: -100px; right: -50px; animation-delay: 2s; }
.orb3 { width: 300px; height: 300px; background: var(--cyan); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 4s; }

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

.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.badge {
  display: inline-block; padding: 8px 20px; border-radius: 50px;
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3);
  font-size: 0.85rem; font-weight: 600; color: #a78bfa; margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; line-height: 1.1;
  margin-bottom: 24px; animation: fadeInUp 0.8s ease 0.2s both;
}

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

.hero-sub {
  font-size: 1.1rem; color: var(--text-muted); max-width: 580px; margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 60px; animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
  background: var(--grad); color: #fff; text-decoration: none;
  padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(139,92,246,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(139,92,246,0.6); }
.btn-primary.full-width { width: 100%; }

.btn-secondary {
  background: transparent; color: var(--text); text-decoration: none;
  padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 1rem;
  border: 1px solid var(--border); transition: all 0.2s;
}
.btn-secondary:hover { border-color: rgba(139,92,246,0.5); background: rgba(139,92,246,0.1); }

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  animation: fadeInUp 0.8s ease 0.8s both;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.scroll-dot {
  width: 6px; height: 6px; background: var(--purple); border-radius: 50%;
  box-shadow: 0 0 10px var(--purple);
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

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

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2);
  font-size: 0.8rem; font-weight: 600; color: #a78bfa; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== SERVICES ===== */
.services { padding: 120px 0; background: var(--bg2); }

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

.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 36px; position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  opacity: 0; transform: translateY(30px);
  animation: fadeInCard 0.6s ease forwards;
}
.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }
.service-card:nth-child(5) { animation-delay: 0.4s; }
.service-card:nth-child(6) { animation-delay: 0.5s; }

@keyframes fadeInCard { to { opacity: 1; transform: translateY(0); } }

.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad); opacity: 0; transition: opacity 0.3s;
  border-radius: 20px;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,0.4); box-shadow: 0 20px 40px rgba(139,92,246,0.15); }
.service-card:hover::before { opacity: 0.05; }

.service-icon { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.service-hover { margin-top: 20px; color: #a78bfa; font-weight: 600; font-size: 0.9rem; opacity: 0; transition: opacity 0.2s; }
.service-card:hover .service-hover { opacity: 1; }

/* ===== ABOUT ===== */
.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.about-visual { position: relative; height: 420px; }
.main-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 48px; text-align: center; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 320px; overflow: hidden;
}
.card-glow {
  position: absolute; inset: 0; background: var(--grad); opacity: 0.05;
}
.about-icon-big { font-size: 3.5rem; margin-bottom: 16px; }
.main-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.main-card p { color: var(--text-muted); font-size: 0.9rem; }

.floating-badge {
  position: absolute; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 50px; padding: 8px 16px; font-size: 0.85rem; font-weight: 700;
  color: #a78bfa; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.badge1 { top: 20px; left: 0; animation: floatBadge 3s ease-in-out infinite; }
.badge2 { top: 20px; right: 0; animation: floatBadge 3s ease-in-out infinite 1s; }
.badge3 { bottom: 20px; left: 50%; transform: translateX(-50%); animation: floatBadge 3s ease-in-out infinite 2s; }
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.badge3 { animation: floatBadge3 3s ease-in-out infinite 2s; }
@keyframes floatBadge3 { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

.about-text .section-tag { margin-bottom: 16px; display: inline-block; }
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 20px; }
.about-text > p { color: var(--text-muted); font-size: 1rem; margin-bottom: 32px; }
.about-features { display: flex; flex-direction: column; gap: 24px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-check {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.4); display: flex; align-items: center;
  justify-content: center; color: #a78bfa; font-size: 0.85rem; flex-shrink: 0; margin-top: 2px;
}
.feature strong { display: block; font-weight: 600; margin-bottom: 4px; }
.feature p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== CONTACT ===== */
.contact { padding: 120px 0; background: var(--bg2); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-item strong { display: block; font-weight: 600; margin-bottom: 4px; }
.contact-item p { color: var(--text-muted); font-size: 0.9rem; }

.socials { display: flex; gap: 12px; }
.social-link {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: 0.85rem;
  transition: all 0.2s;
}
.social-link:hover { border-color: rgba(139,92,246,0.5); color: #a78bfa; background: rgba(139,92,246,0.1); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none; resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(139,92,246,0.5); box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--surface); }

.form-success {
  display: none; text-align: center; padding: 14px; border-radius: 12px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
  color: #10b981; font-weight: 600;
}
.form-success.show { display: block; }

/* ===== FOOTER ===== */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ===== 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: 900px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 280px; order: -1; }
  .contact-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.5rem; }
}
