:root {
  --bg-color: #0A2342; /* Deep Tech Blue */
  --text-color: #ffffff;
  --text-muted: #d0d7de;
  --accent-color: #00D2E6; /* Exponential Cyan */
  --accent-gradient: linear-gradient(90deg, #00D2E6, #4B0082); /* Cyan to Electric Indigo */
  --card-bg: rgba(10, 35, 66, 0.4);
  --card-border: rgba(0, 210, 230, 0.2);
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Three.js Canvas Container */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none; /* Let clicks pass through */
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.highlight {
  color: var(--accent-color);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

nav a:hover {
  color: var(--text-color);
}

.btn-primary {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--text-muted);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Left aligned */
  padding-top: 0;
}

.hero-content {
  max-width: 600px;
}

.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.btn-glass {
  padding: 1rem 2rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-weight: 600;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Solutions Grid */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2.5rem;
  border-radius: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.card-icon {
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  color: var(--text-muted);
}

/* Contact */
#contact {
  text-align: center;
  padding: 8rem 2rem;
}

.contact-container h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-container p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem 5%;
    background: rgba(10, 35, 66, 0.9); /* Slightly more opaque for mobile readability */
  }

  .logo {
    margin-bottom: 1rem;
    font-size: 1.3rem;
  }

  nav ul {
    gap: 1.2rem;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    padding-top: 8rem; /* Increased to account for taller stacked header */
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
