/* ---------------------------------------------------
   Global Styles
--------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #0d0d0d;
  color: #b8860b; /* dark gold */
  line-height: 1.6;
}

/* ---------------------------------------------------
   Navbar
--------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  z-index: 10000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0px;
  font-family: 'Montserrat', sans-serif;
  color: #f6f5f3;
}
.logo span {
  color: #888888;
  font-weight: 400;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #f9f8f5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

/* Mobile navbar toggle */
.nav-toggle {
  display: none; /* shown on small screens */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle .hamburger {
  width: 26px;
  height: 3px;
  background: #daa520; /* gold */
  display: block;
  position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 26px;
  height: 3px;
  background: #daa520; /* gold */
  transition: transform 0.25s ease;
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after { top: 7px; }

/* Small screens: hide links, show toggle */
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  /* position the toggle over the navbar so it's always visible on phones */
  .nav-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999; /* make absolutely sure it sits above everything */
    pointer-events: auto;
    padding: 8px 10px; /* larger hit area for touch */
    border-radius: 6px;
    background: rgba(0,0,0,0.15); /* slight backdrop so it's visible */
  }
  .nav-links {
    position: absolute;
    top: 64px;
    right: 16px;
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 12px 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 32px);
    max-width: 300px;
    border-radius: 6px;
  }
  .nav-links li { text-align: left; }
  .navbar[aria-expanded="true"] .nav-links,
  .nav-links.show {
    display: flex;
  }
  /* additional selector: when navbar has nav-open class, show links */
  .navbar.nav-open .nav-links {
    display: flex;
  }
}

/* ---------------------------------------------------
   Hero Section (index.html)
--------------------------------------------------- */
.hero {
  height: 100vh;
  background: none; 
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40); /* Slightly darker overlay for contrast */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #daa520;
}

/* --- Home Slideshow (Fade) --- */
.slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  /* Use JS instead of CSS animation for full control */
  opacity: 0; 
  transition: opacity 6.5s ease-in-out; 
  
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}


/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 4px solid #edece9;
  color: #f0efec;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  border-radius: 4px;
  cursor: pointer;
}

.hero .btn {
  color: #ffffff;
  border-color: #ffffff;
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

.hero .btn:hover {
  background: #ffffff;
  color: #0d0d0d;
}

.btn:hover {
  background: #f2f1ee;
  color: #0d0d0d;
}

/* ---------------------------------------------------
   Sections (General)
--------------------------------------------------- */
.section {
  padding: 4rem 2rem; /* slightly less vertical padding */
  text-align: center;
  padding-top: 5.5rem; /* reduce space reserved for fixed navbar */
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #daa520;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------------------------------------------------
   About (about.html)
--------------------------------------------------- */
.about p {
  max-width: 700px;
  margin: 1rem auto;
  color: #ffffff;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 400px;
  text-align: left; /* Align text left for better readability */
}

.about-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}


/* ---------------------------------------------------
   Portfolio (portfolio.html)
--------------------------------------------------- */
.portfolio h2 {
    margin-bottom: 3rem;
}

/* New: Category container for better structure */
.category {
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(184, 134, 11, 0.3); /* dark gold border */
}
.category h3 {
    font-size: 1.5rem;
    color: #f6f5f3;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* The actual image gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo {
  height: 360px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px #daa520; /* Brighter gold shadow */
}

/* Style for the PORTRAITS category preview link */
.category-link {
    display: block; /* Make the link fill the category area */
    text-decoration: none;
}
.portraits-category .photo {
  height: 720px; /* Make the single portrait preview larger */
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .photo { height: 260px; }
  .portraits-category .photo { height: 520px; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .photo { height: 200px; }
  .portraits-category .photo { height: 360px; }
}


/* ---------------------------------------------------
   Contact Section (contact.html)
--------------------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto 0;
}

.contact-form input,
.contact-form textarea {
  background: #1c1c1c;
  border: none;
  padding: 1rem;
  color: #fff;
  border-radius: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #b8860b;
}

.contact-info {
  margin: 2rem 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  color: #ffffff; /* info text in white */
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item i {
  font-size: 1.2rem;
  color: #daa520; /* icons in gold */
  width: 1.5rem;
  text-align: center;
}

.contact-info a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #daa520;
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.footer {
  background: #111;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: #8b7500;
  margin-top: 1.25rem;
}

/* ---------------------------------------------------
   Typography
--------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: #daa520;
}

p {
  color: #ccc; /* Slightly brighter paragraph text */
}

/* ---------------------------------------------------
   PORTRAIT SLIDER PAGE (portraits-slider.html)
--------------------------------------------------- */
.portrait-gallery-slider {
    min-height: 100vh;
    padding-top: 8rem;
    text-align: center;
}

.slider-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh; 
    margin: 30px auto;
    overflow: hidden;
    background: #000; /* Black background for contrast */
}

