
:root { 
  --hero-bg-image: url('https://images.unsplash.com/photo-1501183638710-841dd1904471'); 
  /* Elegant Navy & Gold Color Scheme (Default - Option 4) */
  --navy-blue: #1E40AF;
  --navy-blue-dark: #1E3A8A;
  --navy-blue-light: #3B82F6;
  --gold: #D4AF37;
  --gold-dark: #B8860B;
  --gold-light: #F4D03F;
  --off-white: #FEFEFE;
  --background-light: #FAFAFA;
  
  /* Theme variables - will be overridden by theme classes */
  --primary-color: var(--navy-blue);
  --primary-color-dark: var(--navy-blue-dark);
  --primary-color-light: var(--navy-blue-light);
  --secondary-color: var(--gold);
  --secondary-color-dark: var(--gold-dark);
  --secondary-color-light: var(--gold-light);
  --accent-color: var(--gold);
  --text-on-primary: #FFFFFF;
  --text-on-secondary: var(--navy-blue);
}

/* Warm Earth Tones Theme (Option 3) */
body.theme-earth {
  --primary-color: #8B4513;
  --primary-color-dark: #654321;
  --primary-color-light: #A0522D;
  --secondary-color: #D4A574;
  --secondary-color-dark: #B8945A;
  --secondary-color-light: #E6C99A;
  --accent-color: #D4A574;
  --text-on-primary: #FFFFFF;
  --text-on-secondary: #8B4513;
  --background-light: #FAF7F2;
}

