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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(99, 102, 241, 0.15);
  --gradient: linear-gradient(135deg, #6366f1, #06b6d4);
  --gradient-text: linear-gradient(135deg, #818cf8, #22d3ee);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

a { text-decoration: none; color: inherit; transition: color 0.3s; }

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

/* ===== Gradient Text ===== */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; transition: all 0.3s ease; cursor: pointer;
  border: none; font-family: inherit;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }
.btn-full { width: 100%; justify-content: center; }

/* ===== Section Styles ===== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: rgba(99, 102, 241, 0.1); color: var(--primary-light);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: all 0.3s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(15, 15, 26, 0.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 10px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #fff;
}
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gradient); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: all 0.3s; border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; padding: 120px 0 80px; overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
}
.shape-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; }
.shape-2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; left: -100px; }
.shape-3 { width: 300px; height: 300px; background: #ec4899; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 8px 20px; border-radius: 50px;
  background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 0.9rem; color: var(--primary-light); margin-bottom: 24px;
}
.hero-text h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-text p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* Hero Card */
.hero-card {
  background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.card-header {
  display: flex; gap: 8px; padding: 14px 20px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border);
}
.card-dot { width: 12px; height: 12px; border-radius: 50%; }
.card-dot.green { background: #22c55e; }
.card-dot.yellow { background: #f59e0b; }
.card-dot.red { background: #ef4444; }
.card-body { padding: 24px; }
.card-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.95rem;
}
.card-row:last-of-type { border-bottom: none; }
.card-amount { margin-left: auto; font-weight: 700; color: #fff; }
.card-progress { margin-top: 16px; }
.progress-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.progress-bar { height: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; background: var(--gradient); border-radius: 10px;
  animation: progressGrow 2s ease-out 1s forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes progressGrow { to { width: 78%; } }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.mouse {
  width: 26px; height: 40px; border: 2px solid var(--text-muted);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 8px;
}
.wheel {
  width: 4px; height: 8px; background: var(--primary-light); border-radius: 4px;
  animation: scroll 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }

/* ===== About ===== */
.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 32px; transition: all 0.4s ease;
}
.about-card:hover { transform: translateY(-8px); border-color: var(--primary); background: var(--bg-card-hover); }
.about-icon {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(99, 102, 241, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--primary-light); margin-bottom: 20px;
}
.about-card h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 700; }
.about-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Services ===== */
.services { padding: 120px 0; background: rgba(99, 102, 241, 0.02); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; transition: all 0.4s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient); transform: scaleX(0); transition: transform 0.4s;
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-8px); border-color: var(--primary); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(99, 102, 241, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--primary-light); margin-bottom: 20px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 700; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.service-link { color: var(--primary-light); font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.service-link:hover { gap: 10px; }

/* ===== Features ===== */
.features { padding: 120px 0; }
.features-showcase { max-width: 800px; margin: 0 auto; }
.feature-item {
  display: flex; gap: 32px; padding: 36px; border-radius: var(--radius);
  border: 1px solid transparent; transition: all 0.4s ease; margin-bottom: 16px;
}
.feature-item:hover { background: var(--bg-card); border-color: var(--border); }
.feature-number {
  font-size: 3rem; font-weight: 800; line-height: 1;
  background: var(--gradient-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; flex-shrink: 0;
}
.feature-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.feature-content p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Testimonials ===== */
.testimonials { padding: 120px 0; background: rgba(99, 102, 241, 0.02); }
.testimonial-slider { position: relative; max-width: 700px; margin: 0 auto; min-height: 260px; }
.testimonial-card {
  position: absolute; inset: 0; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; opacity: 0; transform: translateX(40px);
  transition: all 0.5s ease; pointer-events: none;
}
.testimonial-card.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.stars { color: #f59e0b; margin-bottom: 16px; display: flex; gap: 4px; }
.testimonial-card > p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
}
.testimonial-author strong { font-size: 0.95rem; }
.testimonial-author span { color: var(--text-muted); font-size: 0.85rem; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.2); cursor: pointer; transition: all 0.3s;
}
.dot.active { background: var(--primary); width: 28px; border-radius: 10px; }

/* ===== Contact ===== */
.contact { padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-item {
  display: flex; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(99, 102, 241, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); flex-shrink: 0;
}
.contact-item h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.contact-item p { font-weight: 500; }
.contact-item a { color: var(--primary-light); }
.contact-item a:hover { color: #fff; }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; color: var(--text-muted); }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-group textarea { resize: vertical; }

/* ===== Footer ===== */
.footer { padding: 60px 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-muted); margin-top: 16px; font-size: 0.9rem; max-width: 320px; }
.footer-links h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0;
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
}

/* ===== Animations ===== */
[data-animate] { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.5rem; }
  .hero-text p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-header h2 { font-size: 2rem; }
}

@media (max-width: 640px) {
  .nav-links { 
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 15, 26, 0.98); flex-direction: column;
    align-items: center; justify-content: center; gap: 24px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; z-index: 1001; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .feature-item { flex-direction: column; gap: 16px; }
}
