@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root{
  --bg:#F7F5F1;
  --surface:#FFFFFF;
  --surface-soft:#F9F4EA;
  --card:#FFFFFF;
  --text:#1A1A1A;
  --muted:#6B7280;
  --gold:#d9a967;
  --gold-soft:#f3dfbe;
  --maxw:1200px;
  --radius:18px;
}

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

/* === FIX: STRICTLY PREVENT HORIZONTAL SCROLL === */
html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  margin: 0;
}

img{max-width:100%;display:block;}
a{color:inherit;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 1.25rem;}

/* === HEADER STYLES === */
.site-header{
  position:fixed;
  top:0;
  left:0;
  width: 100%; /* Use 100% instead of 100vw to fit exact viewport */
  z-index:1000;
  /* DEFAULT: White Background (For all non-home pages) */
  background: #FFFFFF;
  backdrop-filter:none;
  border-bottom:none;
  padding:12px 0;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

/* HOME SCREEN: Transparent Initially */
.site-header.home-header {
  background: transparent;
  box-shadow: none;
}

/* SCROLLED STATE: Black Background (Applies to all pages) */
.site-header.scrolled{
  background: #050507 !important; /* Black */
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nav-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1200px;
  margin:auto;
  padding:0 24px;
  width: 100%;
}

.brand img {
  height: 64px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.6));
}

.brand:hover img {
  transform: scale(1.05);
}

/* === HAMBURGER MENU STYLES === */
.hamburger {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  /* DEFAULT: Dark lines (on white bg) */
  background: #1A1A1A;
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
  box-shadow: none;
}

/* HOME SCREEN: White lines initially */
.site-header.home-header .hamburger span {
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3); /* Added shadow for visibility */
}

/* SCROLLED: White lines (on black bg) */
.site-header.scrolled .hamburger span {
  background: #FFFFFF;
  box-shadow: none;
}

/* Desktop Nav */
.main-nav{display:flex;gap:1.4rem;font-weight:500;font-size:.9rem;}
.main-nav a{
  /* DEFAULT: Dark text (on white bg) */
  color: #1A1A1A;
  margin-left:28px;
  font-weight:500;
  text-decoration:none;
  transition:0.3s;
  position: relative;
  text-shadow: none;
}

/* HOME SCREEN: White text initially */
.site-header.home-header .main-nav a {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* SCROLLED: White text (on black bg) */
.site-header.scrolled .main-nav a {
  color: rgba(255,255,255,0.95);
  text-shadow: none;
}

.main-nav a:hover{
  color:var(--gold);
}

.main-nav a::after{
  content:'';
  position:absolute;
  left:0;bottom:-3px;
  width:0;height:2px;
  background:var(--gold);
  transition:width .22s ease;
}
.main-nav a:hover::after{width:100%;}
.nav-cta{
  padding:0.45rem 0.9rem;
  border-radius:999px;
  border:1px solid rgba(217,169,103,0.7);
  background:rgba(5,5,7,0.6);
}

/* HERO */
.hero-fullscreen{
  position:relative;
  min-height:100vh;
  height:100vh;
  display:flex;
  align-items:center;
  background:#050507;
  padding-top:0 !important;
  margin-top:0 !important;
  overflow:hidden; /* CRITICAL: Clips the slider content */
  width: 100%; /* Use 100% not 100vw */
}

.hero-slides{
  height:100%;
  width: 100%;
  display:flex;
  transition:transform .85s cubic-bezier(.22,.9,.25,1);
}
.hero-slide{
  min-width:100%;
  flex-shrink: 0;
  height:100%;
  background-size:cover;
  background-position:center;
  position:relative;
}
.hero-slide::after{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top,rgba(0,0,0,.35),rgba(0,0,0,.86));
}
.hero-content{
  position:relative;
  z-index:1;
  max-width:640px;
  padding-top:7rem;
  color: #FFFFFF; /* Force white text for hero content */
}
.hero .eyebrow{
  letter-spacing:.2em;
  text-transform:uppercase;
  font-size:.75rem;
  color:var(--gold-soft);
  margin-bottom:.7rem;
}
.hero h1{
  font-family:"Playfair Display",serif;
  font-size:2.9rem;
  line-height:1.05;
  margin-bottom:.75rem;
}
.hero-text{
  color: rgba(255, 255, 255, 0.85); /* Light text for readability on dark bg */
  font-size:.98rem;
  margin-bottom:1.4rem;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.9rem;
}
.btn-primary,.btn-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.65rem 1.3rem;
  border-radius:999px;
  font-weight:600;
  font-size:.9rem;
  text-decoration:none;
}
.btn-primary{
  background:var(--gold);
  color:#111;
}
.btn-ghost{
  border:1px solid rgba(247,247,251,0.7);
  color: #FFFFFF; /* UPDATED: White text for visibility on dark hero */
  background:transparent;
}
.hero-dots{
  position:absolute;
  left:50%;bottom:24px;
  transform:translateX(-50%);
  display:flex;gap:.45rem;
  z-index:2;
}
.hero-dot{
  width:11px;height:11px;
  border-radius:999px;
  border:none;
  background:rgba(255,255,255,0.4);
  cursor:pointer;
}
.hero-dot.active{background:var(--gold);}

