:root {
   /* Premium Color Palette */
   --primary-navy: #012557;
   --primary-light: #0d3b85;
   --accent-cyan: #00d4ff;
   --accent-blue: #2A4AB2;
   --text-dark: #1a1a2e;
   --text-gray: #4a4a5e;
   --text-light: #f0f4f8;
   --white: #ffffff;

   /* Glassmorphism & Effects */
   --glass-bg: rgba(255, 255, 255, 0.7);
   --glass-border: rgba(255, 255, 255, 0.5);
   --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
   --blur: blur(12px);

   /* Gradients */
   --gradient-hero: linear-gradient(135deg, rgba(1, 37, 87, 0.95) 0%, rgba(42, 74, 178, 0.85) 100%);
   --gradient-accent: linear-gradient(90deg, #2A4AB2 0%, #00d4ff 100%);

   /* Global Settings */
   --font-heading: 'Raleway', sans-serif;
   --font-body: 'Raleway', sans-serif;
   --transition-fast: 0.3s ease;
   --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

body {
   font-family: var(--font-body);
   color: var(--text-dark);
   background-color: #f8f9fa;
   overflow-x: hidden;
   line-height: 1.6;
}

a {
   text-decoration: none;
   color: inherit;
   transition: var(--transition-fast);
}

ul {
   list-style: none;
}

img {
   max-width: 100%;
   display: block;
}

/* --- ANIMATIONS --- */
@keyframes fadeInDp {
   from {
      opacity: 0;
      transform: translateY(20px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes slideInLeft {
   from {
      opacity: 0;
      transform: translateX(-50px);
   }

   to {
      opacity: 1;
      transform: translateX(0);
   }
}

/* --- COMPONENTS --- */
.container {
   max-width: 1300px;
   margin: 0 auto;
   padding: 0 24px;
}

.btn-primary {
   display: inline-block;
   padding: 14px 32px;
   background: var(--gradient-accent);
   color: var(--white);
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 1px;
   border-radius: 50px;
   box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
   transition: var(--transition-fast);
}

.btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.section-title {
   font-size: 3rem;
   font-weight: 800;
   margin-bottom: 1rem;
   background: var(--gradient-hero);
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
   display: inline-block;
}

/* --- TOP BAR --- */
.top-bar {
   background: var(--primary-navy);
   color: var(--white);
   padding: 8px 0;
   font-size: 0.85rem;
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
   max-width: 1300px;
   margin: 0 auto;
   padding: 0 24px;
   display: flex;
   justify-content: flex-end;
   align-items: center;
}

.client-login-link {
   color: var(--white);
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 1px;
   display: flex;
   align-items: center;
   gap: 8px;
   transition: color 0.3s ease;
}

.client-login-link:hover {
   color: var(--accent-cyan);
}

/* --- HEADER (Glassmorphism) --- */
.main-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 1000;
   background: rgba(255, 255, 255, 0.95);
   /* Increased opacity for readability over top bar */
   backdrop-filter: var(--blur);
   -webkit-backdrop-filter: var(--blur);
   border-bottom: 1px solid var(--glass-border);
   transition: var(--transition-fast);
   padding: 0;
   /* Remove padding to accommodate top bar */
   display: flex;
   flex-direction: column;
}

.header-container {
   padding: 15px 24px;
   /* Move padding to container */
   width: 100%;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.logo-group {
   display: flex;
   align-items: center;
   gap: 12px;
}

.logo-symbol {
   font-size: 2rem;
   color: var(--accent-blue);
}

.logo-text h1 {
   font-size: 1.5rem;
   font-weight: 900;
   color: var(--primary-navy);
   line-height: 1;
}

.logo-text span {
   font-size: 0.8rem;
   font-weight: 600;
   color: var(--text-gray);
   letter-spacing: 2px;
   text-transform: uppercase;
}

.main-nav ul {
   display: flex;
   gap: 30px;
}

.main-nav a {
   font-size: 0.9rem;
   font-weight: 700;
   color: var(--primary-navy);
   text-transform: uppercase;
   position: relative;
   padding: 5px 0;
}

.main-nav a::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--accent-blue);
   transition: var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a.active::after {
   width: 100%;
}

.main-nav a.active {
   color: var(--accent-blue);
}

/* Scroll to Top Button */
.scroll-top-btn {
   position: fixed;
   bottom: 30px;
   right: 30px;
   width: 50px;
   height: 50px;
   background: var(--accent-blue);
   color: var(--white);
   border: none;
   border-radius: 50%;
   font-size: 1.2rem;
   cursor: pointer;
   box-shadow: 0 4px 15px rgba(42, 74, 178, 0.4);
   z-index: 999;
   opacity: 0;
   visibility: hidden;
   transform: translateY(20px);
   transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
   display: flex;
   justify-content: center;
   align-items: center;
}

.scroll-top-btn.visible {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}

.scroll-top-btn:hover {
   background: var(--primary-navy);
   transform: translateY(-5px);
   box-shadow: 0 8px 25px rgba(1, 37, 87, 0.5);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
   display: none;
   background: none;
   border: none;
   font-size: 1.5rem;
   color: var(--primary-navy);
   cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 768px) {
   .mobile-nav-toggle {
      display: block;
   }

   .main-nav {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(15px);
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      padding: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease-in-out;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
   }

   .main-nav.active {
      max-height: 300px;
      /* Adjust based on valid menu items */
   }

   .main-nav ul {
      flex-direction: column;
      gap: 0;
      padding: 20px 0;
   }

   .main-nav li {
      width: 100%;
      text-align: center;
   }

   .main-nav a {
      display: block;
      padding: 15px 0;
      font-size: 1.1rem;
   }

   .main-nav a::after {
      display: none;
   }
}

/* --- FACILITY GALLERY --- */
.facility-gallery {
   padding: 60px 0;
   background: #f8f9fa;
}

.gallery-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 30px;
   margin-top: 40px;
}

.gallery-item {
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s ease;
}

.gallery-item:hover {
   transform: translateY(-5px);
}

.gallery-item img {
   width: 100%;
   height: 250px;
   object-fit: cover;
   display: block;
}

/* --- HERO SLIDER --- */
.hero-slider {
   position: relative;
   min-height: 700px;
   width: 100%;
   overflow: hidden;
   background: #000;
}

.hero-slide {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-size: cover;
   background-position: center;
   opacity: 0;
   transition: opacity 1.5s ease-in-out;
   display: flex;
   align-items: center;
}

.hero-slide.active {
   opacity: 1;
   z-index: 1;
}

.hero-slide::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.2);
   /* Minimal dark tint */
   z-index: 1;
}

.hero-container {
   position: relative;
   z-index: 2;
   max-width: 1300px;
   margin: 0 auto;
   padding: 0 24px;
   width: 100%;
}

.hero-content {
   max-width: 700px;
   color: var(--white);
}

/* Text Animations */
.hero-tagline {
   font-size: 1.2rem;
   font-weight: 700;
   color: var(--accent-cyan);
   letter-spacing: 3px;
   text-transform: uppercase;
   margin-bottom: 15px;
   display: inline-block;
   background: rgba(1, 37, 87, 0.8);
   padding: 5px 15px;
   transform: translateY(20px);
   opacity: 0;
   transition: all 0.8s ease 0.3s;
}

.hero-title {
   font-size: 4.5rem;
   font-weight: 800;
   line-height: 1.1;
   margin-bottom: 25px;
   text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
   transform: translateY(20px);
   opacity: 0;
   transition: all 0.8s ease 0.5s;
}

.hero-desc {
   font-size: 1.35rem;
   color: #e0e6ed;
   margin-bottom: 40px;
   max-width: 550px;
   background: rgba(0, 0, 0, 0.4);
   padding: 15px;
   border-left: 4px solid var(--accent-cyan);
   transform: translateY(20px);
   opacity: 0;
   transition: all 0.8s ease 0.7s;
}

.hero-slide.active .hero-tagline,
.hero-slide.active .hero-title,
.hero-slide.active .hero-desc {
   opacity: 1;
   transform: translateY(0);
}

.slider-dots {
   position: absolute;
   bottom: 40px;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   gap: 15px;
   z-index: 10;
}

.dot {
   width: 12px;
   height: 12px;
   background: rgba(255, 255, 255, 0.5);
   border-radius: 50%;
   cursor: pointer;
   transition: all 0.3s ease;
}

.dot.active {
   background: var(--accent-cyan);
   transform: scale(1.3);
}

/* --- FACILITIES GRID --- */
.facilities-section {
   padding: 100px 0;
   background: var(--white);
}

.section-header {
   text-align: center;
   margin-bottom: 60px;
}

.section-tagline {
   font-size: 1.2rem;
   font-weight: 700;
   color: var(--accent-blue);
   /* Changed from accent-cyan for better contrast */
   letter-spacing: 3px;
   text-transform: uppercase;
   margin-bottom: 15px;
   display: block;
}

.grid-3 {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
   gap: 30px;
}

.facility-card {
   position: relative;
   border-radius: 20px;
   overflow: hidden;
   background: var(--white);
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
   transition: var(--transition-smooth);
   cursor: pointer;
}

.facility-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-img-wrapper {
   height: 250px;
   overflow: hidden;
}

.card-img-wrapper img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.8s ease;
}

