:root {
  --primary-color: #0d284a; /* Dark Blue from Logo */
  --secondary-color: #ffffff; /* White */
  --accent-color: #6c849e; /* Muted blue-grey from Logo */
  --text-color: #212529; /* Black/Dark Grey */
  --bg-light: #f8f9fa;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--secondary-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 700;
}

/* Premium Navbar */
.navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.navbar-brand img {
  max-height: 80px;
  transition: transform 0.3s ease;
}

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

.nav-link {
  color: var(--primary-color) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin: 0 12px;
  padding: 8px 0 !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 40, 74, 0.85); /* Overlay */
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 30px;
}

/* Sections */
.section-padding {
  padding: 80px 0;
}

.section-bg-light {
  background-color: var(--bg-light);
}

.section-title {
  position: relative;
  margin-bottom: 50px;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-outline-light-custom {
  background-color: transparent;
  color: var(--secondary-color);
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  border: 2px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.btn-outline-light-custom:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Cards */
.premium-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.premium-card .card-body {
  padding: 30px;
}

.icon-box {
  width: 60px;
  height: 60px;
  background-color: rgba(13, 40, 74, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Accordion */
.accordion-button:not(.collapsed) {
  color: var(--secondary-color);
  background-color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 40, 74, 0.25);
}

/* Premium Footer */
.premium-footer {
  background: linear-gradient(135deg, #0d284a 0%, #051326 100%);
  border-top: 5px solid var(--accent-color);
  color: var(--secondary-color);
}

.text-accent {
  color: var(--accent-color) !important;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 50%;
  margin-right: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(6px);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.back-to-top {
  transition: all 0.3s ease;
}

.back-to-top:hover {
  color: #fff !important;
  opacity: 1 !important;
}

/* Misc Utilities */
.img-fluid-rounded {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* =========================================
   ULTRA PREMIUM HIGH-END UPGRADES
   ========================================= */

/* 1. Enhanced Cards */
.premium-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(13, 40, 74, 0.05) !important;
    border-top: 4px solid var(--accent-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #ffffff;
}
.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(13, 40, 74, 0.1) !important;
    border-top: 4px solid var(--primary-color);
}
.premium-card .card-title {
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* 2. Enhanced Images */
.img-fluid-rounded {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.4s ease;
}
.img-fluid-rounded:hover {
    transform: scale(1.02);
}

/* 3. Enhanced Accordion */
.accordion-item {
    border: 1px solid rgba(0,0,0,0.03) !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    margin-bottom: 15px !important;
}
.accordion-button {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color) !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease;
}
.accordion-button:not(.collapsed) {
    background-color: var(--bg-light) !important;
    color: var(--primary-color) !important;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
}
.accordion-button::after {
    filter: brightness(0) saturate(100%) invert(14%) sepia(35%) saturate(3025%) hue-rotate(195deg) brightness(97%) contrast(100%);
}
.accordion-body {
    padding: 1.5rem;
    background-color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* 4. Enhanced Tables */
.table-responsive {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(13, 40, 74, 0.05);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}
.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #081a30 100%);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px;
    border: none;
}
.table tbody td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-color);
    transition: background-color 0.3s ease;
}
.table tbody tr:hover td {
    background-color: rgba(108, 132, 158, 0.05); /* Accent color transparent */
}
.table tbody tr:last-child td {
    border-bottom: none;
}

/* 5. Enhanced Headers (Section Titles) */
.section-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}
.section-title::after {
    height: 5px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    width: 80px;
}

/* 6. Enhanced Slider (Hero) */
.hero-section::before {
    background: linear-gradient(135deg, rgba(13, 40, 74, 0.9) 0%, rgba(13, 40, 74, 0.6) 100%);
}
.hero-title {
    font-size: 4rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
    line-height: 1.2;
}
.hero-subtitle {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 1.5rem;
    transition: background-color 0.3s ease;
}
.carousel-control-prev:hover .carousel-control-prev-icon, 
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--primary-color);
}

/* =========================================
   PREMIUM BUTTON UPGRADES
   ========================================= */

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4271 100%) !important;
    color: #ffffff !important;
    padding: 14px 36px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(13, 40, 74, 0.3) !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.btn-primary-custom:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(13, 40, 74, 0.45) !important;
    background: linear-gradient(135deg, #1a4271 0%, var(--primary-color) 100%) !important;
    color: #ffffff !important;
}