/* Aqua Blue Theme (Modern Glossy) */
body.theme-aqua {
  --primary-color: #00E5FF;
  --primary-color-dark: #00B8D4;
  --primary-color-light: #4DD0E1;
  --secondary-color: #00E5FF;
  --secondary-color-dark: #00B8D4;
  --secondary-color-light: #4DD0E1;
  --accent-color: #00E5FF;
  --aqua-glow: #00E5FF;
  --text-on-primary: #0F172A;
  --text-on-secondary: #0F172A;
  --background-light: #0A1929;
  --background-gradient: linear-gradient(135deg, #00B8D4 0%, #0A1929 30%, #00E5FF 70%, #0A1929 100%);
  --card-bg: #FFFFFF;
  --card-bg-light: #F0F9FF;
}

body { 
  margin:0; 
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  background:var(--background-light);
  transition:background-color 0.3s ease, background-image 0.3s ease;
}

body.theme-aqua {
  background:var(--background-gradient);
  background-attachment:fixed;
  min-height:100vh;
}

/* Hero Section */
.hero { 
  min-height:100vh; 
  position:relative; 
  color:white; 
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

/* Hero Background Carousel */
.hero-carousel {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:0;
}

.hero-carousel .carousel-item {
  height:100vh;
}

.hero-bg-image {
  width:100%;
  height:100%;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.custom-navbar {
  background:transparent !important;
  position:sticky;
  top:0;
  z-index:1030;
  padding:1rem 0;
}

/* Glossy navbar for other pages - Navy & Gold */
.glossy-navbar {
  background:rgba(30, 64, 175, 0.1) !important;
  backdrop-filter:blur(10px) saturate(180%);
  -webkit-backdrop-filter:blur(10px) saturate(180%);
  border-bottom:1px solid rgba(30, 64, 175, 0.2);
  box-shadow:0 4px 20px rgba(0, 0, 0, 0.1);
  position:sticky;
  top:0;
  z-index:1030;
  padding:1rem 0;
  transition:background 0.3s ease, border-color 0.3s ease;
}

body.theme-earth .glossy-navbar {
  background:rgba(212, 165, 116, 0.15) !important;
  border-bottom:1px solid rgba(212, 165, 116, 0.2);
}

body.theme-aqua .glossy-navbar {
  background:rgba(0, 229, 255, 0.15) !important;
  border-bottom:2px solid var(--aqua-glow);
  box-shadow:0 4px 20px rgba(0, 229, 255, 0.4);
  backdrop-filter:blur(15px) saturate(200%);
  -webkit-backdrop-filter:blur(15px) saturate(200%);
}

body.theme-aqua .glossy-navbar .navbar-brand {
  color:var(--aqua-glow) !important;
  text-shadow:0 0 10px rgba(0, 229, 255, 0.5);
}

body.theme-aqua .glossy-navbar .nav-link:hover {
  color:var(--aqua-glow) !important;
  text-shadow:0 0 5px rgba(0, 229, 255, 0.3);
}

body.theme-aqua .glossy-navbar .nav-link.active {
  color:var(--aqua-glow) !important;
  text-shadow:0 0 5px rgba(0, 229, 255, 0.3);
  position:relative;
}

body.theme-aqua .glossy-navbar .nav-link.active::after {
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:3px;
  background-color:var(--aqua-glow);
  border-radius:2px;
  box-shadow:0 0 8px rgba(0, 229, 255, 0.6);
}

.glossy-navbar .navbar-brand {
  color:var(--primary-color) !important;
  font-weight:bold;
}

.glossy-navbar .nav-link {
  color:#333 !important;
  font-weight:500;
  transition:color 0.3s, text-decoration 0.3s;
}

.glossy-navbar .nav-link:hover {
  color:var(--primary-color) !important;
}

.glossy-navbar .nav-link.active {
  color:var(--primary-color) !important;
  position:relative;
}

.glossy-navbar .nav-link.active::after {
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:3px;
  background-color:var(--primary-color);
  border-radius:2px;
}

.glossy-navbar .dropdown-menu {
  background:#F5F5F5;
  border:none;
  border-radius:0;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  padding:0;
  min-width:250px;
}

.glossy-navbar .dropdown-item {
  color:#333;
  padding:12px 20px;
  text-transform:uppercase;
  font-weight:500;
  font-size:0.9rem;
  letter-spacing:0.5px;
  border-bottom:1px solid #E0E0E0;
  transition:background-color 0.2s ease;
}

.glossy-navbar .dropdown-item:last-child {
  border-bottom:none;
}

.glossy-navbar .dropdown-item:hover {
  background:#E8E8E8;
  color:#333;
}

.glossy-navbar .navbar-toggler {
  border-color:rgba(30, 64, 175, 0.3);
  transition:border-color 0.3s ease;
}

body.theme-earth .glossy-navbar .navbar-toggler {
  border-color:rgba(212, 165, 116, 0.3);
}

body.theme-aqua .glossy-navbar .navbar-toggler {
  border-color:var(--aqua-glow);
}

.glossy-navbar .navbar-toggler-icon {
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 51, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Call Button in Navbar */
.call-btn-nav {
  white-space:nowrap;
  border-radius:0 !important;
}

.custom-navbar .call-btn-nav {
  border-color:rgba(255,255,255,0.5) !important;
  color:white !important;
}

.custom-navbar .call-btn-nav:hover {
  background-color:rgba(255,255,255,0.1) !important;
  border-color:white !important;
  color:white !important;
}

@media (max-width: 991px) {
  .call-btn-nav {
    margin-top:10px;
    width:100%;
    text-align:center;
  }
}

/* Theme Switcher Button */
.theme-switcher {
  position:fixed;
  bottom:110px;
  right:30px;
  z-index:9999;
  background:var(--primary-color);
  color:var(--text-on-primary);
  border:none;
  border-radius:50px;
  width:60px;
  height:60px;
  box-shadow:0 4px 15px rgba(0,0,0,0.2);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  transition:all 0.3s ease;
}

.theme-switcher:hover {
  transform:scale(1.1);
  box-shadow:0 6px 20px rgba(0,0,0,0.3);
}

.theme-switcher:active {
  transform:scale(0.95);
}

/* WhatsApp Chat Widget */
.whatsapp-chat-widget {
  position:fixed;
  bottom:30px;
  right:30px;
  z-index:9999;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

/* Chat Toggle Button */
.whatsapp-chat-toggle {
  background:#25D366;
  color:#FFFFFF;
  border:none;
  border-radius:50px;
  width:60px;
  height:60px;
  box-shadow:0 4px 15px rgba(37, 211, 102, 0.4);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  transition:all 0.3s ease;
  position:relative;
}

.whatsapp-chat-toggle:hover {
  transform:scale(1.1);
  box-shadow:0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-chat-toggle.chat-active {
  background:#128C7E;
}

/* Chat Window */
.whatsapp-chat-window {
  position:absolute;
  bottom:80px;
  right:0;
  width:350px;
  max-width:calc(100vw - 40px);
  height:500px;
  max-height:calc(100vh - 120px);
  background:#FFFFFF;
  border-radius:10px;
  box-shadow:0 8px 30px rgba(0,0,0,0.2);
  display:flex;
  flex-direction:column;
  opacity:0;
  visibility:hidden;
  transform:translateY(20px) scale(0.9);
  transition:all 0.3s ease;
  overflow:hidden;
}

.whatsapp-chat-window.chat-open {
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
}

/* Chat Header */
.whatsapp-chat-header {
  background:#075E54;
  color:#FFFFFF;
  padding:15px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.whatsapp-avatar {
  width:40px;
  height:40px;
  border-radius:50%;
  background:rgba(255,255,255,0.2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
}

.btn-close-chat {
  background:transparent;
  border:none;
  color:#FFFFFF;
  font-size:20px;
  cursor:pointer;
  padding:5px;
  border-radius:50%;
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background 0.2s;
}

.btn-close-chat:hover {
  background:rgba(255,255,255,0.2);
}

/* Chat Messages Area */
.whatsapp-chat-messages {
  flex:1;
  overflow-y:auto;
  padding:20px;
  background:#ECE5DD;
  background-image:url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='%23D4D4D4' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)'/%3E%3C/svg%3E");
  background-size:50px 50px;
}

.whatsapp-message {
  margin-bottom:15px;
  display:flex;
  animation:fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity:0;
    transform:translateY(10px);
  }
  to {
    opacity:1;
    transform:translateY(0);
  }
}

.whatsapp-message-sent {
  justify-content:flex-end;
}

.whatsapp-message-received {
  justify-content:flex-start;
}

.message-content {
  max-width:75%;
  padding:8px 12px;
  border-radius:8px;
  position:relative;
}

.whatsapp-message-sent .message-content {
  background:#DCF8C6;
  border-bottom-right-radius:2px;
}

.whatsapp-message-received .message-content {
  background:#FFFFFF;
  border-bottom-left-radius:2px;
  box-shadow:0 1px 2px rgba(0,0,0,0.1);
}

.message-content p {
  margin:0;
  font-size:14px;
  line-height:1.4;
  word-wrap:break-word;
}

.message-time {
  font-size:11px;
  color:#999;
  margin-top:4px;
  display:block;
  text-align:right;
}

.whatsapp-message-received .message-time {
  text-align:left;
}

/* Chat Input */
.whatsapp-chat-input {
  padding:15px;
  background:#F0F0F0;
  border-top:1px solid #E0E0E0;
  display:flex;
  gap:10px;
  align-items:center;
}

.whatsapp-chat-input .form-control {
  flex:1;
  border:none;
  border-radius:20px;
  padding:10px 15px;
  font-size:14px;
  background:#FFFFFF;
}

.whatsapp-chat-input .form-control:focus {
  outline:none;
  box-shadow:0 0 0 2px rgba(37, 211, 102, 0.3);
}

.btn-send-message {
  background:#25D366;
  color:#FFFFFF;
  border:none;
  border-radius:50%;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all 0.2s;
  font-size:18px;
}

.btn-send-message:hover {
  background:#128C7E;
  transform:scale(1.1);
}

.btn-send-message:active {
  transform:scale(0.95);
}

/* Responsive */
@media (max-width: 576px) {
  .whatsapp-chat-window {
    width:calc(100vw - 20px);
    right:-10px;
    height:calc(100vh - 100px);
    max-height:500px;
  }
  
  .whatsapp-chat-toggle {
    width:50px;
    height:50px;
    font-size:24px;
  }
}

.custom-navbar .navbar-brand {
  color:white !important;
  font-weight:bold;
}

.custom-navbar .nav-link {
  color:rgba(255,255,255,0.9) !important;
  font-weight:500;
  transition:color 0.3s, text-decoration 0.3s;
}

.custom-navbar .nav-link:hover {
  color:white !important;
}

.custom-navbar .nav-link.active {
  position:relative;
}

.custom-navbar .nav-link.active::after {
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:3px;
  background-color:white;
  border-radius:2px;
}

.custom-navbar .dropdown-menu {
  background:#F5F5F5;
  border:none;
  border-radius:0;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  padding:0;
  min-width:250px;
}

.custom-navbar .dropdown-item {
  color:#333;
  padding:12px 20px;
  text-transform:uppercase;
  font-weight:500;
  font-size:0.9rem;
  letter-spacing:0.5px;
  border-bottom:1px solid #E0E0E0;
  transition:background-color 0.2s ease;
}

.custom-navbar .dropdown-item:last-child {
  border-bottom:none;
}

.custom-navbar .dropdown-item:hover {
  background:#E8E8E8;
  color:#333;
}

/* Logo wrapper with light brown color */
.logo-wrapper {
  position:relative;
  display:inline-block;
  height:50px;
  width:auto;
  margin-right:10px;
}

.logo-wrapper::before {
  display:none;
}

.logo {
  height:50px;
  width:auto;
  opacity:1;
  position:relative;
  z-index:1;
  display:block;
  filter:none;
}

.brand {
  font-size:18px;
  line-height:1.2;
}

.brand small {
  font-size:12px;
  opacity:0.8;
  font-weight:normal;
}

.overlay { 
  position:absolute; 
  top:0; 
  left:0;
  z-index:1; 
  width:100%; 
  height:100%; 
  background:transparent;
}

.hero-content { 
  position:relative;
  z-index:2;
  flex:1;
  display:flex;
  align-items:center;
  min-height:calc(100vh - 80px);
}

/* Custom Button Styles - Theme Aware - Square Borders */
.btn,
.btn-primary,
.btn-outline-primary,
.btn-secondary,
.btn-light,
.btn-dark,
.btn-sm,
.btn-lg,
.btn-xl {
  border-radius:0 !important;
}

.btn-primary {
  background-color:var(--primary-color);
  border-color:var(--primary-color);
  color:var(--text-on-primary);
  font-weight:600;
  transition:all 0.3s ease;
  border-radius:0 !important;
  box-shadow:none;
}

body.theme-aqua .btn-primary {
  background-color:var(--primary-color);
  border:2px solid var(--aqua-glow);
  color:var(--text-on-primary);
  box-shadow:0 0 15px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover {
  background-color:var(--primary-color-dark);
  border-color:var(--primary-color-dark);
  color:var(--text-on-primary);
}

body.theme-aqua .btn-primary:hover {
  background-color:var(--primary-color-light);
  border-color:var(--aqua-glow);
  box-shadow:0 0 25px rgba(0, 229, 255, 0.6), inset 0 0 20px rgba(0, 229, 255, 0.3);
  transform:translateY(-2px);
}

.btn-outline-primary {
  color:var(--primary-color);
  border-color:var(--primary-color);
  background-color:transparent;
  font-weight:600;
  transition:all 0.3s ease;
  border-radius:0 !important;
}

body.theme-aqua .btn-outline-primary {
  color:var(--aqua-glow);
  border:2px solid var(--aqua-glow);
  box-shadow:0 0 10px rgba(0, 229, 255, 0.3);
}

.btn-outline-primary:hover {
  background-color:var(--primary-color);
  border-color:var(--primary-color);
  color:var(--text-on-primary);
}

body.theme-aqua .btn-outline-primary:hover {
  background-color:var(--primary-color);
  border-color:var(--aqua-glow);
  color:var(--text-on-primary);
  box-shadow:0 0 20px rgba(0, 229, 255, 0.5);
}

.btn-secondary {
  background-color:var(--secondary-color);
  border-color:var(--secondary-color);
  color:var(--text-on-secondary);
  font-weight:600;
  transition:all 0.3s ease;
  border-radius:0 !important;
}

.btn-secondary:hover {
  background-color:var(--secondary-color-dark);
  border-color:var(--secondary-color-dark);
  color:var(--text-on-secondary);
}

.btn-light {
  background-color:white;
  border-color:white;
  color:#000;
  font-weight:600;
}

.btn-light:hover {
  background-color:#f8f9fa;
  border-color:#f8f9fa;
  color:#000;
}

/* Page Header (for About Us page) */
.page-header {
  position:relative;
  min-height:300px;
  display:flex;
  align-items:center;
}

.page-header .overlay {
  background:rgba(0,0,0,0.3);
}

/* Primary Color Override - Theme Aware */
.bg-primary {
  background-color:var(--accent-color) !important;
  transition:background-color 0.3s ease;
}

.text-primary {
  color:var(--primary-color) !important;
}

/* Section Styles */
.section { 
  padding:4rem 0;
}

body.theme-aqua .section {
  background:var(--card-bg-light);
}

body.theme-aqua .section.bg-light {
  background:var(--card-bg) !important;
}

.section h2 {
  color:#333;
  font-weight:700;
  position: relative;
  padding-bottom: 0.75rem;
}

body.theme-aqua .section h2 {
  color:var(--primary-color);
}

/* Add underline bar to section h2 headings - centered for text-center, left-aligned for others */
.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

/* Center underline for centered headings */
.section h2.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Left-align underline for non-centered headings */
.section h2:not(.text-center)::after {
  left: 0;
}

/* Add underline bar to section h3 headings (excluding h3 inside cards) */
.section h3.text-center.mb-4 {
  position: relative;
  padding-bottom: 0.75rem;
}

.section h3.text-center.mb-4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

/* Exclude h3 elements inside cards from having underlines */
.section .card h3,
.section .card-body h3 {
  position: static;
  padding-bottom: 0;
}

.section .card h3::after,
.section .card-body h3::after {
  display: none;
}

.section h4.text-center.mb-4 {
  position: relative;
  padding-bottom: 0.75rem;
}

.section h4.text-center.mb-4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

/* Card Styles */
.card {
  border-left:5px solid var(--primary-color);
  transition:transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

body.theme-aqua .card {
  background:var(--card-bg) !important;
  border-left:5px solid var(--aqua-glow);
  box-shadow:0 4px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform:translateY(-5px);
  box-shadow:0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Projects Carousel Styles */
#projectsCarousel {
  border-radius:0;
  overflow:hidden;
}

#projectsCarousel .carousel-item {
  transition:transform 0.6s ease-in-out;
}

.project-image {
  position:relative;
  background-size:cover;
  background-position:center;
}

.project-content {
  min-height:500px;
}

.project-metric {
  padding:10px;
  background:white;
  border-radius:0;
  border-left:3px solid var(--primary-color);
}

.project-metric strong {
  display:block;
  color:#333;
  font-size:1.1rem;
}

.project-metric small {
  font-size:0.85rem;
}

#projectsCarousel .carousel-control-prev,
#projectsCarousel .carousel-control-next {
  width:50px;
  height:50px;
  background:var(--primary-color);
  border-radius:0;
  top:50%;
  transform:translateY(-50%);
  opacity:0.8;
}

#projectsCarousel .carousel-control-prev {
  left:20px;
}

#projectsCarousel .carousel-control-next {
  right:20px;
}

#projectsCarousel .carousel-control-prev:hover,
#projectsCarousel .carousel-control-next:hover {
  opacity:1;
}

#projectsCarousel .carousel-control-prev-icon,
#projectsCarousel .carousel-control-next-icon {
  background-size:20px 20px;
}

#projectsCarousel .carousel-indicators {
  bottom:20px;
}

#projectsCarousel .carousel-indicators button {
  width:12px;
  height:12px;
  border-radius:0;
  background-color:var(--primary-color);
  opacity:0.5;
}

