/* ==========================================================================
   WARPEL STUDIO — DESIGN AGENCY
   High-End Spacetime Wormhole Bending Aesthetic
   ========================================================================== */

:root {
  --bg-deep: #050409;
  --text-white: #f5f5f7;
  --text-muted: #8e889b;
  --text-dim: #5c566a;

  /* Radiant Coronal & Gravitational Glow Colors */
  --glow-pink: #ff5e82;
  --glow-coral: #ff7d6b;
  --glow-peach: #ffb199;
  --glow-crimson: #c82c68;
  --glow-purple: #6b247c;
  --glow-violet: #311145;

  /* UI Tokens */
  --pill-bg: rgba(18, 15, 26, 0.65);
  --pill-border: rgba(255, 255, 255, 0.08);
  --pill-hover-border: rgba(255, 125, 150, 0.4);

  --font-display: 'Space Grotesk', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Spacetime Wormhole Canvas */
#wormhole-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

/* Dynamic Interactive Mouse Glow */
.interactive-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle, 
    rgba(255, 94, 130, 0.12) 0%, 
    rgba(130, 60, 220, 0.06) 45%, 
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  filter: blur(45px);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: left, top;
}

/* Cinematic Film Grain */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Viewport Shell */
.page-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.8rem 3.8rem;
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
  user-select: none;
}

.brand-word {
  letter-spacing: 0.52em;
  text-transform: uppercase;
}

.brand-space {
  display: inline-block;
  width: 1.6em;
}

.header-controls {
  display: flex;
  align-items: center;
}

.control-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 15px rgba(255, 100, 130, 0.25);
}

/* ==========================================================================
   HERO STAGE: CELESTIAL SINGULARITY & CORONAL GLOW
   ========================================================================== */
.hero-stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 580px;
}

/* Concentric Celestial Portal Container */
.eclipse-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 84vw);
  height: min(560px, 84vw);
  pointer-events: none;
  z-index: 1;
}

/* Layer 1: Broad Diffuse Ambient Sunset Glow */
.glow-outer {
  position: absolute;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 126%;
  height: 126%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(215, 60, 100, 0.42) 0%,
    rgba(145, 35, 105, 0.28) 35%,
    rgba(70, 20, 80, 0.12) 60%,
    transparent 75%
  );
  filter: blur(65px);
  animation: ambient-breathe 7s ease-in-out infinite alternate;
}

/* Layer 2: Radiant Coronal Ring */
.glow-mid {
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: 104%;
  height: 104%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 38%,
    rgba(255, 115, 135, 0.78) 0%,
    rgba(240, 65, 105, 0.52) 30%,
    rgba(165, 35, 95, 0.26) 55%,
    transparent 72%
  );
  filter: blur(36px);
  animation: flare-pulse 4.5s ease-in-out infinite alternate;
}

/* Layer 3: Concentric Hot White-Peach Core Rim */
.glow-inner-hot {
  position: absolute;
  top: -3%;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  height: 96%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 28%,
    rgba(255, 235, 230, 0.96) 0%,
    rgba(255, 145, 145, 0.82) 18%,
    rgba(255, 75, 115, 0.48) 40%,
    transparent 65%
  );
  filter: blur(18px);
  animation: hot-core-shimmer 3s ease-in-out infinite alternate;
}

/* Layer 4: Rotating Ethereal Coronal Wave */
.glow-aurora {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 110%;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    transparent 0deg,
    rgba(255, 95, 135, 0.3) 120deg,
    rgba(255, 175, 150, 0.55) 180deg,
    rgba(220, 65, 125, 0.3) 240deg,
    transparent 360deg
  );
  filter: blur(32px);
  mix-blend-mode: screen;
  animation: aurora-sweep 14s linear infinite;
}

/* Razor-sharp Pure Circular Coronal Rim Arc */
.coronal-arc {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border-top: 2.2px solid rgba(255, 245, 240, 0.98);
  border-left: 1px solid rgba(255, 150, 160, 0.35);
  border-right: 1px solid rgba(255, 150, 160, 0.35);
  border-bottom: none;
  box-shadow: 
    0 -4px 24px rgba(255, 210, 210, 0.95),
    0 -14px 48px rgba(255, 90, 130, 0.8),
    0 -28px 85px rgba(200, 45, 95, 0.48);
  filter: blur(0.8px);
  z-index: 2;
  animation: arc-breath 3.8s ease-in-out infinite alternate;
}

