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

:root {
  /* Antigravity Obsidian/Slate Palette */
  --bg-obsidian: #080b11;
  --bg-slate: #0f172a;
  --bg-slate-light: #1e293b;
  
  --text-primary: #f8fafc; /* Slate 50 */
  --text-secondary: #94a3b8; /* Slate 400 */
  --text-tertiary: #64748b; /* Slate 500 */
  
  --accent: #38bdf8; /* Soft blue glow for highlight */
  --border: rgba(255, 255, 255, 0.08);
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Ensure links and interactive elements don't show the default hand cursor so our tracer acts as the pointer */
a, button, .btn, .glow-card, .mobile-toggle {
  cursor: none !important;
}

::selection {
  background: var(--text-primary);
  color: var(--bg-obsidian);
}

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

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

p { font-weight: 300; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar: Glassmorphism */
.ag-nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  will-change: transform, background-color, backdrop-filter;
}

.ag-nav.scrolled {
  background: rgba(8, 11, 17, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.brand { display: flex; align-items: center; gap: 1rem; }
.logo-wrapper {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-slate);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.logo-wrapper img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); }
.brand-text { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); }
.nav-links a:hover { color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-obsidian);
  box-shadow: 0 0 0 rgba(255,255,255,0);
}
.btn-primary:hover {
  background: var(--text-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.4);
  border-color: var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-nav { padding: 0.6rem 1.5rem; }

/* Mobile Menu Toggle */
.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 0.5rem; }
.mobile-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-slate); padding: 1.5rem; gap: 1.5rem; border-bottom: 1px solid var(--border); }
.mobile-menu.active { display: flex; }

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.8) 0%, var(--bg-obsidian) 70%);
  opacity: 0.8;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-subtitle { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.875rem; font-weight: 600; color: var(--accent); margin-bottom: 1.5rem; display: block; }
.hero-title { margin-bottom: 1.5rem; }
.hero-title span.accent-italic { color: var(--text-secondary); font-weight: 400; font-style: italic; font-family: serif; }
.hero-desc { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* Social Proof */
.social-proof {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.3);
  text-align: center;
}
.stars { color: #f59e0b; display: flex; justify-content: center; gap: 0.25rem; margin-bottom: 0.5rem; }
.social-proof p { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }

/* Antigravity Cards & Glow */
.ag-card {
  position: relative;
  background: var(--bg-slate);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  transform-style: preserve-3d;
  will-change: transform;
}

.glow-card {
  overflow: hidden;
}

.glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    800px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(255, 255, 255, 0.05),
    transparent 40%
  );
  z-index: 0;
  transition: opacity 0.3s ease;
  opacity: 0;
  will-change: background;
}

.glow-card:hover .glow {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Services */
.services { padding: 8rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header p { color: var(--text-secondary); font-size: 1.125rem; margin-top: 1rem; margin-bottom: 2rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; perspective: 1200px; }

.service-icon {
  width: 3.5rem; height: 3.5rem;
  background: var(--text-primary);
  color: var(--bg-obsidian);
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
  transform: translateZ(20px);
}
.service-icon.dark { background: var(--bg-obsidian); color: var(--text-primary); border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.5); }

.ag-card h3 { margin-bottom: 1rem; transform: translateZ(10px); }
.ag-card p { color: var(--text-secondary); margin-bottom: 2rem; flex-grow: 1; transform: translateZ(10px); }

.service-features { margin-bottom: 2.5rem; transform: translateZ(10px); }
.service-features li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; color: var(--text-secondary); font-size: 0.95rem; }
.service-features li i { color: var(--text-tertiary); width: 1rem; height: 1rem; }

.service-link { display: inline-flex; align-items: center; font-weight: 700; gap: 0.25rem; transform: translateZ(10px); }
.service-link:hover { color: var(--text-primary); }

/* About Section */
.about { padding: 8rem 0; background: rgba(15, 23, 42, 0.4); text-align: center; }
.about-content { max-width: 800px; margin: 0 auto; }
.avatar {
  width: 8rem; height: 8rem;
  border-radius: 50%;
  margin: 0 auto 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; position: relative; z-index: 1;}
.about h2 { margin-bottom: 1.5rem; }
.about p { font-size: 1.125rem; color: var(--text-secondary); }

/* Contact Section */
.contact { padding: 8rem 0; background: var(--bg-obsidian); }
.contact-form {
  max-width: 800px;
  margin: 0 auto;
}
.contact-form .card-content {
  padding: 3rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; text-align: left; transform: translateZ(5px); }
.form-group.full-width { grid-column: 1 / -1; }
label { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); }

input, select, textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(8, 11, 17, 0.8);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  will-change: border-color, box-shadow;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.1);
}
textarea { resize: vertical; min-height: 120px; }

.submit-btn { width: 100%; margin-top: 2rem; margin-bottom: 1.5rem; transform: translateZ(10px); }
.contract-link { text-align: center; transform: translateZ(5px); }
.contract-link a { font-size: 0.875rem; color: var(--text-tertiary); text-decoration: underline; text-underline-offset: 4px; }
.contract-link a:hover { color: var(--text-primary); }

/* Footer */
footer { background: var(--bg-obsidian); border-top: 1px solid var(--border); padding: 4rem 0; text-align: center; color: var(--text-secondary); }
.footer-logo { width: 2.5rem; height: 2.5rem; margin: 0 auto 1.5rem; border-radius: 50%; overflow: hidden; opacity: 0.5; }
.footer-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); filter: grayscale(100%); }
footer p { font-size: 0.875rem; margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-actions { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form .card-content { padding: 2rem 1.5rem; }
}

/* Base states for GSAP Scroll Reveal */
.gs-reveal {
  opacity: 0;
  visibility: hidden;
}

/* Cursor Tracer Canvas Layer */
#cursor-tracer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Background Geometry */
#bg-geometry {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.geo-shape {
  position: absolute;
  color: var(--text-muted);
  opacity: 0.08;
  will-change: transform;
}

/* Initial placements */
.shape-1 { width: 600px; height: 600px; top: -100px; right: -150px; }
.shape-2 { width: 400px; height: 400px; top: 40%; left: -100px; }
.shape-3 { width: 500px; height: 500px; bottom: -150px; right: 10%; }