#projectsCarousel .carousel-indicators button.active {
  opacity:1;
}

@media (max-width: 991px) {
  .project-image {
    min-height:300px;
  }
  
  .project-content {
    min-height:auto;
    padding:2rem !important;
  }
  
  #projectsCarousel .carousel-control-prev,
  #projectsCarousel .carousel-control-next {
    width:40px;
    height:40px;
  }
  
  #projectsCarousel .carousel-control-prev {
    left:10px;
  }
  
  #projectsCarousel .carousel-control-next {
    right:10px;
  }
}

@media (max-width: 576px) {
  .project-image {
    min-height:250px;
  }
  
  .project-metric {
    margin-bottom:10px;
  }
}

/* Project Image Carousel (Nested in Projects Carousel) */
.project-image-carousel {
  position:relative;
  overflow:hidden;
}

.project-image-carousel .carousel-inner {
  height:100%;
}

.project-image-carousel .carousel-item img {
  object-fit:cover;
  width:100%;
  height:100%;
}

.project-image-carousel .carousel-control-prev,
.project-image-carousel .carousel-control-next {
  width:40px;
  height:40px;
  background:rgba(0,0,0,0.5);
  border-radius:0;
  top:50%;
  transform:translateY(-50%);
  opacity:0.7;
}

.project-image-carousel .carousel-control-prev:hover,
.project-image-carousel .carousel-control-next:hover {
  opacity:1;
}

