:root {
  --bg-dark: #0e0e2c;
  --accent: #8b5cf6;
  --light: #f3f4f6;
  --text: #e5e7eb;
  --radius: 1rem;
  --font: "Inter", sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* HEADER */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(14, 14, 44, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 1rem 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1100px, 90%);
  margin: 0 auto;
}
.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}
.logo span {
  color: var(--accent);
}
nav a {
  color: #d1d5db;
  text-decoration: none;
  margin-left: 1.2rem;
  transition: 0.2s;
}
nav a:hover {
  color: var(--accent);
}
.btn-nav {
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: #fff;
}

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem 5rem;
  background: radial-gradient(circle at top right, #1b1b3a 0%, #0e0e2c 70%);
  position: relative;
  overflow: hidden;
}
.hero-illustration {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1400&q=80")
    center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: #fff;
}
.hero p {
  max-width: 550px;
  margin: 0 auto 1.5rem;
  color: #cbd5e1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: #7c3aed;
}

/* ABOUT */
.about {
  background: #11112e;
  padding: 5rem 1rem;
  text-align: center;
}
.about h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}
.about p {
  max-width: 750px;
  margin: 0 auto 2.5rem;
  color: #d1d5db;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  width: min(1000px, 90%);
  margin: 0 auto;
}
.about-card {
  background: #1a1a3c;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.3s;
}
.about-card:hover {
  transform: translateY(-6px);
}
.icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* SERVICES */
.services {
  padding: 5rem 1rem;
  background: #0f0f2f;
  text-align: center;
}
.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  width: min(1000px, 90%);
  margin: 0 auto;
}
.service-card {
  background: #1b1b3c;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card h3 {
  color: #fff;
  margin-bottom: 0.6rem;
}
.service-card p {
  color: #d1d5db;
  font-size: 0.95rem;
}

/* CTA */
.cta {
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}
.cta h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.btn-secondary {
  background: #fff;
  color: #111;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.btn-secondary:hover {
  background: #e5e7eb;
}

/* FOOTER */
.footer {
  background: #0e0e2c;
  padding: 1.8rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
}
.footer a {
  color: var(--accent);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  nav {
    display: none;
  }
  .hero {
    padding-top: 5rem;
  }
  .about-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
}


/* === HERO ANIMATION === */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #1b1b3a 0%, #0e0e2c 80%);
}

.hero-animation {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(139, 92, 246, 0) 70%);
  filter: blur(40px);
  animation: float 20s infinite ease-in-out alternate;
}

.orb1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -120px;
  animation-delay: 0s;
}

.orb2 {
  width: 300px;
  height: 300px;
  right: -100px;
  bottom: -80px;
  animation-delay: 5s;
}

.orb3 {
  width: 250px;
  height: 250px;
  top: 60%;
  left: 40%;
  animation-delay: 10s;
}

@keyframes float {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-40px) translateX(20px);
  }
  100% {
    transform: translateY(20px) translateX(-20px);
  }
}
