/* FKT Gnarly Font Family */
@font-face {
  font-family: 'FKT Gnarly';
  src: url('./assets/FKT-Gnarly-Family/02-Web/WOFF2/FKTGnarly_Lt.woff2') format('woff2'),
       url('./assets/FKT-Gnarly-Family/02-Web/WOFF/FKTGnarly_Lt.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FKT Gnarly';
  src: url('./assets/FKT-Gnarly-Family/02-Web/WOFF2/FKTGnarly_Rg.woff2') format('woff2'),
       url('./assets/FKT-Gnarly-Family/02-Web/WOFF/FKTGnarly_Rg.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FKT Gnarly';
  src: url('./assets/FKT-Gnarly-Family/02-Web/WOFF2/FKTGnarly_It.woff2') format('woff2'),
       url('./assets/FKT-Gnarly-Family/02-Web/WOFF/FKTGnarly_It.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'FKT Gnarly';
  src: url('./assets/FKT-Gnarly-Family/02-Web/WOFF2/FKTGnarly_LtIt.woff2') format('woff2'),
       url('./assets/FKT-Gnarly-Family/02-Web/WOFF/FKTGnarly_LtIt.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* CSS Variables */
:root {
  --color-background: #0a0a0a;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-accent: #d4a855;
  --color-glow-orange: #ff8c00;
  --color-glow-purple: #4b0082;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'FKT Gnarly', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Container */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  /* Safe area padding for devices with notch */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Background Layer */
.background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Base dark background */
  background: #000000;
}

/* Gradient Overlay - Smooth radial blend from center */
.background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    /* Radial gradient matching the warm center glow of the image */
    radial-gradient(
      ellipse 60% 50% at 50% 100%,
      rgba(180, 100, 40, 0.15) 0%,
      rgba(120, 60, 20, 0.1) 30%,
      rgba(40, 20, 10, 0.08) 50%,
      transparent 70%
    ),
    /* Top-to-bottom fade for smooth transition */
    linear-gradient(
      180deg,
      #000000 0%,
      #000000 25%,
      rgba(0, 0, 0, 0.95) 35%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(0, 0, 0, 0.3) 65%,
      transparent 80%
    );
  z-index: 3;
  pointer-events: none;
}

/* Gradient Overlay - Side vignette for depth */
.background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    /* Left side fade */
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.6) 0%,
      transparent 15%,
      transparent 85%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    /* Bottom corners vignette */
    radial-gradient(
      ellipse 120% 80% at 50% 100%,
      transparent 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.3) 75%,
      rgba(0, 0, 0, 0.6) 100%
    );
  z-index: 3;
  pointer-events: none;
}

/* Chess Background Image */
.background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 2;
  pointer-events: none;
}

/* Content Container */
.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0px;
}

/* Logo Section */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1.2s ease-out;
}

/* Logo Wrapper */
.logo-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
}

/* Logo */
.logo {
  width: 100%;
  height: auto;
}

.logo svg {
  width: 100%;
  height: auto;
}

/* Author Signature */
.author-signature {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: -4.1rem;
}

.signature-image {
  width: clamp(220px, 36%, 380px);
  height: auto;
  object-fit: contain;
}

/* Coming Soon Text */
.coming-soon {
  margin-top: 12vh;
  text-align: center;
  animation: fadeInUp 1.4s ease-out 0.3s both;
}

.coming-soon-text {
  font-family: 'FKT Gnarly', sans-serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* ======================= */
/* RESPONSIVE DESIGN       */
/* ======================= */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .logo-wrapper {
    max-width: 900px;
  }
  
  .coming-soon {
    margin-top: 14vh;
  }
  
  .background-image {
    object-fit: contain;
    object-position: center bottom;
  }
}

/* 2K / QHD Desktop (2560px+) */
@media (min-width: 2560px) {
  .content {
    max-width: 1600px;
  }
  
  .logo-wrapper {
    max-width: 1100px;
  }
  
  .signature-image {
    width: clamp(220px, 35%, 400px);
  }
  
  .coming-soon {
    margin-top: 16vh;
  }
  
  .coming-soon-text {
    font-size: 3.5rem;
  }
}

/* 4K / UHD Desktop (3840px+) */
@media (min-width: 3840px) {
  .content {
    max-width: 2200px;
    padding: 100px 60px;
  }
  
  .logo-section {
    margin-top: 12vh;
  }
  
  .logo-wrapper {
    max-width: 1500px;
  }
  
  .signature-image {
    width: clamp(280px, 35%, 520px);
  }
  
  .coming-soon {
    margin-top: 18vh;
  }
  
  .coming-soon-text {
    font-size: 3.2rem;
  }
}