.project-image-carousel .carousel-control-prev {
  left:10px;
}

.project-image-carousel .carousel-control-next {
  right:10px;
}

.project-image-carousel .carousel-indicators {
  bottom:10px;
  margin-bottom:0;
}

.project-image-carousel .carousel-indicators button {
  width:8px;
  height:8px;
  border-radius:0;
  background-color:white;
  opacity:0.5;
  margin:0 3px;
}

.project-image-carousel .carousel-indicators button.active {
  opacity:1;
}

/* Project Gallery Carousel Captions */
#projectGallery .carousel-item {
  position:relative;
}

#projectGallery .carousel-caption {
  position:absolute;
  bottom:60px;
  left:0;
  right:0;
  padding:1rem 1.5rem;
  text-align:center;
  z-index:10;
}

#projectGallery .carousel-caption p {
  margin:0;
  font-size:0.95rem;
  font-weight:500;
  color:#fff;
}

#projectGallery .carousel-indicators {
  z-index:15;
  bottom:10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    min-height:80vh;
  }
  
  .hero-carousel .carousel-item {
    height:80vh;
  }
  
  .hero-content {
    min-height:calc(80vh - 80px);
    padding:2rem 0;
  }
  
  .display-4 {
    font-size:2rem;
  }
  
  .brand {
    font-size:14px;
  }
  
  .brand small {
    font-size:10px;
  }
  
  .logo {
    height:40px;
  }
  
  .section {
    padding:3rem 0;
  }
}

