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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection */
::selection {
  background-color: var(--gold-primary);
  color: #0A1628;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-hover), var(--gold-primary), var(--gold-dark));
  border-radius: var(--radius-pill);
}

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

/* Top Scroll Reading Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #9E782F, #C5A047, #F3E7BE, #C5A047);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(197, 160, 71, 0.6);
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #07111E;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-emblem {
  width: 80px;
  height: 80px;
  animation: pulseGold 2s infinite ease-in-out;
}

.preloader-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-top: 18px;
  font-weight: 800;
}

.preloader-sub {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 6px;
}

.preloader-bar-wrap {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-top: 24px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #C5A047, #F3E7BE, transparent);
  position: absolute;
  left: -100%;
  animation: preloaderTrack 1.5s infinite;
}

@keyframes preloaderTrack {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes pulseGold {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(197, 160, 71, 0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(197, 160, 71, 0.8)); }
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-heading);
}

h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

ul, ol {
  list-style: none;
}

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

/* Utility Classes */
.text-gold {
  color: var(--gold-primary);
}

.text-gold-light {
  color: var(--gold-light);
}

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

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(197, 160, 71, 0.12);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.25rem auto;
}

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

.section-header p {
  margin-top: 0.85rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.py-section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}
