/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Comfortaa, sans-serif;
  line-height: 1.6;
}

/* Navbar */
nav {
  background: #fff;
  color: #1a1a1a;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.5em;
  font-weight: bold;
}
nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: #1a1a1a;
  padding: 10px;
  text-decoration: none;
  font-weight: 500;
}
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section with Slider and Enquiry Form */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  padding: 20px;
  background: #f4f4f4;
  gap: 20px;
}
.hero-slider {
  width: 70%;
  aspect-ratio: 16 / 9;
  max-height: 700px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.slide.active {
  display: block;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  padding: 10px;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Enquiry Form */
.enquiry-form {
  width: 28%;
  background: #04041d;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  justify-content: center;
  animation: fadeInUp 1.2s ease-out forwards;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s ease;
}

@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.enquiry-form h1 {
  font-size: 22px;
  color: #ecc440;
  margin-bottom: 10px;
  margin-top: 50px;
  text-align: center;
}

.enquiry-form h3 {
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
}

.enquiry-form form input {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #f3f3f3;
  font-size: 14px;
  transition: all 0.3s ease;
}

.enquiry-form form input:focus {
  outline: none;
  border: 2px solid #ecc440;
  background: #fffbe6;
}

.enquiry-form form button {
  width: 100%;
  padding: 12px;
  background-color: #ecc440;
  color: #1a1a1a;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s ease;
}

.enquiry-form form button:hover {
  background-color: #ffd84f;
  color: #000;
  box-shadow: 0 5px 15px rgba(236, 196, 64, 0.4);
  transform: scale(1.03);
}

/* Responsive Enquiry Form */
@media (max-width: 768px) {
  .enquiry-form {
    width: 90%;
    margin: 0 auto;
    padding: 25px 15px;
  }

  .enquiry-form h1 {
    font-size: 20px;
  }
}

/* Responsive Hero Section */
@media screen and (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    align-items: center;
  }
  .hero-slider,
  .enquiry-form {
    width: 100%;
  }
}

/* Sections */
section {
  padding: 40px 20px;
  text-align: center;
}
section h2 {
  margin-bottom: 20px;
}

/* Form */
form input, form textarea, form button {
  width: 90%;
  max-width: 400px;
  padding: 10px;
  margin: 10px auto;
  display: block;
}
form button {
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
}
form button:hover {
  background: #444;
}

/* Footer */
footer {
  background: #1a1349;
  color: #ecc440;
  text-align: center;
  padding: 30px 20px;
}

/* Map */
.mapouter iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Amenities */
#amenities {
  padding: 60px 20px;
  background: #f0f4f8;
  text-align: center;
}
#amenities h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #222;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.amenities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}
.amenities-grid div {
  width: 250px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.amenities-grid div:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.amenities-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.amenities-grid div:hover img {
  transform: scale(1.03);
}
.amenities-grid p {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 12px 0 18px;
}
@media screen and (max-width: 1024px) {
  .amenities-grid div {
    width: 45%;
  }
}
@media screen and (max-width: 600px) {
  .amenities-grid div {
    width: 100%;
  }
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1a1a1a;
  }
  nav ul.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* Popup Modal */
.popup-form {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}
.popup-card {
  background: #fff;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  padding: 25px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  font-family: 'Segoe UI', sans-serif;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}
.launch-tag {
  font-size: 14px;
  color: #334;
  letter-spacing: 1px;
}
.project-title {
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0;
  color: #111;
}
.location {
  font-size: 16px;
  font-weight: 500;
  color: #222;
}
.builder-name {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}
.info-box {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 15px;
}
.info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.info-box li {
  margin: 6px 0;
  font-size: 14px;
  color: #333;
}
.banner {
  background: #1c1c40;
  color: white;
  font-weight: 600;
  padding: 8px;
  border-radius: 4px;
  margin: 15px 0;
}
.starting-text {
  font-size: 16px;
  color: #555;
  margin-top: 10px;
}
.price {
  font-size: 26px;
  color: #1c1c40;
  font-weight: bold;
}
.price span {
  font-size: 28px;
}
.enquire-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #1c1c40;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.enquire-btn:hover {
  background: #343468;
}
.rera-note {
  font-size: 12px;
  color: #555;
  margin-top: 12px;
}
@media (max-width: 500px) {
  .popup-card {
    padding: 20px;
    width: 95%;
  }
  .price {
    font-size: 22px;
  }
  .project-title {
    font-size: 20px;
  }
}

/* About Section */
#about {
  background-color: #1a1349;
  padding: 60px 0;
  border-top: 1px solid #ddd;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.center-text {
  text-align: center;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1a1349;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sub-title {
  font-size: 24px;
  color: #444;
  margin-bottom: 15px;
  font-weight: 600;
}
.about-desc {
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
  margin: auto;
  color: #fff;
}


/* Pricing Table */
.pricing-table {
  width: 80%;
  margin: 40px auto;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
}
.pricing-table thead tr {
  background-color: #ecc440;
  color: #1a1349;
  font-size: 18px;
  font-weight: bold;
}
.pricing-table tbody tr {
  background-color: #1a1349;
  color: #fff;
  transition: background 0.3s ease;
}
.pricing-table tbody tr:hover {
  background-color: #2b2370;
}
.pricing-table th,
.pricing-table td {
  padding: 15px;
  border: 1px solid #ecc440;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .pricing-table {
    width: 100%;
    font-size: 14px;
  }
  .section-title {
    font-size: 28px;
  }
  .about-desc {
    font-size: 16px;
  }
  
}

