/* ============================================================
   HRS OUTBOOKS LLC — MAIN DESIGN SYSTEM
   Global CSS Variables, Typography, Utilities, Animations
   ============================================================ */

/* ─── Google Fonts Import ─── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── CSS Custom Properties ─── */
:root {
  /* Brand Colors */
  --primary: #0B3D91;
  --primary-bright: #1E5EFF;
  --primary-light: #4A80FF;
  --navy-dark: #041E42;
  --navy-mid: #0A2A6E;
  --cyan-accent: #00C6FF;
  --cyan-soft: #7DD8FF;
  --white: #FFFFFF;
  --light-bg: #F8FAFC;
  --light-gray: #EEF2F8;
  --text-dark: #0D1B3E;
  --text-body: #374151;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0B3D91 0%, #1E5EFF 60%, #00C6FF 100%);
  --grad-navy: linear-gradient(135deg, #041E42 0%, #0B3D91 100%);
  --grad-light: linear-gradient(135deg, #F8FAFC 0%, #EEF2F8 100%);
  --grad-mesh: radial-gradient(ellipse at 20% 50%, rgba(30, 94, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 198, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(11, 61, 145, 0.2) 0%, transparent 60%);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-md: rgba(255, 255, 255, 0.12);
  --glass-bg-light: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-border-md: rgba(255, 255, 255, 0.25);
  --glass-blur: blur(20px);
  --glass-blur-sm: blur(10px);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11, 61, 145, 0.08);
  --shadow-md: 0 4px 24px rgba(11, 61, 145, 0.12);
  --shadow-lg: 0 8px 48px rgba(11, 61, 145, 0.18);
  --shadow-xl: 0 16px 64px rgba(11, 61, 145, 0.24);
  --shadow-glow: 0 0 40px rgba(30, 94, 255, 0.35);
  --shadow-card: 0 20px 60px rgba(11, 61, 145, 0.15);

  /* Typography */
  --font-heading: 'Manrope', 'Poppins', sans-serif;
  --font-sub: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Font Sizes (Enterprise Design System) */
  --fs-display: clamp(3rem, 6vw, 3.5rem);
  --fs-h1: clamp(2.5rem, 4.5vw, 4rem);
  --fs-h2: clamp(2rem, 3.5vw, 3rem);
  --fs-h3: clamp(1.5rem, 2.5vw, 2rem);
  --fs-h4: clamp(1.25rem, 2vw, 1.5rem);
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --section-py: clamp(80px, 10vw, 140px);
  --container-px: clamp(20px, 5vw, 60px);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s var(--ease-smooth);
  --transition-base: all 0.35s var(--ease-smooth);
  --transition-slow: all 0.6s var(--ease-smooth);

  /* Z-index Scale */
  --z-loader: 9999;
  --z-header: 1000;
  --z-modal: 900;
  --z-dropdown: 800;
  --z-tooltip: 700;
  --z-overlay: 600;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-body);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

.display-text {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-bright);
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-sub);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-title span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
}

/* ─── Layout Utilities ─── */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

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

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

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

.section--gradient {
  background: var(--grad-navy);
  color: var(--white);
}

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

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(30, 94, 255, 0.4);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30, 94, 255, 0.55);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1rem;
}

.btn-icon {
  padding: 14px 28px;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-bounce);
}

.btn-icon:hover svg {
  transform: translateX(4px);
}

/* ─── Glass Cards ─── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
}

.glass-card-light {
  background: var(--glass-bg-light);
  border: 1px solid rgba(11, 61, 145, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.glass-card-dark {
  background: rgba(4, 30, 66, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
}

/* ─── Badge / Tags ─── */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(30, 94, 255, 0.1);
  color: var(--primary-bright);
  border: 1px solid rgba(30, 94, 255, 0.2);
}

.badge-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ─── Icon Containers ─── */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.icon-box-sm {
  width: 44px;
  height: 44px;
}

.icon-box-md {
  width: 56px;
  height: 56px;
}

.icon-box-lg {
  width: 72px;
  height: 72px;
}

.icon-box-xl {
  width: 88px;
  height: 88px;
}

.icon-box-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(30, 94, 255, 0.35);
}

.icon-box-glass {
  background: var(--glass-bg-md);
  border: 1px solid var(--glass-border-md);
  backdrop-filter: var(--glass-blur);
  color: var(--white);
}

.icon-box-light {
  background: rgba(30, 94, 255, 0.08);
  color: var(--primary-bright);
}

/* ─── Dividers ─── */
.divider {
  width: 60px;
  height: 4px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  margin: 1.5rem 0;
}

.divider-center {
  margin: 1.5rem auto;
}

/* ─── Floating Elements ─── */
.floating {
  animation: floating 6s ease-in-out infinite;
}

.floating-slow {
  animation: floating 9s ease-in-out infinite;
}

.floating-fast {
  animation: floating 4s ease-in-out infinite;
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* ─── Gradient Blob Background ─── */
.blob-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* ─── Page Loader ─── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: var(--z-loader);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  animation: autoDismissLoader 0.1s ease 1.8s forwards;
}

#page-loader.loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@keyframes autoDismissLoader {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}


.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: loaderFadeIn 0.5s ease forwards;
}

.loader-logo-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.loader-logo-text span {
  color: var(--cyan-accent);
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  animation: loaderFill 1.8s var(--ease-smooth) forwards;
}

@keyframes loaderFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loaderFill {
  0% {
    width: 0%;
  }

  60% {
    width: 80%;
  }

  100% {
    width: 100%;
  }
}

/* ─── Custom Cursor ─── */
#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 94, 255, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--primary-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-loader);
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 0 12px rgba(30, 94, 255, 0.8);
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(30, 94, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-loader);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-smooth), width 0.3s ease, height 0.3s ease;
}

body:hover #cursor-dot {
  opacity: 1;
}

body:not(:hover) #cursor-dot {
  opacity: 0;
}

/* ─── Back to Top ─── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
  box-shadow: 0 8px 24px rgba(30, 94, 255, 0.4);
  cursor: pointer;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 94, 255, 0.55);
}

/* ─── Section Header Center ─── */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ─── AOS Overrides ─── */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ─── Card Hover Base ─── */
.hover-lift {
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* ─── Gradient Border ─── */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ─── Pulse Animation ─── */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(30, 94, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(30, 94, 255, 0.7);
  }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ─── Rotating Ring ─── */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* ─── Number Counter ─── */
.counter-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ─── Star Rating ─── */
.star-rating {
  display: flex;
  gap: 3px;
  color: #FFC53D;
}

/* ─── Responsive Utilities ─── */
@media (max-width: 991px) {
  :root {
    --section-py: clamp(60px, 8vw, 100px);
  }
}

@media (max-width: 767px) {
  :root {
    --section-py: 70px;
    --container-px: 20px;
  }

  #cursor-glow,
  #cursor-dot,
  #cursor-ring {
    display: none;
  }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary-bright);
  border-radius: 3px;
}

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

/* ─── Selection ─── */
::selection {
  background: rgba(30, 94, 255, 0.3);
  color: var(--text-dark);
}