/* Sections */
main{
  padding-top: 0;
  width: 100%;
  overflow-x: hidden;
}
.section{
  padding:4rem 0;
  /* UPDATED: Increased top padding to create margin below fixed header on white pages */
  padding-top: 130px;
}
.section:first-child {
  padding-top: 0;
}
/* Exception for sections that follow the hero or are explicitly dark/transparent */
.section.dark{background:transparent !important;}

.section h2{
  font-family:"Playfair Display",serif;
  font-size:2rem;
  margin-bottom:.9rem;
}
.section p.lead{
  max-width:720px;
  color:var(--muted);
}

/* Services cards */
.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.4rem;
  margin-top:2rem;
}
.service-card{
  background:#FFFFFF;
  border-radius:var(--radius);
  padding:1.4rem 1.3rem 1.5rem;
  box-shadow:0 8px 20px rgba(15,23,42,0.08);
  border:1px solid rgba(217,169,103,0.35);
}
.service-card h3{
  font-family:"Playfair Display",serif;
  margin-bottom:.55rem;
}
.service-card p{
  font-size:.9rem;
  color:var(--muted);
}

/* === PROJECT SECTION REDESIGN === */
#projects{
  scroll-margin-top:88px;
  padding-top: 2rem; /* Reduced from 100px to reduce space above Selected Projects */
}
.filter-row{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin-bottom:2rem;
  justify-content: center;
  margin-top: 2rem; /* Added space between text and buttons */
}
.filter-btn{
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(10,10,14,0.9);
  color:var(--muted);
  padding:.4rem 1.1rem;
  font-size:.85rem;
  font-weight: 500;
  cursor:pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  background: rgba(25,25,30,0.9);
  color: #fff;
}
.filter-btn.active{
  background:var(--gold);
  color:#111;
  border-color:transparent;
  font-weight: 600;
}

.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 1.8rem;
}

.project-item{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  background:#1A1A1A;
  box-shadow:0 12px 30px rgba(0,0,0,0.2);
  cursor:pointer;
  text-decoration: none;
  display: block;
  grid-column: span 2;
}

.project-item.featured {
  grid-column: span 4;
  grid-row: span 2;
}

.project-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item:hover img{
  transform: scale(1.05);
}

.project-caption{
  position:absolute;
  left:0;
  bottom:0;
  right:0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  transform: translateY(0);
  transition: none;
}

.project-caption h3 {
  font-family:"Playfair Display",serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.project-caption .view-project {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
}

.project-caption .view-project span {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.project-item:hover .view-project span {
  transform: translateX(5px);
}
/* === END PROJECT SECTION REDESIGN === */

/* Project intro page */
.project-intro{
  max-width:var(--maxw);
  margin:5.5rem auto 3rem;
  padding:0 1.25rem;
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(0,1.1fr);
  gap:2.6rem;
  align-items:center;
}
.project-media{
  position:relative;
}
.project-media video{
  width:100%;
  border-radius:24px;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 18px 40px rgba(15,23,42,0.22);
}
.project-overlap{
  position:absolute;
  right:-26px;
  bottom:-50px;
  width:48%;
  border-radius:18px;
  border:4px solid #050507;
  box-shadow:0 30px 90px rgba(0,0,0,0.95);
}
.project-summary h1{
  font-family:"Playfair Display",serif;
  font-size:2.1rem;
  margin-bottom:.5rem;
}
.project-summary .tagline{
  color:var(--muted);
  margin-bottom:1rem;
}
.project-meta{
  display:flex;
  flex-wrap:wrap;
  gap:1.3rem;
  margin-bottom:1rem;
  font-size:.86rem;
}
.project-meta span{
  display:block;
  font-size:.7rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
}
.project-meta strong{display:block;}

.gallery{
  max-width:var(--maxw);
  margin:1.5rem auto 0;
  padding:0 1.25rem;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
}
.gallery img{
  border-radius:18px;
  height:200px;
  object-fit:cover;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(15,23,42,0.16);
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.94);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:80;
}
.lightbox.open{display:flex;}
.lightbox img{
  max-width:92%;
  max-height:90%;
  border-radius:10px;
  box-shadow:0 30px 90px rgba(0,0,0,1);
}
.lightbox .close-btn{
  position:absolute;
  top:18px;right:26px;
  font-size:1.8rem;
  cursor:pointer;
}
.lightbox .arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:2.4rem;
  cursor:pointer;
  padding:.4rem .7rem;
}
.lightbox .arrow.left{left:26px;}
.lightbox .arrow.right{right:26px;}