/* Config Buttons Layout */
.config-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}
.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.left-buttons,
.right-buttons {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.config-btn {
  padding: 30px 38px;
  background-color: #ecc440;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.config-btn:hover {
  background-color: #ffd966;
  color: #222;
}
.table-container {
  flex: 2;
  min-width: 800px;
}
@media (max-width: 768px) {
  .config-layout {
    flex-direction: column;
    align-items: center;
  }
  .left-buttons,
  .right-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }
  .table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pricing-table {
    width: 100%;
  }
}

/* ===== Show/hide pricing tables based on screen size ===== */

/* Default: desktop visible, mobile hidden */
.desktop-view {
  display: table;
}
.mobile-view {
  display: none;
}

/* Mobile view: desktop hidden, mobile visible */
@media screen and (max-width: 768px) {
  .desktop-view {
    display: none !important;
  }
  .mobile-view {
    display: table !important;
  }
}
@media screen and (max-width: 768px) {
  .mobile-view {
    width: 100%;
    font-size: 14px;
  }

  .mobile-view thead th,
  .mobile-view tbody td {
    padding: 8px 10px;
    text-align: center;
    word-break: break-word;
  }

  .mobile-view thead th {
    font-size: 15px;
    background-color: #f9c840; /* or your yellow */
  }

  .mobile-view tbody td {
    font-size: 14px;
    background-color: #1d1742; /* your navy blue */
    color: #fff;
  }

  .mobile-view tbody tr td:first-child {
    font-weight: 600;
  }
}

@media screen and (max-width: 768px) {
  .mobile-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-table-wrapper table {
    min-width: 100%;
    table-layout: auto;
  }
}

/* ====================== */
/* Mobile Pricing Box CSS */
/* ====================== */

.mobile-pricing-wrapper {
  display: none; /* hidden by default on desktop */
}
@media screen and (max-width: 768px) {
  /* Ensure config section stacks properly */
  .config-layout {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 20px;
  }

  /* Make buttons full width on mobile */
  .left-buttons,
  .right-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .config-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    text-align: center;
  }

  /* Fix overflow and responsiveness for pricing tables */
  .table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-table {
    min-width: 100px; /* allow horizontal scroll if needed */
    font-size: 14px;
  }

  .pricing-table thead th,
  .pricing-table tbody td {
    padding: 10px;
    word-break: break-word;
  }
  
}

