/* ===== CSS Variables & Reset ===== */
:root {
  --clr-bg-dark: #0a101e;
  --clr-bg-dark-soft: #111827;
  --clr-bg-card: #151d2e;
  --clr-accent: #7c3aed;
  --clr-accent-hover: #6d28d9;
  --clr-accent-light: #a78bfa;
  --clr-emerald: #10b981;
  --clr-emerald-dark: #059669;
  --clr-emerald-light: #34d399;
  --clr-light: #faf8f5;
  --clr-light-alt: #f3f0ed;
  --clr-white: #ffffff;
  --clr-text-dark: #1a1d2e;
  --clr-text-mid: #475569;
  --clr-text-light: #e2e8f0;
  --clr-text-muted: #94a3b8;
  --clr-border: #cbd5e1;
  --clr-border-light: #e2e8f0;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', monospace;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--clr-text-dark);
  background-color: var(--clr-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--clr-bg-dark);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--clr-bg-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: 0.5px;
}

.navbar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-emerald));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--clr-white);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-links a {
  color: var(--clr-text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

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

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-accent);
  transition: width 0.25s ease;
}

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

.navbar-cta {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--clr-accent), #8b5cf6);
  color: var(--clr-white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

/* Mobile nav toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--clr-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== Home Page Wrapper ===== */
.home-page {
  padding-top: 72px;
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(160deg, var(--clr-bg-dark) 0%, #0f1729 40%, #131f35 100%);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--clr-accent-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background-color: var(--clr-emerald);
  border-radius: 50%;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-section h1 span {
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section .hero-desc {
  font-size: 18px;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 580px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--clr-accent), #8b5cf6);
  color: var(--clr-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--clr-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid var(--clr-accent);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

/* ===== Stats Bar ===== */
.stats-bar {
  background-color: var(--clr-bg-dark-soft);
  padding: 48px 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 8px;
}

.stat-item .stat-number span {
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--clr-text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ===== About Section ===== */
.about-section {
  padding: 100px 0;
  background-color: var(--clr-light);
}

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

.about-image {
  position: relative;
}

.about-image .img-placeholder {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--clr-bg-dark-soft), var(--clr-bg-card));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image .img-placeholder .pattern {
  font-size: 120px;
  color: #1a1b37;
}

.about-image .accent-box {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-emerald));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--clr-white);
}

.about-image .accent-box .big {
  font-size: 36px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.about-image .accent-box .small {
  font-size: 13px;
  font-weight: 500;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 16px;
}

.about-section h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  color: var(--clr-text-dark);
  line-height: 1.2;
  margin-bottom: 24px;
}

.about-section h2 span {
  color: var(--clr-accent);
}

.about-text p {
  font-size: 16px;
  color: var(--clr-text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--clr-accent);
}

.about-feature h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-text-dark);
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 13px;
  color: var(--clr-text-mid);
  margin-bottom: 0;
}

/* ===== Services Section ===== */
.services-section {
  padding: 100px 0;
  background-color: var(--clr-bg-dark);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

.section-header .section-label {
  color: var(--clr-accent-light);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

.service-card {
  background-color: var(--clr-bg-card);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  padding: 40px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.service-card .card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(16, 185, 129, 0.15));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--clr-accent);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-accent-light);
  transition: color 0.2s ease, gap 0.2s ease;
}

.service-card:hover .card-link {
  color: var(--clr-emerald-light);
  gap: 10px;
}

/* ===== Features Section ===== */
.features-section {
  padding: 100px 0;
  background-color: var(--clr-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-block {
  text-align: center;
  padding: 36px 24px;
  border-radius: 16px;
  background-color: var(--clr-white);
  border: 1px solid var(--clr-border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.feature-block .feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(16, 185, 129, 0.08));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-block h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-text-dark);
  margin-bottom: 10px;
}

.feature-block p {
  font-size: 14px;
  color: var(--clr-text-mid);
  line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--clr-bg-dark-soft), #151d2e);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-section p {
  font-size: 17px;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 2;
}

.cta-section .btn-primary {
  position: relative;
  z-index: 2;
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 100px 0;
  background-color: var(--clr-light);
}

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

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--clr-text-dark);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 16px;
  color: var(--clr-text-mid);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-detail .detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--clr-accent);
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-text-dark);
  margin-bottom: 2px;
}

.contact-detail span {
  font-size: 15px;
  color: var(--clr-text-mid);
}

/* Contact Form */
.contact-form {
  background-color: var(--clr-white);
  border: 1px solid var(--clr-border-light);
  border-radius: 16px;
  padding: 40px;
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--clr-text-dark);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--clr-text-dark);
  background-color: var(--clr-light-alt);
  border: 2px solid var(--clr-border-light);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

.form-submit {
  width: 100%;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--clr-accent), #8b5cf6);
  color: var(--clr-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--clr-emerald-dark);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--clr-bg-dark);
  padding: 64px 0 32px;
}

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

.footer-brand .navbar-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  font-size: 14px;
  color: var(--clr-text-muted);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--clr-accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(124, 58, 237, 0.12);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--clr-text-muted);
}

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

.footer-legal-links a {
  font-size: 13px;
  color: var(--clr-text-muted);
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--clr-accent-light);
}

/* ===== Scroll Reveal ===== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero-section h1 {
    font-size: 42px;
  }

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

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

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

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

@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--clr-bg-dark-soft);
    flex-direction: column;
    gap: 0;
    padding: 24px 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .navbar-links.open {
    transform: translateY(0);
  }

  .navbar-links a {
    padding: 14px 24px;
    width: 100%;
    text-align: center;
  }

  .navbar-links a::after {
    display: none;
  }

  .navbar-cta {
    margin: 8px 24px;
    text-align: center;
  }

  .hero-section {
    padding: 72px 0 80px;
  }

  .hero-section h1 {
    font-size: 34px;
  }

  .hero-section .hero-desc {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline {
    justify-content: center;
  }

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

  .about-section h2 {
    font-size: 30px;
  }

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

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

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

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-header h2 {
    font-size: 30px;
  }

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

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

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 28px;
  }

  .stat-item .stat-number {
    font-size: 32px;
  }

  .container {
    padding: 0 16px;
  }
}
