/* Base */
body {
  margin: 0;
  padding: 0;
  /* font-family: 'Poppins', sans-serif; */
  /* font-family: 'Times New Roman', Times, serif; */
  font-family: 'Questrial' sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  padding: 30px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.header h2 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
}

/* ===== HERO SECTION ===== */
/* .home-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://rangsproperties.com/admin/uploads/page/home//1684325667yUAdA.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.clipped-text {
  font-size: 12vw;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: inherit;
  mix-blend-mode: screen;
  animation: fadeInDown 1.4s ease;
}

.hero-sub {
  font-size: 3vw;
  text-align: center;
  letter-spacing: 10px;
  font-weight: 600;
  opacity: 1;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: inherit;
  mix-blend-mode: screen;
  letter-spacing: 2.5vw;
  margin-top: 1rem;
  animation: fadeInUp 1.4s ease;
}

.home-hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.clipped-text,
.hero-sub {
  position: relative;
  z-index: 2;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

/* Hero Section */
.home-hero {
  height: 100vh;
  position: relative;
  /* background-image: url('https://rangsproperties.com/admin/uploads/page/home//1684325667yUAdA.jpg'); */
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('https://rangsproperties.com/admin/uploads/page/home//1684325667yUAdA.jpg') center/cover no-repeat;
  background-size: cover;
  background-position: center;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Letters Container */
.clipped-text-letters {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 0;
}

.clipped-text-letters li {
  display: inline-block;
}

/* Individual Letters with Clipped Background */
.clipped-text-letters li a {
  display: inline-block;
  font-size: 12vw;
  /* Adjust as needed */
  font-weight: 900;
  text-decoration: none;
  position: relative;

  /* Clipped text effect */
  color: transparent;
  -webkit-background-clip: text !important;
  background-clip: text;

  /* Large background size to show portion */
  background-size: 750% !important;
  background-position: center;
  background-repeat: no-repeat !important;

  /* Visibility */
  opacity: 0.8;

  /* Smooth transition */
  transition: all 0.5s ease;
}

/* Different background position for each letter */
.clipped-text-letters li:nth-child(1) a {
  background-position: 10% 40%;
}

.clipped-text-letters li:nth-child(2) a {
  background-position: 30% 40%;
}

.clipped-text-letters li:nth-child(3) a {
  background-position: 50% 40%;
}

.clipped-text-letters li:nth-child(4) a {
  background-position: 70% 40%;
}

.clipped-text-letters li:nth-child(5) a {
  background-position: 90% 40%;
}

/* Hover effect (optional) */
.clipped-text-letters li a:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Subtitle */
.hero-sub {
  font-size: 2vw;
  font-weight: 600;
  letter-spacing: 2.5vw;
  text-transform: uppercase;
  margin-top: 0rem;
  padding-left: 2.5vw;
  color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.clipped-text-letters li {
  animation: fadeInDown 1s ease;
}

.clipped-text-letters li:nth-child(1) {
  animation-delay: 0s;
}

.clipped-text-letters li:nth-child(2) {
  animation-delay: 0.1s;
}

.clipped-text-letters li:nth-child(3) {
  animation-delay: 0.2s;
}

.clipped-text-letters li:nth-child(4) {
  animation-delay: 0.3s;
}

.clipped-text-letters li:nth-child(5) {
  animation-delay: 0.4s;
}

/* Smooth continuous panning */
/* Individual Letters with ANIMATED Background */
.clipped-text-letters li a {
  display: inline-block;
  font-size: 12vw;
  font-weight: 900;
  text-decoration: none;
  position: relative;

  /* Clipped text effect */
  color: transparent;
  -webkit-background-clip: text !important;
  background-clip: text;

  /* Large background size for animation */
  background-size: 200% 200% !important;
  background-position: center;
  background-repeat: no-repeat !important;

  opacity: 0.8;

  /* ANIMATED BACKGROUND */
  animation: moveBackground 20s ease-in-out infinite;
}

/* Background Movement Animation */
@keyframes moveBackground {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 100% 50%;
  }

  50% {
    background-position: 100% 100%;
  }

  75% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Different animation delay for each letter */
.clipped-text-letters li:nth-child(1) a {
  animation-delay: 0s;
}

.clipped-text-letters li:nth-child(2) a {
  animation-delay: 2s;
}

.clipped-text-letters li:nth-child(3) a {
  animation-delay: 4s;
}

.clipped-text-letters li:nth-child(4) a {
  animation-delay: 6s;
}

.clipped-text-letters li:nth-child(5) a {
  animation-delay: 8s;
}

/* Hover to speed up animation */
.clipped-text-letters li a:hover {
  animation-duration: 5s;
  opacity: 1;
}

/* ===== HAMBURGER BUTTON ===== */
.menu-btn {
  position: fixed;
  top: 40px;
  right: 55px;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu-btn:hover {
  background: #f57c20;
  border-color: #f57c20;
  transform: scale(1.05);
}

.menu-btn i {
  font-size: 1.7rem;
  color: #fff;
  transition: transform 0.3s ease;
}

.menu-btn.active i {
  transform: rotate(90deg);
}

/* ===== OFFCANVAS MENU ===== */
.offcanvas {
  background-color: rgba(0, 0, 0, 0.97);
  color: #fff;
  width: 270px !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.offcanvas a:hover {
  color: #f57c20;
}

.offcanvas .active {
  color: #f57c20;
  font-weight: 600;
}

/* Prevent overlap */
.offcanvas-backdrop.show {
  opacity: 0 !important;
}

@media (max-width: 768px) {


  /* .hero h1 {
    font-size: 5rem;
  } */

  .hero p {
    font-size: 1rem;
    letter-spacing: 5px;
  }

  /* .header {
    padding: 20px;
  } */

  /* HEADER */
  .header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
  }

  /* ===== HAMBURGER BUTTON ===== */
  .menu-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
  }
}


/* Parallax Sections */
.parallax-section {
  position: relative;
  min-height: 44vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  padding: 5rem 0;
}

.parallax-section .shade {
  position: absolute;
  inset: 0;
  background: #2C3035;
  transition: clip-path 1.2s ease-out;
  clip-path: inset(0 0 0 0);
  /* fully covered */
}

/* Reveal from RIGHT → slide shade to the right */
.parallax-section.active[data-direction="right"] .shade {
  clip-path: inset(0 100% 0 0);
}

/* Reveal from LEFT → slide shade to the left */
.parallax-section.active[data-direction="left"] .shade {
  clip-path: inset(0 0 0 100%);
}

/* Premium Real Estate Building Backgrounds - High Quality */

/* Modern Luxury Skyscraper - Glass & Steel */
.bg1 {
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contemporary Residential Building - Blue Hour */
.bg2 {
  background-image: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Modern Apartment Complex - Architectural Excellence */
.bg3 {
  background-image: url('https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Luxury High-Rise Building - Golden Hour */
.bg4 {
  background-image: url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Urban Cityscape - Downtown Skyline */
.bg5 {
  background-image: url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Modern Office Building - Corporate Elegance */
.bg6 {
  background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Luxury Residential Tower - Night View */
.bg7 {
  background-image: url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=1500&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contemporary Architecture - Minimalist Design */
.bg8 {
  background-image: url('https://images.unsplash.com/photo-1580587771525-78b9dba3b914?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contemporary Architecture - Minimalist Design */
.bg9 {
  background-image: url('https://images.unsplash.com/photo-1479839672679-a46483c0e7c8?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contemporary Architecture - Minimalist Design */
.bg10 {
  background-image: url('https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contemporary Architecture - Minimalist Design */
.bg11 {
  background-image: url('https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Content Section */
/* .content-section {
    background: #fff;
    color: #333;
} */

/* Headings */
/* h1,
h2 {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
} */

/* Footer */
footer {
  font-size: 0.9rem;
  letter-spacing: 1px;
}


/* PAGE-LOADER */
#page-loader {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  pointer-events: all;
  transition: opacity .6s ease;
}

/* Hide when page is ready */
#page-loader.hide {
  opacity: 0;
  pointer-events: none;
}

/* Simple CSS spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #ffffff50;
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}