/* =============================================================================
   VizachiAI — Base Styles, Typography & Luxury Utilities (main.css)
   ============================================================================= */

@import url('./variables.css');

/* ── 1. CSS Reset & Global Standards ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--gold-dark);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: var(--diamond-black);
}

/* ── Global Selection Highlighting ── */
::selection {
  background-color: rgba(197, 168, 128, 0.4);
  color: var(--diamond-black);
}

::-moz-selection {
  background-color: rgba(197, 168, 128, 0.4);
  color: var(--diamond-black);
}

/* ── 2. Custom Elegant Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-cream-soft);
}

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

* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-light) var(--bg-cream-soft);
}

/* ── 3. Typography & Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--diamond-black);
  letter-spacing: -0.02em;
}

.font-display {
  font-family: var(--font-display) !important;
  letter-spacing: 0.02em;
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.03em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.025em; }
h3 { font-size: var(--text-2xl); letter-spacing: -0.02em; }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* ── 4. Keyframe Animations & Micro-Interactions ── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.45);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(197, 168, 128, 0);
  }
}

@keyframes pulseAura {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
    box-shadow: 0 0 25px rgba(197, 168, 128, 0.4), inset 0 0 15px rgba(197, 168, 128, 0.2);
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
    box-shadow: 0 0 45px rgba(197, 168, 128, 0.7), inset 0 0 25px rgba(197, 168, 128, 0.4);
  }
}

@keyframes rotateHalo {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-0.5deg);
  }
}

@keyframes shineSweep {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    left: 200%;
    opacity: 0;
  }
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes radarScan {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(200%);
    opacity: 0;
  }
}

@keyframes badgeGlow {
  0%, 100% {
    border-color: rgba(197, 168, 128, 0.4);
    box-shadow: 0 4px 14px rgba(197, 168, 128, 0.15);
  }
  50% {
    border-color: rgba(197, 168, 128, 0.9);
    box-shadow: 0 6px 24px rgba(197, 168, 128, 0.35);
  }
}

/* ── Scroll Reveal Animations (Safe Progressive Enhancement) ── */
.reveal, .reveal-fade, .reveal-scale {
  opacity: 1; /* Default visible to ensure no blank screens if JS is delayed/cached */
  transform: none;
}

body.js-reveal-active .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

body.js-reveal-active .reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body.js-reveal-active .reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease;
}

body.js-reveal-active .reveal-fade.is-visible {
  opacity: 1 !important;
}

body.js-reveal-active .reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-reveal-active .reveal-scale.is-visible {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ── 5. Luxury Utility Classes ── */
.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-fill-color: transparent;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-diamond {
  background: linear-gradient(135deg, #080824 0%, #2E334D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient {
  background: linear-gradient(135deg, #080824 0%, #7E6641 45%, #C5A880 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.text-diamond {
  color: var(--diamond-black);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.glass-panel-dark {
  background: var(--gradient-diamond-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: var(--radius-lg);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow-diamond);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

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

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

.flex-col {
  display: flex;
  flex-direction: column;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.hidden {
  display: none !important;
}

.animate-fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* Section Header Styles */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gradient-badge-gold);
  border: 1px solid rgba(197, 168, 128, 0.45);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--diamond-black);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-secondary);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
