:root {
  --primary-bg: #121212;
  --secondary-bg: #1e1e1e;
  --accent-color: #d4af37;
  /* Soft gold for subtle accents */
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Typography */
h1,
h2,
h3,
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 600;
}

.text-accent {
  color: var(--accent-color);
}

/* Navbar Styling */
.navbar {
  background-color: rgba(18, 18, 18, 0.9) !important;
  /* Slightly transparent dark */
  backdrop-filter: blur(10px);
  /* Frosted glass effect */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: padding 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main) !important;
}

/* Subtle underline effect on hover for nav links */
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
#hero {
  padding: 160px 0 100px;
  /* Reduced from taking the full screen (80vh) */
  display: flex;
  align-items: center;
  background: radial-gradient(
    circle at center,
    var(--secondary-bg) 0%,
    var(--primary-bg) 70%
  );
  position: relative;
}

#hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  /* Responsive heading size */
  line-height: 1.1;
  margin-bottom: 1rem;
}

#hero .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery/Art Section */
.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
  transition: opacity 0.3s ease-in-out;
  width: 100%;
}

/* Responsive column adjustments */
@media (min-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media (min-width: 1400px) {
  .masonry-grid {
    column-count: 4;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: inline-block;
  width: 100%;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  /* Enhanced Bento box rounding */
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Subtle border for bento aesthetic */
  overflow: hidden;
  background-color: var(--secondary-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  /* Snappier pop animation */
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.gallery-img-container {
  width: 100%;
  height: auto;
  /* Removed fixed height to allow dynamic sizing */
  background-color: #2a2a2a;
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  /* Removes baseline gap below images */
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  padding: 3rem 1.5rem 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
  color: #fff;
}

.gallery-category {
  font-size: 0.85rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Filter Buttons */
.filter-btn {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  margin: 0.25rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--text-main);
  color: var(--primary-bg);
  border-color: var(--text-main);
}

/* Modal Customization */
.modal-content {
  background-color: var(--primary-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.btn-close-custom {
  color: var(--text-main);
  background: transparent;
  border: none;
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-close-custom:hover {
  opacity: 1;
}

/* About Section */
#about {
  background-color: var(--secondary-bg);
  padding: 100px 0;
}

/* Footer */
footer {
  background-color: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
}

.social-link {
  color: var(--text-muted);
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--accent-color);
}

/* Utility classes */
.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
  margin: 1rem auto 0;
}

/* Snackbar Notification */
#snackbar {
  visibility: hidden;
  min-width: 250px;
  background-color: #2a2a2a;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 1100;
  /* Kept above the Bootstrap modal */
  right: 30px;
  bottom: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    visibility 0s 0.3s;
}

#snackbar.show {
  visibility: visible;
  transform: translateY(0);
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    visibility 0s 0s;
}

#snackbar.success {
  border-left: 4px solid #28a745;
}

#snackbar.error {
  border-left: 4px solid #dc3545;
  color: #ffb3b3;
}

/* #modal-image.is-loading {
  opacity: 0;
} */

#modal-image {
  transition:
    filter 250ms ease,
    opacity 250ms ease;
  opacity: 1;
}

#modal-image.is-loading {
  filter: blur(18px);
  transform: scale(1.03);
  opacity: 0.9;
}

#modal-image.is-loaded {
  filter: none;
  transform: none;
  opacity: 1;
}
