/* =========================================
   1. GLOBAL RESET & CORE
========================================= */
* { margin:0; padding:0; box-sizing:border-box; font-family: 'Poppins', sans-serif; }

html { 
    width: 100%;
    overflow-x: hidden;
}

body { 
    width: 100%;
    min-height: 100vh; 
    background: #000; 
    color: #fff; 
    overflow-x: hidden; 
    cursor: none; 
    
    /* === STICKY FOOTER SETUP === */
    display: flex;
    flex-direction: column;
}

/* Forces middle content to stretch, pushing footer down */
section, .legal-section, #dynamicContent {
    flex: 1; 
}

/* Standard Section Spacing (Desktop) */
.section { padding:100px 6%; }


/* =========================================
   2. HEADER & BRANDING
========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 60px;
  display: flex;
  justify-content: center;
  z-index: 999999;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.15); 
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  transition: 0.3s ease;
}

header.scrolled {
  padding: 12px 60px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 1;
  transform: none;
}

.logo-box {
  min-width: 50px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  width: auto;
  height: 45px;
  object-fit: contain;
}

.logo-link {
  text-decoration: none !important;
  color: inherit !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .sub {
  font-size: 14px;
  color: #C9A53E;
  letter-spacing: 3px;
}

.brand-text .main {
  font-size: 22px;
  font-weight: 700;
  color: #D4AF37;
  letter-spacing: 2px;
}


/* =========================================
   3. HERO SECTION (Desktop Layout)
========================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: row; /* Side by side on Desktop */
  align-items: center;
  justify-content: center;
  padding: 100px 6% 0;
  text-align: left;
  overflow: hidden;
}

.hero-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  z-index: 10;
  position: relative;
}

/* Left Content */
.hero-text-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-title span {
  background: linear-gradient(90deg, #D4AF37, #C9A53E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-features {
  list-style: none;
  margin-top: 20px;
  padding: 0;
  color: #D4AF37;
  font-size: 1.1rem;
  font-weight: 500;
}
.hero-features li { margin-bottom: 8px; }

/* Right Form Wrapper */
.hero-form-wrapper {
  flex: 1;
  max-width: 420px;
  min-width: 320px;
}

.form-glass-box {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.form-glass-box:hover {
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-5px);
}

.form-glass-box h3 { color: #fff; font-size: 1.8rem; margin-bottom: 5px; text-align: center; }
.form-sub { color: #888; font-size: 0.9rem; text-align: center; margin-bottom: 20px; }

/* Canvas Background */
#goldCanvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; opacity: 0.5;
}

.hero::after, .hero::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 1 !important;
}


/* =========================================
   4. UI ELEMENTS (Buttons, Forms, Cards)
========================================= */

/* Buttons */
.btn {
  position: relative;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 20;
}

.btn.primary {
  background: linear-gradient(90deg, #D4AF37, #C9A53E);
  color: #000;
  box-shadow: 0 0 15px rgba(212,175,55,0.4);
}

.btn.primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 25px rgba(212,175,55,0.6);
}

.btn.full-width {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
}

/* Sweep Effect */
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: 0.6s ease;
}
.btn:hover::before { left: 120%; }

