/* ---------------------
   GLOBAL STYLES
---------------------- */

:root {
  --bg: #050608;
  --bg-alt: #0b0d10;
  --text: #f4f1ec;
  --muted: #b8b0a2;
  --accent: #c49b66;
  --accent-soft: rgba(196, 155, 102, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Typography */

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  letter-spacing: 0.04em;
}

.text-muted {
  color: var(--muted) !important;
}

/* Navbar */

.navbar {
  background: linear-gradient(to bottom, rgba(5,6,8,0.98), rgba(5,6,8,0.9));
  border-bottom: 1px solid rgba(196, 155, 102, 0.2);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--accent);
}

/* Hero */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(196,155,102,0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  text-transform: uppercase;
  letter-letterspacing: 0.25em;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.1;
}

.hero-subtitle {
  max-width: 32rem;
  color: var(--muted);
}

/* Buttons */

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0b;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  padding: 0.7rem 1.8rem;
}

.btn-accent:hover {
  background: #e0b982;
  border-color: #e0b982;
  color: #050608;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(196,155,102,0.08);
  color: var(--accent);
}

/* Sections */

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--muted);
}

.section-heading {
  font-size: 2rem;
}

/* Cards & Panels */

.card-dark {
  background: radial-gradient(circle at top, #111319, #050608);
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.card-dark-soft {
  background: linear-gradient(135deg, rgba(13,15,20,0.95), rgba(7,8,12,0.98));
  border-radius: 1.2rem;
  border: 1px solid rgba(255,255,255,0.04);
}

/* Gallery */

.gallery-grid img {
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  cursor: zoom-in;
}

.gallery-grid img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.8);
  opacity: 0.96;
}

/* Lightbox Modal */

.modal-backdrop.show {
  backdrop-filter: blur(6px);
}

.modal-content.lightbox-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

.lightbox-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 2.4rem;
  height: 2.4rem;
}

/* SpinShots */

.spin-badge {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Forms */

.form-control,
.form-select {
  background-color: #05070b;
  border-radius: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(196, 155, 102, 0.25);
  background-color: #05070b;
  color: var(--text);
}

.form-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--accent);
}
/* ============================================
   FULLSCREEN CINEMATIC HERO
============================================ */

.hero-fullscreen {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url("../images/personal/header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      rgba(5, 6, 8, 0.65),
      rgba(5, 6, 8, 0.85)
  );
  backdrop-filter: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-fullscreen .hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  max-width: 20ch;
}

.hero-fullscreen .hero-subtitle {
  color: var(--muted);
  max-width: 48ch;
}
/* HERO SLIDESHOW */
.hero-fullscreen {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlideshow 24s infinite;
}

.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 6s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 12s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 18s; }

@keyframes fadeSlideshow {
  0% { opacity: 0; }
  10% { opacity: 1; }
  40% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

/* Witchy Particle Canvas */
#particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(5, 6, 8, 0.45),
    rgba(5, 6, 8, 0.9)
  );
  z-index: 3;
}

.hero-inner {
  position: relative;
  z-index: 4;
}
/* Update slideshow timing for 7 images */
.hero-slideshow .slide {
  animation: fadeSlideshow 42s infinite; /* 6s per slide */
}

/* Delay each slide by 6 seconds */
.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 6s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 12s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 18s; }
.hero-slideshow .slide:nth-child(5) { animation-delay: 24s; }
.hero-slideshow .slide:nth-child(6) { animation-delay: 30s; }
.hero-slideshow .slide:nth-child(7) { animation-delay: 36s; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1; /* ensures perfect vertical centering */
}
/* Perfect centering for all buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  padding: 0.75rem 1.5rem;
}
/* Masonry Gallery */
.masonry-gallery {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-gallery .gallery-item {
  display: block;
  margin-bottom: 1.5rem;
  break-inside: avoid;
}

@media (max-width: 992px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-gallery {
    column-count: 1;
  }
}
/* Atmospheric fog background for gallery pages */
.page-fog {
  background: url("../images/atmosphere/fog1.jpg") center/cover fixed no-repeat;
  background-color: #0b0b0b; /* fallback */
  position: relative;
  z-index: 1;
}

.page-fog::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.75) 100%);
  z-index: -1;
}
/* Fullscreen moving fog video background */
#fogBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  opacity: 0.15; /* adjust for more/less fog visibility */
  pointer-events: none;
}

/* Dark vignette overlay for readability */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.85) 100%);
  z-index: -1;
}
.page-header {
  padding: 5rem 0 2rem;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.page-subtitle {
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.8;
  font-size: 1.2rem;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  padding: 2rem;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  margin-bottom: 1rem;
}

#lightboxClose {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
}

#lightboxCaption {
  color: #ccc;
  text-align: center;
  max-width: 800px;
}
/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #050608;
  color: var(--muted);
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
}

.footer-link:hover {
  color: #e0b982;
}

.footer-social {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-social:hover {
  color: var(--accent);
}
/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
