@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600&display=swap');

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

:root {
  --purple: #7B5EA7;
  --purple-light: #9B7BF7;
  --purple-vivid: #B49AFF;
  --purple-glow: rgba(155, 123, 247, 0.12);
  --purple-glow-strong: rgba(155, 123, 247, 0.25);
  --bg: #0A0A12;
  --bg-alt: #111120;
  --bg-card: rgba(22, 22, 40, 0.5);
  --text: #EAE6F2;
  --text-muted: #8E87A0;
  --border: rgba(123, 94, 167, 0.15);
  --border-hover: rgba(155, 123, 247, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Outfit", "Inter", sans-serif;
}

/* ============================================
   Background mesh / ambient glow
   ============================================ */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123, 94, 167, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(90, 60, 160, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(123, 94, 167, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle dot grid overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(155, 123, 247, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Navigation
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: all 0.4s ease;
}

nav.scrolled {
  padding: 0.7rem 3rem;
  background: rgba(10, 10, 18, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  height: 34px;
  transition: transform 0.3s;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-right a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.3s;
}

.nav-right a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--purple-light);
  transition: width 0.3s ease;
}

.nav-right a:hover {
  color: var(--purple-vivid);
}

.nav-right a:hover::after {
  width: 100%;
}

#lang-toggle {
  background: transparent;
  color: var(--purple-light);
  border: 1px solid rgba(123, 94, 167, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.3s;
}

#lang-toggle:hover {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(123, 94, 167, 0.3);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  z-index: 1;
}

/* Animated gradient orb behind logo */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123, 94, 167, 0.15) 0%, rgba(90, 60, 160, 0.05) 40%, transparent 70%);
  animation: orbPulse 6s ease-in-out infinite;
  pointer-events: none;
}

/* Second smaller orb for depth */
.hero::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(155, 123, 247, 0.1) 0%, transparent 60%);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -55%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -55%) scale(1.1); opacity: 0.7; }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-20px); }
}

.hero-logo {
  width: 240px;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(123, 94, 167, 0.2));
  animation: logoFadeIn 1s ease-out;
}

@keyframes logoFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tagline {
  font-family: "Outfit", sans-serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.01em;
  max-width: 650px;
  position: relative;
  z-index: 1;
  animation: textFadeIn 1s ease-out 0.2s both;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
  max-width: 580px;
  font-weight: 300;
  position: relative;
  z-index: 1;
  animation: textFadeIn 1s ease-out 0.4s both;
}

@keyframes textFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta-btn {
  display: inline-block;
  margin-top: 3rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  transition: all 0.35s ease;
  animation: textFadeIn 1s ease-out 0.6s both;
  box-shadow: 0 4px 25px rgba(123, 94, 167, 0.25);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(123, 94, 167, 0.4);
  filter: brightness(1.1);
}

.cta-btn:active {
  transform: translateY(0);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: scrollBounce 2s ease-in-out infinite, textFadeIn 1s ease-out 1s both;
}

.scroll-hint svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  opacity: 0.4;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 7rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-alt {
  max-width: 100%;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt > .tracks,
.section-alt > .about {
  max-width: calc(1100px - 4rem);
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 3.5rem;
  font-weight: 300;
}

.section h2 .accent {
  color: var(--purple-light);
}

/* Section divider line */
.section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  margin: 1rem auto 0;
}

/* ============================================
   Service Cards
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gradient shimmer on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(123, 94, 167, 0.06);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(123, 94, 167, 0.1);
  color: var(--purple-light);
  margin-bottom: 1.2rem;
  transition: all 0.3s;
}

.card:hover .card-icon {
  background: rgba(123, 94, 167, 0.18);
  box-shadow: 0 0 20px rgba(123, 94, 167, 0.15);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   Deployment tracks
   ============================================ */
.tracks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.track {
  padding: 2.2rem;
  border-radius: 14px;
  background: rgba(10, 10, 18, 0.6);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.track.featured {
  border-color: rgba(155, 123, 247, 0.45);
  background: linear-gradient(180deg, rgba(123, 94, 167, 0.12) 0%, rgba(10, 10, 18, 0.6) 60%);
  box-shadow: 0 0 60px rgba(123, 94, 167, 0.1);
}

.badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-vivid);
  background: rgba(123, 94, 167, 0.18);
  border: 1px solid rgba(155, 123, 247, 0.35);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.track h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.track .track-tag {
  color: var(--purple-vivid);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.track p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.track:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(123, 94, 167, 0.06);
}

.track:hover::before {
  opacity: 1;
}

/* ============================================
   About
   ============================================ */
.about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-hover);
  box-shadow: 0 0 60px rgba(123, 94, 167, 0.15);
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--purple-light);
  background: rgba(123, 94, 167, 0.1);
  border-style: dashed;
}

.about-text h3 {
  font-size: 1.6rem;
  font-weight: 500;
}

.about-role {
  color: var(--purple-vivid);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.about-text > p:not(.about-role) {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.creds {
  list-style: none;
  margin: 1.5rem 0 1.2rem;
}

.creds li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-light);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  font-size: 0.8rem;
  color: var(--text);
  background: rgba(123, 94, 167, 0.12);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

/* ============================================
   Hourly automation
   ============================================ */
.rate-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: -1.5rem auto 2.5rem;
  padding: 1.1rem 2rem;
  max-width: 760px;
  border: 1px solid rgba(155, 123, 247, 0.35);
  border-radius: 12px;
  background: rgba(123, 94, 167, 0.08);
  text-align: center;
}

.rate {
  font-family: "Outfit", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--purple-vivid);
}

.rate-details {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.fine-print {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2rem;
  opacity: 0.8;
}

/* ============================================
   Contact
   ============================================ */
#contact {
  text-align: center;
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: -0.5rem auto 3rem;
  font-weight: 300;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  padding: 1.1rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

.contact-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(123, 94, 167, 0.08);
}

.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--purple-light);
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
footer {
  text-align: center;
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 28px;
  margin-bottom: 0.8rem;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 0.8;
}

footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============================================
   Fade-in animations (staggered)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }

/* Section headers fade */
.section-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  nav {
    padding: 0.9rem 1.5rem;
  }

  .nav-right {
    gap: 1.2rem;
  }

  .nav-right a {
    display: none;
  }

  .hero {
    padding: 7rem 1.5rem 5rem;
  }

  .hero-logo {
    width: 180px;
  }

  .tagline {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .cards,
  .cards-3,
  .tracks,
  .about {
    grid-template-columns: 1fr;
  }

  .about {
    gap: 2rem;
    justify-items: center;
  }

  .about-photo {
    width: 180px;
    height: 180px;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .contact-methods {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .contact-item {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 150px;
  }

  .tagline {
    font-size: 1.35rem;
  }

  .card, .track {
    padding: 1.6rem;
  }
}
