/* ========================================
  Dark/Light Mode Variables
======================================== */
:root {
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --secondary: #0E9F6E;
  --accent: #F59E0B;
  --bg: #ffffff;
  --text: #1F2937;
  --text-light: #6B7280;
  --card: #F9FAFB;
  --overlay: rgba(0, 0, 0, 0.4);
  --footer: #F3F4F6;
  --section-alt: #F9FAFB;
  --icon-primary: #2563EB;
  --border: #E5E7EB;
  --success: #10B981;
}

[data-theme="dark"] {
  --primary: #3B82F6;
  --primary-light: #60A5FA;
  --secondary: #059669;
  --accent: #FBBF24;
  --bg: #111827;
  --text: #F3F4F6;
  --text-light: #9CA3AF;
  --card: #1F2937;
  --overlay: rgba(0, 0, 0, 0.7);
  --footer: #1F2937;
  --section-alt: #1F2937;
  --icon-primary: #3B82F6;
  --border: #374151;
  --success: #34D399;
}

/* ========================================
  Reset & Base
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 5rem 0;
  transition: background-color 0.3s;
}

.section-alt {
  background-color: var(--section-alt);
}

h1, h2, h3, h4, h5, h6, p {
  color: var(--text);
  transition: color 0.3s;
}

.container {
  max-width: 1200px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

/* ========================================
  Navbar Styles
======================================== */
.navbar {
  background-color: var(--bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 1rem 0;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.nav-link {
  font-weight: 500;
  position: relative;
  margin: 0 0.5rem;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link i {
  font-size: 1.2rem;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  transition: all 0.3s;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.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(37, 99, 235, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: transform 0.3s;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  transform: rotate(90deg);
}

/* Dark mode styles */
[data-theme="dark"] .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(59, 130, 246, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: var(--text);
  padding: 0.5rem 1.5rem;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.dropdown-divider {
  border-color: var(--border);
}

/* Responsive menu */
@media (max-width: 991px) {
  .navbar-collapse {
    padding: 1rem;
    background: var(--card);
    border-radius: 16px;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .nav-item {
    margin-bottom: 0.5rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }
  
  .nav-link:hover {
    background: rgba(37, 99, 235, 0.05);
  }
  
  .dropdown-menu {
    margin-left: 1rem;
    width: calc(100% - 2rem);
  }
}

/* ========================================
  Hero Section
======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
              url(img/background.jpg) center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: fadeInDown 1s ease;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ========================================
  Buttons
======================================== */
.btn-primary {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--primary-light);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-primary:hover:before {
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-outline-secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: 1000;
  cursor: pointer;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-secondary:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-outline-light {
  color: white;
  border: 1px solid white;
  background-color: transparent;
  transition: all 0.3s ease;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary);
}

/* ========================================
  Highlights
======================================== */
.highlights {
  padding: 4rem 0;
  position: relative;
}

.highlights:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 159, 110, 0.05) 100%);
  z-index: -1;
}

.highlight-item {
  padding: 2rem 1.5rem;
  background: var(--card);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  height: 100%;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.highlight-item:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.highlight-item:hover:after {
  transform: scaleX(1);
}

.highlight-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: all 0.3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  padding: 1rem;
}

.highlight-item h5 {
  font-weight: 600;
  margin: 0;
  font-size: 1.2rem;
}

/* ========================================
  Cards & Units
======================================== */
.unit-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

.unit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.unit-card .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent);
  color: #1F2937;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.unit-card img {
  height: 250px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease;
}

.unit-card:hover img {
  transform: scale(1.05);
}

.unit-card .card-body {
  padding: 1.75rem;
}

.unit-card h5 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 1.3rem;
}

.unit-card p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.unit-card .text-primary {
  color: var(--primary) !important;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.5rem;
  display: block;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.feature-item {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ========================================
  Gallery
======================================== */
.gallery-section {
  background-color: var(--section-alt);
  position: relative;
}

.gallery-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(37, 99, 235, 0.03) 0%, rgba(14, 159, 110, 0.03) 100%);
  z-index: -1;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 280px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover:after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 2;
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* ================ FACILITIES SECTION ================ */
.facilities {
  padding: 5rem 0;
  position: relative;
}

.facilities:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(14, 159, 110, 0.03) 100%);
  z-index: -1;
}


.facility-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}


.facility-item {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--card);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.facility-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.facility-item:hover:before {
  transform: scaleX(1);
}

.facility-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.facility-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: all 0.3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
}

.facility-item h5 {
  font-weight: 600;
  margin: 0;
  font-size: 1.25rem;
}

/* ========================================
  Location
======================================== */
.location {
  position: relative;
}

.location iframe {
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: none;
  height: 450px;
}

.location-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--primary) 0%, transparent 100%);
  opacity: 0.05;
  pointer-events: none;
  border-radius: 16px;
}

/* ========================================
  Contact
======================================== */
.contact {
  padding: 5rem 0;
  position: relative;
}

.contact:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 159, 110, 0.05) 100%);
  z-index: -1;
}

.contact-info {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

.contact-info p {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info i {
  margin-right: 1rem;
  color: var(--primary);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
}

.whatsapp-button {
  background-color: var(--success);
  color: white;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.whatsapp-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #059669;
  transition: width 0.3s ease;
  z-index: -1;
}

.whatsapp-button:hover:before {
  width: 100%;
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.whatsapp-button i {
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

/* ========================================
  Footer
======================================== */
footer {
  background-color: var(--footer);
  padding: 4rem 0 2rem;
  text-align: center;
  color: var(--text);
  transition: background-color 0.3s, color 0.3s;
  position: relative;
}

footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-logo h4 {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--card);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ========================================
  Animations
======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
  Utilities
======================================== */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  padding-bottom: 0.75rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
  Responsive
======================================== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content p {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2rem;
  }
  
  .unit-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  .hero {
    height: 80vh;
    min-height: 500px;
    background-attachment: scroll;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .gallery-item {
    height: 250px;
  }
  
  .facility-list {
    grid-template-columns: 1fr 1fr;
    max-width: 500px;
  }

  .location iframe {
    height: 350px;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3.5rem 0;
  }
  
  .highlights .col-md-3 {
    margin-bottom: 1.5rem;
  }
  
  .unit-card {
    margin-bottom: 1.5rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

  .contact-info p {
    font-size: 1rem;
    text-align: left;
    justify-content: flex-start;
  }
  
  .facility-list {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}