/* 
   -------------------------------------------------------
   DESIGNED & CODED BY: Magnus Prime (H. Riyan)
   -------------------------------------------------------
*/

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --gold: #c29d59;
  --gold-hover: #d4af37;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --text-main: #334155;
  --text-light: #475569;
  --font-eng: "Montserrat", sans-serif;
  --font-bn: "Noto Sans Bengali", sans-serif;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-bn);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-bn);
  color: var(--primary);
  font-weight: 700;
}
h4 {
  color: var(--primary);
} /* Default dark for body */
footer h4 {
  color: white;
} /* White for footer */

a {
  text-decoration: none;
  transition: 0.3s;
}
ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title span {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-eng);
}
.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

/* Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 50px;
  width: auto;
}
.logo-text {
  font-family: var(--font-eng);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.logo-text span {
  color: var(--gold);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}
.nav-menu {
  display: flex;
  gap: 30px;
}
.nav-menu a {
  color: var(--text-main);
  font-weight: 600;
}
.nav-menu a:hover {
  color: var(--gold);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  padding: 10px 25px;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-block;
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.75)),
    url(https://i.ibb.co.com/nMQMP2HK/meghna.jpg?q=80&w=2070&auto=format&fit=crop);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  margin-top: 60px;
}
.dev-intro {
  font-family: var(--font-eng);
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
  opacity: 0.9;
}
.project-name {
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}
.project-location {
  font-size: 1.3rem;
  color: #e2e8f0;
  font-weight: 500;
  margin-bottom: 30px;
  display: block;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gold);
  padding: 10px 20px;
  border-radius: 50px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.feature-box {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.feature-box i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

/* Apartments */
.flat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.flat-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  transition: 0.3s;
}
.flat-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}
.flat-img {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.flat-body {
  padding: 20px;
}
.flat-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.flat-title h3 {
  font-size: 1.3rem;
  margin: 0;
}
.size-badge {
  background: var(--primary);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-eng);
}
.flat-features li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-light);
}
.flat-features i {
  color: var(--gold);
  margin-right: 8px;
}

.price-box {
  background: #f8fafc;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  margin: 15px 0;
  font-weight: 700;
  color: var(--primary);
  border: 1px dashed #cbd5e1;
}
.price-box span {
  color: var(--gold);
  font-size: 1.1rem;
}
.btn-card-action {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 0;
  border-radius: var(--radius);
  font-weight: 600;
  transition: 0.3s;
}
.btn-card-action:hover {
  background: var(--primary);
  color: white;
}

/* Show More Logic */
.show-more-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border: 2px dashed var(--gold);
  cursor: pointer;
  min-height: 300px;
  transition: 0.3s;
}
.show-more-card:hover {
  background: #fffbeb;
}
.show-more-card i {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 15px;
}
.show-more-card span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}
.hidden-flats {
  display: none !important;
}
.extra-flat.reveal.active {
  animation: fadeInUp 0.5s ease forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Availability Table */
.table-container {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border-top: 4px solid var(--gold);
}
.status-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.status-table th,
.status-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.status-table th {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-eng);
}
.floor-name {
  font-weight: 700;
  color: var(--primary);
  background: #f8fafc;
  text-align: left;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  transition: 0.3s;
}
.is-available {
  background-color: #dcfce7;
  color: #16a34a;
  border: 1px solid #86efac;
  cursor: pointer;
}
.is-available:hover {
  transform: scale(1.1);
  background-color: #16a34a;
  color: white;
}
.is-booked {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  opacity: 0.7;
  cursor: not-allowed;
}
.legend-box {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Specs & Notice */
.specs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.spec-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.spec-card.developer {
  border-top: 5px solid #10b981;
}
.spec-card.buyer {
  border-top: 5px solid #f59e0b;
}
.spec-list li {
  margin-bottom: 12px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 5px;
  display: flex;
  gap: 10px;
}

.ready-flat-notice {
  margin-top: 50px;
  background: #fffbeb;
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 15px rgba(194, 157, 89, 0.15);
}
.notice-content {
  display: flex;
  align-items: center;
  gap: 20px;
}
.notice-icon {
  font-size: 2.5rem;
  color: var(--gold);
  background: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.notice-text h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: var(--primary);
}
.btn-contact-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 25px;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}
.btn-contact-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Footer & Form */
footer {
  background: var(--primary);
  color: #fff;
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: #cbd5e1;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 4px;
  border: 1px solid #334155;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: var(--font-bn);
  outline: none;
  font-size: 0.95rem;
}
.contact-form input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}
/* --- FORM DROPDOWN STYLE --- */
.contact-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 4px;
  border: 1px solid #334155;
  background: rgba(255, 255, 255, 0.05);
  color: white; /* Text color */
  font-family: var(--font-bn);
  outline: none;
  font-size: 0.95rem;
  cursor: pointer;
}

.contact-form select option {
  background: var(--primary); /* Dark background for options */
  color: white;
}

