/* ==========================
   PREMIUM DESIGN TOKENS (SHA.AERO STYLE)
   Ref: Deep Blue, Aviation, Glassmorphism, High Trust
   ========================== */
:root {
  /* Brand Palette - Deep Space & Aviation Blue */
  --bg-deep: #020617;
  /* Very dark slate/blue */
  --bg-surface: #0f172a;
  /* Lighter slate for cards */
  --primary: #38bdf8;
  /* Electric Sky Blue */
  --primary-glow: rgba(56, 189, 248, 0.4);
  --accent: #818cf8;
  /* Soft Indigo */
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);

  /* Text */
  --text-main: #f8fafc;
  /* Almost white */
  --text-muted: #94a3b8;
  /* Muted slate */
  --text-dark: #0f172a;
  /* For buttons/light backgrounds */

  /* Glass / Surfaces */
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --card-bg: rgba(30, 41, 59, 0.4);
  /* Translucent card */

  /* Structural */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --max-w: 1280px;

  /* Effects */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --glow-text: 0 0 20px rgba(56, 189, 248, 0.3);
}

/* ==========================
   RESET & BASE
   ========================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

h2 {
  font-size: 2.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================
   UTILITIES & LAYOUT
   ========================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

/* Decorative Divider lines */
.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  height: 1px;
  background: radial-gradient(circle, var(--glass-border) 0%, transparent 100%);
}

.text-gradient {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================
   NAVIGATION (GLASS HEADER)
   ========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(2, 6, 23, 0.7);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.header-logo i {
  color: var(--primary);
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.header-search {
  flex: 1;
  max-width: 400px;
  margin: 0 40px;
  position: relative;
}

.header-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 12px 20px 12px 48px;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.header-search input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-glow);
  outline: none;
}

.header-search::before {
  content: '\f002';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text-main);
}

.header-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--primary);
}

.header-nav a:hover::after {
  width: 100%;
}

/* ==========================
   HERO SECTION
   ========================== */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Clean, modern grid background effect */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.hero p {
  font-size: 1.25rem;
  max-width: 90%;
}

.hero-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-card:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text-main);
  margin-top: 4px;
}

.metric span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ==========================
   BUTTONS
   ========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-deep);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.cta-button {
  /* Legacy class support */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================
   CARDS & GRID
   ========================== */
.homeGrid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Glow effect on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-highlight);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 189, 248, 0.1);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Badges */
.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.badge.category {
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
}

/* ==========================
   CATEGORIES & FILTERS
   ========================== */
.catTile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid var(--glass-border);
  padding: 24px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.catTile:hover {
  border-color: var(--primary);
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.1);
}

.catTile strong {
  display: block;
  color: var(--text-main);
  font-size: 1.1rem;
}

.category-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cat-filter {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-filter:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.cat-filter.active {
  background: var(--primary);
  color: var(--bg-deep);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  font-weight: 600;
}

/* ==========================
   FOOTER
   ========================== */
.site-footer {
  margin-top: 100px;
  padding: 100px 0 40px;
  background: #000;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 16px;
  opacity: 0.7;
}

.footer-column h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin-bottom: 24px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .header-nav {
    display: none;
    /* simple hiding for now */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: var(--bg-surface);
  border-left: 1px solid var(--glass-border);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
}

.menu-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav a {
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.mobile-cta {
  margin-top: 16px;
  text-align: center;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  padding: 12px !important;
  font-weight: 600;
}

@media (max-width: 900px) {
  .menu-btn {
    display: block;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
  }
}

@media (min-width: 901px) {
  .menu-btn {
    display: none;
  }
}