:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #f0ebe4;
  --bg-white: #ffffff;
  --text-primary: #000000;
  --text-secondary: #1a1a1a;
  --text-muted: #4a4a4a;
  --accent-red: #CC0000;
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-soft: rgba(0, 0, 0, 0.04);
  --shadow-hover: rgba(0, 0, 0, 0.08);
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.03em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4rem 0;
}

.divider svg {
  width: 120px;
  height: 20px;
}

.divider-line {
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--border-light);
  transition: transform 0.4s var(--transition-smooth);
}

#navbar.hidden {
  transform: translateY(-100%);
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo {
  font-family: 'Teko', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
}

.logo-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

#navbar a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

#navbar a:hover { 
  color: var(--accent-red); 
}

#navbar .nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--text-primary);
  border: 1px solid var(--text-primary);
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
}

#navbar .nav-cta:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

/* DESKTOP HAMBURGER (Hidden) */
#menuToggle {
  display: none; 
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

#menuToggle.active .hamburger-open { display: none; }
#menuToggle .hamburger-close { display: none; }
#menuToggle.active .hamburger-close { display: block; }

.hamburger-open, .hamburger-close {
  font-size: 1.8rem;
  line-height: 1;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.hero-illustration {
  width: 180px;
  height: 60px;
  margin: 0 auto;
}

/* ===== POEM SECTION ===== */
.poem {
  background: var(--bg-secondary);
  padding: 6rem 3rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.poem-text {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 2.2;
  max-width: 700px;
  margin: 0 auto;
}

.poem-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
  letter-spacing: 0.1em;
}

/* ===== SLIDER SECTION ===== */
.slider-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.slider {
  position: relative;
  width: 100%;
  /* A cinematic fluid height that doesn't get too tall or too short */
  height: clamp(400px, 60vh, 650px);
  background: transparent;
  overflow: hidden;
  border-radius: 4px;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slides img {
  width: 100%;
  height: 100%;
  /* Fills the container smoothly */
  object-fit: cover; 
  /* Sets the focal point to the upper-middle to prevent awkward portrait cropping */
  object-position: center 30%; 
  flex-shrink: 0;
}

.slider-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.slider-button {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  pointer-events: all;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-button:hover {
  background: var(--text-primary);
  color: var(--bg-white);
}

/* ===== COLLECTION NAVIGATION ===== */
.collection-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.collection-nav a {
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.collection-nav a:hover,
.collection-nav a.active {
  background: var(--text-primary);
  color: var(--bg-white);
  border-color: var(--text-primary);
}

/* ===== COLLECTION INTRO ===== */
.collection-intro {
  text-align: center;
  padding: 0 2rem 3rem;
}

.collection-intro h2 {
  font-size: 2rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.collection-intro p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ARTWORK MASONRY GRID ===== */
.artwork-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.gallery {
  columns: 3;
  column-gap: 3rem;
}

@media (max-width: 1024px) { .gallery { columns: 2; } }
@media (max-width: 600px) { .gallery { columns: 1; } }

.artwork {
  break-inside: avoid;
  margin-bottom: 4rem; 
  background: var(--bg-white);
  border-radius: 2px;
  box-shadow: 0 2px 15px var(--shadow-soft);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.artwork:hover {
  transform: translateY(-4px); 
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.artwork-image {
  overflow: hidden;
  background: var(--bg-secondary);
}

.artwork-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.artwork:hover .artwork-image img {
  transform: scale(1.02); 
}

.artwork-info {
  padding: 1.5rem;
  text-align: center;
}

.artwork h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.artwork p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.inquire-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.inquire-button:hover {
  background: var(--text-primary);
  color: var(--bg-white);
  border-color: var(--text-primary);
}

/* ===== FRAME & ABOUT SECTIONS ===== */
.frame-section, .about-section {
  max-width: 800px;
  margin: 6rem auto;
  padding: 0 2rem;
  text-align: center;
}

.frame-section img {
  margin: 0 auto 3rem;
  border-radius: 2px;
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.frame-section p, .about-section p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 2;
}

.about-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--bg-secondary);
  padding: 6rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.contact-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact-section > p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-icons a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.contact-icons a:hover {
  background: var(--text-primary);
  color: var(--bg-white);
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
  padding: 3rem 2rem;
  text-align: center;
}

footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== SCROLL TO TOP ===== */
#scrollToTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  cursor: pointer;
}

#scrollToTopBtn.visible {
  opacity: 1;
  visibility: visible;
}

#scrollToTopBtn:hover {
  background: var(--text-primary);
  color: var(--bg-white);
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  #navbar {
    padding: 1rem 1.5rem;
    position: fixed; /* Ensures it stays functional */
  }
  
  #navbar .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
  }
  
  #navbar .nav-links.active {
    transform: translateX(0);
  }

  .close-menu-btn {
    display: none !important;
  }

  /* 1. Put the Alfaaz CTA back in the normal flow on the right */
  #navbar .nav-cta {
    display: inline-block !important; /* Forces it to show up */
    position: relative; 
    z-index: 998; /* Below the full-screen menu overlay */
    padding: 0.5rem 0.8rem; /* Slightly smaller padding for mobile */
  }

  /* 2. Pin the Hamburger perfectly to the top middle */
  #menuToggle {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 1.2rem;
    z-index: 1005; /* Pulled ABOVE the menu overlay so it closes */
  }
  
  .slider-section {
    padding: 2rem 1rem;
  }
}