.contact-form select:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}
.contact-form button {
  width: 100%;
  background: var(--gold);
  color: white;
  border: none;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  font-family: var(--font-bn);
}
.contact-form button:hover {
  background: var(--gold-hover);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .project-name {
    font-size: 2.5rem;
  }
  .dev-intro {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }
  .specs-container {
    grid-template-columns: 1fr;
  }
  .features-grid {
    margin-top: 30px;
  }
  .ready-flat-notice {
    flex-direction: column;
    text-align: center;
  }
  .notice-content {
    flex-direction: column;
    gap: 10px;
  }
  .logo-img {
    height: 40px;
  }
  .logo-text {
    font-size: 1.1rem;
  }

  /* Mobile Menu Active Logic */
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    gap: 20px;
    border-top: 1px solid #eee;
  }
  .nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* --- STATUS SUMMARY COUNTER --- */
.status-summary {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.summary-card {
  padding: 15px 30px;
  border-radius: 8px;
  text-align: center;
  min-width: 150px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-card.green {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
}

.summary-card.red {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.summary-count {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}

.summary-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- APARTMENT STOCK BADGE --- */
.stock-badge {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 5px;
}

.stock-badge.in-stock {
  color: #16a34a; /* Green */
}

.stock-badge.out-stock {
  color: #dc2626; /* Red */
}

/* Right click logic */
/* base */
#inspect-warning {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#inspect-warning.hidden {
  display: none;
}
#inspect-warning.fade-out {
  animation: fadeOut 0.5s forwards;
}

#inspect-warning .popup {
  background: #111827;
  color: #fff;
  padding: 18px 26px;
  border-radius: 10px;
  max-width: 380px;
  text-align: center;
  animation: popupIn 0.22s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  font-family: "Montserrat", sans-serif;
}

/* popup in */
@keyframes popupIn {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* fade out */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* shake */
@keyframes shake {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-6px, 0);
  }
  40% {
    transform: translate(6px, 0);
  }
  60% {
    transform: translate(-6px, 0);
  }
  80% {
    transform: translate(6px, 0);
  }
  100% {
    transform: translate(0);
  }
}
.popup.shake {
  animation: shake 0.42s ease;
}

/* --- WHATSAPP WIDGET --- */
.wa-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  font-family: var(--font-bn);
}

/* The Button */
.wa-btn {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: 0.3s;
  animation: pulse-green 2s infinite;
}

.wa-btn:hover {
  transform: scale(1.1);
}

/* The Chat Box (Hidden by default) */
.wa-box {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 300px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* Show the box when active */
.wa-widget.active .wa-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- UPDATED WHATSAPP HEADER --- */
.wa-header {
  background: #075e54; /* WhatsApp Green */
  color: white;
  padding: 15px;
  display: flex; /* Aligns Avatar + Text */
  align-items: center;
  gap: 15px; /* Space between image and text */
}

/* Avatar Image Style */
.wa-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Make it round */
  border: 2px solid white;
  object-fit: cover;
}

/* Text Container */
.wa-header-text h5 {
  margin: 0;
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
}
.wa-header-text p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.9;
}
.wa-header h5 {
  margin: 0;
  font-size: 1rem;
  color: white;
}
.wa-header p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.wa-body {
  padding: 20px;
  background: #ece5dd; /* WhatsApp BG color */
}

.wa-msg {
  background: white;
  padding: 10px;
  border-radius: 0 8px 8px 8px;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-left: 3px solid #25d366;
}

.wa-start-btn {
  display: block;
  background: #25d366;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.wa-start-btn:hover {
  background: #128c7e;
  color: white;
}

/* Pulse Animation */
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
/* --- SECURITY: CONTENT PROTECTION --- */
body {
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE */
  user-select: none; /* Standard */
}

/* Allow typing in forms (Important!) */
input,
textarea,
select {
  -webkit-user-select: text !important;
  user-select: text !important;
}

/* Stop image dragging */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}

/* --- 3D VIEW SLIDER (Interactive) --- */
.view-3d-section {
  padding: 0;
  background: var(--primary);
  position: relative;
  border-bottom: 4px solid var(--gold);
  margin-top: 60px; /* Space from Hero */
  overflow: hidden; /* Hides scrollbar but keeps functionality */
}

.view-3d-title {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(15, 23, 42, 0.9);
  padding: 10px 30px;
  border-radius: 50px;
  border: 1px solid var(--gold);
  color: white;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  pointer-events: none; /* Allows clicking through the text */
}

.slider-track {
  display: flex;
  overflow-x: scroll; /* Allows scrolling */
  scroll-behavior: auto; /* Instant response to drag */
  cursor: grab; /* Shows hand icon */

  /* Hide Scrollbar (Chrome/Safari/Opera) */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-track.active {
  cursor: grabbing; /* Closed hand when dragging */
}

.slider-item {
  min-width: 40vw; /* Desktop: Shows ~2.5 images */
  height: 550px;
  flex-shrink: 0;
  position: relative;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none; /* Prevents image dragging issues */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .slider-item {
    min-width: 85vw; /* Mobile: Shows mostly 1 image */
    height: 350px;
  }
  /* FIX: Move Title OUT of the image area on mobile */
  .view-3d-title {
    position: relative; /* No longer floating over image */
    top: auto;
    left: auto;
    transform: none;
    margin: 15px auto; /* Center it with spacing */
    width: fit-content;
    background: var(--primary); /* Solid background instead of transparent */
    font-size: 0.8rem;
    padding: 8px 20px;
  }

  /* Adjust slider height since title is now taking vertical space */
  .view-3d-section {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
  }
}
