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

:root {
  --bg-dark: #05060a;
  --bg-surface: rgba(13, 17, 28, 0.7);
  --bg-glass: rgba(10, 11, 16, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #007fff;
  --accent-cyan: #00e5ff;
  --accent-hover: #00d4ff;
  --accent-gold: #d4af37;
  --border-light: rgba(255, 255, 255, 0.1);
  --gradient-holographic: linear-gradient(135deg, rgba(0, 127, 255, 0.4) 0%, rgba(0, 229, 255, 0.4) 50%, rgba(212, 175, 55, 0.4) 100%);
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f9e596 50%, #d4af37 100%);
  --golden-ratio: 1.618;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* 🏔️ THE BEDROCK BACKGROUND */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/bedrock.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.15; /* Subtly opaque as requested */
  z-index: -2;
  filter: grayscale(20%) contrast(110%);
}

/* 💠 SACRED GEOMETRY OVERLAY */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  line-height: 1.1;
}

/* Typography */
.title-xl {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  line-height: 0.9;
}

.title-lg {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5%;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.nav-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 127, 255, 0.4));
}

.nav-brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--text-main);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  border-radius: 100px; /* Modern pill shape */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 127, 255, 0.3);
}

.btn-primary:hover {
  background: var(--accent-cyan);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
  transform: translateY(-4px);
}

/* 🌀 HOLOGRAPHIC TRANSITIONS */
.holo-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.btn:hover .holo-glow {
  opacity: 1;
}

/* Layout */
.section {
  padding: 10rem 5%;
  max-width: 1600px;
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 127, 255, 0.15), transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1), transparent 40%);
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 3rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 2rem 0.5rem 2rem 0.5rem; /* LEAF GEOMETRY */
  padding: 3.5rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 3rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  display: block;
}

.card-title {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

/* Form Controls */
.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.form-input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}

textarea.form-input {
  min-height: 180px;
  resize: vertical;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 6rem 5%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
}

/* Footer Extra */
.footer a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes holographic {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-fade-up {
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ⚜️ GOLDEN RATIO SPACING UTILITY */
.phi-spacer {
  margin-top: calc(1rem * var(--golden-ratio));
}

/* Responsive */
@media (max-width: 768px) {
  .navbar { padding: 1.25rem 2rem; }
  .nav-links { display: none; }
  .section { padding: 6rem 2rem; }
  .hero { padding-top: 6rem; }
  .card { padding: 2rem; }
}
