:root {
  --bg-color: #0d0d0d;
  --text-color: #e0e0e0;
  --accent-color: #ff4081;
  /* Vibrant Pink/Red */
  --secondary-bg: #1a1a1a;
  --font-primary: 'Outfit', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --gap: 20px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* UI Elements Font Overrides */
header,
footer,
nav,
button,
input,
textarea,
.logo {
  font-family: var(--font-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 4px;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

header {
  padding: 2rem 0;
  display: flex;
  align-items: center;
}

header .spacer {
  flex: 1;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 100;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 99;
  }

  nav ul.active {
    right: 0;
  }

  /* Hamburger Animation */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}


main {
  padding: 2rem 0;
}

footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Gallery Grid */
.gallery {
  column-count: 3;
  column-gap: var(--gap);
}

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

@media (max-width: 480px) {
  .gallery {
    column-count: 1;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: var(--gap);
  display: inline-block;
  width: 100%;
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Specific Page Styles */
.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Page Content Styling */
.page-content {
  max-width: 62ch;
  margin: 0 auto;
}

.page-content h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.page-content h3:first-of-type {
  margin-top: 0;
}

.page-content ul {
  list-style-type: square;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.page-content li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Body and Content Link Colors */
main a:not(.gallery-item) {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

main a:not(.gallery-item):hover {
  color: #fff;
}

.about-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--secondary-bg);
  border: 1px solid #333;
  color: #fff;
  border-radius: 4px;
}

button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.3s;
}

button:hover {
  opacity: 0.9;
}

/* Dark Mode scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

/* Carousel & Fullscreen Hero */
.is-home main {
  padding: 0;
}

.is-home header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10;
  background: transparent;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  margin-bottom: 4rem;
  border-radius: 0;
}

/* Subtle dark gradient overlay at the top to ensure header text readability */
.carousel-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.carousel-slide.active {
  opacity: 1;
}

/* Unobtrusive Carousel Arrow Controls (Hover Active) */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 4rem;
  font-weight: 200;
  cursor: pointer;
  z-index: 5;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-arrow:hover {
  color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-container:hover .carousel-arrow {
  opacity: 0.5;
}

.carousel-container:hover .carousel-arrow:hover {
  opacity: 1;
}

.carousel-arrow.prev {
  left: 1.5rem;
}

.carousel-arrow.next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .carousel-container {
    height: 70vh; /* Shorter on mobile devices for better content flow */
  }
  
  .carousel-arrow {
    font-size: 3rem;
    width: 50px;
    height: 50px;
    opacity: 0.4; /* Slightly visible on mobile since hover doesn't exist */
  }

  .carousel-arrow.prev {
    left: 0.5rem;
  }

  .carousel-arrow.next {
    right: 0.5rem;
  }
}

/* Gallery Item Interactive Styling */
.gallery-item {
  cursor: pointer;
  outline: none;
}

.gallery-item:focus-visible {
  box-shadow: 0 0 0 4px var(--accent-color);
  transform: scale(1.02);
}

/* Lightbox Premium Overlay */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 6, 6, 0.96);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox Content Layout */
.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(0.98);
}

.lightbox.active #lightbox-img {
  transform: scale(1);
}

/* Elegant Lightbox Caption */
.lightbox-caption {
  margin-top: 1.5rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  min-height: 1.5em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Premium Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1010;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.1);
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-color);
}

/* Close Button (Top-Right) */
.lightbox-close {
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  line-height: 1;
}

/* Next/Prev Buttons (Sides) */
.lightbox-prev {
  left: 2rem;
  width: 55px;
  height: 55px;
  font-size: 2.5rem;
  line-height: 1;
  padding: 0;
}

.lightbox-next {
  right: 2rem;
  width: 55px;
  height: 55px;
  font-size: 2.5rem;
  line-height: 1;
  padding: 0;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .lightbox-prev {
    left: 1rem;
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }
  
  .lightbox-next {
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-caption {
    font-size: 1rem;
    margin-top: 1rem;
    padding: 0 1rem;
  }
}