@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #0170B9;
    --primary-light: #0185db;
    --primary-dark: #005a96;
    --accent-color: #f8fbff;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --bg-light: #ffffff;
    --bg-gray: #f7fafc;

    /* Glassmorphism variables */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(1, 112, 185, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

/* Custom Primary Overrides for Bootstrap */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 112, 185, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 112, 185, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Glassmorphism Navbar */
.glass-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.glass-navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: var(--glass-shadow);
}

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

.glass-navbar.scrolled .navbar-brand img {
    height: 60px;
}

/* Top Bar Styles */
.header-wrapper.scrolled .topbar {
    height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
}

.topbar-social {
    transition: all 0.3s ease;
    display: inline-block;
}

.topbar-social:hover {
    color: white !important;
    opacity: 1 !important;
    transform: scale(1.15) translateY(-2px);
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-pills .nav-link.active {
    color: #ffffff !important;
}

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

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

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    background: var(--primary-color);
    overflow: hidden;
    isolation: isolate;
}

.hero-shape {
    position: absolute;
    right: -10%;
    top: -10%;
    width: 50%;
    height: 120%;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

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

/* Hero Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Default dark overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(1, 112, 185, 0.8));
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Services Cards (Glassmorphism) */
.glass-card {
    background: var(--bg-light);
    border: 1px solid rgba(1, 112, 185, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 112, 185, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(1, 112, 185, 0.15);
    border-color: rgba(1, 112, 185, 0.3);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.glass-card:hover .card-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

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

/* Sub-service tabs/list */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 1rem 1rem 1rem 3.2rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    display: block;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-list li i {
    color: var(--primary-color);
    position: absolute;
    left: 1.2rem;
    top: 1.15rem;
    font-size: 1.2rem;
}

.service-list li:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.service-list li:hover i {
    color: white;
}

/* FAQ Accordion */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.accordion-button {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

/* Footer */
.main-footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
}

.main-footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-section {
        padding: 150px 0 80px;
    }

    .glass-navbar {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 70px 0;
    }
}

/* =========================================
   MEGAMENU STYLES
   ========================================= */
@media all and (min-width: 992px) {
    .navbar .has-megamenu {
        position: static !important;
    }

    .navbar .megamenu {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100%;
        max-width: 900px;
        margin-top: 0;
        padding: 2rem;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: block;
        /* override bootstrap default */
    }

    .navbar .has-megamenu:hover .megamenu {
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
    }
}

@media (max-width: 991px) {
    .navbar .megamenu {
        padding: 1rem;
        border-radius: 10px;
        border: none;
        background: var(--bg-gray);
    }
}

.megamenu-link {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
    border-radius: 10px;
    margin-bottom: 0.25rem;
}

.megamenu-link:hover {
    color: var(--primary-color);
    background-color: var(--accent-color);
    transform: translateX(5px);
}

.megamenu-link span {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* WhatsApp Share Float */
.whatsapp-share-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-share-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
}