/* Design Tokens */
:root {
  --font-body: 'Geist', sans-serif;
  --font-header: 'Outfit', sans-serif;

  /* Theme Base Colors (Minimalist Premium Dark Theme) */
  --bg-dark: #0A1125;
  --bg-deep: #050812;
  --bg-card: rgba(30, 42, 74, 0.3);
  --border-card: rgba(255, 255, 255, 0.08);
  --text-main: #FFFFFF;
  --text-muted: #8E9BB4;
  --text-white: #FFFFFF;

  --primary-color: #6366f1; /* Modern Indigo */
  --secondary-color: #ec4899; /* Modern Pink */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  
  --border-radius-card: 12px;
  --border-radius-btn: 6px;

  scroll-behavior: smooth;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  z-index: 100;
  transition: all 0.3s ease;
}
.header.scrolled {
  background-color: rgba(10, 17, 37, 0.9);
  height: 75px;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo-link {
  display: flex;
  align-items: center;
  z-index: 101;
}
.logo-text-fallback {
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 28px;
  color: var(--text-white);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}
.nav-link:hover {
  color: var(--text-white);
}
.nav-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.nav-link:hover:after {
  width: 100%;
}
.cta-button {
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: 10px 22px;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* Mobile Nav Drawer */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
  width: 30px;
}
.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  transition: all 0.3s ease;
}
.mobile-nav {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 99;
  transition: left .4s cubic-bezier(.16, 1, 0.3, 1);
  padding: 40px;
}
.mobile-nav.open {
  left: 0;
}
.mobile-link {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
}
.mobile-link:hover {
  color: var(--text-white);
}
.mobile-cta {
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: 14px 40px;
  border-radius: var(--border-radius-btn);
  font-weight: 700;
  font-size: 16px;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* WebGL Background Canvas Placeholder */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.16, 1, 0.3, 1);
}
.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
  border: 1px solid var(--border-card);
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius-card);
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-section {
  padding-top: 180px;
  padding-bottom: 120px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
}
.hero-title {
  font-family: var(--font-header);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-white);
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 650px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
}

/* Section Common */
.section-heading {
  font-family: var(--font-header);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 40px;
  text-align: center;
}

/* Services Section */
.services-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-card);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 32px;
  border-radius: var(--border-radius-card);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
}
.service-card h3 {
  font-family: var(--font-header);
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-white);
}
.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* About Section */
.about-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-card);
  text-align: center;
}
.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-muted);
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-card);
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 40px;
  border-radius: var(--border-radius-card);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius-btn);
  padding: 14px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all 0.25s;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.04);
}

/* Footer */
.footer {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-card);
  padding: 60px 0;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text-white);
}

/* Responsive */
@media screen and (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 38px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}