/* ============================================
   INNER LIGHT — Main Stylesheet
   Colors: White, Black, Green + Gold, Purple
============================================ */

:root {
  --green:        #52b788;
  --green-dark:   #2d6a4f;
  --green-pale:   #95d5b2;
  --gold:         #e8c97e;
  --gold-dark:    #c9a84c;
  --purple:       #9b72cf;
  --purple-dark:  #6b3fa0;
  --white:        #f0ede6;
  --black:        #0a0a0a;
  --gray:         #111111;
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---- 3D Canvas Background ---- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Loader ---- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-ring {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(82, 183, 136, 0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.4);
  animation: pulse 1.5s ease infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* ---- Navigation ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.8rem 3rem;
  background: linear-gradient(to bottom, rgba(10,10,10,0.9), transparent);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#navbar.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--white);
}

.nav-logo span {
  color: var(--green);
}

/* ---- Hero ---- */
#hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Radial green glow */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 50% 50%,
    rgba(45, 106, 79, 0.13) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ---- Floating Orbs (CSS 3D) ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(82,183,136,0.15), transparent 70%);
  top: -120px; left: -180px;
  animation-delay: 0s;
}

.orb-2 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(155,114,207,0.12), transparent 70%);
  bottom: -100px; right: -150px;
  animation-delay: -3s;
}

.orb-3 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(232,201,126,0.1), transparent 70%);
  top: 50%; left: -200px;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33%       { transform: translateY(-30px) translateX(20px); }
  66%       { transform: translateY(20px) translateX(-15px); }
}

/* ---- Decorative Lines ---- */
.deco-line {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--green), transparent);
  transform: scaleY(0);
  transform-origin: top;
}

.top-line {
  height: 70px;
  margin-bottom: 2.5rem;
  animation: lineReveal 1.2s 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.bottom-line {
  height: 50px;
  margin-top: 2.5rem;
  transform-origin: top;
  animation: lineReveal 1s 2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes lineReveal {
  to { transform: scaleY(1); }
}

/* ---- Message ---- */
.message-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.message-line {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  flex-wrap: wrap;
}

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.word.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Color variants */
.gold-word {
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(232, 201, 126, 0.3);
}

.gradient-word {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.green-word {
  color: var(--green-pale);
  text-shadow: 0 0 30px rgba(82, 183, 136, 0.25);
}

/* Decorative dot */
.dot-deco {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
  opacity: 0;
  animation: dotAppear 0.6s 1s ease forwards;
  box-shadow: 0 0 10px var(--gold);
}

@keyframes dotAppear {
  to { opacity: 1; }
}

/* ---- Sub Tag ---- */
.sub-tag {
  margin-top: 2.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.22);
  opacity: 0;
  animation: fadeIn 1s 2.2s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ---- Particles ---- */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleDrift linear infinite;
  opacity: 0;
}

@keyframes particleDrift {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) translateX(var(--drift)); opacity: 0; }
}

/* ---- Footer ---- */
#footer {
  position: relative;
  z-index: 10;
  padding: 1.8rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: center;
}

.coming-soon {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.2);
  opacity: 0;
  animation: fadeIn 1s 2.5s ease forwards;
}

/* ---- 3D Perspective tilt on mouse ---- */
.hero-content {
  transition: transform 0.1s ease-out;
  will-change: transform;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  #navbar { padding: 1.2rem 1.5rem; }
  .message-line { font-size: clamp(1.8rem, 9vw, 3rem); }
  .orb-1 { width: 180px; height: 180px; top: -80px; left: -100px; }
  .orb-2 { width: 140px; height: 140px; }
  .orb-3 { display: none; }
}

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