:root {
    --teal-main: #00A896;
    --teal-light: #02C39A;
    --teal-dark: #008779;
    --blue-main: #023E8A;
    --blue-dark: #03045E;
    --blue-light: #0077B6;
    --light-bg: #F8F9FA;
    --dark-bg: #212529;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #333;
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Colors Utilities */
.text-teal { color: var(--teal-main) !important; }
.text-primary-dark { color: var(--blue-dark) !important; }
.bg-teal { background-color: var(--teal-main) !important; }
.bg-primary-dark { background-color: var(--blue-dark) !important; }

/* Buttons */
.btn-primary-custom {
    background-color: var(--teal-main);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--teal-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 168, 150, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--teal-main);
    color: var(--teal-main);
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--teal-main);
    color: #fff;
}

/* Cards */
.card-modern {
    border: none;
    border-radius: 12px;
    transition: all 0.4s ease;
    background: #fff;
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: url('https://images.unsplash.com/photo-1541888081622-15cb3a12cdce?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 4, 94, 0.92) 0%, rgba(0, 168, 150, 0.75) 100%);
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.text-shadow-sm {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

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

/* Footer */
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover {
    color: var(--teal-light);
    padding-left: 5px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.social-icon:hover {
    background: var(--teal-main);
    color: #fff;
    transform: translateY(-3px);
}

/* Swiper Customize */
.swiper-pagination-bullet-active {
    background: var(--teal-main) !important;
}

/* Custom Image Wrapper */
.img-wrapper {
    overflow: hidden;
    position: relative;
}
.img-wrapper img {
    transition: transform 0.5s ease;
}
.card-modern:hover .img-wrapper img {
    transform: scale(1.08);
}

/* Responsive Google Maps */
.map-responsive {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 450px;
}
@media (max-width: 768px) {
    .map-responsive {
        height: 300px;
    }
}
.map-responsive iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    color: #fff;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .bi-whatsapp {
    line-height: 1;
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.7;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Modern Label/Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #fff;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}

/* Dropdown Hover Effect for Desktop */
@media all and (min-width: 992px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* -------------------------------------
   Modern Navbar Styling
-------------------------------------- */
.navbar-modern {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin: 15px auto;
    width: 95%;
    max-width: 1320px;
    border-radius: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* 3D Block Effect */
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08), 
        0 4px 10px rgba(0, 0, 0, 0.04), 
        inset 0 -4px 0 rgba(0, 0, 0, 0.04),
        inset 0 2px 0 rgba(255, 255, 255, 0.8) !important;
}

.navbar-modern.scrolled {
    padding-top: 8px;
    padding-bottom: 8px;
    top: 10px;
    background: rgba(255, 255, 255, 0.98) !important;
    /* 3D Block Effect Hover/Scrolled */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.12), 
        0 5px 15px rgba(0, 0, 0, 0.05), 
        inset 0 -3px 0 rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.navbar-modern .navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.navbar-modern .nav-link {
    color: #495057 !important;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

/* Hover Sliding Underline */
.navbar-modern .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--teal-main);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.navbar-modern .nav-link:hover {
    color: var(--teal-main) !important;
}

.navbar-modern .nav-link:hover::after,
.navbar-modern .nav-link.active::after {
    width: 60%;
}

.navbar-modern .nav-link.active {
    color: var(--teal-main) !important;
}

/* Dropdown Menu Refinements */
.navbar-modern .dropdown-menu {
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.3s ease forwards;
    border: 1px solid rgba(0,0,0,0.05);
}

.navbar-modern .dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

.navbar-modern .dropdown-item:hover,
.navbar-modern .dropdown-item.active {
    background-color: var(--teal-50) !important;
    color: var(--teal-main) !important;
    padding-left: 25px; /* Subtle slide right on hover */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------
   Dark Mode Overrides
-------------------------------------- */
[data-bs-theme="dark"] body {
    background-color: var(--dark-bg);
    color: #f8f9fa;
}

[data-bs-theme="dark"] .navbar-modern {
    background: rgba(33, 37, 41, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3), 
        inset 0 -4px 0 rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .navbar-modern.scrolled {
    background: rgba(33, 37, 41, 0.98) !important;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4), 
        inset 0 -3px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .navbar-modern .nav-link {
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .navbar-modern .nav-link:hover,
[data-bs-theme="dark"] .navbar-modern .nav-link.active {
    color: var(--teal-light) !important;
}

[data-bs-theme="dark"] .navbar-brand {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .card-modern {
    background: #2b3035;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #2b3035;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e9ecef;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--teal-light) !important;
}

[data-bs-theme="dark"] .text-dark {
    color: #f8f9fa !important;
}
