/* ============================= */
/* LIGHT MODE VARIABLES */
/* ============================= */
:root {
  /* Fonts */
  --font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Colors */
  --bg-color: #fafafa;
  --text-color: #000;
  --header-bg: #fafafa;
  --nav-link: #555;
  --nav-link-active: #000;
  --footer-bg: #fafafa;
  --footer-text: #000;
  --button-bg: #fff;
  --button-text: #000; /* fixed for contrast */
  --button-hover-bg: #ffcc00;
  --button-hover-text: #000;
  --carousel-bg: #fafafa;
  --caption-color: #000;
  --social-links-color: #000;
  --accent-color: #ffcc00; /* Gold accent */
}

/* ============================= */
/* DARK MODE VARIABLES */
/* ============================= */
body.dark-mode {
  --font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --bg-color: #1a1a1a;
  --text-color: #fff;
  --header-bg: #1a1a1a;
  --nav-link: #fff;
  --nav-link-active: #fff;
  --footer-bg: #1a1a1a;
  --footer-text: #fff;
  --button-bg: #1a1a1a;
  --button-text: #fff;
  --button-hover-bg: #c0c0c0;
  --button-hover-text: #1a1a1a;
  --carousel-bg: #1a1a1a;
  --caption-color: #fff;
  --social-links-color: #fff;
  --accent-color: #c0c0c0; /* Silver accent */
}

/* ============================= */
/* GLOBAL STYLES */
/* ============================= */
body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  text-align: center;
}

h1 {
  margin-bottom: 0.5rem;
}

/* ============================= */
/* HEADER */
/* ============================= */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: var(--header-bg);
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  max-width: 120px;
  height: auto;
  opacity: 0;
  transform: scale(0.9);
  animation: logoFadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.logo-link {
  display: inline-block;
  transition: transform 0.2s ease;
}

.logo-link:hover {
  color: var(--accent-color);
  transform: scale(1.1); /* Slight zoom */
}

.site-text {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-color);
  font-weight: bold;
}

.site-tagline {
  font-size: 1rem;
  margin: 0;
  color: var(--nav-link);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ============================= */
/* NAVIGATION */
/* ============================= */
.site-nav a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--nav-link);
  font-weight: bold;
}

.site-nav a.active {
  color: var(--nav-link-active);
  border-bottom: 2px solid var(--nav-link-active);
}

.site-nav a:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* ============================= */
/* CAROUSEL */
/* ============================= */
.carousel-wrapper {
  text-align: center;
  margin-top: 1rem;
}

.carousel {
  position: relative;
  max-width: 800px;
  height: 580px; /* fixed height */
  margin: 0 auto;
  overflow: hidden;
  background: var(--carousel-bg);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slides figure {
  min-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;                /* enable flex layout */
  flex-direction: column;       /* stack image + caption */
  justify-content: center;      /* vertical centering */
  align-items: center;          /* horizontal centering */
  height: 100%;
}

.slides img {
  max-height: calc(100% - 80px); /* leave space for caption */
  max-width: 100%;
  height: auto;
  width: auto; /* prevents forced stretching */
  object-fit: contain; /* keep aspect ratio, no cropping */
}

figcaption {
  margin-top: 0.5rem;
  margin-bottom: 2.5rem; /* extra space for pause button */
  font-size: 1rem;
  color: var(--caption-color);
  text-align: center;
}

@media (max-width: 600px) {
  .carousel {
    height: 300px;
  }
}


/* ============================= */
/* Carousel BUTTON */
/* ============================= */
/* Shared carousel control style */
.prev,
.next,
#pause-carousel {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 20%;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}



/* Positioning */
.prev {
  position: absolute;
  top: 50%;
  left: 10px;
}

.next {
  position: absolute;
  top: 50%;
  right: 10px;
}

#pause-carousel {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

/* Shared hover effect */
.prev:hover,
.next:hover,
#pause-carousel:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
  transform: scale(1.1);
}

/* Always show arrows on mobile */
@media (max-width: 600px) {
  .prev,
  .next {
    opacity: 1;
  }
}


/* ============================= */
/* FOOTER */
/* ============================= */
footer {
  padding: 1.5rem;
  margin-top: 2rem;
  background-color: var(--footer-bg);
  color: var(--footer-text);
}

footer p {
  margin: 0.5rem 0;
}

.social-links {
  margin: 0.5rem 0;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
  color: var(--social-links-color);
}

.social-links a svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

footer .copyright {
  font-size: 0.9rem;
  color: var(--footer-text);
  margin-top: 1rem;
}

/* ============================= */
/* CONTACT PAGE */
/* ============================= */
#contact {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.contact-options {
  margin-top: 2rem;
}

.contact-btn {
  display: inline-block;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.contact-btn:hover {
  background: var(--button-hover-bg);
  color: var(--button-hover-text);
  transform: scale(1.1);
}

/* ============================= */
/* ABOUT PAGE */
/* ============================= */
.about-photo {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

/* ============================= */
/* COPYRIGHT PAGE */
/* ============================= */
#copyright-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: left;
}

/* ============================= */
/* DARK MODE SPECIFICS */
/* ============================= */
body.dark-mode .carousel {
  background-color: var(--carousel-bg);
}

body.dark-mode figcaption {
  color: var(--caption-color);
}

/* ============================= */
/* ANIMATIONS */
/* ============================= */
@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-right {
    margin-top: 0.5rem;
  }
  .site-nav {
    margin-top: 0.5rem;
  }
  .site-nav a {
    display: inline-block;
    margin: 5px;
  }
  .prev,
  .next {
    opacity: 1;
  }
}

/* ============================= */
/* LIGHT/DARK TOGGLE */
/* ============================= */
#theme-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: color 0.3s ease, transform 0.2s ease;
}

#theme-toggle:focus {
  outline: none;
}

#theme-toggle svg {
  width: 28px;
  height: 28px;
}

#theme-toggle:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* ============================= */
/* LINKS */
/* ============================= */
a {
  color: var(--nav-link);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

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

main a:hover {
  text-decoration: underline;
}

/* ============================= */
/* NAVIGATION LINKS HOVER */
/* ============================= */
.site-nav a {
  text-decoration: none;
  color: var(--nav-link, inherit);
  transition: color 0.3s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent-color);
  transform: scale(1.05);
}

/* ============================= */
/* UNIVERSAL BUTTONS */
/* ============================= */
button,
a.btn,
a[role="button"] {
  background: none;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

button:hover,
a.btn:hover,
a[role="button"]:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
  transform: scale(1.05);
}

body.dark-mode button:hover,
body.dark-mode a.btn:hover,
body.dark-mode a[role="button"]:hover {
  color: var(--bg-color);
}

/* ============================= */
/* GALLERY GRID */
/* ============================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
  max-width: 1200px; /* limit width for nice centering */
  margin: 0 auto; /* center the grid */
}

.gallery-item {
  background: var(--carousel-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  cursor: pointer; /* show clickable */
}

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

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* fills thumbnail box */
  display: block;
}

.caption {
  padding: 0.5rem;
  font-size: 0.9rem;
  color: var(--caption-color);
  text-align: center;
}

/* Lightbox styles */
.lightbox {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0 15px;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: calc(90vh - 60px); /* leave space for caption */
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-caption {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: white;
  text-align: center;
  line-height: 1.4;
}

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

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* fills thumbnail box */
  display: block;
}

.caption {
  padding: 0.5rem;
  font-size: 0.9rem;
  color: var(--caption-color);
  text-align: center;
}

