/* =========================================
   1. GLOBAL RESET
========================================= */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Fira Mono', monospace;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* =========================================
   2. PRELOADER
========================================= */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fdfdf3;
  display: flex; justify-content: center; align-items: center;
  z-index: 99999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-content { text-align: center; animation: fadeIn 1s ease; }
.preloader-logo   { width: 120px; height: auto; margin-bottom: 20px; animation: pulse 2s infinite; }
.preloader-text   { font-size: 1.2rem; font-weight: 500; color: #444; }

#preloader.hide { opacity: 0; visibility: hidden; }

@keyframes pulse { 0%{transform:scale(1);opacity:1;} 50%{transform:scale(1.1);opacity:0.7;} 100%{transform:scale(1);opacity:1;} }
@keyframes fadeIn { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }

/* =========================================
   3. NAVBAR
========================================= */
.navbar {
  padding: 0.4rem 3rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

.logo-img {
  max-height: 80px; width: 80px; height: auto;
  object-fit: contain;
}

.logo-img:hover { transform: scale(1.03); transition: transform 0.3s ease; }

.navbar-nav .nav-link {
  font-size: 1rem;
  margin-right: 1.2rem;
  padding: 0.4rem 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover { color: #ffc107; transform: translateY(-2px); }

/* ---------- Hamburger ---------- */
#navbar-toggler {
  display: none; width: 40px; height: 30px;
  border: none; background: transparent;
  position: relative; cursor: pointer;
  align-items: center; justify-content: center;
  padding: 0; margin: 0; z-index: 1000;
}

.toggler-icon, .toggler-icon::before, .toggler-icon::after {
  content: ''; display: block;
  width: 25px; height: 3px; background-color: #3e664e;
  border-radius: 2px; position: absolute;
  transition: all 0.4s ease;
}

.toggler-icon::before { transform: translateY(-8px); }
.toggler-icon::after  { transform: translateY(8px); }

#navbar-toggler.active .toggler-icon       { background-color: transparent; }
#navbar-toggler.active .toggler-icon::before { transform: rotate(45deg) translate(5px,5px); }
#navbar-toggler.active .toggler-icon::after  { transform: rotate(-45deg) translate(5px,-5px); }

.navbar-collapse { transition: max-height 0.5s ease, padding 0.5s ease; }

/* =========================================
   4. BANNER & HERO
========================================= */
.banner-img {
  width: 100vw; height: 100vh;
  object-fit: cover; object-position: center;
}

#heroCarousel { margin-bottom: 0 !important; padding-bottom: 0 !important; }

.hero-caption {
  position: absolute; transform: translate(-50%, -50%);
  text-align: center; color: #fff; z-index: 2;
  max-width: 90%; padding: 1.5rem 2rem;
  border-radius: 10px; background: rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease-out forwards;
}

.hero-title    { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; animation: fadeInDown 1s ease-out forwards; }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 1.5rem; animation: fadeIn 1s ease-out forwards; }

.hero-btn {
  padding: 0.75rem 2rem; font-size: 1.1rem;
  border: none; color: #fff; background-color: #3e664e;
  transition: all 0.3s ease; animation: fadeInUp 1s ease-out forwards;
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* =========================================
   5. SECTION 2: KingHouse2
========================================= */
.kingHouse2 { height: 100px; text-align: center; align-items: center; margin-top: 40px;}
.kingHouse2 h3   { font-weight: bold; color: #3e664e; }
.kingHouse2 .area { color: #3e664e; }

/* =========================================
   6. SECTION 3: House Location
========================================= */
.houseLocation {
  position: relative; height: 400px; padding: 3rem 1rem;
  color: #fff; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e) center/cover no-repeat;
}
.houseLocation::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1;
}
.houseLocation p, .houseLocation h3, .houseLocation button { position: relative; z-index: 2; margin-left: 7rem; }
.houseLocation p   { font-size: 1.25rem; margin-bottom: 0.5rem; }
.houseLocation h3  { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }
.houseLocation button {
  padding: 0.75rem 2rem; font-size: 1rem; border: none;
  border-radius: 8px; background-color: #ffc107; color: #000;
  cursor: pointer; transition: all 0.3s ease;
}
.houseLocation button:hover { background-color: #e0a800; transform: translateY(-2px); }

/* =========================================
   7. SECTION 4: King Star Residence
========================================= */
.kingstar-section { background: #f8f9fa; }
.kingstar-title   { font-size: 2rem; font-weight: 700; color: #2c3e50; margin-bottom: 1rem; }
.kingstar-desc    { font-size: 1.1rem; color: #555; margin-bottom: 1.5rem; line-height: 1.6; }
.kingstar-benefits { list-style: none; padding: 0; margin: 0; }
.kingstar-benefits li { font-size: 1rem; color: #333; margin-bottom: 0.75rem; display: flex; align-items: center; }
.kingstar-benefits i  { color: #3e664e; margin-right: 0.5rem; font-size: 1.2rem; }

#carouselKingstar .carousel-inner img { height: 400px; object-fit: cover; }

.btn-kingstar {
  background-color: #3e664e; color: #fff;
  padding: 0.7rem 2rem; border-radius: 8px;
  position: relative; overflow: hidden; transition: all 0.3s ease-in-out;
}
.btn-kingstar::after {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%; background: rgba(255,255,255,0.2);
  transition: all 0.4s ease;
}
.btn-kingstar:hover::after { left: 0; }
.btn-kingstar:hover       { transform: translateY(-3px) scale(1.03); }

.hover-zoom       { transition: transform 0.5s ease; }
.hover-zoom:hover { transform: scale(1.05); }

.custom-card {
  border: none; border-radius: 15px; overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.custom-card:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }
.custom-card img   { height: 200px; object-fit: cover; transition: transform 0.4s ease; }
.custom-card:hover img { transform: scale(1.08); }
.custom-card .card-body { padding: 1.2rem; }
.custom-card .card-text { font-size: 0.95rem; color: #555; }

.temaKingStarResidence h3 { font-weight: 700; font-size: 1.8rem; }
.temaKingStarResidence .container-fluid { background-color: #f8f7e9; padding: 30px 20px 50px; }
.temaKingStarResidence .container-fluid .card { margin-top: 20px; }

/* =========================================
   8. WHY CHOOSE US
========================================= */
#why-choose-us { padding: 60px 20px; text-align: center; background-color: #f8f9fa; }
.section-title { font-size: 2rem; margin-bottom: 40px; color: #2c3e50; font-weight: 700; }

/* =========================================
   9. PROJECT PAGE
========================================= */
.project-container { max-width: 1200px; margin: 0 auto; padding: 20px; font-family: Arial, sans-serif; }
.project-header    { display: flex; justify-content: space-between; align-items: center; }
.project-switcher .btn { background-color: #FF6600; color: #fff; padding: 10px 20px; border: none; cursor: pointer; margin-left: 10px; }
.project-switcher .btn:hover { background-color: #cc5200; }

.project-details { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 30px; }
.project-image img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

.project-info { max-width: 600px; padding-left: 20px; }
.project-info h2 { font-size: 28px; color: #333; }
.project-info .location { font-size: 18px; color: #888; }
.project-info .unit-count { font-size: 16px; color: #666; }
.project-info .description { font-size: 16px; color: #444; margin-top: 10px; }

.btn-more { display: inline-block; background-color: #FF6600; color: #fff; padding: 15px 30px; text-decoration: none; margin-top: 20px; border-radius: 5px; }
.btn-more:hover { background-color: #cc5200; }

.fade-in { animation: fadeIn 1s ease-out forwards; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* =========================================
   10. CARDS
========================================= */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }

.card {
  background: #fff; border-radius: 15px; padding: 30px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

.card .icon {
  font-size: 2.5rem; margin-bottom: 20px; color: #3498db;
  display: flex; justify-content: center; align-items: center;
  height: 70px; width: 70px; border-radius: 50%; background-color: #eaf2fb;
  margin-left: auto; margin-right: auto;
}
.card h3 { font-size: 1.3rem; margin-bottom: 15px; color: #2c3e50; }
.card p  { font-size: 0.95rem; color: #555; line-height: 1.6; }

/* =========================================
   11. DISCOVER YOUR HOME
========================================= */
.discoveryourhome {
  width: 1366px; height: 700px;
  background: url('/assets/image/discoveryourhome.png') center/cover no-repeat;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 0 20px;
}
.discoveryourhome h3 { font-size: 2.5rem; color: white; margin-bottom: 15px; }
.discoveryourhome p  { font-size: 1.2rem; color: white; margin-bottom: 20px; }
.discoveryourhome button {
  padding: 10px 25px; font-size: 1rem; border: none;
  background-color: #007bff; color: white; cursor: pointer; border-radius: 5px; transition: 0.3s;
}

/* =========================================
   12. GET IN TOUCH
========================================= */
.getInTouch { background-color: #483b32; padding: 60px 0; }

.contact-section {
  background-color: #f8f7e9; border-radius: 24px; padding: 3rem 2.5rem;
  height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.contact-section h1 { font-weight: 700; font-size: 2.4rem; color: #3b2f26; margin-bottom: 1.5rem; }
.contact-section p  { font-size: 1rem; color: #5c4c42; margin-bottom: 2rem; }

.btn-contact {
  background-color: #3b2f26; color: #fff; padding: 0.8rem 2rem;
  border-radius: 50px; font-weight: 500; border: none; transition: background 0.3s ease;
}
.btn-contact:hover { background-color: #2a2019; }

.gallery-box { background-color: #f8f7e9; border-radius: 24px; padding: 2rem; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.gallery-item img {
  width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 1 / 1; transition: transform 0.3s ease;
}
.gallery-item img:hover { transform: scale(1.05); }

.btn-instagram {
  background-color: #ffda5a; border-radius: 50px; padding: 0.8rem 2rem;
  font-weight: 500; border: none; color: #3b2f26; transition: background 0.3s ease;
}
.btn-instagram:hover { background-color: #f5c600; }

/* =========================================
   13. FLOATING WHATSAPP
========================================= */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px;
  background-color: #25d366; color: #fff; border-radius: 50px;
  display: flex; align-items: center; padding: 10px 15px;
  text-decoration: none; font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 9999;
}
.whatsapp-float img { width: 35px; height: 35px; margin-right: 10px; }
.whatsapp-float:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/* =========================================
   14. FOOTER
========================================= */
.footer { background-color: #F8F7E9; color: #000; font-size: 0.95rem; }
.footer a { color: #000; text-decoration: none; transition: color 0.3s ease; }
.footer a:hover { color: #ffc107; }
.footer-brand { font-size: 1.3rem; font-weight: 700; }
.footer-desc  { line-height: 1.6; color: #000; }
.footer-title { font-weight: 600; font-size: 1rem; }
.footer-links li { margin-bottom: 0.5rem; }
.social-links a { font-size: 1.3rem; color: #000; transition: transform 0.3s ease, color 0.3s ease; }
.social-links a:hover { color: #ffc107; transform: scale(1.2); }
hr { border-color: rgba(255,255,255,0.2); }

/* =========================================
   15. ANIMATIONS
========================================= */
@keyframes fadeInUp   { 0%{opacity:0;transform:translateY(20px);} 100%{opacity:1;transform:translateY(0);} }
@keyframes fadeInDown { 0%{opacity:0;transform:translateY(-20px);}100%{opacity:1;transform:translateY(0);} }

/* =========================================
   16. RESPONSIVE
========================================= */

/* ---- Mobile ≤576px ---- */
@media (max-width: 576px) {
  .logo-img      { max-height: 40px; }
  .getInTouch    { padding: 40px 0; }
  .contact-section h1 { font-size: 1.8rem; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .btn-instagram { width: 100%; }
}

/* ---- ≤768px ---- */
@media (max-width: 768px) {
  .banner-img      { height: 60vh; }
  .hero-title      { font-size: 1.8rem; }
  .hero-subtitle   { font-size: 1rem; }
  .hero-btn        { font-size: 0.9rem; padding: 0.5rem 1.5rem; }
  .houseLocation   { padding: 2rem 1rem; }
  .houseLocation h3{ font-size: 1.5rem; }
  .houseLocation p { font-size: 0.8rem; }
  .houseLocation button { font-size: 0.9rem; padding: 0.6rem 1.5rem; }
  .kingstar-title  { font-size: 1.6rem; }
  .kingstar-desc   { font-size: 1rem; }
  #carouselKingstar .carousel-inner img { height: 250px; }

  .discoveryourhome      { height: 400px; }
  .discoveryourhome h3   { font-size: 1.5rem; }
  .discoveryourhome p    { font-size: 0.9rem; }
  .discoveryourhome button { font-size: 0.8rem; padding: 6px 15px; }

  .footer          { text-align: center; }
  .social-links    { justify-content: center; }
  .footer-links    { padding-left: 0; }
  .whatsapp-float  { padding: 8px 12px; bottom: 15px; right: 15px; }
  .whatsapp-float img { width: 30px; height: 30px; margin-right: 8px; }
  .whatsapp-float span { font-size: 0.9rem; }

  .project-details { flex-direction: column; align-items: center; }
  .project-info    { text-align: center; padding-left: 0; }
}

/* ---- Tablet 769–1024px ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  .banner-img    { height: 70vh; }
  .hero-title    { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-btn      { font-size: 1rem; padding: 0.6rem 2rem; }
}

/* ---- ≤992px (tablet + mobile) ---- */
@media (max-width: 992px) {
  .logo-img     { max-height: 45px; }
  #navbar-toggler { display: flex; }

  .navbar-nav {
    background-color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  .navbar-nav .nav-link { margin: 0.5rem 0; padding: 0.5rem 0; }

  .cards { grid-template-columns: 1fr; }

  .discoveryourhome      { height: 500px; }
  .discoveryourhome h3   { font-size: 2rem; }
  .discoveryourhome p    { font-size: 1rem; }
  .discoveryourhome button { font-size: 0.9rem; padding: 8px 20px; }

  .contact-section { padding: 2rem; text-align: center; }
  .contact-section h1 { font-size: 2rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
