/* --- CSS Reset & Variables --- */
:root {
  --bg-color: #05070e; /* Extremely dark blue/black */
  --surface: rgba(20, 24, 38, 0.6);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text-main: #f1f3f9;
  --text-muted: #a0a5b5;
  --accent-neon: #00e0ff; /* Neon cyan */
  --accent-glow: rgba(0, 224, 255, 0.3);
  --accent-secondary: #9048ff; /* Neon purple */

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --border-radius: 12px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(144, 72, 255, 0.07), transparent 35%),
    radial-gradient(circle at 85% 30%, rgba(0, 224, 255, 0.07), transparent 35%);
  background-attachment: fixed;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }
a { color: var(--accent-neon); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--text-main); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* --- Navigation & Footer --- */
header.navbar-container {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(5, 7, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}

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

.navbar .logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navbar .logo span {
  color: var(--accent-neon);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a, .nav-links .dropdown-toggle {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active, .nav-links .dropdown-toggle:hover, .nav-links .dropdown-toggle.active {
  color: var(--text-main);
}

footer {
  background: rgba(10, 12, 20, 0.9);
  border-top: 1px solid var(--surface-border);
  padding: var(--spacing-lg) 0 2rem;
  margin-top: var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-muted);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--surface-border);
  padding-top: 2rem;
}

/* --- Dropdown Menu --- */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 12, 20, 0.95);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  list-style: none;
  padding: 1rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin-bottom: 0;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-neon);
}

/* --- UI Components --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-neon), var(--accent-secondary));
  color: #000;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 224, 255, 0.5);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--surface-border);
}

.btn-outline:hover {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
  background: rgba(0, 224, 255, 0.05);
}

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Gradient Text Extractor */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-neon), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hero Section Specific --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px; /* Offset for navbar */
  position: relative;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Background Grid Effect */
.bg-grid {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: 50px 50px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  z-index: -1;
  pointer-events: none;
}

.bg-grid::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 80%);
}

/* --- Utility Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links { display: none; } /* Add hamburger menu JS later if needed */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .glass-panel { padding: 1.5rem; }
}

/* Animation Utilities */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards ease-out;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Adding staggered delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