.facility-card:hover .card-img-wrapper img {
   transform: scale(1.1);
}

.card-img-link {
   display: block;
   width: 100%;
   height: 100%;
   cursor: pointer;
}

.card-content {
   padding: 30px;
   position: relative;
   z-index: 5;
   background: var(--white);
}

.card-badge {
   position: absolute;
   top: -15px;
   right: 30px;
   background: var(--accent-blue);
   color: var(--white);
   padding: 8px 16px;
   border-radius: 50px;
   font-size: 0.8rem;
   font-weight: 700;
   box-shadow: 0 5px 15px rgba(42, 74, 178, 0.4);
}

.card-title {
   font-size: 1.8rem;
   font-weight: 700;
   color: var(--primary-navy);
   margin-bottom: 10px;
}

.card-text {
   color: var(--text-gray);
   margin-bottom: 20px;
   font-size: 1rem;
}

.card-link {
   color: var(--accent-blue);
   font-weight: 700;
   display: inline-flex;
   align-items: center;
   gap: 8px;
}

.card-link:hover {
   gap: 12px;
}

/* --- SERVICES (Glass Cards) --- */
.services-section {
   padding: 100px 0;
   background: #f8fcfd;
   position: relative;
   overflow: hidden;
}

.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 40px;
}

.service-item {
   background: rgba(255, 255, 255, 0.6);
   backdrop-filter: blur(20px);
   border: 1px solid rgba(255, 255, 255, 0.8);
   padding: 40px;
   border-radius: 20px;
   text-align: center;
   transition: var(--transition-fast);
}

