:root {
  /* Colors - AI Age Modern (Dark Theme) */
  --color-bg-base: #0B0F19; /* Deep, near-black space */
  --color-bg-surface: rgba(30, 41, 59, 0.4); /* Glass surface */
  --color-bg-surface-hover: rgba(45, 140, 90, 0.1); 
  
  --color-primary: #2D8C5A;
  --color-primary-glow: rgba(45, 140, 90, 0.3);
  --color-primary-light: #4ade80;
  
  --color-text-main: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-text-dark: #FFFFFF;
  
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-glow: rgba(45, 140, 90, 0.3);

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Playfair Display', serif;

  /* Spacing */
  --site-max-width: 1280px;
  --section-padding-y: 160px;
  --element-gap: 32px;
  --bento-gap: 24px;

  /* Border Radius */
  --radius-bento: 24px;
  --radius-btn: 100px;
  --radius-badge: 100px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-base);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
  background-color: var(--color-bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global Ambient Background Effects */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -20%;
  width: 140vw;
  height: 140vh;
  background: radial-gradient(circle at 50% 50%, rgba(45, 140, 90, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: pulse-ambient 20s infinite alternate linear;
}

@keyframes pulse-ambient {
  0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  100% { transform: scale(1.1) translate(2%, 2%); opacity: 0.8; }
}

img, picture, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.2;
  font-weight: 700;
  background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.05em; /* Prevent descender clipping */
}

h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 24px;
}

h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--color-text-main);
}

.accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  /* Glowing text effect for accent */
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.1em;
}

/* =========================================
   Layout & Utilities
   ========================================= */
.container {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

section {
  padding: var(--section-padding-y) 0;
  position: relative;
  z-index: 1;
}

/* Glass & Glow Utilities */
.glass-panel {
  background: var(--color-bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-bento);
}

.text-gradient {
  background: linear-gradient(90deg, #F8FAFC, #94A3B8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================
   Components
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--transition-medium);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--color-primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(45, 140, 90, 0.05);
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(45, 140, 90, 0.1);
  border: 1px solid rgba(45, 140, 90, 0.2);
  color: var(--color-primary-light);
  border-radius: var(--radius-badge);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

/* =========================================
   Header (Glassmorphic)
   ========================================= */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: all var(--transition-medium);
}

.header.scrolled {
  padding: 16px 0;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  font-size: 24px; font-weight: 700;
  color: var(--color-text-main);
  display: flex; align-items: center; gap: 8px;
}
.logo-icon {
  width: 24px; height: 24px;
  color: var(--color-primary-light);
}
.logo-green {
  color: var(--color-primary-light);
}

.nav-links {
  display: flex; align-items: center; gap: 40px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 24px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
}

.nav-link {
  font-size: 14px; font-weight: 500;
  color: var(--color-text-muted);
}
.nav-link:hover { color: var(--color-text-main); }
.nav-btn { padding: 10px 24px; font-size: 14px; }

/* =========================================
   Hero Section (Atmospheric)
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
  perspective: 2000px; /* Enhanced depth */
}

/* 3D Architectural Space Container */
.hero-visual {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  transform-style: preserve-3d;
}

/* Base Grid Styles */
.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  background-image: 
    linear-gradient(rgba(45, 140, 90, 0.4) 2px, transparent 2px),
    linear-gradient(90deg, rgba(45, 140, 90, 0.4) 2px, transparent 2px);
  background-size: 100px 100px;
  width: 200%; height: 200%;
  top: -50%; left: -50%;
  transition: transform 0.1s ease-out;
}

/* The Floor */
.hero-visual::before {
  transform: 
    rotateX(82deg) /* Steeper angle for more perspective */
    translateZ(-150px) /* Move floor down */
    translate(calc(var(--hero-x, 0) * -1.5px), calc(var(--hero-y, 0) * -1.5px));
  mask-image: linear-gradient(to top, black 20%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 90%);
}

/* The Wall */
.hero-visual::after {
  transform: 
    rotateY(0deg)
    translateZ(-600px) /* Deep back wall */
    translate(calc(var(--hero-x, 0) * 1px), calc(var(--hero-y, 0) * 1px));
  mask-image: linear-gradient(to bottom, black 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 60%);
  opacity: 0.8;
}

