/* =========================
   FONTS & GLOBAL
========================= */
@font-face {
  font-family: 'Archia';
  src: url('fonts/archia-regular-webfont.woff2') format('woff2'),
       url('fonts/archia-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.logo, .logo-text, .feature-card h3, .featured-content h3 {
  font-family: 'Archia', sans-serif;
}

:root {
  --bg: #0b0e13;
  --bg-alt: #141a26;
  --accent: #5eead4;
  --text: #e5e7eb;
  --muted: #9aa4b2;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* =========================
   NAVBAR - DESKTOP & SHARED
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 70px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 14, 19, 0.9);
  backdrop-filter: blur(8px);
}

/* HIDE mobile menu globally so it doesn't break desktop alignment */
.mobile-menu {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 45px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 400;
  transition: all 0.3s ease;
  
  opacity: 0;
  transform: translateX(20px);
  animation: fadeSlideIn 0.6s ease forwards;
}

.nav-links a:nth-child(1) { animation-delay: 0.5s; }
.nav-links a:nth-child(2) { animation-delay: 0.6s; }
.nav-links a:nth-child(3) { animation-delay: 0.7s; }

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(94, 234, 212, 0.6), 0 0 20px rgba(94, 234, 212, 0.4);
}

/* =========================
   LOGO STYLING
========================= */
.logo {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-20px);
  animation: logoFadeIn 0.6s ease forwards;
  animation-delay: 0.5s;
}

@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.logo span {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(94, 234, 212, 0.3);
}

/* =========================
   HAMBURGER - CLEAN LOOK
========================= */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

#hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* =========================
   HERO (Desktop)
========================= */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85vh;
  display: flex;
  align-items: center;
  padding: 0 70px;
  z-index: 1;
  background: var(--bg);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 550px;
}

.hero-content h1 { font-size: 3.6rem; font-weight: 700; line-height: 1.1; }
.hero-content h1 span { color: var(--accent); }
.hero-content p { margin: 30px 0; font-size: 1.1rem; color: var(--muted); }

.hero-image {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  height: 80%;
  z-index: 2;
  opacity: 0.6;
  overflow: visible;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  border-radius: 20px;
}

/* =========================
   SCROLL WRAPPER & INDICATOR
========================= */
#scroll-wrapper {
  position: relative;
  z-index: 10;
  margin-top: 85vh;
  background: var(--bg);
  box-shadow: 0 -20px 50px rgba(0,0,0,0.5);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: 'Archia', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  pointer-events: none;
}

.scroll-arrow {
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
  animation: heroBounce 2s infinite;
}

@keyframes heroBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

/* =========================
   BUTTONS
========================= */
button {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 15px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

button:hover { transform: translateY(-2px); }

button.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  margin-top: 25px;
}

/* =========================
   SECTIONS & CARDS (DESKTOP)
========================= */
.section { padding: 110px 70px 20px 70px; background: var(--bg); }
.section.dark { background: var(--bg-alt); }
.section h2 { font-size: 2.3rem; margin-bottom: 20px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.card {
  background: var(--bg-alt);
  padding: 35px;
  border-radius: 14px;
}

.card h3 { margin-bottom: 15px; color: var(--accent); }
.card p { color: var(--muted); line-height: 1.6; }

/* =========================
   FEATURE GRID
========================= */
.features { padding: 0px 70px 110px 70px; background: var(--bg); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-card {
  position: relative;
  height: 260px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
}

.feature-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.feature-card:hover .overlay { background: rgba(0,0,0,0.25); }
.feature-card h3 { color: var(--accent); font-size: 1.6rem; text-align: center; }

/* =========================
   FEATURED PROPERTY CAROUSEL (WIDER)
========================= */
#featured-property {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-alt);
  position: relative; 
}

#featured-property.section { padding: 110px 70px; }

/* TOP LED STRIP */
#featured-property::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10;
  background: linear-gradient(90deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  background-size: 400% 100%;
  animation: ledFlow 15s linear infinite;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes ledFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 400% 0%; }
}

.featured-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.featured-card {
  display: flex;
  background: var(--bg);
  border-radius: 14px;
  max-width: 1000px;
  width: 90%; 
  min-height: 450px; 
  height: 450px; 
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 5;
}

.featured-card img { 
  width: 45%; 
  height: 100%; 
  object-fit: cover; 
}

.featured-content { 
  padding: 45px; 
  width: 55%; 
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* BOTTOM LED STRIP (Flows Backward) */
#featured-property::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10;
  background: linear-gradient(90deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  background-size: 400% 100%;
  /* Added 'reverse' to make it flow the opposite way */
  animation: ledFlow 15s linear infinite reverse;
  box-shadow: 0 -4px 15px rgba(255, 255, 255, 0.1), 0 -10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes ledFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 400% 0%; }
}


/* =========================
   ARROWS (STATIONARY & CLEAN)
========================= */
.arrow {
  background: var(--bg-alt);
  color: var(--text);
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  font-weight: bold;
  font-size: 1.4rem;
}

.arrow:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(94, 234, 212, 0.4);
  transform: translateY(-50%); 
}

.left-arrow { left: 2%; }
.right-arrow { right: 2%; }

/* ============================
   BRANDS - SEAMLESS LOOP FIX
=============================== */
#brands { 
  padding: 100px 0; 
  text-align: center; 
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* SPACE BETWEEN TEXT AND LOGOS */
#brands h2 {
  margin-bottom: 60px;
}