@media (max-width: 576px) {
  .hero-content .btn {
    display:block;
    width:100%;
    margin:0.5rem 0;
  }
  
  .custom-navbar {
    padding:0.5rem 0;
  }
  
  .page-header {
    min-height:250px;
    padding:4rem 0 !important;
  }
  
  .page-header .display-3 {
    font-size:2rem;
  }
}

/* Prevent dropdown from overflowing right */
.navbar .dropdown-menu {
    left: auto !important;
    right: 0 !important;
}

/* Prevent clipping */
.navbar, .glossy-navbar {
    overflow: visible !important;
}

/* Fix mobile dropdown behavior */
@media (max-width: 991px) {
    .navbar .dropdown-menu {
        position: static !important;
        width: 100% !important;
    }
    
    /* On mobile, submenu expands downward instead of to the side */
    .submenu {
        position: static !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        box-shadow: none !important;
        margin-left: 1rem;
        margin-top: 0;
    }
    
    /* Change arrow back to down on mobile */
    summary.dropdown-item::after {
        content: " ▾" !important;
    }
}

/* About Section Styles */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.about-header {
  position: relative;
  z-index: 1;
}

.about-icon-wrapper {
  display: inline-block;
  position: relative;
}

.about-icon {
  font-size: 4rem;
  color: var(--primary-color);
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(30, 64, 175, 0.2));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.about-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  position: relative;
}