.service-item:hover {
   background: var(--white);
   box-shadow: 0 15px 40px rgba(1, 37, 87, 0.08);
}

.service-icon {
   font-size: 3rem;
   margin-bottom: 20px;
   display: inline-block;
   padding: 15px;
   background: rgba(42, 74, 178, 0.1);
   border-radius: 50%;
   color: var(--accent-blue);
}

.service-title {
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--primary-navy);
   margin-bottom: 15px;
}

/* --- FOOTER --- */
.main-footer {
   background: var(--primary-navy);
   color: var(--white);
   padding: 20px 0 10px;
}

.footer-top {
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 40px;
   margin-bottom: 10px;
}

.footer-col h3 {
   font-size: 1.2rem;
   margin-bottom: 15px;
   color: var(--accent-cyan);
}

.footer-links li {
   margin-bottom: 8px;
}

.footer-links a {
   color: #a4b5cf;
   font-weight: 500;
}

.footer-links a:hover {
   color: var(--white);
   padding-left: 5px;
}

.footer-bottom {
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   padding-top: 15px;
   text-align: center;
   color: #a4b5cf;
   font-size: 0.9rem;
}

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

section[id] {
   scroll-margin-top: 100px;
}

/* --- MODALS --- */
.modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.6);
   backdrop-filter: blur(8px);
   -webkit-backdrop-filter: blur(8px);
   z-index: 2000;
   display: flex;
   justify-content: center;
   align-items: center;
   opacity: 0;
   visibility: hidden;
   transition: all 0.4s ease;
}

.modal-overlay.active {
   opacity: 1;
   visibility: visible;
}

.modal-content {
   background: rgba(255, 255, 255, 0.95);
   width: 90%;
   max-width: 900px;
   max-height: 90vh;
   border-radius: 20px;
   overflow-y: auto;
   position: relative;
   transform: translateY(30px) scale(0.95);
   transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
   display: flex;
   flex-direction: column;
   box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
   border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-overlay.active .modal-content {
   transform: translateY(0) scale(1);
}

.close-modal {
   position: absolute;
   top: 20px;
   right: 25px;
   font-size: 2.5rem;
   color: var(--primary-navy);
   cursor: pointer;
   z-index: 10;
   line-height: 0.8;
   transition: var(--transition-fast);
}

.close-modal:hover {
   color: var(--accent-blue);
   transform: rotate(90deg);
}

.modal-body {
   display: flex;
   flex-wrap: wrap;
   height: 100%;
}

.modal-image-wrapper {
   flex: 1 1 400px;
   min-height: 300px;
   position: relative;
   overflow: hidden;
}

.modal-image-wrapper img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
}

