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

:root {
  --bg-dark: #030712;
  --bg-panel: rgba(17, 24, 39, 0.65);
  --bg-panel-hover: rgba(31, 41, 55, 0.85);
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-neon: rgba(6, 182, 212, 0.4);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #111827;
  
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-glow: 0 0 20px rgba(6, 182, 212, 0.15);
  --radius-md: 20px;
  --radius-lg: 30px;
  
  --font-main: 'Inter', system-ui, sans-serif;
  
  --spacing-section: 6rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Neural / Grid Style */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

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

h1 { font-size: clamp(3rem, 5vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  text-shadow: 0 0 8px var(--accent-neon);
}

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Base Layout Components */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.section {
  padding: var(--spacing-section) 0;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: var(--glass-border);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.nav-logo span {
  color: var(--accent-cyan);
}

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

.nav-links a {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

/* Mobile Menu */
.mobile-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 300px; height: 100vh;
    background: rgba(3, 7, 18, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    border-left: var(--glass-border);
  }
  .nav-links.active {
    right: 0;
  }
  .mobile-btn { display: block; z-index: 1001; }
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-panel);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 3rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--glass-glow);
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  background: var(--bg-panel-hover);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.25);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(6,182,212,0.8), rgba(59,130,246,0.8));
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background: linear-gradient(135deg, rgba(6,182,212,1), rgba(59,130,246,1));
  box-shadow: 0 0 20px var(--accent-cyan);
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}
.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Footer (Advanced Multi-layer) */
.site-footer {
  background: #000;
  padding: 6rem 5% 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

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

.footer-col h4 {
  color: var(--accent-cyan);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.8rem;
}
.footer-col ul li a {
  color: var(--text-muted);
}
.footer-col ul li a:hover {
  color: #fff;
}

.newsletter-form input {
  width: 100%;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  margin-bottom: 1rem;
}
.newsletter-form button {
  width: 100%;
  border-radius: 8px;
}

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

.footer-bottom a {
  color: #fff;
}

.back-to-top {
  position: absolute;
  top: -25px;
  right: 5%;
  width: 50px; height: 50px;
  background: var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  transition: transform 0.3s;
}
.back-to-top:hover {
  transform: translateY(-5px);
}

/* Animations Trigger Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