.about-divider::before,
.about-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 50%;
  transform: translateY(-50%);
}

.about-divider::before {
  left: -5px;
}

.about-divider::after {
  right: -5px;
}

.about-subtitle {
  color: #666;
  font-style: italic;
  font-weight: 300;
}

/* About Cards */
.about-card {
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--primary-color);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(30, 64, 175, 0.15);
  border-top-color: var(--secondary-color);
}

.about-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.2);
  transition: all 0.4s ease;
}

.about-card:hover .about-card-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.3);
}

.about-card-icon i {
  font-size: 2.5rem;
  color: white;
}

.about-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.about-card-text {
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
  text-align: center;
}

/* Features Section */
.features-section {
  position: relative;
  z-index: 1;
}

.features-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  position: relative;
}

body.theme-aqua .features-title {
  color: var(--primary-color);
}

/* Add underline bar to features-title and about-title */
.features-title::after,
.about-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

/* Ensure about-title underline accounts for text alignment */
.about-header .about-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.features-title {
  padding-bottom: 0.75rem;
}

.feature-item {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-item:hover::before {
  transform: scaleX(1);
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
}


.feature-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--bs-card-title-color);
  margin-bottom: 0.75rem;
}

.feature-text {
  color: #666;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

/* Theme-specific adjustments */
body.theme-aqua .about-section {
  background: linear-gradient(135deg, var(--card-bg-light) 0%, rgba(0, 229, 255, 0.05) 50%, var(--card-bg-light) 100%);
}

body.theme-aqua .about-icon {
  color: var(--aqua-glow);
  filter: drop-shadow(0 4px 12px rgba(0, 229, 255, 0.4));
}

body.theme-aqua .about-title {
  color: var(--aqua-glow);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

body.theme-aqua .about-card {
  background: var(--card-bg);
  border-top-color: var(--aqua-glow);
}

body.theme-aqua .about-card:hover {
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.2);
  border-top-color: var(--aqua-glow);
}

body.theme-aqua .about-card-icon {
  background: linear-gradient(135deg, var(--aqua-glow), var(--primary-color-light));
  box-shadow: 0 8px 20px rgba(0, 229, 255, 0.3);
}

body.theme-aqua .feature-item {
  background: var(--card-bg);
}

body.theme-aqua .feature-item:hover {
  border-color: var(--aqua-glow);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .about-title {
    font-size: 2rem;
  }
  
  .about-icon {
    font-size: 3rem;
  }
  
  .about-card {
    padding: 2rem;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
  
  .features-title {
    font-size: 1.75rem;
  }
}

/* Request Tour Modal Styles */
#requestTourModal .modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#requestTourModal .modal-header {
  padding: 1.5rem 1.5rem 0.5rem;
}

#requestTourModal .modal-title {
  font-weight: 600;
  font-size: 1.5rem;
  color: #333;
}

