@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* =========================================================================
   MEEBA SPACE SOLUTIONS - LUXURY ARCHITECTURE STUDIO STYLESHEET
   ========================================================================= */

/* --- CSS VARIABLES --- */
:root {
  /* Colors */
  --bg-primary: #0D1B2A;
  --bg-secondary: #08121D;
  --bg-tertiary: #1B263B;
  --bg-glass: rgba(13, 27, 42, 0.75);
  --bg-glass-light: rgba(255, 255, 255, 0.03);

  --accent-gold: #D4AF37;
  --accent-gold-hover: #E8CA58;
  --accent-muted: #A88620;

  --text-main: #ffffff;
  --text-secondary: #F5F5F5;
  --text-muted: #B0B0B0;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.3);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Layout & Transitions */
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-sine: cubic-bezier(0.39, 0.575, 0.565, 1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.6);
  --glow-gold: 0 0 30px rgba(203, 162, 88, 0.15);
}

/* --- RESET & LENIS SMOOTH SCROLL --- */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Hide default cursor on desktop for custom cursor */
  cursor: none;
}

/* Restore cursors on mobile and specific interactive elements */
@media (max-width: 1024px) {
  body {
    cursor: auto;
  }
}

a,
button,
input,
textarea,
select {
  cursor: none;
  /* Let custom cursor handle hovering */
}

@media (max-width: 1024px) {

  a,
  button,
  input,
  textarea,
  select {
    cursor: pointer;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 400;
  line-height: 1.2;
}

h1.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

h2.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 30px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 50px;
  height: 1px;
  background-color: var(--accent-gold);
}

.subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot,
.cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
}

.cursor-circle {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* States applied via JS */
.cursor-circle.hover-view {
  width: 80px;
  height: 80px;
  background-color: var(--text-main);
  border-color: var(--text-main);
}

.cursor-circle.hover-view::after {
  content: 'VIEW';
}

@media (max-width: 1024px) {

  .cursor-dot,
  .cursor-circle {
    display: none;
  }
}

/* --- SCROLL PROGRESS --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-gold);
  z-index: 10000;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  background: transparent;
  color: var(--text-main);
  transition: all 0.4s var(--ease-expo);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-main);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-expo);
  z-index: -1;
}

.btn:hover {
  color: var(--bg-primary);
  border-color: var(--text-main);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
}

.btn-primary::before {
  background: var(--text-main);
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 30px 0;
  z-index: 1000;
  transition: padding 0.4s, background 0.4s;
}

.navbar.scrolled {
  padding: 15px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-gold);
  margin-top: 5px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 0;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 20px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s var(--ease-expo);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 8px 30px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: padding-left 0.3s, color 0.3s;
}

.dropdown li a:hover {
  padding-left: 35px;
  color: var(--accent-gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  position: absolute;
  left: 5px;
  right: 5px;
  height: 2px;
  background: var(--text-main);
  transition: all 0.3s;
}

.nav-toggle span:nth-child(1) {
  top: 12px;
}

.nav-toggle span:nth-child(2) {
  top: 20px;
}

.nav-toggle span:nth-child(3) {
  top: 28px;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-expo);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .dropdown {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding: 10px 0;
    text-align: center;
    display: none;
  }

  .nav-item:hover .dropdown {
    display: block;
  }
}

/* --- FLOAT CONTACT PANEL --- */
.floating-contact {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
}

.fc-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease-expo);
}

.fc-btn:hover {
  transform: scale(1.1);
}

.fc-menu {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-expo);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.floating-contact:hover .fc-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fc-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-main);
  border-radius: 8px;
  transition: background 0.3s;
}

.fc-menu a:hover {
  background: var(--bg-glass-light);
}

.fc-menu a i {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .floating-contact {
    bottom: 20px;
    right: 20px;
  }
}

/* --- SECTION STRUCTURE --- */
section {
  padding: 120px 0;
  position: relative;
}

.section-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* --- HERO SECTION --- */
#hero {
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Let clicks pass through if needed, though we track mouse move */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-top: 100px;
}

