/* ==========================================================================
   Global Layout & Utility Styles - Always Clean SF
   ========================================================================== */

@import url('variables.css');

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

html, body {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

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

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  color: var(--primary-navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  background-color: rgba(255, 205, 5, 0.25);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Aesthetics, Textures & 3D Typography Utility Classes
   ========================================================================== */

/* 3D & Gradient Text Effects */
.text-3d-title {
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

.text-gold-gradient {
  background: linear-gradient(180deg, #ffff80 0%, #ffcd05 60%, #e6b800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: none !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.text-glow-gold {
  color: var(--accent-gold);
  text-shadow: 0 0 15px rgba(255, 205, 5, 0.6), 0 0 30px rgba(255, 205, 5, 0.3);
}

/* Background Textures & Patterns */
.bg-texture-dots {
  background-image: radial-gradient(rgba(255, 205, 5, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-texture-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-texture-striped-dark {
  background: repeating-linear-gradient(45deg, #001626, #0e283b 8px) !important;
}

.bg-texture-striped-light {
  background: repeating-linear-gradient(326deg, #f5f8fa, #ffffff 8px) !important;
}

@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-float {
  animation: float-subtle 4s ease-in-out infinite;
}

/* Glassmorphism Containers */
.glass-card-premium {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
}

/* Ambient Floating Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.glow-orb-gold {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 205, 5, 0.35) 0%, transparent 70%);
}

.glow-orb-cyan {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
}

/* Static Micro-Animations & Shimmer Effects */
@keyframes shimmer-sweep {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(250%) rotate(25deg); }
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 60px;
  height: 200%;
  background: rgba(255, 255, 255, 0.45);
  animation: shimmer-sweep 3.5s infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 205, 5, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(255, 205, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 205, 5, 0); }
}

.pulse-gold-ring {
  animation: pulse-ring 2s infinite;
}
