/* ===== Production-Ready CSS ===== */

/* Preload critical font */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500&display=swap');

/* ===== Base Reset ===== */
html {
  box-sizing: border-box;
  font-size: clamp(2.5rem); 
}

*, *::before, *::after {
  box-sizing: inherit;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent;
  position: relative;
  font-feature-settings: 'kern' 1, 'liga' 1;
  font-size-adjust: 0.5;
}

/* Hide scrollbars */
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

/* Global gradient overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(25deg, #1990e7 0%, rgba(4, 41, 134, 0.6) 40%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* White background variant */
body.white-bg {
  background: #fff !important;
}

body.white-bg::after {
  content: none !important;
  background: none !important;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes luxuryPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.4; }
}

/* ===== Typography Base ===== */
h2 {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: clamp(2.25rem, 4vw, 3.5rem); /* Bigger mobile */
  margin-block-end: 0;
  line-height: 1.0;
}

/* ===== Hero Section ===== */
.hero-container {
  position: absolute;
  top: 60px;
  right: 5vw;
  z-index: 100;
  text-align: right;
}

.hero-text {
  position: absolute;
  top: 60px;
  right: 20px;
  font-size: clamp(3rem, 6vw,12rem);
  font-weight: 300;
  color: #fff;
  text-align: right;
  opacity: 0;
  animation:
    fadeUp 1.2s ease-out 0.3s forwards,
    luxuryPulse 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
  z-index: 999;
}

/* ===== Top Text (Mobile: IDENTICAL 2.5rem min) ===== */
.top-blue,
.top-white {
  font-size: 2rem; /* FIXED: Identical absolute mobile base */
  font-size: clamp(2rem, 2vw, 2.5rem); /* Bigger + identical */
  line-height: 1; /* Tighter for big text */
  text-align: left;
  opacity: 0;
  animation: fadeUp 1.8s ease-out 0.6s forwards;
  max-width: 95%;
word-spacing: -2px;
  font-weight: 100;
  font-family: 'Lato', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-smooth: always;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 999;
}

.top-blue {
  color: #1990e7;
  text-shadow: 0 1px 2px rgba(255,255,255,0.9); /* Stronger mobile fix */
}

.top-white {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Bottom paragraph (Mobile: Matches Top Exactly) */
.bottom-white {
  font-size: clamp(1.5rem, 2vw, 2.5rem); /* IDENTICAL min to top */
  color: #fff;
  text-align: left;
  line-height: 1;
  opacity: 0;
  animation: fadeUp 1.8s ease-out 0.6s forwards;
  max-width: 900px;
  font-weight: 300;
  z-index: 999;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ===== Blinking Discover Button ===== */
.discover-btn {
  font: 500 clamp(1.5rem, 2vw, 2.25rem) / 1.2 'Lato', sans-serif !important;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 1.125rem 2.25rem;
  border-radius: 4px;
  animation: blink 1s steps(1, start) infinite;
  transition: all 0.2s ease;
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.discover-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* ===== Responsive Breakpoints ===== */
/* Mobile First - ABSOLUTE Mobile Match */
@media (max-width: 599px) {
  .hero-container {
    top: 90px;
    left: 20px;
    right: 20px;
    text-align: left;
    z-index: 999;
  }

  .hero-text {
    right: 20px;
    top: 90px;
    z-index: 999;
  }

  .top-blue,
  .top-white {
    left: 20px;
    right: 20px;
    margin: 0;
  position: absolute;
top: 0px;
    font-size: 2rem; /* HARDCODED: Identical base + vw scale */
  }

  .bottom-white {
    font-size:2rem; /* HARDCODED MATCH */
    position: absolute;
    left: 20px;
    bottom: 0px;
    z-index: 999;
  }

  h2 {
    font-size: clamp(2.25rem,4vw, 3.5rem);
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .hero-text {
    font-size: clamp(6rem,12vw,12rem);
    right: 20px;
    top: 90px;
    z-index: 999;
  }

  .bottom-white {
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 999;
  }
}

@media (min-width: 1025px) {
  .hero-text {
    font-size: 6rem;
    right: 20px;
    top: 90px;
    z-index: 999;
  }

  .top-blue,
  .top-white {
    font-size: clamp(2rem, 2.5vw, 2.5rem);

  }

  .bottom-white {
    font-size: clamp(2rem, 2.5vw, 2.5rem);

    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 999;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-text,
  .bottom-white,
  .top-blue,
  .top-white {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    -webkit-font-smoothing: subpixel-antialiased;
  }
}

/* Print styles */
@media print {
  body::after,
  .hero-container,
  .top-blue,
  .top-white,
  .bottom-white {
    display: none !important;
  }
}
