/* ==========================================================================
   GLASSMORPHIC EDITORIAL & CORNER RADIAL CIRCLE STYLESHEET
   Style: Luxury Frosted Glass Cards & Buttons + Ambient Red Gradient Spheres
   Palette: Matte Charcoal #08080a, Translucent Glass, Deep Crimson #d90429, Ruby #990011, Off-White #f4f4f0
   Typography: Syne, Space Grotesk, Inter, JetBrains Mono
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@500;600;700;800&family=Syne:wght@700;800;900&display=swap');

:root {
  --bg-deep: #070709;
  --glass-bg: rgba(18, 18, 24, 0.52);
  --glass-bg-hover: rgba(28, 28, 36, 0.65);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-bright: rgba(255, 255, 255, 0.28);
  --glass-highlight: inset 0 1px 1px rgba(255, 255, 255, 0.22);
  --accent-red: #ff2a3a;
  --accent-crimson: #d90429;
  --text-white: #f4f4f0;
  --text-muted: #9ca3af;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070709;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff2a3a;
}

/* Typography Tokens */
.font-syne {
  font-family: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
}
.font-space {
  font-family: 'Space Grotesk', sans-serif;
}
.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

/* Hero Stark Headline Typography (Zero Word-Breaking) */
.hero-stark-headline {
  font-size: clamp(2.2rem, 5.2vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}
.hero-stark-headline span {
  display: block;
  white-space: nowrap;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-white);
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   1. AMBIENT CORNER RADIAL CIRCLES (IMAGE 1 STYLE)
   ========================================================================== */
.radial-circles-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Giant Top-Right Glowing Red Sphere */
.radial-orb-top-right {
  position: absolute;
  top: -15vw;
  right: -12vw;
  width: 55vw;
  height: 55vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ff1e2e 0%, #d90429 35%, #800010 65%, transparent 80%);
  opacity: 0.85;
  filter: blur(40px);
}

/* Giant Bottom-Left Deep Crimson Sphere */
.radial-orb-bottom-left {
  position: absolute;
  bottom: -15vw;
  left: -15vw;
  width: 60vw;
  height: 60vw;
  max-width: 850px;
  max-height: 850px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, #d90429 0%, #990014 40%, #4a0008 70%, transparent 85%);
  opacity: 0.8;
  filter: blur(45px);
}

/* Mid-Left Sweeping Crimson Arc */
.radial-orb-mid-left {
  position: absolute;
  top: 35%;
  left: -18vw;
  width: 45vw;
  height: 45vw;
  max-width: 650px;
  max-height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #b91c1c 0%, #70000a 45%, transparent 75%);
  opacity: 0.65;
  filter: blur(50px);
}

/* Bottom-Right Accent Glow */
.radial-orb-bottom-right {
  position: absolute;
  bottom: 10%;
  right: -10vw;
  width: 40vw;
  height: 40vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #e50914 0%, #850010 50%, transparent 80%);
  opacity: 0.6;
  filter: blur(45px);
}

/* Ensure foreground content floats over background spheres */
header, main, footer, section {
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   2. FROSTED GLASS CARDS (IMAGE 1 & IMAGE 2 STYLE)
   ========================================================================== */
.glass-card {
  background: rgba(18, 18, 24, 0.55);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 
    0 24px 48px -12px rgba(0, 0, 0, 0.75), 
    inset 0 1px 1px rgba(255, 255, 255, 0.22);
  border-radius: 1.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.85), 
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Stacked Deck Lookbook Fan-Out Interaction */
.group\/stack {
  perspective: 1200px;
}
.group\/stack:hover .glass-card {
  box-shadow: 
    0 35px 70px -15px rgba(0, 0, 0, 0.92), 
    0 0 30px rgba(255, 42, 58, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Hero Special Glass Container */
.glass-hero-card {
  background: rgba(16, 16, 22, 0.58);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 
    0 32px 64px -16px rgba(0, 0, 0, 0.8), 
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
  border-radius: 2rem;
}

/* Top Navbar Glass Bar */
.glass-navbar {
  background: rgba(12, 12, 16, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   3. REALISTIC LIQUID GLASSMORPHISM BUTTONS
   ========================================================================== */

/* Primary Liquid Glass Button (SEND QUICK MESSAGE -> & Action CTAs) */
.glass-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.6), 
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.4), 
    0 8px 32px 0 rgba(0, 0, 0, 0.37);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.glass-btn-primary::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 8%;
  right: 8%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.0) 100%);
  border-radius: 9999px;
  filter: blur(0.5px);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.glass-btn-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.8), 
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.4), 
    0 12px 36px 0 rgba(0, 0, 0, 0.45), 
    0 0 25px rgba(225, 29, 72, 0.4);
}