/* 5K+ / Ultra Wide (5120px+) */
@media (min-width: 5120px) {
  .content {
    max-width: 3000px;
    padding: 140px 80px;
  }
  
  .logo-wrapper {
    max-width: 2000px;
  }
  
  .signature-image {
    width: clamp(350px, 35%, 700px);
  }
  
  .coming-soon-text {
    font-size: 4rem;
  }
}

/* Desktop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
  .logo-wrapper {
    max-width: 700px;
  }

  .author-signature {
    margin-top: -3.3rem;
  }

  .background-image {
    object-fit: contain;
    object-position: center bottom;
  }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .content {
    padding: 40px 32px;
  }
  
  .logo-section {
    margin-top: 8vh;
  }
  
  .logo-wrapper {
    max-width: 85%;
  }
  
  .author-signature {
    margin-top: -2.8rem;
  }
  
  .signature-image {
    width: clamp(180px, 36%, 300px);
  }
  
  .coming-soon {
    margin-top: 10vh;
  }

  .background-image {
    object-fit: contain;
    object-position: center bottom;
  }
}

/* Tablet Portrait (600px - 767px) */
/* Background scaling for screens below 768px */
@media (max-width: 767px) {
  .background-image {
    object-fit: contain;
    object-position: center bottom;
    transform: scale(3.2);
    transform-origin: center bottom;
  }
}

@media (max-width: 767px) and (min-width: 600px) {
  .content {
    padding: 32px 24px;
  }
  
  .logo-section {
    margin-top: 6vh;
  }
  
  .logo-wrapper {
    max-width: 90%;
  }
  
  .author-signature {
    margin-top: -0.3rem;
  }
  
  .signature-image {
    width: clamp(160px, 36%, 260px);
  }
  
  .coming-soon {
    margin-top: 8vh;
  }
  
  .coming-soon-text {
    font-size: 1.4rem;
  }
}

/* Mobile Landscape (480px - 599px) */
@media (max-width: 599px) and (min-width: 480px) {
  .content {
    padding: 24px 20px;
  }
  
  .logo-section {
    margin-top: 5vh;
  }
  
  .logo-wrapper {
    max-width: 92%;
  }
  
  .author-signature {
    margin-top: -0.3rem;
  }
  
  .signature-image {
    width: clamp(140px, 34%, 220px);
  }
  
  .coming-soon {
    margin-top: 6vh;
  }
  
  .coming-soon-text {
    font-size: 1.2rem;
  }
}

/* Mobile Portrait (320px - 479px) */
/* Background scaling for screens below 425px */
@media (max-width: 425px) {
  .background-image {
    transform: scale(3.1);
  }
}

@media (max-width: 479px) {
  .content {
    padding: 20px 16px;
  }
  
  .logo-section {
    margin-top: 4vh;
  }
  
  .logo-wrapper {
    max-width: 95%;
  }
  
  .author-signature {
    margin-top: -1.8rem;
  }
  
  .signature-image {
    width: clamp(132px, 32%, 180px);
  }
  
  .coming-soon {
    margin-top: 5vh;
  }
  
  .coming-soon-text {
    font-size: 1.5rem;
  }
}

/* Small Mobile (< 320px) */
@media (max-width: 320px) {
  .content {
    padding: 16px 12px;
  }
  
  .logo-section {
    margin-top: 3vh;
  }

  .author-signature {
    margin-top: -1.5rem;
  }
  
  .signature-image {
    width: clamp(100px, 30%, 150px);
  }
  
  .coming-soon-text {
    font-size: 0.9rem;
  }
}

/* Landscape Orientation on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .page {
    min-height: 100vh;
  }
  
  .logo-section {
    margin-top: 2vh;
  }
  
  .logo-wrapper {
    max-width: 50%;
  }
  
  .author-signature {
    margin-top: -0.2rem;
  }
  
  .signature-image {
    width: clamp(100px, 30%, 160px);
  }
  
  .coming-soon {
    margin-top: 3vh;
  }
  
  .coming-soon-text {
    font-size: 1rem;
  }
}

/* Short Screens (height < 700px) */
@media (max-height: 700px) and (min-height: 501px) {
  .logo-section {
    margin-top: 5vh;
  }
  
  .coming-soon {
    margin-top: 6vh;
  }
}

/* Tall Screens (height > 900px) */
@media (min-height: 900px) {
  .logo-section {
    margin-top: 1vh;
  }
  
  .coming-soon {
    margin-top: 7vh;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .signature-text::after {
    height: 1px;
  }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Touch Devices - improve tap targets */
@media (hover: none) and (pointer: coarse) {
  .page {
    -webkit-tap-highlight-color: transparent;
  }
}