/* Soft glow to blend the room */
.hero-content::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(45, 140, 90, 0.15) 0%, transparent 70%);
  z-index: -1;
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero p {
  font-size: 22px;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 32px auto 48px;
  font-weight: 400;
}

.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* =========================================
   Universal Bento Box Grid (Stats + Services)
   ========================================= */
.bento-section {
  padding-top: 40px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(min-content, auto);
  gap: var(--bento-gap);
}

.bento-item {
  position: relative;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform var(--transition-medium), border-color var(--transition-medium);
}

/* Interactive Hover effect for Bento items */
.bento-item:hover {
  border-color: rgba(45, 140, 90, 0.3);
  transform: translateY(-4px);
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  z-index: 0; pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.bento-item:hover::before {
  opacity: 1;
}

/* Specific Grid Placements */
.bento-stat-large { grid-column: span 8; }
.bento-stat-small-1 { grid-column: span 4; }
.bento-stat-small-2 { grid-column: span 4; }
.bento-stat-small-3 { grid-column: span 8; }

.bento-service { grid-column: span 6; min-height: 360px; }
.bento-service.wide { grid-column: span 8; }
.bento-service.narrow { grid-column: span 4; }

@media (max-width: 1024px) {
  .bento-stat-large { grid-column: span 12; }
  .bento-stat-small-1, .bento-stat-small-2, .bento-stat-small-3 { grid-column: span 6; }
  .bento-service, .bento-service.wide, .bento-service.narrow { grid-column: span 6; }
}

@media (max-width: 768px) {
  .bento-item { padding: 32px; }
  .bento-stat-small-1, .bento-stat-small-2, .bento-stat-small-3 { grid-column: span 12; }
  .bento-service, .bento-service.wide, .bento-service.narrow { grid-column: span 12; min-height: auto; }
}

/* Content styling within bento items */
.bento-content { position: relative; z-index: 1; }
.bento-icon {
  width: 56px; height: 56px;
  background: rgba(45, 140, 90, 0.1);
  border: 1px solid rgba(45, 140, 90, 0.2);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary-light);
  margin-bottom: 32px;
}

.stat-number {
  font-size: 72px; font-weight: 700;
  line-height: 1; margin-bottom: 12px;
  background: linear-gradient(135deg, #FFFFFF, #4ade80);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label {
  font-size: 16px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted);
}

/* =========================================
   Advantage Section
   ========================================= */
.advantage-content {
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.advantage-lead {
    font-size: 24px;
    color: var(--color-text-main);
    max-width: 800px;
    margin: 0 auto 64px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    text-align: left;
}

.advantage-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.advantage-item svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.advantage-item h4 {
    margin-bottom: 8px;
    color: var(--color-text-main);
}

@media (max-width: 768px) {
    .advantage-content { padding: 48px 24px; }
    .advantage-grid { grid-template-columns: 1fr; gap: 32px; }
    .advantage-lead { font-size: 20px; }
}

/* =========================================
   Contact/CTA Dark Mode Glow
   ========================================= */
.cta-section {
  position: relative;
  text-align: center;
  padding: 160px 0;
}

.cta-box {
  max-width: 800px; margin: 0 auto;
  padding: 80px 40px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(11, 15, 25, 0.8) 100%);
}

.cta-box::after {
  content: ''; position: absolute;
  top: -50%; left: 50%; transform: translateX(-50%);
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(45, 140, 90, 0.15) 0%, transparent 70%);
  z-index: -1;
}

.cta-box h2 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 24px;
}

.cta-box p {
  font-size: 20px; max-width: 500px; margin: 0 auto 40px; color: var(--color-text-muted);
}

/* =========================================
   Footer Deep Space
   ========================================= */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 80px 0 32px;
  background: var(--color-bg-base);
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px;
  margin-bottom: 64px;
}

.footer-desc {
  max-width: 320px; margin-top: 16px; font-size: 15px;
}

.footer h4 {
  font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-main); margin-bottom: 24px;
}

.footer-links {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-links a { font-size: 15px; color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-primary-light); padding-left: 4px; }

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; /* simple hide for desktop nav on mobile, use a hamburger later */ }
}