.slider-track {
    display: flex;
  /* width removed to allow flexible number of slides; each slide uses flex-basis */
    height: 100%;
    transition: none; /* Smooth slide effect */
}

.slider-slide {
    width: 100%; 
    flex-shrink: 0;
    background-size: contain; /* Shows the whole image */
    background-position: center;
    background-repeat: no-repeat;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    line-height: 1;
    transition: background 0.2s;
}
.slider-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}
.slider-nav.prev { left: 0; border-radius: 0 4px 4px 0; }
.slider-nav.next { right: 0; border-radius: 4px 0 0 4px; }

.back-btn {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
/* ---------------------------------------------------
   Movementscapes inline slider (portfolio.html)
--------------------------------------------------- */
.movement-slider .slider-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  /* larger responsive height: min 420px, ideal 60vh, max 900px */
  height: clamp(420px, 60vh, 900px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.movement-slider .slider-track {
  display: flex;
  height: 100%;
  transition: transform 500ms ease;
  /* ensure track fits the slides as flex children */
  will-change: transform;
}

.movement-slider .slider-slide {
  flex: 0 0 100%; /* each slide takes full container width */
  height: 100%;
  position: relative;
  z-index: 1;
}

.movement-slider .slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prevent global img rules from shrinking slider images unexpectedly */
.movement-slider img {
  max-width: none;
  max-height: none;
  display: block;
}

.movement-slider .slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,13,13,0.45);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 4px;
}
.movement-slider .slider-nav.prev { left: 12px; }
.movement-slider .slider-nav.next { right: 12px; }

.movement-slider .slider-pagination {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 12;
}
.movement-slider .slider-pagination .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.movement-slider .slider-pagination .dot.active {
  background: #daa520; /* gold */
  transform: scale(1.15);
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  /* dark translucent overlay but the image sits inside a solid black pane */
  background: rgba(0,0,0,0.92);
  z-index: 20000;
}
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox-content {
  /* solid black pane that holds the image so rounded corners always show black */
  background: #000;
  padding: 12px;
  border-radius: 8px;
  max-width: 95vw;
  max-height: 95vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.lightbox-content img {
  /* keep the image contained inside the black pane and fully visible */
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
}
.lightbox-close {
  /* place the close button inside the black pane for consistent hit area */
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10;
}

@media (max-width: 700px) {
  .movement-slider .slider-container { height: 220px; }
  .movement-slider .slider-nav { padding: 8px 10px; font-size: 1.2rem; }
}

/* ---------------------------------------------------
   PORTRAIT SLIDER PAGE (Additions for Dots)
--------------------------------------------------- */

.slider-pagination {
    position: absolute;
    bottom: 20px; /* Distance from the bottom of the slider */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #daa520; /* Gold color for the active dot */
}

/* Ensure arrows are still visible on top of dots */
.slider-nav {
    z-index: 20; /* Make the arrows higher than the dots */
}
