/* =========================
   Base & Variables
========================= */
:root {
  --brand: #d1a564;
  --brand-dark: #b8914f;
  --brand-light: #e5c085;
  --primary: #d1a564;
  --primary-dark: #b8914f;
  --primary-light: #e5c085;
  --secondary: #6c757d;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #0dcaf0;
  --light: #f8f9fa;
  --dark: #212529;
  --header-h: 72px;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 0.75rem;
}

/* Bootstrap Primary Color Override */
:root {
  --bs-primary: #d1a564;
  --bs-primary-rgb: 209, 165, 100;
  --bs-primary-dark: #b8914f;
  --bs-primary-light: #e5c085;
}

@media (min-width: 992px) {
  :root { --header-h: 84px; }
}

* {
  scroll-behavior: smooth;
}

html, body { 
  height: 100%; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { 
  display: flex; 
  flex-direction: column; 
  line-height: 1.6;
  color: #333;
}

footer { margin-top: auto; }

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: var(--primary);
  color: white;
}

/* =========================
   Navbar
========================= */
header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.navbar-brand img { 
  height: 60px; 
  width: auto; 
  transition: var(--transition);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

@media (max-width: 991.98px) {
  .navbar-brand img { height: 50px; }
}

.navbar-nav > .nav-item { 
  margin: 0 .5rem; 
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0.75rem !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.social-links a {
  font-size: 1.25rem;
  line-height: 1;
  margin-left: .75rem;
  color: var(--dark) !important;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.social-links a:hover { 
  background-color: var(--primary);
  color: white !important;
  transform: translateY(-3px);
}

/* =========================
   Hero Slider
========================= */
.hero-slider { 
  position: relative; 
  overflow: hidden;
}

.hero-image {
  height: clamp(300px, calc(100vh - var(--header-h)), 600px);
  width: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) brightness(0.95);
  display: block;
  transition: transform 0.6s ease;
}

.carousel-item:hover .hero-image {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  max-width: 800px;
  padding: 2rem;
  z-index: 2;
}

@media (min-width: 576px) {
  .hero-caption { padding: 3rem; }
}

@media (min-width: 992px) {
  .hero-caption { padding: 4rem; }
}

.hero-caption h1,
.hero-caption h2 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-caption .lead {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  font-size: 1.25rem;
}

.carousel-indicators {
  margin-bottom: 2rem;
}

.carousel-indicators [data-bs-target] { 
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.6);
  border: 2px solid transparent;
  transition: var(--transition);
}

.carousel-indicators [data-bs-target]:hover {
  background-color: rgba(255,255,255,.9);
  transform: scale(1.2);
}

.carousel-indicators .active { 
  background-color: #fff;
  width: 40px;
  border-radius: 6px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  opacity: 0.8;
  transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* =========================
   Cards / Content
========================= */
.intro-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(209, 165, 100, 0.2);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-item .h2 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-card {
  transition: var(--transition);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image {
  object-fit: cover;
  height: 100%;
  width: 100%;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(209, 165, 100, 0.9), rgba(209, 165, 100, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-card .card-body {
  transition: var(--transition);
}

.project-card:hover .card-body {
  background-color: #f8f9fa;
}

.upcoming-project-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.upcoming-image-wrapper {
  transition: var(--transition);
}

.upcoming-image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.upcoming-image-wrapper img {
  transition: var(--transition);
}

.upcoming-image-wrapper:hover img {
  transform: scale(1.05);
}

.contact-card { max-width: 720px; }

/* Buttons */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 15px rgba(209, 165, 100, 0.4);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(209, 165, 100, 0.5);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(209, 165, 100, 0.4);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}


/* ==== Enquiry section as BG with gradient overlay ==== */
.enquiry-bg{
  position: relative;
  background: url("../img/enquiry-bg.jpg") center/cover no-repeat fixed;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.enquiry-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.6) 100%);
}

.enquiry-bg .container{
  position: relative;
  z-index: 1;
}

.enquiry-bg h2, .enquiry-bg p{
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.enquiry-icon-wrapper {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(209, 165, 100, 0.4);
}

.contact-info a {
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--primary) !important;
  text-decoration: underline !important;
}

.form-control,
.form-select {
  border-radius: 0.5rem;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(209, 165, 100, 0.25);
  outline: none;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

@media (max-width: 991.98px){
  .enquiry-bg{ 
    min-height: auto;
    padding: 3rem 0 !important;
    background-attachment: scroll;
  }
}


/* ===== Why Choose Us (map bg + gradient + numeric cards) ===== */
.wcu-bg{
  position: relative;
  background: linear-gradient(135deg, #2c2416 0%, #3d2f1f 50%, #2c2416 100%);
  overflow: hidden;
}

.wcu-bg::before{
  content:"";
  position:absolute; 
  inset:0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(209, 165, 100, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(229, 192, 133, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(44, 36, 22, 0.95) 0%, rgba(61, 47, 31, 0.92) 50%, rgba(44, 36, 22, 0.95) 100%);
}

/* keep content above overlay */
#wcu-bg, #why-choose-us .container, #why-choose-us .row { 
  position: relative; 
  z-index: 1; 
}

/* heading accent + divider */
.wcu-heading .wcu-accent{
  width: 80px; 
  height: 6px;
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(209, 165, 100, 0.5);
}

.wcu-heading .wcu-divider{
  width: 100px; 
  height: 2px; 
  background: rgba(255,255,255,.4);
  margin-top: 1.5rem;
  border-radius: 1px;
}

/* feature items */
.wcu-item {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.wcu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.wcu-icon {
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.wcu-item .wcu-num{
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.wcu-item h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.wcu-item .wcu-text{
  color: rgba(255,255,255,.9);
  margin: 0 0 1rem 0;
  line-height: 1.7;
  font-size: 1.05rem;
}

.wcu-item-divider{
  width: 60px; 
  height: 3px; 
  background: linear-gradient(90deg, rgba(209, 165, 100, 0.7), transparent);
  border-radius: 2px;
  margin-top: 1rem;
}

/* spacing utilities */
.py-lg-6{ 
  padding-top: 5rem !important; 
  padding-bottom: 5rem !important; 
}

@media (max-width: 991.98px){
  .wcu-heading h2{ 
    font-size: 2rem; 
  }
  
  .wcu-item {
    margin-bottom: 2rem;
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   Mobile Responsive Styles
========================= */

/* Base Mobile First - Extra Small Devices (phones, < 576px) */
@media (max-width: 575.98px) {
  /* Typography */
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  h1, h2, h3 {
    font-size: 1.5rem !important;
  }
  
  /* Hero Section */
  .hero-image {
    height: 250px !important;
  }
  
  .hero-caption {
    padding: 1.5rem !important;
  }
  
  .hero-caption h1,
  .hero-caption h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-caption .lead {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-caption .btn {
    font-size: 0.9rem !important;
    padding: 0.6rem 1.2rem !important;
  }
  
  .carousel-indicators {
    margin-bottom: 1rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
  }
  
  /* Introduction Section */
  .intro-section {
    padding: 2rem 1rem !important;
    margin-bottom: 2rem !important;
  }
  
  .intro-section .container {
    padding: 1rem 0 !important;
  }
  
  .intro-section h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .intro-section .lead {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .stats-box {
    padding: 1.5rem !important;
    margin-top: 1.5rem;
  }
  
  .stat-item .h2 {
    font-size: 1.75rem !important;
  }
  
  /* Featured Projects */
  .featured-projects h2 {
    font-size: 1.25rem !important;
  }
  
  .project-image-wrapper {
    height: 200px;
  }
  
  .project-card .card-body {
    padding: 1rem !important;
  }
  
  /* Upcoming Projects */
  .upcoming-project-section {
    padding: 2rem 1rem !important;
  }
  
  .upcoming-project-section h2 {
    font-size: 1.25rem !important;
  }
  
  /* Why Choose Us */
  .wcu-bg {
    padding: 3rem 0 !important;
  }
  
  .wcu-heading {
    margin-bottom: 2rem;
  }
  
  .wcu-heading h2 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
  
  .wcu-item {
    padding: 1.25rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .wcu-item .wcu-num {
    font-size: 2rem !important;
  }
  
  .wcu-item h3 {
    font-size: 1.1rem !important;
  }
  
  .wcu-item .wcu-text {
    font-size: 0.95rem !important;
  }
  
  /* Enquiry Section */
  .enquiry-bg {
    padding: 2rem 0 !important;
    min-height: auto !important;
  }
  
  .enquiry-bg h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .enquiry-bg .lead {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .enquiry-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .enquiry-icon-wrapper i {
    font-size: 1.5rem !important;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .contact-info i {
    font-size: 1.25rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .form-control,
  .form-select {
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Navigation */
  .navbar-nav {
    padding-top: 1rem;
  }
  
  .social-links {
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
  }
  
  .social-links a {
    margin: 0 0.5rem;
  }
  
  /* Buttons */
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
  }
  
  .d-flex.gap-3 .btn {
    width: 100%;
  }
}

/* Small Devices (landscape phones, 576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  .display-5 {
    font-size: 2rem;
  }
  
  .display-6 {
    font-size: 1.75rem;
  }
  
  /* Hero Section */
  .hero-image {
    height: 350px;
  }
  
  .hero-caption {
    padding: 2.5rem;
  }
  
  .hero-caption h1,
  .hero-caption h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-caption .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-caption .btn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
  
  /* Introduction Section */
  .intro-section {
    padding: 3rem 2rem;
  }
  
  .intro-section h2 {
    font-size: 2rem;
  }
  
  .intro-section .lead {
    font-size: 1.1rem;
  }
  
  .stats-box {
    padding: 2rem;
    margin-top: 2rem;
  }
  
  .stat-item .h2 {
    font-size: 2.25rem;
  }
  
  /* Featured Projects */
  .project-image-wrapper {
    height: 240px;
  }
  
  .project-card .card-body {
    padding: 1.5rem;
  }
  
  /* Why Choose Us */
  .wcu-bg {
    padding: 4rem 0;
  }
  
  .wcu-heading h2 {
    font-size: 2.25rem;
  }
  
  .wcu-item {
    padding: 1.5rem;
  }
  
  .wcu-item .wcu-num {
    font-size: 2.5rem;
  }
  
  /* Enquiry Section */
  .enquiry-bg {
    padding: 3.5rem 0;
    min-height: 450px;
  }
  
  .enquiry-bg h2 {
    font-size: 2rem;
  }
  
  .enquiry-bg .lead {
    font-size: 1.1rem;
  }
  
  .card-body {
    padding: 2rem;
  }
}

/* Medium Devices (tablets/iPads portrait, 768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  .display-5 {
    font-size: 2.5rem;
  }
  
  .display-6 {
    font-size: 2rem;
  }
  
  /* Hero Section */
  .hero-image {
    height: 450px;
  }
  
  .hero-caption {
    padding: 3.5rem;
  }
  
  .hero-caption h1,
  .hero-caption h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-caption .lead {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
  }
  
  .hero-caption .btn {
    font-size: 1.05rem;
    padding: 0.875rem 1.75rem;
  }
  
  /* Introduction Section */
  .intro-section {
    padding: 4rem 3rem;
  }
  
  .intro-section h2 {
    font-size: 2.5rem;
  }
  
  .intro-section .lead {
    font-size: 1.15rem;
  }
  
  .stats-box {
    padding: 2.5rem;
  }
  
  .stat-item .h2 {
    font-size: 2.5rem;
  }
  
  /* Featured Projects */
  .project-image-wrapper {
    height: 260px;
  }
  
  .project-card .card-body {
    padding: 1.75rem;
  }
  
  /* Upcoming Projects */
  .upcoming-project-section {
    padding: 4rem 3rem;
  }
  
  /* Why Choose Us */
  .wcu-bg {
    padding: 5rem 0;
  }
  
  .wcu-heading h2 {
    font-size: 2.5rem;
  }
  
  .wcu-item {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .wcu-item .wcu-num {
    font-size: 3rem;
  }
  
  .wcu-item h3 {
    font-size: 1.5rem;
  }
  
  .wcu-item .wcu-text {
    font-size: 1.1rem;
  }
  
  /* Enquiry Section */
  .enquiry-bg {
    padding: 4.5rem 0;
    min-height: 500px;
  }
  
  .enquiry-bg h2 {
    font-size: 2.5rem;
  }
  
  .enquiry-bg .lead {
    font-size: 1.2rem;
  }
  
  .card-body {
    padding: 2.5rem;
  }
  
  /* Navigation */
  .navbar-nav > .nav-item {
    margin: 0 0.4rem;
  }
}

/* Large Devices (desktops/iPads landscape, 992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  .hero-image {
    height: clamp(450px, calc(100vh - var(--header-h)), 550px);
  }
  
  .hero-caption {
    padding: 4rem;
  }
  
  .hero-caption h1,
  .hero-caption h2 {
    font-size: 3rem;
  }
  
  .hero-caption .lead {
    font-size: 1.25rem;
  }
  
  /* Introduction Section */
  .intro-section {
    padding: 5rem 4rem;
  }
  
  .intro-section h2 {
    font-size: 3rem;
  }
  
  .intro-section .lead {
    font-size: 1.2rem;
  }
  
  /* Featured Projects */
  .project-image-wrapper {
    height: 280px;
  }
  
  /* Why Choose Us */
  .wcu-bg {
    padding: 6rem 0;
  }
  
  .wcu-heading h2 {
    font-size: 3rem;
  }
  
  /* Enquiry Section */
  .enquiry-bg {
    padding: 5rem 0;
    min-height: 550px;
  }
  
  .enquiry-bg h2 {
    font-size: 3rem;
  }
  
  /* Hover effects */
  .project-card:hover {
    transform: translateY(-8px);
  }
  
  .wcu-item:hover {
    transform: translateY(-5px);
  }
}

/* Extra Large Devices (large desktops, 1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  /* Hero Section */
  .hero-image {
    height: clamp(500px, calc(100vh - var(--header-h)), 600px);
  }
  
  .hero-caption {
    padding: 4.5rem;
    max-width: 900px;
  }
  
  .hero-caption h1,
  .hero-caption h2 {
    font-size: 3.5rem;
  }
  
  .hero-caption .lead {
    font-size: 1.3rem;
  }
  
  /* Introduction Section */
  .intro-section {
    padding: 6rem 5rem;
  }
  
  .intro-section h2 {
    font-size: 3.5rem;
  }
  
  .intro-section .lead {
    font-size: 1.25rem;
  }
  
  /* Featured Projects */
  .project-image-wrapper {
    height: 300px;
  }
  
  /* Why Choose Us */
  .wcu-bg {
    padding: 7rem 0;
  }
  
  .wcu-heading h2 {
    font-size: 3.5rem;
  }
  
  /* Enquiry Section */
  .enquiry-bg {
    padding: 6rem 0;
    min-height: 600px;
  }
  
  .enquiry-bg h2 {
    font-size: 3.5rem;
  }
}

/* XXL Devices (extra large desktops, 1400px and up) */
@media (min-width: 1400px) {
  /* Hero Section */
  .hero-image {
    height: clamp(550px, calc(100vh - var(--header-h)), 700px);
  }
  
  .hero-caption {
    padding: 5rem;
    max-width: 1000px;
  }
  
  .hero-caption h1,
  .hero-caption h2 {
    font-size: 4rem;
  }
  
  .hero-caption .lead {
    font-size: 1.4rem;
  }
  
  /* Introduction Section */
  .intro-section {
    padding: 7rem 6rem;
  }
  
  .intro-section h2 {
    font-size: 4rem;
  }
  
  .intro-section .lead {
    font-size: 1.3rem;
  }
  
  /* Featured Projects */
  .project-image-wrapper {
    height: 320px;
  }
  
  /* Why Choose Us */
  .wcu-bg {
    padding: 8rem 0;
  }
  
  .wcu-heading h2 {
    font-size: 4rem;
  }
  
  .wcu-item .wcu-num {
    font-size: 4rem;
  }
  
  .wcu-item h3 {
    font-size: 1.75rem;
  }
  
  .wcu-item .wcu-text {
    font-size: 1.15rem;
  }
  
  /* Enquiry Section */
  .enquiry-bg {
    padding: 7rem 0;
    min-height: 650px;
  }
  
  .enquiry-bg h2 {
    font-size: 4rem;
  }
  
  .enquiry-bg .lead {
    font-size: 1.3rem;
  }
  
  /* Container max-width adjustments */
  .container {
    max-width: 1320px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .project-card:hover {
    transform: none;
  }
  
  .project-card:active {
    transform: scale(0.98);
  }
  
  .btn:hover {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
  
  .carousel-item:hover .hero-image {
    transform: none;
  }
  
  .upcoming-image-wrapper:hover {
    transform: none;
  }
  
  .wcu-item:hover {
    transform: none;
  }
  
  /* Make touch targets larger */
  .carousel-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    margin: 0 6px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
  }
}

/* iPad Specific Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Optimize for iPad portrait and landscape */
  .hero-image {
    height: clamp(400px, 60vh, 500px);
  }
  
  .hero-caption {
    padding: 3rem;
  }
  
  .intro-section {
    padding: 4rem 3rem;
  }
  
  .project-image-wrapper {
    height: 250px;
  }
  
  .wcu-bg {
    padding: 5rem 0;
  }
  
  .enquiry-bg {
    padding: 4rem 0;
    min-height: 500px;
  }
  
  /* Better spacing for iPad */
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* iPad Landscape Specific (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .hero-image {
    height: clamp(450px, 70vh, 550px);
  }
  
  .hero-caption {
    padding: 4rem;
  }
  
  .intro-section {
    padding: 5rem 4rem;
  }
}

/* Landscape Orientation - Mobile and Tablets */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-image {
    height: 300px;
  }
  
  .hero-caption {
    padding: 1.5rem;
  }
  
  .hero-caption h1,
  .hero-caption h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-caption .lead {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .hero-caption .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .intro-section {
    padding: 2rem 1.5rem;
  }
  
  .wcu-bg {
    padding: 3rem 0;
  }
  
  .enquiry-bg {
    padding: 2.5rem 0;
    min-height: auto;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image,
  .project-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Container adjustments for all screen sizes */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 992px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Form improvements for all screen sizes */
@media (max-width: 575.98px) {
  .form-row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .form-row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .form-control-lg {
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .form-control-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}

@media (min-width: 768px) {
  .form-control-lg {
    font-size: 1.05rem;
    padding: 0.875rem 1.125rem;
  }
}

/* Grid improvements for tablets and up */
@media (min-width: 768px) {
  .row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }
}

@media (min-width: 992px) {
  .row.g-4 {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
  }
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
}

.social-links-footer a {
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-links-footer a:hover {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-3px);
}

footer a.text-white-50:hover {
  color: var(--primary) !important;
  text-decoration: underline !important;
}

footer .list-unstyled li {
  transition: var(--transition);
}

footer .list-unstyled li:hover {
  transform: translateX(5px);
}

/* Footer mobile adjustments */
@media (max-width: 767.98px) {
  footer {
    text-align: left;
    padding: 3rem 1rem !important;
  }
  
  footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem !important;
  }
  
  footer .row > div {
    margin-bottom: 2rem;
  }
  
  footer .row > div:last-child {
    margin-bottom: 0;
  }
  
  .social-links-footer {
    justify-content: flex-start;
  }
  
  footer .border-top {
    margin-top: 1rem;
    padding-top: 1.5rem !important;
  }
  
  footer .d-flex {
    flex-direction: column;
    gap: 1rem;
    text-align: center !important;
  }
  
  footer .small {
    font-size: 0.85rem;
  }
  
  footer .list-unstyled {
    margin-bottom: 0;
  }
}

/* =========================
   Video Popup Modal
========================= */
.video-popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-popup-modal.show {
  opacity: 1;
  visibility: visible;
}

.video-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.video-popup-container {
  position: relative;
  width: 85%;
  max-width: 900px;
  max-height: 85vh;
  z-index: 10000;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.video-popup-modal.show .video-popup-container {
  transform: scale(1);
}

.video-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.video-popup-close:hover {
  background: rgba(220, 38, 38, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 25px rgba(220, 38, 38, 0.6);
}

.video-popup-close:active {
  transform: rotate(90deg) scale(0.95);
}

.video-popup-close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.video-popup-content {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.video-popup-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Responsive adjustments for video popup */
@media (max-width: 767.98px) {
  .video-popup-container {
    width: 92%;
    max-width: 600px;
    max-height: 80vh;
  }
  
  .video-popup-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  
  .video-popup-content {
    border-radius: 12px;
  }
}

@media (max-width: 575.98px) {
  .video-popup-container {
    width: 95%;
    max-height: 75vh;
  }
  
  .video-popup-close {
    top: 6px;
    right: 6px;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  
  .video-popup-content {
    border-radius: 10px;
  }
}

@media (min-width: 1400px) {
  .video-popup-container {
    max-width: 1000px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .video-popup-container {
    max-height: 90vh;
    width: 80%;
    max-width: 800px;
  }
  
  .video-popup-close {
    top: 8px;
    right: 8px;
  }
}

/* =========================
   Video & Project Section
========================= */
.video-project-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.min-vh-fit {
  min-height: 600px;
}

.video-wrapper {
  position: relative;
  background: #000;
  height: 100%;
  min-height: 500px;
}

.video-thumbnail {
  cursor: pointer;
  transition: transform 0.3s ease;
  height: 100%;
}

.video-thumbnail:hover {
  transform: scale(1.01);
}

.video-overlay {
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  backdrop-filter: blur(2px);
}

.video-thumbnail:hover .video-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.btn-play {
  width: 70px;
  height: 70px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(209, 165, 100, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.btn-play:hover {
  background: var(--primary-dark);
  transform: scale(1.15);
  box-shadow: 0 8px 35px rgba(209, 165, 100, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-play i {
  margin-left: 4px;
  font-size: 1.75rem;
}

.video-player-wrapper {
  height: 100%;
}

.video-player-wrapper video {
  display: block;
  background: #000;
  height: 100%;
  width: 100%;
}

.project-details-content {
  padding: 0;
  height: 100%;
}

.project-details-content .badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.project-details-content h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: #1a1a1a;
}

.project-details-content .small {
  font-size: 0.875rem;
  line-height: 1.6;
}

.project-highlights h3 {
  font-size: 0.95rem;
  color: #2c3e50;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.project-highlights ul li {
  padding: 0.4rem 0;
  transition: transform 0.2s ease;
}

.project-highlights ul li:hover {
  transform: translateX(5px);
}

.project-highlights ul li i {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.project-highlights ul li span {
  color: #495057;
  font-weight: 400;
}

.project-details-content .btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.project-details-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Project Detail Page Styles */
.project-detail-hero {
  margin-bottom: 2rem;
}

.amenity-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.spec-item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.spec-item:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 4px 15px rgba(209, 165, 100, 0.2);
}

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Responsive adjustments for video section */
@media (max-width: 991.98px) {
  .video-project-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .min-vh-fit {
    min-height: auto;
  }
  
  .video-wrapper {
    min-height: 400px;
    margin-bottom: 1.5rem;
  }
  
  .btn-play {
    width: 65px;
    height: 65px;
  }
  
  .project-details-content {
    margin-top: 0;
  }
}

@media (max-width: 767.98px) {
  .video-project-section {
    padding: 1.5rem 0;
  }
  
  .video-wrapper {
    min-height: 300px;
  }
  
  .btn-play {
    width: 60px;
    height: 60px;
  }
  
  .btn-play i {
    font-size: 1.5rem !important;
  }
  
  .project-details-content {
    padding: 1.5rem !important;
  }
  
  .project-details-content h2 {
    font-size: 1.25rem;
  }
}

/* Print styles */
@media print {
  .hero-slider,
  .enquiry-bg,
  .wcu-bg {
    background: white !important;
    color: black !important;
  }
  
  .btn,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators,
  .video-popup-modal {
    display: none !important;
  }
}