.modal-info {
   flex: 1 1 400px;
   padding: 40px;
   display: flex;
   flex-direction: column;
}

.modal-subtitle {
   color: var(--accent-blue);
   font-weight: 700;
   text-transform: uppercase;
   font-size: 0.9rem;
   letter-spacing: 2px;
   margin-bottom: 15px;
   display: block;
}

.modal-title {
   font-size: 2.5rem;
   color: var(--primary-navy);
   margin-bottom: 20px;
   font-weight: 800;
   line-height: 1.1;
}

.modal-description {
   color: var(--text-gray);
   margin-bottom: 30px;
   line-height: 1.8;
   font-size: 1.05rem;
}

.modal-address {
   font-size: 1.1rem;
   color: var(--primary-navy);
   margin-bottom: 25px;
   padding-bottom: 15px;
   border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-specs {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
   gap: 15px;
   margin-bottom: 25px;
}

.spec-item {
   background: #f8f9fa;
   padding: 12px;
   border-radius: 8px;
   border-left: 3px solid var(--accent-blue);
}

.spec-label {
   display: block;
   font-size: 0.75rem;
   text-transform: uppercase;
   color: var(--text-gray);
   font-weight: 700;
   margin-bottom: 5px;
   letter-spacing: 1px;
}

.spec-value {
   display: block;
   font-size: 0.95rem;
   color: var(--primary-navy);
   font-weight: 600;
   line-height: 1.4;
}

.modal-map-container {
   margin-top: auto;
   width: 100%;
   height: 300px;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-map-container iframe {
   width: 100%;
   height: 100%;
   border: 0;
}

/* Responsiveness for Modal */
@media (max-width: 768px) {
   .modal-body {
      flex-direction: column;
   }

   .modal-image-wrapper {
      flex: 0 0 200px;
      min-height: 200px;
   }

   .modal-info {
      padding: 25px;
   }

   .modal-title {
      font-size: 1.8rem;
   }
}

/* --- HISTORY TIMELINE --- */
.history-section-wrapper {
   margin-top: 10px;
}

.history-timeline {
   position: relative;
   max-width: 800px;
   margin: 10px auto 0;
   padding: 5px 0;
}

.history-timeline::before {
   content: '';
   position: absolute;
   top: 0;
   bottom: 0;
   left: 50%;
   width: 2px;
   background: var(--accent-blue);
   transform: translateX(-50%);
   opacity: 0.3;
}

.timeline-item {
   position: relative;
   margin-bottom: 10px;
   width: 50%;
   padding: 0 40px;
}

.timeline-item:nth-child(odd) {
   left: 0;
   text-align: right;
}

.timeline-item:nth-child(even) {
   left: 50%;
   text-align: left;
}

.timeline-dot {
   position: absolute;
   top: 6px;
   width: 16px;
   height: 16px;
   background: var(--primary-navy);
   border: 3px solid var(--white);
   border-radius: 50%;
   box-shadow: 0 0 0 3px var(--accent-blue);
   z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
   right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
   left: -8px;
}

.timeline-date {
   font-weight: 800;
   font-size: 1.1rem;
   color: var(--accent-cyan);
   margin-bottom: 5px;
   display: block;
}

.timeline-content h3 {
   font-size: 1.1rem;
   font-weight: 700;
   color: var(--primary-navy);
   margin: 0;
}

.timeline-content p {
   font-size: 0.95rem;
   color: var(--text-gray);
   margin-top: 5px;
}

@media (max-width: 768px) {
   .history-timeline::before {
      left: 20px;
   }

   .timeline-item {
      width: 100%;
      padding-left: 50px;
      padding-right: 0;
      text-align: left !important;
   }

   .timeline-item:nth-child(even) {
      left: 0;
   }

   .timeline-item:nth-child(odd) .timeline-dot,
   .timeline-item:nth-child(even) .timeline-dot {
      left: 12px;
      right: auto;
   }

   /* Map Link Shortcut - Refined V5 */
   /* Map Link Shortcut - Refined V7 */
   .map-link {
      display: block;
      margin-left: 0;
      margin-top: 4px;
      color: #007bff !important;
      /* Brighter blue */
      font-size: 0.75rem !important;
      text-decoration: underline !important;
      font-weight: 600;
      vertical-align: middle;
      opacity: 0.9;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border: none;
      background: none;
      padding: 0;
      line-height: normal;
   }

   .map-link:hover {
      color: var(--primary-navy) !important;
      opacity: 1;
      text-decoration: none !important;
   }

   /* --- LOGO --- */
   .logo-img {
      height: 50px;
      width: auto;
      display: block;
   }