#requestTourModal .modal-body {
  padding: 1rem 1.5rem 1.5rem;
}

#requestTourModal .btn-close {
  opacity: 0.5;
}

#requestTourModal .btn-close:hover {
  opacity: 1;
}

/* Hide dropdown by default */
.projects-dropdown > .dropdown-menu {
  display: none;
  position: absolute;
}

/* Show Projects dropdown on click */
.projects-dropdown:focus-within > .dropdown-menu {
  display: block;
}

/* Details reset */
summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

/* Submenu - positioned to the left side */
.projects-dropdown .dropdown-menu > li {
  position: relative;
}

.submenu {
  position: absolute;
  right: calc(100% + 2px);
  top: 0;
  min-width: 250px;
  background: #F5F5F5;
  border: none;
  border-radius: 0;
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  padding: 0;
  margin: 0;
  z-index: 1000;
  display: none;
}

/* Show submenu when details is open or on hover */
details[open] > .submenu,
.projects-dropdown .dropdown-menu > li:hover > details > .submenu {
  display: block;
}

/* Arrow for Projects */
.projects-dropdown > a::after {
  content: " ▾";
  font-size: 0.8rem;
  margin-left: 5px;
}

/* Arrow for Development & Remodel - changed to left arrow */
summary.dropdown-item::after {
  content: " ◂";
  float: right;
  font-size: 0.8rem;
}

/* Remove bullets from all ul inside dropdowns */
.projects-dropdown ul,
.projects-dropdown ul ul {
  list-style: none; /* removes default bullets */
  padding-left: 0;  /* optional: remove default indent */
  margin-left: 0;   /* optional: remove default indent */
}

/* Submenu items styling */
.submenu .dropdown-item {
  color: #333;
  padding: 12px 20px;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #E0E0E0;
  transition: background-color 0.2s ease;
  display: block;
  text-decoration: none;
}

.submenu .dropdown-item:last-child {
  border-bottom: none;
}

.submenu .dropdown-item:hover {
  background: #E8E8E8;
  color: #333;
}