/* === GLOBAL STYLES === */
:root {
  --deep-green: #3a5a40;
  --soft-gold: #eb9500;
  --cream: #f9f5f0;
  --gray: #666;
  --white: #fff;
  --font-body: "Montserrat", sans-serif;
  --font-heading: "Playfair Display", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: #333;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === REUSABLE COMPONENTS === */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cream);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.75s ease;
}
#preloader.hidden { opacity: 0; pointer-events: none; }
.spinner { width: 50px; height: 50px; border: 4px solid rgba(58, 90, 64, 0.2); border-top-color: var(--deep-green); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.3rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: padding 0.3s, background-color 0.3s;
}
nav.scrolled { padding: 0.9rem 0; background: rgba(255, 255, 255, 0.95); }
.nav-container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 26px; color: var(--deep-green); letter-spacing: 1.5px; }
.nav-links { display: flex; gap: 3rem; }
.nav-links a { font-weight: 500; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: var(--soft-gold); }
.menu-toggle { display: none; font-size: 28px; cursor: pointer; color: var(--deep-green); }

.section-title {
  font-family: var(--font-heading);
  font-size: 44px;
  text-align: center;
  color: var(--deep-green);
  margin-bottom: 60px;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--deep-green);
  color: white;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  transition: all 0.3s;
}
.btn:hover { background: #2e4833; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-gold { background: var(--soft-gold); }
.btn-gold:hover { background: #d08400; }

/* === HOME PAGE: HERO SWIPER === */
.hero-swiper {
  height: 100vh;
  position: relative;
  background: #e9e4de;
}
.hero-swiper .swiper-slide {
  overflow: hidden;
}
.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero-swiper .swiper-slide-active img {
  transform: scale(1);
}
.hero-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.7);
  width: 10px;
  height: 10px;
  opacity: 1;
}
.hero-swiper .swiper-pagination-bullet-active {
  background: var(--white);
  width: 25px;
  border-radius: 5px;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}
.hero-overlay .studio-name { font-size: 62px; font-weight: 700; letter-spacing: 3px; color: white; }
.hero-overlay .tagline { font-size: 22px; font-weight: 300; letter-spacing: 1px; margin-bottom: 30px; }
.hero-overlay .gold-line { width: 100px; height: 2px; background: var(--soft-gold); margin: 30px auto; }

/* === HOME PAGE: INTRO SECTION === */
.intro-section {
  padding: 120px 0;
  background: var(--cream);
}
.intro-text {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--deep-green);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 600;
}

/* === HOME PAGE: MASONRY GALLERY === */
#portfolio-showcase {
  padding: 100px 0;
  background: #f4f0eb;
}
.masonry-grid {
  column-count: 3;
  column-gap: 20px;
}
.masonry-item {
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.masonry-item:hover img {
  transform: scale(1.05);
}
.portfolio-button-container {
  text-align: center;
  margin-top: 60px;
}

/* === HOME PAGE: CONTACT === */
#contact {
  padding: 120px 0;
  background: var(--deep-green);
  color: white;
  text-align: center;
}
#contact .section-title { color: white; }
#contact .section-title::after { display: none; }
#contact .contact-intro { font-size: 18px; max-width: 600px; margin: -30px auto 40px; opacity: 0.9; }
#contact .contact-details { margin-bottom: 40px; }
#contact .contact-details p { margin-bottom: 10px; font-size: 16px; }
#contact .contact-details a { font-weight: 500; color: var(--soft-gold); transition: color 0.3s; }
#contact .contact-details a:hover { color: #fff; }

/* === PORTFOLIO PAGE === */
.page-header { text-align: center; padding: 160px 0 80px; }
.page-title { font-family: var(--font-heading); font-size: 52px; color: var(--deep-green); }
.page-subtitle { font-size: 19px; color: var(--gray); max-width: 700px; margin: 20px auto 0; }
.page-header .gold-line { width: 100px; height: 2px; background: var(--soft-gold); margin: 30px auto; }

#portfolio-filters { text-align: center; margin-bottom: 70px; }
.filter-btn { background: none; border: 1px solid #ddd; border-radius: 50px; padding: 10px 25px; margin: 0 8px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--gray); transition: all 0.3s; }
.filter-btn:hover { background: #fff; border-color: #ccc; color: #333; }
.filter-btn.active { background: var(--deep-green); border-color: var(--deep-green); color: white; box-shadow: 0 5px 15px rgba(58, 90, 64, 0.2); }

.portfolio-section { padding-top: 0; padding-bottom: 90px; margin-bottom: 60px; }
.portfolio-section .section-title { font-size: 42px; margin-bottom: 12px; }
.portfolio-section .section-subtitle { font-size: 18px; color: var(--gray); text-align: center; margin-bottom: 50px; letter-spacing: 1px; }
.portfolio-swiper .swiper-slide { height: 500px; }
.portfolio-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.12); transition: transform 0.4s; cursor: pointer; }
.portfolio-swiper .swiper-slide img:hover { transform: scale(1.05); }
.swiper-button-next, .swiper-button-prev { color: var(--deep-green); background: rgba(255, 255, 255, 0.8); width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: background-color 0.3s; }
.swiper-button-next:hover, .swiper-button-prev:hover { background: white; }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 20px; font-weight: 900; }
.swiper-pagination-bullet-active { background: var(--deep-green); }
.back-home-btn { display: inline-block; margin: 20px auto 80px; padding: 14px 50px; background: var(--deep-green); color: white; border-radius: 50px; font-weight: 500; letter-spacing: 1.5px; transition: background 0.3s; }
.back-home-btn:hover { background: #2a4230; }

/* === LIGHTBOX === */
#lightbox { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); justify-content: center; align-items: center; animation: fadeIn 0.3s ease; }
#lightbox.active { display: flex; }
#lightbox-img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: zoomIn 0.3s ease; }
#lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
#lightbox-close:hover { color: #ccc; }
#lightbox-prev, #lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 30px; font-weight: bold; cursor: pointer; transition: color 0.3s; padding: 16px; user-select: none; }
#lightbox-prev { left: 15px; }
#lightbox-next { right: 15px; }
#lightbox-prev:hover, #lightbox-next:hover { color: #ccc; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.9); } to { transform: scale(1); } }