
/* --- Core Configurations --- */
:root {
  --space-deep: #050816;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--space-deep);
  color: #fff;
}

/* --- Hero Layout Container --- */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("../assets/space-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 0;
}

/* --- Brand Logo Block --- */
.brand-logo-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: clamp(50px, 8vh, 85px);
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(243, 191, 116, 0.25));
}

/* --- High Contrast Anti-Overlap Glass Panels --- */
.text-glow-panel {
  display: inline-block;
  position: relative;
  border-radius: 16px;
  padding: 0.5rem 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(5, 8, 22, 0.25);
}

.tagline-panel {
  margin-top: 1rem;
}

/* --- Typography with Multi-Layered Drop Shadows --- */
.brand-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 1.2;
  background: linear-gradient(180deg, #ffffff 0%, #f3bf74 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px #050816) 
          drop-shadow(0 12px 32px rgba(5, 8, 22, 0.95))
          drop-shadow(0 0 80px rgba(255,170,80,.2));
}

.brand-tagline {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  max-width: 800px;
  color: #f8fafc;
  line-height: 1.6;
  margin: 0;
  filter: drop-shadow(0 2px 8px #050816) 
          drop-shadow(0 8px 20px rgba(5, 8, 22, 0.95));
}

/* --- Connect & Email Layout --- */
.connect-container {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 15;
  padding-top: 2rem;
}

.email-link {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.9;
  transition: all 0.3s ease;
  position: relative;
  filter: drop-shadow(0 4px 10px rgba(5, 8, 22, 0.95));
}

.email-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: #f3bf74;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.email-link:hover {
  color: #f3bf74;
  opacity: 1;
  text-shadow: 0 0 15px rgba(243, 191, 116, 0.4);
}

.email-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* --- Uniform Social Icons Engine --- */
.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.social-icon-box {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  
  /* FIX: Change background from almost invisible to a solid, polished dark-translucent border */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  
  /* FIX: Force the SVGs to render in pure vivid white by default instead of faint gray */
  color: #FFFFFF;
  
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-box svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Vibrant Golden/Amber Hover Glow state */
.social-icon-box:hover {
  color: #050816; /* Flips icon to dark for beautiful contrast inside the gold circle */
  background: #f3bf74; 
  border-color: #f3bf74;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(5, 8, 22, 0.9),
              0 0 20px rgba(243, 191, 116, 0.5);
}

/* --- Footer Copyright --- */
.copyright {
  margin-top: 1.5rem !important; 
  padding-bottom: 2rem;
  font-size: .7rem;
  letter-spacing: .4em;
  opacity: .65;
}

/* --- Cosmic Backdrop Graphics --- */
.sun-glow {
  position: absolute;
  left: 50%;
  bottom: -25vmin;
  width: 90vmin;
  height: 90vmin;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,255,220,.95) 0%,
    rgba(255,185,80,.75) 15%,
    rgba(255,120,0,.3) 35%,
    transparent 60%
  );
  filter: blur(24px);
  z-index: 1;
  animation:
    sun-pulse 6s ease-in-out infinite,
    sun-rise 2.6s ease-out both;
}

.sun-rays {
  position: absolute;
  left: 50%;
  bottom: -15vmin;
  width: 150vmin;
  height: 90vmin;
  transform: translateX(-50%);
  background: conic-gradient(
    from 180deg at 50% 100%,
    transparent,
    rgba(255,220,120,.08),
    rgba(255,220,120,.2),
    rgba(255,220,120,.08),
    transparent
  );
  filter: blur(10px);
  mix-blend-mode: screen;
  z-index: 1;
  animation:
    rays-rotate 40s linear infinite,
    sun-rise 2.6s ease-out both;
}

.planet-img {
  position: absolute;
  left: 50%;
  bottom: -55vmin;
  width: 110vmin;
  height: 110vmin;
  transform: translateX(-50%);
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 -10px 60px rgba(255,180,80,.35));
  animation: planet-rise 3s cubic-bezier(.22,1,.36,1) both;
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  background: linear-gradient(to top, #050816, transparent);
  z-index: 3;
}

/* --- Structural Keyframes --- */
.animate-fade-in-down {
  animation: fade-in-down 1.4s ease-out .6s both;
}

.animate-fade-in-up {
  animation: fade-in-up 1.4s ease-out 1.2s both;
}

@keyframes planet-rise {
  from {
    transform: translateX(-50%) translateY(40vmin);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes sun-rise {
  from {
    transform: translateX(-50%) translateY(30vmin);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes sun-pulse {
  0%, 100% { filter: blur(24px) brightness(1); }
  50% { filter: blur(30px) brightness(1.15); }
}

@keyframes rays-rotate {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Cinematic Twinkling Stars Engine --- */

/* Base configuration for the full-screen star containers */
.stars-layer-1,
.stars-layer-2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 100; /* Sits naturally behind the planet and text layer */
  pointer-events: none; /* Allows clicks to pass through safely */
}

/* Star Layer 1: Smaller, dense stars pulsing quickly */
.stars-layer-1 {
  background-image: 
    radial-gradient(1px 1px at 10% 12%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 25% 45%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 40% 20%, #ffffff, transparent),
    radial-gradient(2px 2px at 55% 75%, #f3bf74, transparent), /* Subtle golden star */
    radial-gradient(1px 1px at 70% 35%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 92% 15%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 15% 80%, #ffffff, transparent);
  background-size: 40% 40%; /* Seamlessly repeats patterns across screens */
  animation: star-twinkle-fast 4s ease-in-out infinite alternate;
}

/* Star Layer 2: Slightly larger, sparse stars pulsing slowly */
.stars-layer-2 {
  background-image: 
    radial-gradient(2px 2px at 5% 65%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 30% 15%, #ffffff, transparent),
    radial-gradient(2.5px 2.5px at 50% 50%, rgba(243, 191, 116, 0.9), transparent), /* Bright gold anchor star */
    radial-gradient(2px 2px at 68% 85%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 88% 40%, rgba(255,255,255,0.7), transparent5),
    radial-gradient(2px 2px at 45% 80%, #ffffff, transparent);
  background-size: 50% 50%;
  animation: star-twinkle-slow 7s ease-in-out infinite alternate;
}

/* --- Atmospheric Twinkle Timelines --- */
@keyframes star-twinkle-fast {
  0% {
    opacity: 0.3;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.4;
    transform: scale(1.02);
  }
}

@keyframes star-twinkle-slow {
  0% {
    opacity: 0.8;
    filter: brightness(1);
  }
  50% {
    opacity: 0.2;
    filter: brightness(0.5);
  }
  100% {
    opacity: 0.7;
    filter: brightness(1.2);
  }
}