.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: block;
  transform: translateY(100%);
}

.hero-btns {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  opacity: 0;
  /* Animated with GSAP */
}

/* --- STATS / SOCIAL PROOF --- */
.stats-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.stat-item p {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- BEFORE / AFTER SLIDER --- */
.ba-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .ba-container {
    aspect-ratio: 4/3;
  }
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid var(--accent-gold);
}

.ba-overlay img {
  width: 100vw;
  /* Keeps image sized relative to viewport or container logic */
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-size: 1.2rem;
  cursor: ew-resize !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* --- PROJECT VIDEO/IMG REEL --- */
.reel-wrapper {
  overflow: hidden;
}

.reel-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding: 0 40px;
}

.reel-item {
  width: 600px;
  aspect-ratio: 4/5;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  /* Vanilla Tilt handles transform */
}

.reel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-expo);
}

.reel-item:hover img {
  transform: scale(1.05);
}

.reel-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.reel-info h3 {
  margin-bottom: 5px;
}

.reel-info p {
  color: var(--accent-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .reel-track {
    flex-direction: row;
    width: max-content;
    padding: 0 20px;
  }

  .reel-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    scrollbar-width: none;
    /* Firefox */
  }

  .reel-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .reel-item {
    width: 85vw;
    aspect-ratio: 4/5;
    scroll-snap-align: center;
  }
}

/* --- PROCESS TIMELINE --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 24px;
  width: 2px;
  height: 100%;
  background: var(--border-light);
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 24px;
  width: 2px;
  height: 0%;
  background: var(--accent-gold);
}

.process-step {
  padding-left: 80px;
  margin-bottom: 60px;
  position: relative;
}

.process-dot {
  position: absolute;
  left: 17px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  z-index: 1;
}

.process-step h3 {
  margin-bottom: 10px;
}

/* --- GOOGLE REVIEWS CAROUSEL --- */
.reviews-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 40px 0;
}

.marquee-track {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.review-card {
  display: inline-block;
  width: 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 30px;
  margin-right: 30px;
  border-radius: 12px;
  white-space: normal;
  vertical-align: top;
}

.stars {
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.review-card h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.review-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .review-card {
    width: 300px;
  }
}

/* --- INSTAGRAM MASONRY WALLL --- */
.masonry-grid {
  display: column;
  column-count: 3;
  column-gap: 20px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.masonry-item img {
  transition: transform 0.6s var(--ease-expo);
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-overlay i {
  font-size: 2rem;
  color: #fff;
}

@media (max-width: 992px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* --- FURNITURE COLLECTION (3D CARDS) --- */
.furniture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.furniture-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transform-style: preserve-3d;
}

.furniture-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  transform: translateZ(30px);
  /* 3D effect layer */
}

.furniture-card h3 {
  font-size: 1.2rem;
  transform: translateZ(20px);
}

.furniture-card p {
  color: var(--accent-gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 5px;
  transform: translateZ(10px);
}

@media (max-width: 992px) {
  .furniture-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .furniture-grid {
    grid-template-columns: 1fr;
  }
}

/* --- TRUST BADGES --- */
.badges-container {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 60px 0;
}

.badge {
  text-align: center;
  flex: 1;
}

.badge i {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.badge h4 {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .badges-container {
    flex-direction: column;
    gap: 40px;
  }
}

/* --- FOOTER & CTA FORM --- */
#cta-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-tertiary);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 15px 20px;
  color: #fff;
  border-radius: 8px;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
}

select.form-control {
  appearance: none;
}

.footer {
  background: var(--bg-secondary);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin: 20px 0;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.social-links a:hover {
  background: var(--accent-gold);
  color: #000;
}

.footer-links h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- LIGHTBOX (For Gallery) --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
}

/* --- FLOATING PARTICLES CANVAS --- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Behind everything */
  opacity: 0.5;
  pointer-events: none;
}

/* Utility layout */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 20px;
}

.mt-4 {
  margin-top: 40px;
}