/* ========================================
   MAIN.CSS - Global Styles & Variables
   Core styles that apply across all pages
   ======================================== */

/* ========================================
   FONTS
   ======================================== */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ========================================
   CSS VARIABLES - DESIGN TOKENS
   ======================================== */
:root {
  /* Color Palette */
  --color-primary: #f68732;
  --color-primary-light: #ff9d5c;
  --color-primary-dark: #e67519;
  --color-secondary: #f68732;

  /* Grayscale */
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #4b5563;
  --color-gray-600: #374151;
  --color-gray-700: #3e3a39;
  --color-gray-800: #3e3a39;
  --color-gray-900: #2c2828;

  /* Background Colors */
  --color-bg-dark: #ffffff;
  --color-bg-darker: #f9fafb;
  --color-bg-light: #ffffff;
  --color-bg-hero: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);

  /* Spacing System */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 25px;
  --radius-2xl: 35px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(62, 58, 57, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(62, 58, 57, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(62, 58, 57, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(62, 58, 57, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(62, 58, 57, 0.25);
  --shadow-orange: 0 4px 15px rgba(246, 135, 50, 0.3);
  --shadow-orange-lg: 0 8px 25px rgba(246, 135, 50, 0.4);

  /* Layout */
  --header-height: 70px;
  --subnav-height: 60px;
  --max-width: 1400px;

  /* Typography - Font Families */
  --font-primary: "Orbitron", sans-serif;
  --font-secondary: "Poppins", sans-serif;

  /* Typography - Font Sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.5rem;

  /* Typography - Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

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

/* ========================================
   BASE STYLES
   ======================================== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--color-bg-darker);
  /* Reserve space for both fixed header and fixed subnav */
  padding-top: calc(var(--header-height) + var(--subnav-height));
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-gray-800);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
}

h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

/* Specific elements that should use Orbitron */
.hero-title,
.hero-speed,
.packages-title,
.blog-hero-title,
.contact-title,
.feature-title,
.package-speed,
.header-logo,
.speed-number,
.job-title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-black);
  letter-spacing: -0.03em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: var(--font-secondary);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
}

/* ========================================
   ACCESSIBILITY - FOCUS STYLES
   ======================================== */
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

button:focus-visible,
.header-btn:focus-visible,
.hero-cta-btn:focus-visible,
.pill:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Link focus */
a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-primary) !important;
  outline-offset: 0;
}

.skip-to-main {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 10000;
  transition: top 0.3s ease;
  text-decoration: none;
}

.skip-to-main:focus {
  top: 10px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.font-primary {
  font-family: var(--font-primary);
}

.font-secondary {
  font-family: var(--font-secondary);
}

.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ========================================
   ACCESSIBILITY - REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .header,
  .subnav,
  .footer,
  .hero-cta-btn {
    display: none;
  }
  body {
    padding-top: 0;
  }
}
