/* =============================================
   BASE.CSS — Reset, Custom Properties, Globals
   Advantage IT Consulting Landing Page
   ============================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #0B1120;
  --bg-surface: #131B2E;
  --bg-surface-hover: #1A2540;
  --bg-hero-end: #0F172A;

  --accent: #00D4AA;
  --accent-hover: #00B894;
  --accent-glow: rgba(0, 212, 170, 0.15);
  --accent-glow-strong: rgba(0, 212, 170, 0.25);

  --emergency: #FF4444;
  --emergency-hover: #E03333;
  --emergency-glow: rgba(255, 68, 68, 0.2);

  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-on-accent: #0B1120;
  --text-muted: #64748B;

  --border-subtle: rgba(0, 212, 170, 0.15);
  --border-light: rgba(148, 163, 184, 0.12);

  /* Typography */
  --font-display: 'Cabinet Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'General Sans', system-ui, -apple-system, sans-serif;

  /* Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);    /* 12-13px */
  --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);  /* 13-14px */
  --text-base: clamp(0.9375rem, 0.9rem + 0.17vw, 1rem);     /* 15-16px */
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);     /* 17-19px */
  --text-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);        /* 20-24px */
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);       /* 24-36px */
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);            /* 32-48px */
  --text-hero: clamp(2.5rem, 1.8rem + 3.5vw, 4rem);         /* 40-64px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.08);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* --- Global Styles --- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Section spacing */
.section {
  padding-top: clamp(var(--space-16), 8vw, var(--space-24));
  padding-bottom: clamp(var(--space-16), 8vw, var(--space-24));
}

/* Section header */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
}

/* --- Scroll Animation Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }

/* --- Focus Styles --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Selection --- */
::selection {
  background: rgba(0, 212, 170, 0.3);
  color: var(--text-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