.brands-window { 
  overflow: hidden; 
  width: 80%;           
  max-width: 1100px;    
  margin: 0 auto;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.brands-track {
  display: flex;
  gap: 100px;           
  width: max-content;
  align-items: center;
  animation: scrollLeft 25s linear infinite; 
}

.brands-track img { 
  height: 60px;        
  width: auto;        
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.brands-track img:hover { 
  transform: scale(1.1); 
}

@keyframes scrollLeft { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } 
}

/* MOBILE LOGO SIZING */
@media (max-width: 768px) {
  #brands { padding: 60px 0; }
  #brands h2 { margin-bottom: 90px; }
  .brands-window { width: 90%; }
  .brands-track img { height: 40px; }
  .brands-track { gap: 50px; }
}


footer { padding: 45px 70px; color: var(--muted); text-align: center; }

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .left-arrow { left: 10px; }
  .right-arrow { right: 10px; }
}

@media (max-width: 768px) {
  .navbar { 
    padding: 20px 30px; 
    position: fixed;
  }

  .logo { opacity: 1; transform: none; animation: none; }
  .nav-links { display: none; }
  #hamburger { display: flex; }

  /* FIX: MOBILE MENU POSITIONING */
  .mobile-menu {
    display: none;        /* Controlled by .active class */
    flex-direction: column;
    position: absolute;   /* Absolute within the FIXED navbar */
    top: 100%;            /* Force it to start exactly below the bar */
    left: 0;
    width: 100%;
    height: auto; 
    background: rgba(11, 14, 19, 0.98); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); 
    padding: 20px 30px 40px; 
    gap: 15px;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
    align-items: flex-start; /* Resets flex centering from navbar parent */
  }

  .mobile-menu.active { display: flex; }

  .mobile-menu a {
    font-size: 1.3rem;
    color: var(--text);
    text-decoration: none;
    font-family: 'Archia', sans-serif;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%; /* Ensures touch target is full width */
  }

  .mobile-menu a:last-child { border: none; }

  /* HERO */
  .hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 550px; 
    padding: 100px 30px 40px; 
    z-index: 1;
    background: var(--bg);
  }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-image { display: none; }
  .scroll-indicator { display: none !important; }
  
  /* SCROLL OVERLAP */
  #scroll-wrapper { 
    margin-top: 550px; 
    position: relative;
    z-index: 10;
    background: var(--bg);
  }

  /* FIX: THE GAP BETWEEN SECTIONS - KEEPING STICKY LOGIC BUT PUSHING DOWN */
  .feature-grid { margin-bottom: 120px; } 
  .features { padding: 40px 70px 0px 70px; } 
  .section { padding: 40px 25px 10px; }

  .card {
    position: sticky;
    top: 90px; 
    margin-bottom: 45px;
  }

  /* --- PROPERTY SLIDER MOBILE --- */
  #featured-property.section { padding: 100px 20px 60px; }

  .featured-card-wrapper { 
    display: grid !important; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
  }

  .featured-card {
    grid-column: span 2; 
    flex-direction: column;
    height: auto;
    width: 100%;
  }
  
  .featured-card img { width: 100%; height: 220px; }
  .featured-content { width: 100%; padding: 25px 20px; }

  /* FIX: ARROW ALIGNMENT AND CLICKABILITY */
  .arrow { 
    position: relative !important; 
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important; 
    width: 60px !important;
    height: 60px !important;
    margin: 10px 0;
  }
  
  .left-arrow { grid-column: 1; justify-self: end; margin-right: 15px; }
  .right-arrow { grid-column: 2; justify-self: start; margin-left: 15px; }
  .brands-track img { height: 45px; width: auto; }
}

/* =========================
   PROPERTY SWOOP ANIMATION
========================= */
.swoop-in {
  animation: propertySwoop 0.5s ease-out forwards;
}

@keyframes propertySwoop {
  0% { opacity: 0; transform: translateX(30px); }
  100% { opacity: 1; transform: translateX(0); }
}

.featured-card { will-change: transform, opacity; }


/* =========================
   REVIEWS SECTION LOOK ONLY
========================= */
#reviews {
  background: var(--bg-alt); /* Matches your dark section style */
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.review-card {
  background: var(--bg); /* Darker card for contrast */
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(94, 234, 212, 0.1); /* Subtle accent border */
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.review-text {
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 30px;
  flex-grow: 1; /* Keeps footer aligned at bottom */
}

.reviewer-info {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.reviewer-name {
  display: block;
  font-family: 'Archia', sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.reviewer-location {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#reviews {
  padding-bottom: 120px; /* Increase this number to add more space */
}

/* =========================
   BRANDS SECTION - ADDED LED STRIP
========================= */
#brands {
  position: relative; /* Essential for positioning the strip */
  padding: 100px 0;
  text-align: center;
  overflow: visible; /* Allows the glow to be seen */
  background: var(--bg);
}

/* THE BOTTOM LED STRIP */
#brands::after {
  content: "";
  position: absolute;
  bottom: -1px; /* Sits exactly on the border with Reviews */
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 50; /* Keeps it above the Reviews section */
  background: linear-gradient(90deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  background-size: 400% 100%;
  animation: ledFlow 15s linear infinite;
  box-shadow: 0 0 15px rgba(94, 234, 212, 0.4); /* Subtle glow */
}

