/* ═══════════════════════════════════════════════════════
   GDATA GROUP — style.css
   Scope: Shared base — variables, reset, typography,
          helpers, scrollbar, buttons, animations,
          bootstrap overrides.
   Component styles live in: header.css, posts_list.css,
                             footer.css
   ═══════════════════════════════════════════════════════ */

/* ── 1. GOOGLE FONTS ─────────────────────────────────── */
/* Fonts are loaded via <link> in header.php with preconnect for faster TTFB.
   Inlining @import here would create a CSS waterfall that delays LCP. */

/* ── 2. CSS VARIABLES ───────────────────────────────── */
:root {
  /* Background */
  --bg-main: #00193C;
  --bg-card: #001530;
  --bg-card2: #00224f;
  --bg-nav: rgba(0, 25, 60, .96);
  --bg-section: #011a40;

  /* Text */
  --text-primary: #FFFFFF;
  --text-body: #D0E4F5;
  --text-muted: #7A9BB5;

  /* Brand accent */
  --accent: #0D59F2;
  --accent-light: #3D7FFF;
  --accent-glow: rgba(13, 89, 242, .3);
  --cyan: #00C8D4;
  --cyan-glow: rgba(0, 200, 212, .25);

  /* Borders */
  --border: rgba(13, 89, 242, .18);
  --border-cyan: rgba(0, 200, 212, .18);

  /* Fonts */
  --font-heading: 'Orbitron', 'Segoe UI', sans-serif;
  --font-body: 'Exo 2', 'Segoe UI', sans-serif;
  --font-grotesk: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-manrope: 'Manrope', 'Segoe UI', sans-serif;
  --font-worksans: 'Work Sans', 'Segoe UI', sans-serif;

  /* Sizes */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 18px;
  --text-lg: 24px;
  --text-xl: 32px;
  --text-2xl: 48px;

  /* Weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --fw-black: 900;

  /* Spacing */
  --lh-tight: 1.2;
  --lh-normal: 1.65;
  --lh-loose: 1.85;
  --ls-wide: .08em;
  --ls-wider: .16em;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .3s;
}

/* ── 3. RESET ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ── 4. BASE BODY ───────────────────────────────────── */
body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── 5. TYPOGRAPHY ──────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  /* letter-spacing: var(--ls-wide); */
  margin-bottom: .75rem;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

h4 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

h5 {
  font-size: var(--text-base);
}

h6 {
  font-size: var(--text-sm);
}

p {
  line-height: var(--lh-loose);
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--accent-light);
}

/* Helper classes */
.text-accent {
  color: var(--accent) !important;
}

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

.text-muted-custom {
  color: var(--text-muted) !important;
}

.text-heading {
  font-family: var(--font-heading);
}

.text-upper {
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

.fw-semi {
  font-weight: var(--fw-semi);
}

/* ── 6. SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* ── 7. BUTTONS ─────────────────────────────────────── */
.btn-gdata {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-gdata-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-gdata-primary:hover {
  background: var(--accent-light);
  color: #fff;
  box-shadow: 0 0 36px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-gdata-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 11px 26px;
}

.btn-gdata-outline:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-gdata-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border-cyan);
  padding: 9px 22px;
}

.btn-gdata-ghost:hover {
  background: var(--cyan);
  color: var(--bg-main);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-2px);
}

.btn-gdata:active {
  transform: translateY(0) !important;
}

/* Ripple */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  transform: scale(0);
  animation: ripple-anim .65s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── 8. SECTION UTILITIES ───────────────────────────── */
.section-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--accent);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  margin-bottom: 1.5rem;
}

.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), var(--accent), transparent);
  opacity: .35;
}

.bg-card {
  background-color: var(--bg-card);
}

.bg-section {
  background-color: var(--bg-section);
}

.border-accent {
  border-color: var(--border) !important;
}

/* ── 9. SCROLL REVEAL ─────────────────────────────────
   Hidden state is scoped to `html.js-on` so that if JS
   fails to load (mobile network glitch, blocked script,
   parse error), .reveal elements remain visible instead
   of being permanently transparent. */
.reveal,
.reveal-left,
.reveal-right {
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.js-on .reveal {
  opacity: 0;
  transform: translateY(26px);
}

.js-on .reveal-left {
  opacity: 0;
  transform: translateX(-26px);
}

.js-on .reveal-right {
  opacity: 0;
  transform: translateX(26px);
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

.delay-1 {
  transition-delay: .1s !important;
}

.delay-2 {
  transition-delay: .2s !important;
}

.delay-3 {
  transition-delay: .3s !important;
}

.delay-4 {
  transition-delay: .4s !important;
}

.delay-5 {
  transition-delay: .5s !important;
}

/* ── 10. PAGE LOAD ANIMATIONS ───────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 42px rgba(13, 89, 242, .6);
  }
}

.anim-fade-up {
  animation: fadeUp .65s var(--ease) both;
}

.anim-fade-in {
  animation: fadeIn .65s var(--ease) both;
}

.anim-slide-left {
  animation: slideLeft .65s var(--ease) both;
}

.anim-glow-pulse {
  animation: glowPulse 2.5s ease infinite;
}

.anim-d1 {
  animation-delay: .1s;
}

.anim-d2 {
  animation-delay: .22s;
}

.anim-d3 {
  animation-delay: .34s;
}

.anim-d4 {
  animation-delay: .46s;
}

.anim-d5 {
  animation-delay: .58s;
}

/* ── 11. BOOTSTRAP OVERRIDES ────────────────────────── */
.text-primary {
  color: var(--accent) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-primary {
  background-color: var(--accent) !important;
}

.bg-dark {
  background-color: var(--bg-nav) !important;
}

.border {
  border-color: var(--border) !important;
}

.card {
  background-color: var(--bg-card);
  border-color: var(--border);
  color: var(--text-body);
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
}

/* ── 12. RESPONSIVE (shared) ────────────────────────── */
@media (max-width: 575px) {
  .btn-gdata-primary,
  .btn-gdata-outline {
    padding: 10px 20px;
  }
}