.glass-btn-primary:hover::before {
  opacity: 1;
}

.glass-btn-primary:active {
  transform: translateY(0px) scale(0.99);
}

/* Liquid Glass Pill Button (Header & Hero "START A PROJECT" CTA) */
.glass-btn-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1.4rem 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.6), 
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.4), 
    0 8px 32px 0 rgba(0, 0, 0, 0.37);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.glass-btn-pill::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 8%;
  right: 8%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.0) 100%);
  border-radius: 9999px;
  filter: blur(0.5px);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.glass-btn-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.8), 
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.4), 
    0 12px 36px 0 rgba(0, 0, 0, 0.45), 
    0 0 25px rgba(225, 29, 72, 0.4);
}

.glass-btn-pill:hover::before {
  opacity: 1;
}

.glass-btn-pill:active {
  transform: translateY(0px) scale(0.99);
}

/* Glowing Circular Icon Action Bead */
.glass-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ff2a3a 0%, #d90429 60%, #990014 100%);
  color: #ffffff;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 4px 14px rgba(255, 42, 58, 0.55);
  transition: transform 0.25s ease;
  position: relative;
  z-index: 2;
}

.glass-btn-pill:hover .glass-icon-circle {
  transform: scale(1.08) rotate(4deg);
}

/* Secondary Liquid Glass Button (VIEW SPECIFICATIONS, SELECTED WORK, COPY EMAIL) */
.glass-btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.6), 
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.4), 
    0 8px 32px 0 rgba(0, 0, 0, 0.37);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.glass-btn-secondary::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 8%;
  right: 8%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.0) 100%);
  border-radius: 9999px;
  filter: blur(0.5px);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.glass-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.8), 
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.4), 
    0 12px 36px 0 rgba(0, 0, 0, 0.45), 
    0 0 25px rgba(225, 29, 72, 0.4);
}

.glass-btn-secondary:hover::before {
  opacity: 1;
}

.glass-btn-secondary:active {
  transform: translateY(0px) scale(0.99);
}

/* Liquid Glass Filter Tabs */
.glass-tab {
  position: relative;
  padding: 0.55rem 1.35rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(16, 16, 22, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.6),
    0 6px 18px rgba(0, 0, 0, 0.35);
  color: #a1a1aa;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  overflow: hidden;
}

.glass-tab:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 100%), rgba(24, 24, 32, 0.6);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.glass-tab.active {
  background: linear-gradient(135deg, rgba(255, 42, 58, 0.9) 0%, rgba(200, 10, 28, 0.95) 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 
    inset 0 1.5px 1px rgba(255, 255, 255, 0.85),
    0 8px 24px rgba(255, 42, 58, 0.5);
}

/* Direct Instant Chat Liquid Cards */
.liquid-action-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.06) 100%), rgba(16, 16, 22, 0.55);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.5rem;
  box-shadow: 
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 1px 0 rgba(255, 255, 255, 0.15),
    0 14px 32px -8px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.liquid-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.0) 100%);
  border-radius: 9999px 9999px 50% 50% / 9999px 9999px 20% 20%;
  pointer-events: none;
  opacity: 0.7;
}

.liquid-action-card:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 
    inset 0 2px 1.5px 0 rgba(255, 255, 255, 0.95),
    0 20px 42px -8px rgba(0, 0, 0, 0.8);
}

/* Glass Form Inputs */
.glass-input {
  background: rgba(14, 14, 18, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f0;
  border-radius: 1rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.glass-input:focus {
  outline: none;
  border-color: #ff2a3a;
  background: rgba(22, 22, 28, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 42, 58, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.glass-input.has-error {
  border-color: #ff2a3a;
}

/* Glass Tag Badge */
.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #e5e5e5;
}

/* Modal Glass Backdrop */
.glass-modal-backdrop {
  background-color: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Red Pulsing Status Dot */
.red-pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #ff2a3a;
  box-shadow: 0 0 10px #ff2a3a;
  animation: pulse-glow 2s infinite ease-in-out;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   4. BACKGROUND PARTICLE POINT-CLOUD TERRAIN CANVAS (IMAGE 2 REF)
   ========================================================================== */
.bg-particle-terrain-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
  mix-blend-mode: screen;
}

/* 3D Matrix Portrait Canvas */
#heroPortraitCanvas {
  touch-action: none;
}
