/* ==========================================================================
   AARYAN SHAH - Personal Site (Version 0)
   Visual System: Track Spotlight Warmup, Staggered Reveal, Engraved CTAs & Particles
   ========================================================================== */

:root {
  /* High-Contrast Focal Text (Dark Stencil on Lit Wall Spotlight) */
  --text-focal-lead: #18120c;
  --text-focal-body: #2c2217;
  --text-focal-sub: #423425;

  /* Left Dark Vertical Sidebar Panel (Disabled) */
  --sidebar-width: 0px;
  --sidebar-bg: rgba(12, 10, 8, 0.92);
  --sidebar-border: rgba(240, 225, 205, 0.08);

  /* Accent Colors */
  --accent-gold: #e8c792;
  --accent-gold-glow: rgba(232, 199, 146, 0.45);

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: #060504;
  color: var(--text-focal-lead);
  font-family: var(--font-serif);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Photorealistic Gallery Background & Track Spotlight Warmup Engine
   ========================================================================== */

.gallery-bg-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url('assets/gallery_bg.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  filter: contrast(1.03) brightness(0.97);
  animation: roomBgFadeIn 1.5s var(--ease-out-cubic) forwards;
}

/* Track Spotlight Mask: Warmup Animation on Entrance */
.gallery-lighting-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 40% 48% at 51.2% 35%,
    rgba(0, 0, 0, 0) 0%,
    rgba(12, 9, 6, 0.32) 45%,
    rgba(6, 4, 3, 0.82) 75%,
    rgba(3, 2, 1, 0.95) 100%
  );
  animation: spotlightWarmup 1.6s var(--ease-out-cubic) forwards;
}

/* Floating Dust Particles Canvas */
.dust-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Left Dark Vertical Sidebar Panel (Disabled)
   ========================================================================== */

.dark-sidebar-panel {
  display: none !important;
}

/* ==========================================================================
   Level 1 Primary Focus: Spotlight Note Staggered Reveal
   ========================================================================== */

.site-container {
  position: relative;
  z-index: 3;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  box-sizing: border-box;
}

/* Main Spotlight Focal Block aligned under overhead track light */
.center-wall-container {
  position: absolute;
  left: 51.2%;
  top: 36.5%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.spotlight-note-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}

/* Warm Glow behind Spotlight Text */
.spotlight-note-card::before {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  height: 330px;
  background: radial-gradient(
    circle,
    rgba(245, 225, 195, 0.24) 0%,
    rgba(230, 205, 170, 0.08) 50%,
    transparent 75%
  );
  filter: blur(35px);
  pointer-events: none;
  z-index: -1;
  animation: glowPulse 10s ease-in-out infinite alternate;
}

/* Staggered Text Reveal Animations */
.lead-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-focal-lead);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(255, 245, 230, 0.25);
  opacity: 0;
  transform: translateY(14px);
  animation: textStaggerFade 0.9s var(--ease-out-cubic) 0.35s forwards;
}

.body-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.48;
  color: var(--text-focal-body);
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(14px);
  animation: textStaggerFade 0.9s var(--ease-out-cubic) 0.55s forwards;
}

.sub-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
  font-weight: 400;
  color: var(--text-focal-sub);
  margin-bottom: 2.6rem;
  opacity: 0;
  transform: translateY(14px);
  animation: textStaggerFade 0.9s var(--ease-out-cubic) 0.75s forwards;
}

/* ==========================================================================
   Level 2 Focus: Engraved Action CTA Pills & Magnetic Hover
   ========================================================================== */

.cta-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 175px;
  padding: 0.65rem 1rem;
  background-color: rgba(30, 24, 18, 0.04);
  border: 1px solid rgba(40, 32, 22, 0.65);
  border-radius: 8px;
  color: #231c15;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  backdrop-filter: blur(2px);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateY(12px);
  transition: background-color 0.35s var(--ease-out-cubic),
              border-color 0.35s var(--ease-out-cubic),
              transform 0.35s var(--ease-out-cubic),
              box-shadow 0.35s var(--ease-out-cubic);
}

.cta-card:nth-child(1) {
  animation: ctaStaggerFade 0.85s var(--ease-out-cubic) 0.95s forwards;
}

.cta-card:nth-child(2) {
  animation: ctaStaggerFade 0.85s var(--ease-out-cubic) 1.1s forwards;
}

.cta-card:nth-child(3) {
  animation: ctaStaggerFade 0.85s var(--ease-out-cubic) 1.25s forwards;
}

.cta-left-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cta-icon {
  color: #231c15;
  transition: transform 0.3s var(--ease-out-cubic), color 0.3s ease;
}

.cta-label {
  color: #231c15;
}

.cta-arrow {
  font-size: 0.95rem;
  color: #231c15;
  opacity: 0.85;
  transition: transform 0.3s var(--ease-out-cubic), opacity 0.3s ease;
}

/* Hover & Active Press Feedback */
.cta-card:hover {
  background-color: rgba(35, 28, 20, 0.09);
  border-color: rgba(20, 15, 10, 0.88);
  transform: translateY(-2px) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cta-card:hover .cta-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

.cta-card:hover .cta-icon {
  transform: scale(1.08);
}

.cta-card:active {
  transform: translateY(0) scale(0.97) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Level 3 Focus: Identity Footer
   ========================================================================== */

.site-footer {
  position: fixed;
  bottom: 2.2rem;
  left: 3.5rem;
  right: 3.5rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(185, 170, 150, 0.45);
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  opacity: 0;
  animation: footerFadeIn 1s var(--ease-out-cubic) 1.4s forwards;
}

.footer-left, .footer-right {
  transition: color 0.3s ease;
}

.site-footer:hover .footer-left,
.site-footer:hover .footer-right {
  color: rgba(220, 205, 185, 0.75);
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */

.toast-notification {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 100;
  padding: 0.75rem 1.4rem;
  background-color: rgba(12, 9, 7, 0.96);
  border: 1px solid rgba(240, 225, 205, 0.2);
  border-radius: 4px;
  color: #f8f3eb;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out-cubic), opacity 0.4s ease;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

@keyframes roomBgFadeIn {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

@keyframes spotlightWarmup {
  0% {
    opacity: 0;
    filter: brightness(0.6);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

@keyframes textStaggerFade {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ctaStaggerFade {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes footerFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.7;
  }
}

@keyframes glowPulse {
  0% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* ==========================================================================
   Responsive Architecture
   ========================================================================== */

@media (max-width: 900px) {
  .site-container {
    padding: 1.5rem;
    height: auto;
    min-height: 100vh;
  }

  .center-wall-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 3rem auto;
  }

  .site-footer {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
    margin-top: 2rem;
  }
}