/* Footer - Light Theme */
.site-footer{
  border-top: 1px solid rgba(217,169,103,0.3); /* Soft gold border */
  background: #FFFFFF; /* White background */
  margin-top: 4rem;
}
.footer-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.2rem 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: 2.1fr 1.1fr 1.2fr;
  gap: 2.4rem;
}
.footer-logo{height: 52px; margin-bottom: .8rem;}
.footer-inner h4{
  font-size:.95rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:.75rem;
  color: #FFFFFF; /* UPDATED: White headings for visibility */
}
.footer-inner a{
  font-size:.86rem;
  color: #9ca3af; /* UPDATED: Lighter gray for better contrast */
  text-decoration:none;
  display:block;
  margin-bottom:.35rem;
}
.footer-inner a:hover{color: var(--gold);}
.footer-bottom{
  border-top: 1px solid rgba(0,0,0,0.06); /* Light divider */
  text-align: center;
  padding: 1rem 1.25rem 1.4rem;
  font-size: .8rem;
  color: #9ca3af; /* UPDATED: Lighter gray */
}

/* Specific override for small text in footer */
.site-footer .small {
  color: #9ca3af;
}

/* WhatsApp FAB */
.whatsapp-fab{
  position:fixed;
  right:24px;
  bottom:24px;
  width:58px;
  height:58px;
  border-radius:50%;
  background:var(--gold);
  display:grid;
  place-items:center;
  text-decoration:none;
  color:#111;
  font-size:1.6rem;
  box-shadow:0 18px 48px rgba(0,0,0,1);
  z-index:90;
  animation:fapulse 2.4s infinite;
}
@keyframes fapulse{
  0%{transform:translateY(0) scale(1);}
  50%{transform:translateY(-3px) scale(1.06);}
  100%{transform:translateY(0) scale(1);}
}

/* Utilities */
.small{font-size:.85rem;color:var(--muted);}

/* === GALLERY SLIDER STYLES === */
.gallery-slider-container {
  position: relative;
  padding: 0 60px;
  overflow: hidden;
  max-width: 100%;
}

.gallery-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.gallery-slide {
  min-width: calc(50% - 10px);
  flex-shrink: 0;
}

.gallery-slide img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-slide:hover img {
  transform: scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  color: #1A1A1A;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  padding-bottom: 4px;
}

.slider-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }

.slider-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f0f0f0;
  border-color: transparent;
}

/* === RESPONSIVE STYLES === */
@media(max-width:900px){
  .nav-bar{padding:0.9rem 1.1rem;}
  .hero-content{padding-top:6rem;}
  .hero h1{font-size:2.2rem;}

  /* Constrain logo width on mobile to prevent horizontal scroll */
  .brand img {
    max-width: 180px;
    height: auto;
    max-height: 64px;
  }

  /* Project Intro Responsive */
  .project-intro{grid-template-columns:1fr;margin-top:5.2rem;}
  .project-overlap{position:relative;right:auto;bottom:auto;width:60%;margin:-52px 0 0 auto;}

  /* Footer Responsive */
  .footer-inner{grid-template-columns:1.6fr 1fr;}

  /* Portfolio Grid Responsive */
  .portfolio-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .project-item, .project-item.featured {
    grid-column: span 1;
    grid-row: span 1;
    height: 320px;
  }
  .project-item img {
    height: 320px;
  }
}

@media(max-width: 768px) {
  /* Hamburger Visible */
  .hamburger {
    display: block;
  }

  /* Mobile Menu Drawer */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #050507;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, visibility 0.3s;
    z-index: 1000;
    visibility: hidden; /* FIX: Hide when closed to prevent horizontal scroll */
  }

  .main-nav.active {
    transform: translateX(0);
    visibility: visible;
  }

  .main-nav a {
    margin: 15px 0;
    font-size: 1.5rem;
    margin-left: 0; /* Reset desktop margin */
    color: rgba(255,255,255,0.95) !important; /* Force white text in mobile menu */
  }

  /* Hamburger Animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Gallery Slider Mobile */
  .gallery-slider-container {
    padding: 0;
  }
  .gallery-slide {
    min-width: 100%;
  }
  .gallery-slide img {
    height: 300px;
    border-radius: 12px;
  }
  .slider-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
}

@media(max-width:640px){
  .footer-inner{grid-template-columns:1fr;}
  .hero-content{padding-top:5.6rem;}
}