/* ==========================================================================
   MAIN FOUNDATION & GLOBAL DARK THEME STYLES
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Clear Ice-Blue Focus Rings (WCAG Compliant) */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* 1. Scroll Progress Bar (2px Ice-Blue at top) */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--ice-blue);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 999999;
  pointer-events: none;
  will-change: transform;
}

/* 2. Cursor Spotlight (Desktop Only, Soft Ice-Blue radial glow ~400px behind content) */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 211, 255, 0.08) 0%, rgba(143, 211, 255, 0.02) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
  transform: translate3d(-500px, -500px, 0);
}

@media (hover: none), (pointer: coarse), not all and (hover: hover) and (pointer: fine) {
  .cursor-spotlight {
    display: none !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-page);
  /* One soft ice-blue glow behind hero */
  background-image: radial-gradient(ellipse 65% 45% at 70% 18%, var(--ice-blue-hero-glow), transparent 70%);
  background-attachment: fixed;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

/* Faint Jaipur Jali Pattern Texture Overlay (3.5% opacity) */
.jali-bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 0 C18 8 18 16 24 24 C18 32 18 40 24 48 C30 40 30 32 24 24 C30 16 30 8 24 0 Z M0 24 C8 18 16 18 24 24 C16 30 8 30 0 24 Z M48 24 C40 18 32 18 24 24 C32 30 40 30 48 24 Z' fill='%23EDEFF7' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 48px 48px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--coral-500);
  color: var(--text-inverse);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1.5rem;
  outline: 2px solid var(--border-focus);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 5vw, 2.5rem);
  padding-right: clamp(1.25rem, 5vw, 2.5rem);
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* Section Wrapper */
.section {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
  position: relative;
  z-index: 1;
}

.section-divider-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
  opacity: 0.4;
}

.jali-arch-divider {
  width: 100%;
  max-width: 260px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='18' viewBox='0 0 60 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 9 Q 15 0, 30 9 T 60 9' fill='none' stroke='%232A305B' stroke-width='1.5'/%3E%3Ccircle cx='30' cy='9' r='2.5' fill='%23FF8A6B'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* Section Header */
.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ice-blue);
  margin-bottom: 0.6rem;
}

.section-kicker::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background-color: var(--ice-blue);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: italic;
  color: var(--ice-blue);
}

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
}

p {
  color: var(--text-body);
}

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

a:hover {
  color: var(--ice-blue-hover);
}

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