/* ==========================================================================
   GAURISSON - BASE STYLES, RESETS, TYPOGRAPHY & GLOBAL UTILITIES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-navy-950);
  color: var(--color-gray-200);
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Smooth Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-navy-950);
}

::-webkit-scrollbar-thumb {
  background: var(--color-navy-700);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-navy-950);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-blue-electric);
}

/* --- Selection --- */
::selection {
  background-color: var(--color-blue-electric);
  color: var(--color-white);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }

p {
  margin-bottom: 1rem;
  color: var(--color-gray-300);
  font-size: var(--text-base);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-blue-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-solar-400);
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Accessibility Focus --- */
:focus-visible {
  outline: 2px solid var(--color-blue-cyan);
  outline-offset: 3px;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--container-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 900px;
}

.container-fluid {
  max-width: 1540px;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* --- Section Structural Spacing --- */
.section {
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
}

.section-sm {
  padding: 4rem 0;
}

.section-lg {
  padding: 8.5rem 0;
}

/* Light / Elevated section alternatives */
.section-elevated {
  background: linear-gradient(180deg, rgba(15, 27, 56, 0.4) 0%, rgba(11, 19, 43, 0.8) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.section-dark {
  background-color: var(--color-navy-950);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--color-blue-cyan);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-badge.badge-solar {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--color-solar-400);
}

.section-title {
  margin-bottom: 1.15rem;
}

.section-subtitle {
  color: var(--color-gray-400);
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* --- Text Highlights & Gradients --- */
.text-gradient-blue {
  background: var(--grad-blue-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-solar {
  background: var(--grad-solar);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-dual {
  background: linear-gradient(135deg, #00D2FF 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-solar {
  color: var(--color-solar-400);
}

.text-blue {
  color: var(--color-blue-cyan);
}

.text-muted {
  color: var(--color-gray-400);
}

/* --- Animations & Keyframes --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

@keyframes pulseSlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes flowLine {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ripple {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out 3s infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* --- Reveal on Scroll Utility --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
