/* VARIABLES */
:root {
  --bg-primary: #021024;
  --bg-secondary: #052659;

  --accent: #5483b3;
  --accent-light: #7da0ca;
  --accent-glow: #c1e8ff;

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;

  --radius: 12px;
  --transition: all 0.3s ease;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* =========================================
   SITE LOADER
========================================= */

#site-loader {
  position: fixed;
  inset: 0;

  background: radial-gradient(
    circle at center,
    rgba(84, 131, 179, 0.15),
    rgba(2, 16, 36, 1)
  );

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 999999;

  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

/* HIDE STATE */
#site-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* CONTENT */
.loader-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG LOGO */
.loader-content img {
  width: clamp(180px, 22vw, 320px);
  height: auto;

  animation: pulseLogo 2.4s ease-in-out infinite;

  transform-origin: center center;
  will-change: transform, opacity, filter;

  filter: drop-shadow(0 0 6px rgba(193, 232, 255, 0.18))
    drop-shadow(0 0 16px rgba(193, 232, 255, 0.08));
}
/* ANIMATION */
@keyframes pulseLogo {
  0% {
    opacity: 0.72;

    transform: scale(0.88);

    filter: drop-shadow(0 0 4px rgba(193, 232, 255, 0.1))
      drop-shadow(0 0 10px rgba(193, 232, 255, 0.04));
  }

  50% {
    opacity: 1;

    transform: scale(1);

    filter: drop-shadow(0 0 14px rgba(193, 232, 255, 0.28))
      drop-shadow(0 0 34px rgba(193, 232, 255, 0.16));
  }

  100% {
    opacity: 0.72;

    transform: scale(0.88);

    filter: drop-shadow(0 0 4px rgba(193, 232, 255, 0.1))
      drop-shadow(0 0 10px rgba(193, 232, 255, 0.04));
  }
}
@media (max-width: 600px) {
  .loader-content img {
    width: 210px;
  }
}

/*INITIAL STATE (hidden)*/
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.top-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120vh; /* extends beyond hero */
  z-index: 0;
  overflow: hidden;
}

.top-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.top-background::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(2, 16, 36, 0.15) 0%,
    /* very light top */ rgba(2, 16, 36, 0.5) 20%,
    /* still visible */ rgba(2, 16, 36, 0.8) 45%,
    /* start strong fade */ rgba(2, 16, 36, 0.95) 75%,
    /* heavy blend */ #021024 100%
  );
}
/* GLOBAL BACKGROUND LAYER */
.global-bg {
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.global-bg::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 50% 45%,
    rgba(10, 31, 63, 0.6),
    transparent 60%
  );

  pointer-events: none;
}
/* GLOBAL BLOBS */
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;

  mix-blend-mode: screen;
  will-change: transform;

  transform: translateZ(0);
  backface-visibility: hidden;
  pointer-events: none;
}

@media (max-width: 768px) {
  .blob {
    width: 320px;
    height: 320px;

    filter: blur(60px);

    opacity: 0.2;
  }
}

/* HERO AREA */
.blob1 {
  background: #5483b3;
  top: 5%;
  left: -5%;
}

.blob2 {
  background: #5483b3;
  top: 10%;
  right: -5%;
}

/* SERVICES AREA */
.blob3 {
  background: #5483b3;
  top: 25%;
  left: 12%;
  opacity: 0.5;
}

.blob4 {
  background: #5483b3;
  top: 35%;
  right: 10%;
  opacity: 0.7;
}

/* LOWER SECTIONS */
.blob5 {
  background: #5483b3;
  top: 50%;
  left: 15%;
}
.blob6 {
  background: #5483b3;
  top: 65%;
  right: 15%;
}
.blob7 {
  background: #5483b3;
  top: 75%;
  left: 15%;
}
.blob8 {
  background: #5483b3;
  top: 85%;
  right: 5%;
}
.blob9 {
  background: #5483b3;
  top: 10%;
  left: 5%;
}
.blob10 {
  background: #5483b3;
  top: 25%;
  right: 5%;
}
.blob11 {
  background: #5483b3;
  top: 50%;
  left: 5%;
}

.blob12 {
  background: #5483b3;
  top: 75%;
  right: 5%;
}

.section-highlight {
  position: absolute;
  width: 100%;
  height: 100vh; /* adjust based on section */

  left: 0;

  pointer-events: none;
  z-index: 0;
}
/*
.problems-highlight {
    top: 1500px; /* adjust based on layout 

    background: radial-gradient(
        circle at center,
        rgba(193,232,255,0.08),
        rgba(193,232,255,0.03),
        transparent 70%
    );
}*/

body {
  position: relative;
  font-family: "Inter", sans-serif;
  background: #021024; /* fixed base */
  color: var(--text-primary);
  line-height: 1.6;
  overflow: hidden;
}

body.site-loaded {
  overflow-x: hidden;
  overflow-y: auto;
}

#page-content {
  opacity: 0;

  transition: opacity 0.8s ease;
}

#page-content.loaded {
  opacity: 1;
}
.page-content {
  position: relative;
  z-index: 2;
}

/* TYPOGRAPHY */
h1 {
  font-size: 64px;
  font-weight: 700;
}
h2 {
  font-size: 40px;
  font-weight: 600;
}
h3 {
  font-size: 22px;
}

p {
  color: var(--text-secondary);
}