/* Form Inputs */
.contact-form { max-width:520px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.field-group { display:flex; flex-direction:column; margin-bottom: 15px; }
label { color:#cfcfcf; margin-bottom:6px; font-size:0.9rem; }

input, select {
  width: 100%;
  padding:12px;
  border-radius:8px;
  border:1px solid #333;
  background: rgba(255, 255, 255, 0.08);
  color:#fff;
  font-size:1rem;
}

input:focus, select:focus {
  outline:none;
  border-color:#D4AF37;
  box-shadow:0 0 0 4px rgba(212,175,55,0.06);
  background-color: rgba(0, 0, 0, 0.9);
}

/* Custom Dropdown Arrow */
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23D4AF37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 40px;
  cursor: pointer;
}
select option { background-color: #111; color: #fff; padding: 10px; }

.privacy-note { text-align: center; font-size: 0.75rem; color: #555; margin-top: 15px; }


/* =========================================
   5. PROJECT GRID (Desktop Default)
========================================= */
.section-title { 
  font-size:2rem; 
  margin-bottom:28px; 
  background:linear-gradient(90deg,#D4AF37,#C9A53E); 
  -webkit-background-clip:text; 
  background-clip:text; 
  -webkit-text-fill-color:transparent; 
  color:transparent; 
}

.project-grid { 
  display:grid; 
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); 
  gap:24px; 
}

.project-card { 
  background:#0e0e0e; 
  border:1px solid #1f1f1f; 
  border-radius:14px; 
  padding:12px; 
  transition:transform .35s ease, box-shadow .35s ease; 
  position: relative; 
  z-index: 10;
  cursor: pointer;
}

.project-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.project-card h4 { color:#D4AF37; margin:12px 0 0 0; font-size:1.15rem; }
.project-card p { color:#ccc; margin:6px 0 0; font-size:0.95rem; }

.project-card:hover { 
  transform:translateY(-8px); 
  box-shadow:0 18px 40px rgba(0,0,0,0.6); 
  border-color:#D4AF37; 
}


/* =========================================
   6. FOOTER & EXTRAS
========================================= */
footer { text-align:center; padding:40px 6%; background:#080808; color:#bdbdbd; }

.fade-up { opacity: 1; transform: none; } /* GSAP Fallback */

.mask-reveal { overflow:hidden; display:inline-block; }
.mask-reveal span {
  display: inline-block;
  transform: translateY(100%);
  background: linear-gradient(90deg, #D4AF37, #C9A53E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
}

/* Custom Cursor */
.cursor-lux {
  position: fixed; width: 20px; height: 20px;
  border-radius: 50%; background: #ffffff;
  mix-blend-mode: normal !important;
  pointer-events: none; transform: translate(-50%, -50%);
  z-index: 999999; transition: width 0.2s ease, height 0.2s ease;
}
.cursor-lux.active { width: 40px; height: 40px; }

.cursor-ripple {
  position: fixed; width: 12px; height: 12px;
  border: 2px solid #D4AF37; border-radius: 50%;
  pointer-events: none; transform: translate(-50%, -50%);
  opacity: 0; z-index: 999998;
}

.particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible; z-index: 999997;
}
.particle {
  position: absolute; width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFD773, #D4AF37);
  opacity: 0.9; filter: blur(1px);
}


/* =========================================
   7. LEGAL PAGE STYLES
========================================= */
.legal-section {
    max-width: 900px;
    margin: 140px auto 80px; 
    padding: 0 6%;
}
.legal-content h1 { font-size: 3rem; color: #D4AF37; margin-bottom: 20px; }
.legal-content h2 { 
    font-size: 1.5rem; color: #fff; margin-top: 40px; margin-bottom: 15px; 
    border-left: 3px solid #D4AF37; padding-left: 15px; 
}
.legal-content p { color: #ccc; line-height: 1.8; margin-bottom: 15px; font-size: 1.05rem; }
.legal-content ul { margin-bottom: 20px; padding-left: 20px; color: #ccc; }
.legal-content li { margin-bottom: 10px; line-height: 1.6; }
.last-updated { color: #666; font-size: 0.9rem; margin-bottom: 40px; display: block; }


/* =========================================
   8. MEDIA QUERIES (RESPONSIVE ENGINE)
========================================= */

/* --- TABLET / SMALL LAPTOP (Max Width 900px) --- */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column; /* Stack them */
    text-align: center;
  }
  
  .hero-text-content {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .hero-sub { text-align: center; }
  
  .hero-features { 
    display: flex; justify-content: center; gap: 15px; font-size: 0.9rem;
  }
  
  .hero-form-wrapper { width: 100%; }
}


/* --- MOBILE MAIN (Max Width 768px) --- */
@media (max-width: 768px) {
  
  /* 1. SECTION SPACING (Tighten up vertical gaps) */
  .section { 
      padding: 40px 20px !important; /* Reduced from 100px to 40px */
  }

  /* 2. HERO LAYOUT */
  .hero {
    height: auto !important;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; /* Start from top */
    align-items: center;
    /* Clear fixed header & Reduce Bottom Padding */
    padding-top: 150px !important; /* Added !important to override .section rule */
    padding-bottom: 30px; 
    padding-left: 20px;
    padding-right: 20px;
  }

  /* 3. TYPOGRAPHY (Big, Cinematic) */
  .hero-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    font-size: 10vw; /* Perfect width fit */
    line-height: 1.1; 
    letter-spacing: -0.02em;
    text-align: center;
    
    /* Breathing room below "PERFECT SPACE" */
    margin-bottom: 50px; 
  }

  .mask-reveal, .mask-reveal span {
    display: block;
    width: 100%;
    padding: 5px 0; /* Prevents text clipping */
  }

  /* 4. FEATURES LIST (Tighter to Form) */
  .hero-text-content {
    width: 100%;
    text-align: center;
    margin-bottom: 15px; 
  }

  .hero-features {
    display: flex; justify-content: center; gap: 15px; 
    font-size: 0.9rem; list-style: none; padding: 0; margin: 0; 
  }

  /* 5. THE FORM */
  .hero-form-wrapper {
    width: 100%;
    margin-top: 10px; 
  }

  /* 6. DROPDOWN TEXT FIX (Fits on one line) */
  .contact-form select {
    font-size: 0.85rem !important; 
    padding: 12px 35px 12px 12px; 
    max-width: 100%; /* Prevent horizontal overflow */
  }
  
  .contact-form input {
    font-size: 0.9rem !important;
  }

  /* 7. AWWWARDS CAROUSEL (Peeking Cards) */
  .project-grid {
    display: flex !important;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 15px; /* Tighter gap */
    /* Reduced bottom padding from 60px to 25px */
    padding: 0 10% 25px 10%; 
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .project-grid::-webkit-scrollbar { display: none; }

  .project-card {
    flex: 0 0 85%; /* Wider cards (85% of screen) for better visibility */
    min-width: 85%;
    scroll-snap-align: center;
    
    /* Better Aesthetics */
    background: #111; /* Slightly lighter than black background */
    border: 1px solid #333; /* Subtle border */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Deep shadow */
    
    transform: scale(0.9);
    opacity: 0.5;
    transition: none !important; /* Instant swipe response */
    
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
  }
  
  .project-card-image { 
      aspect-ratio: 4/3; /* Taller ratio looks better on mobile than 3/2 */
      width: 100%;
      height: auto;
      border-radius: 8px; /* Inner rounding */
  }

  .project-card h4 {
      font-size: 1.25rem;
      margin-top: 15px;
      color: #fff; /* Brighter title */
  }

  .project-card p {
      color: #D4AF37; /* Gold text for type/location */
      font-size: 0.9rem;
      letter-spacing: 0.5px;
  }
}


/* --- EXTRA SMALL PHONES (Max Width 480px) --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem; /* Fallback for tiny screens */
    line-height: 1.15;
  }

  .hero-sub { font-size: 0.95rem; }

  .hero-cta .btn {
    font-size: 1rem;
    padding: 12px 28px;
  }
}