@media screen and (max-width: 768px) {
  .table-container {
    width: 100% !important;
    min-width: unset !important;
    padding: 0 16px; /* Optional padding for better spacing */
    margin: 0 auto;  /* Center horizontally */
    overflow-x: auto;
    box-sizing: border-box;
  }

  .pricing-table {
    width: 100%;
    margin: 0 auto;
    font-size: 14px;
    box-sizing: border-box;
  }

  #config .container {
    padding: 0 16px;
  }

  .config-layout {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Shake Animation Keyframes */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

/* Apply Continuous Shake */
.config-btn {
  background-color: #ecc440;
  color: #1a1349;
  border: none;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  animation: shake 1s infinite;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ========== Instagram Section Layout ========== */
.three-col-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  background-color: #ecc440;
}

.three-col-layout > div {
  flex: 1 1 300px;
  max-width: 350px;
  margin: 10px;
  box-sizing: border-box;
  background-color: #1a1349;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

/* ========== Image Styling Inside Columns ========== */
.three-col-layout img {
  width: 100%;
  height: auto;
  max-height: 500px; /* Control the image height for desktop */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
}

/* ========== Text inside column (optional) ========== */
.three-col-layout .column-text {
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

/* ========== Responsive Mobile View ========== */
@media screen and (max-width: 768px) {
  .three-col-layout {
    flex-direction: column;
    align-items: center;
  }

  .three-col-layout > div {
    width: 100%;
    max-width: 90%;
    margin-bottom: 20px;
  }

  .three-col-layout img {
    max-height: none; /* Allow taller image on mobile if needed */
  }
}

.insta-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  aspect-ratio: 9 / 16; /* Closer to 1080x1920 */
  margin: 0 auto;
}

.insta-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.center-column {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Optional: Reduce vertical padding on desktop */
@media screen and (min-width: 769px) {
  .three-col-layout {
    align-items: flex-start;
    padding: 40px 60px;
  }

  .insta-video-wrapper {
    max-height: 600px; /* Prevents overly tall display */
  }
}

.project-info {
  padding: 40px 20px;
  background-color: #f5f5f5;
}

.project-three-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.project-column {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px 20px;
  flex: 1 1 300px;
  max-width: 350px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-column h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #1a1349;
  border-bottom: 2px solid #ecc440;
  padding-bottom: 6px;
}

.project-column ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.project-column ul li {
  padding: 8px 0;
  font-size: 16px;
  border-bottom: 1px dashed #ddd;
}

/* Hover Effects */
.project-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .project-three-cols {
    flex-direction: column;
    align-items: stretch;
  }

  .project-column {
    max-width: 100%;
  }
}

.icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

/* Contact Section Styling */
.contact-section {
  background-color: #1a1349;
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.contact-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ecc440;
}

/* Form Container */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: none;
  border-radius: 10px;
  background: #f2f2f2;
  font-size: 16px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border: 2px solid #ecc440;
  background: #fffbe6;
}

/* Submit Button */
.contact-form button {
  background-color: #ecc440;
  color: #1a1349;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #ffd84f;
  box-shadow: 0 5px 15px rgba(236, 196, 64, 0.4);
  transform: scale(1.05);
}

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
  .contact-form {
    padding: 20px;
  }

  .contact-section h2 {
    font-size: 1.6em;
  }
}

/* Popup Overlay Styling */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Popup Box */
.popup-box {
  background: #1a1349;
  color: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border: 3px solid #ecc440;
}

/* Close Button */
.popup-box .close-popup {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #ecc440;
  cursor: pointer;
  font-weight: bold;
}

/* Heading */
.popup-box h3 {
  color: #ecc440;
  margin-bottom: 10px;
  font-size: 22px;
}

/* WhatsApp Link */
.popup-box .whatsapp-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background-color: #ecc440;
  color: #1a1349;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.popup-box .whatsapp-link:hover {
  background-color: #d4ae35;
  text-decoration: none;
}