.btn-outline-light-custom {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    padding: 12px 34px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    backdrop-filter: blur(4px);
}

.btn-outline-light-custom:hover {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3) !important;
    border-color: #ffffff !important;
}

/* =========================================
   HERO SLIDER FIXED HEIGHT UPGRADE
   ========================================= */

#heroCarousel, .hero-section {
    height: 600px !important;
    min-height: 600px !important;
    padding: 0 !important; /* Remove old padding to allow perfect flex centering */
}

/* =========================================
   ULTRA PREMIUM SLIDER (ANIMATIONS & GLASSMORPHISM)
   ========================================= */

/* Sophisticated side-fading gradient overlay */
.hero-section::before {
    background: linear-gradient(90deg, rgba(13, 40, 74, 0.95) 0%, rgba(13, 40, 74, 0.7) 45%, rgba(13, 40, 74, 0.1) 100%) !important;
    z-index: 1;
}

/* Elegant Text Staggering Animations */
@keyframes fadeUpPremium {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.carousel-item.active span.text-uppercase {
    animation: fadeUpPremium 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s forwards;
    opacity: 0;
}

.carousel-item.active .hero-title {
    animation: fadeUpPremium 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s forwards;
    opacity: 0;
}

.carousel-item.active .hero-subtitle {
    animation: fadeUpPremium 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s forwards;
    opacity: 0;
}

.carousel-item.active .d-flex {
    animation: fadeUpPremium 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.7s forwards;
    opacity: 0;
}

/* Glassmorphism Navigation Arrows */
.carousel-control-prev, .carousel-control-next {
    width: 10%;
    opacity: 0; /* Hidden until hover */
    transition: all 0.5s ease;
}

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

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background-size: 30% !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color);
    transform: scale(1.15);
}

/* Premium Indicators (Bottom Lines) */
.carousel-indicators {
    margin-bottom: 2rem;
    gap: 8px;
}
.carousel-indicators button {
    width: 35px !important;
    height: 4px !important;
    background-color: rgba(255,255,255,0.25) !important;
    border: none !important;
    border-radius: 4px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.carousel-indicators button.active {
    width: 70px !important;
    background-color: var(--accent-color) !important;
    box-shadow: 0 0 15px rgba(108, 132, 158, 0.6);
}

/* =========================================================================
   MOBILE RESPONSIVENESS (SLIDER FIXES)
   ========================================================================= */
@media (max-width: 768px) {
    /* Adjust Slider Headings */
    #heroCarousel .carousel-caption h2.display-3 {
        font-size: 2.2rem !important; /* Scale down massive desktop font */
        margin-bottom: 1rem !important;
        line-height: 1.2;
    }
    
    /* Adjust Slider Subtitles */
    #heroCarousel .carousel-caption p.fs-4 {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Stack and resize buttons in the slider */
    #heroCarousel .carousel-caption .d-flex {
        flex-direction: column !important; /* Stack horizontally adjacent buttons */
        align-items: center;
        gap: 15px !important;
    }
    
    #heroCarousel .carousel-caption .btn-lg {
        width: 100%; /* Make buttons full width for easy tapping */
        max-width: 280px; /* Cap width so it doesn't look absurdly stretched */
        font-size: 1rem !important;
        padding: 12px 20px !important;
    }
}

/* =========================================================================
   MOBILE RESPONSIVENESS (CORRECTED SLIDER CLASSES)
   ========================================================================= */
@media (max-width: 768px) {
    /* Adjust main slider heading */
    .carousel-caption .hero-title,
    #heroCarousel .hero-title {
        font-size: 2rem !important; 
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    
    /* Adjust slider subtitle */
    .carousel-caption .hero-subtitle,
    #heroCarousel .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
        padding: 0 10px;
    }

    /* Stack buttons properly in the slider */
    .carousel-caption .d-flex,
    #heroCarousel .d-flex {
        flex-direction: column !important;
        align-items: center;
        gap: 12px !important;
        width: 100%;
    }
    
    .carousel-caption .btn,
    #heroCarousel .btn {
        width: 100% !important;
        max-width: 250px !important;
        padding: 10px 15px !important;
        font-size: 0.95rem !important;
    }
}
