:root {
  /* Core Colors */
  --bg-color: #030303;
  --bg-card: rgba(20, 20, 20, 0.7);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --accent-primary: #00D1FF; /* Technical Teal */
  --accent-secondary: #FF9900; /* AWS Orange */
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-effect: blur(12px) saturate(180%);
  
  /* Spacing */
  --section-padding: 120px 20px;
  --container-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background Grid Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  opacity: 0.3;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 24px; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 40px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

nav.scrolled {
  background: rgba(3, 3, 3, 0.8);
  backdrop-filter: var(--glass-effect);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--text-primary); }

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 209, 255, 0.1);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 40px;
}

.cta-group {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, background 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-color);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  height: 80%;
  opacity: 0.8;
  mask-image: radial-gradient(circle, black 30%, transparent 80%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Architecture Visual Section (Topology Constellation) */
.architecture-visual {
  padding: var(--section-padding);
  background: radial-gradient(circle at center, rgba(0, 209, 255, 0.05), transparent 70%);
  overflow: hidden;
}

.topology-constellation {
  position: relative;
  height: 450px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 130px;
  backdrop-filter: var(--glass-effect);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  /* Use variables to preserve translate during hover */
  transform: translate(var(--tx, 0), var(--ty, 0));
}

.node:hover {
  border-color: var(--accent-primary);
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.1);
  box-shadow: 0 0 30px rgba(0, 209, 255, 0.2);
  z-index: 10;
}

.node::before {
  content: attr(data-tech);
  position: absolute;
  top: -12px;
  font-size: 0.6rem;
  background: var(--bg-color);
  padding: 2px 6px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--accent-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.node-central {
  width: 160px;
  padding: 24px;
  border-color: rgba(0, 209, 255, 0.4);
  z-index: 5;
  --tx: 0px; --ty: 0px;
}

.node-1 { --tx: -320px; --ty: -60px; }  /* Ingestion */
.node-2 { --tx: 320px; --ty: -60px; }   /* Compute */
.node-3 { --tx: -240px; --ty: 140px; }  /* Legacy */
.node-4 { --tx: 240px; --ty: 140px; }   /* Storage */
.node-5 { --tx: 0px; --ty: -180px; }    /* Analytics */
.node-6 { --tx: -130px; --ty: -120px; } /* Dev */
.node-7 { --tx: 130px; --ty: -120px; }  /* Serverless */
.node-8 { --tx: 0px; --ty: 180px; }     /* Data Lakehouse */

.aws-icon {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
}

.node-central .aws-icon { color: var(--accent-primary); }

/* Connecting Lines (Constellation Effect) */
.constellation-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: 
    radial-gradient(circle at 50% 50%, var(--accent-primary) 1px, transparent 1px),
    linear-gradient(rgba(0, 209, 255, 0.1) 1px, transparent 1px);
  background-size: 100% 100%;
  opacity: 0.2;
}

/* Custom background connector lines using pseudo-elements on container */
.topology-constellation::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px dashed rgba(0, 209, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

/* Services Section */
.services {
  padding: var(--section-padding);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  transition: border-color 0.3s, transform 0.3s;
  backdrop-filter: var(--glass-effect);
}

.card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--accent-primary);
}

.tech-tag {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: var(--accent-secondary);
}

/* Stack Section */
.stack {
  padding: var(--section-padding);
  background: rgba(255, 255, 255, 0.02);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  opacity: 0.6;
  filter: grayscale(1);
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Footer */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-logo { margin-bottom: 24px; }

/* Mobile Optimization */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-visual {
    width: 100%;
    right: 0;
    top: 60%;
    opacity: 0.4;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
