/* ============================================================
   CUSTOM STYLES FOR PHOTOGRAPHY WEBSITE
   Bootstrap 5 is loaded via CDN – these rules only add polish.
   Edit colors, spacing, or fonts here to match your brand.
   ============================================================ */

:root {
  /* Soft, elegant palette – change these to re-theme the whole site */
  --primary: #1e3a5f;          /* Dark blue-gray for text & accents */
  --accent: #5b8def;           /* Muted gray-blue for hover / secondary */
  --light-bg: #f8f9fa;         /* Light background sections */
  --dark-bg: #0f1c2e;          /* Footer / dark sections */
  --text-muted: #6c757d;
}

/* ---------- Global ---------- */
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--primary);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* ---------- Navbar ---------- */

.navbar {
  background-color: var(--dark-bg) !important;   /* same dark color as the footer */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Make the text and brand light so they stay readable */
.navbar-brand,
.nav-link {
  color: #e9ecef !important;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
}

/* Dropdown menu stays light for readability */
.dropdown-menu {
  background-color: #2c2c2c;
}

.dropdown-item {
  color: #e9ecef;
}

.dropdown-item:hover {
  background-color: #3a3a3a;
  color: #fff;
}

/* .navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary) !important;
}

.nav-link {
  color: var(--primary) !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
}

.dropdown-item:hover {
  background-color: var(--light-bg);
  color: var(--primary);
} */

/* ---------- Hero / Header sections ---------- */
.hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

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

/* ---------- Gallery grid ---------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  padding: 1rem;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Placeholder for missing images */
.img-placeholder {
  background: linear-gradient(45deg, #e9ecef, #dee2e6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  height: 250px;
  border-radius: 0.5rem;
}

/* ---------- Cards & sections ---------- */
.section-title {
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 0.5rem;
}

.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* ---------- Contact form ---------- */
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(142, 154, 175, 0.25);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #1a252f;
  border-color: #1a252f;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--dark-bg);
  color: #adb5bd;
  padding: 2.5rem 0 1.5rem;
}

footer a {
  color: #ced4da;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 0.5rem;
  transition: background 0.2s ease;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Utility ---------- */
.page-header {
  background: var(--light-bg);
  padding: 3rem 0;
  margin-bottom: 3rem;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .hero {
    min-height: 50vh;
    padding: 3rem 1rem;
  }

  .gallery-item img,
  .img-placeholder {
    height: 200px;
  }
}

/* Darker background only on the Gallery page */
body.gallery-page {
  background-color: #121212;
  color: #e0e0e0;
}

body.gallery-page .page-header {
  background-color: #1a1a1a;
}

body.gallery-page .section-title {
  color: #f0f0f0;
}