@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=EB+Garamond:wght@400;500;600;700&display=swap");

/* ============================= */
/* LIGHT MODE VARIABLES */
/* ============================= */
:root {
  /* Fonts */
  --font-family: "EB Garamond", Georgia, serif;
  --title-font-family: "Archivo Black", Arial, sans-serif;
  
  /* 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: #f5f5f0; /* Warm off-white, good for paintings */
  --caption-color: #000;
  --social-links-color: #000;
  --accent-color: #ffcc00; /* Gold accent */
}

/* ============================= */
/* DARK MODE VARIABLES */
/* ============================= */
body.dark-mode {
  --font-family: "EB Garamond", Georgia, serif;
  --title-font-family: "Archivo Black", Arial, sans-serif;

  --bg-color: #000;
  --text-color: #fff;
  --header-bg: #000;
  --nav-link: #fff;
  --nav-link-active: #fff;
  --footer-bg: #000;
  --footer-text: #fff;
  --button-bg: #000;
  --button-text: #fff;
  --button-hover-bg: #c0c0c0;
  --button-hover-text: #000;
  --carousel-bg: #000;
  --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,
h2,
h3 {
  font-family: var(--title-font-family);
  font-weight: 400;
}

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-family: var(--title-font-family);
  font-weight: 400;
}

.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: 2rem;
  padding: 0 1rem;
}

.featured-work {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.featured-work img {
  max-width: 100%;
  max-height: 650px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.carousel {
  position: relative;
  max-width: 900px;
  height: 650px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--carousel-bg);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
}

.carousel:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.slides figure {
  min-width: 100%;
  margin: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.slides img {
  max-height: calc(100% - 100px);
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.slides img:hover {
  transform: scale(1.02);
}

figcaption {
  margin-top: 1rem;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  color: var(--caption-color);
  text-align: center;
  line-height: 1.6;
  padding: 0 1rem;
}

@media (max-width: 600px) {
  .carousel {
    height: 400px;
    border-radius: 8px;
  }
  
  .slides figure {
    padding: 1rem;
  }
  
  figcaption {
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
  }
}


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



/* 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.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 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 {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-photo {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.about-section {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
}

.about-section h2 {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.about-section p {
  margin: 0.5rem 0;
  line-height: 1.6;
  text-align: left;
}

.get-in-touch {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--nav-link);
}

.get-in-touch .contact-options {
  margin-top: 1.5rem;
}

/* ============================= */
/* 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);
}

/* ============================= */
/* PROJECTS GRID */
/* ============================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 2.5rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  background: var(--carousel-bg);
  border: 1px solid var(--nav-link);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.project-card-image {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: var(--carousel-bg);
  display: block;
  padding: 1rem;
  box-sizing: border-box;
}

.project-card-placeholder {
  padding: 0;
  border-bottom: 1px solid var(--nav-link);
}

.project-card-info {
  padding: 1.5rem;
  text-align: center;
}

.project-card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
}

.project-card-count {
  font-size: 0.9rem;
  color: var(--nav-link);
  margin: 0;
}

/* ============================= */
/* GALLERY LIST (for project pages) */
/* ============================= */
.gallery-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .gallery-list {
    padding: 1rem;
    gap: 2rem;
  }
  
  .gallery-item {
    padding: 1.5rem;
  }
  
  .gallery-item img {
    max-height: 60vh;
  }
}

.gallery-item {
  background: var(--carousel-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
}

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

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

.caption {
  padding: 1.5rem 0 0 0;
  font-size: 1rem;
  color: var(--caption-color);
  text-align: center;
  width: 100%;
}

/* ============================= */
/* PROJECT PAGE */
/* ============================= */
.project-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.project-header {
  text-align: center;
  margin-bottom: 3rem;
}

.project-header h2 {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.project-description {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text-color);
  font-size: 1.1rem;
}

/* 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;
}