/* Dark Planet Singularity Sphere */
.planet-sphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 15%,
    #181426 0%,
    #110e1d 25%,
    #0c0914 55%,
    #050408 100%
  );
  box-shadow: 
    inset 0 3px 14px rgba(255, 190, 195, 0.34),
    inset 0 16px 42px rgba(235, 80, 120, 0.16),
    inset 0 -35px 70px rgba(0, 0, 0, 0.95),
    0 35px 90px rgba(0, 0, 0, 0.92);
  overflow: hidden;
  z-index: 3;
}

/* Internal Atmosphere Lensing */
.sphere-rim-light {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(255, 150, 165, 0.22) 0%,
    rgba(195, 55, 105, 0.08) 50%,
    transparent 80%
  );
  filter: blur(8px);
}

.sphere-inner-shadow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 80%,
    rgba(5, 4, 8, 0.9) 0%,
    transparent 65%
  );
}

/* Glowing Animations Keyframes */
@keyframes ambient-breathe {
  0% { transform: translateX(-50%) scale(0.96); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(1.05); opacity: 1; filter: blur(75px); }
}

@keyframes flare-pulse {
  0% { transform: translateX(-50%) scale(0.98); opacity: 0.85; }
  100% { transform: translateX(-50%) scale(1.03); opacity: 1; filter: blur(40px); }
}

@keyframes hot-core-shimmer {
  0% { opacity: 0.85; transform: translateX(-50%) scaleY(0.96); }
  100% { opacity: 1; transform: translateX(-50%) scaleY(1.03); filter: blur(20px); }
}

@keyframes aurora-sweep {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes arc-breath {
  0% { opacity: 0.75; border-top-color: rgba(255, 220, 215, 0.7); }
  100% {
    opacity: 1;
    border-top-color: rgba(255, 255, 255, 0.98);
    box-shadow: 
      0 -4px 24px rgba(255, 220, 220, 0.98),
      0 -15px 52px rgba(255, 100, 140, 0.85);
  }
}

/* ==========================================================================
   CONTENT OVERLAY: STEADY HIGH-END TYPOGRAPHY
   ========================================================================== */
.content-overlay {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Coming Soon Headline: Steady, Crisp, Non-bouncing */
.main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: clamp(0.55em, 2vw, 0.85em);
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  line-height: 1.25;
  margin: 0;
  text-shadow: 
    0 0 25px rgba(255, 255, 255, 0.4),
    0 0 60px rgba(255, 100, 140, 0.25);
  user-select: none;
}

.char-span {
  display: inline-block;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.char-span:hover {
  color: #fff;
  text-shadow: 
    0 0 16px rgba(255, 255, 255, 0.9),
    0 0 35px var(--glow-coral);
}

.space-gap {
  width: clamp(2rem, 4vw, 4rem);
}

/* ==========================================================================
   BOTTOM FOOTER & SMALL PORTFOLIO BUTTON
   ========================================================================== */
.bottom-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-word {
  letter-spacing: 0.38em;
}

.footer-space {
  display: inline-block;
  width: 1.1em;
}

.footer-copy {
  margin-left: 0.5em;
  letter-spacing: 0.12em;
}

.footer-meta:hover {
  color: var(--text-muted);
}

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

/* Small, Sleek, Glowing Portfolio Redirect Button */
.portfolio-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1.15rem;
  border-radius: 9999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: #d8d3e5;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.portfolio-glow {
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(255, 94, 126, 0.35), rgba(130, 60, 220, 0.35));
  filter: blur(8px);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.35s ease;
}

.portfolio-btn > * {
  position: relative;
  z-index: 1;
}

.portfolio-btn:hover {
  color: #ffffff;
  border-color: var(--pill-hover-border);
  transform: translateY(-1px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(255, 100, 130, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.16);
}

.portfolio-btn:hover .portfolio-glow {
  opacity: 1;
}

.portfolio-arrow {
  transition: transform 0.3s ease;
  color: var(--glow-pink);
}

.portfolio-btn:hover .portfolio-arrow {
  transform: translate(2px, -2px);
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .page-wrapper {
    padding: 2rem 2rem;
  }

  .bottom-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
    justify-items: center;
  }

  .footer-left { order: 2; }
  .footer-center { order: 1; }
  .footer-right { order: 3; }
}

@media (max-width: 600px) {
  .page-wrapper {
    padding: 1.5rem 1.2rem;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .main-title {
    letter-spacing: 0.4em;
  }

  .space-gap {
    width: 1.2rem;
  }

  .portfolio-btn {
    padding: 0.44rem 0.98rem;
    font-size: 0.64rem;
  }
}
