/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =====================
   CSS Variables (Brand Colors extracted from logo)
   =====================
   Primary Gold:   #FFBA00  (GP letters – amber gradient peak)
   Gold Warm:      #FF8F00  (GP letters – gradient base)
   Deep Navy:      #0C2D5E  (Crackers text)
   Navy Dark:      #061A3A  (dark sections)
   ===================== */
:root {
    --gold: #FFBA00;
    --gold-warm: #FF8F00;
    --gold-light: #FFD54F;
    --navy: #0C2D5E;
    --navy-dark: #061A3A;
    --navy-mid: #0a2040;
    --white: #ffffff;
}

/* =====================
   Navbar
   ===================== */

#mainNavbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    padding: 15px 0;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    background: transparent;
    display: flex;
    align-items: center;
    overflow: visible !important;
}

#mainNavbar .container {
    overflow: visible !important;
}

/* Scrolled state */
#mainNavbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

#mainNavbar.navbar-scrolled .navbar-nav .nav-link {
    color: var(--navy-dark) !important;
}

#mainNavbar.navbar-scrolled .navbar-nav .nav-link:hover,
#mainNavbar.navbar-scrolled .navbar-nav .nav-link.nav-active {
    color: var(--gold) !important;
}

/* Logo sizing */
.navbar-brand {
    margin-left: 25px; /* Moved logo slightly right as requested */
    transition: margin 0.3s ease;
}

.nav-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
    display: block;
}

#mainNavbar.navbar-scrolled .nav-logo {
    height: 70px;
}

/* Nav links */
.navbar-nav {
    gap: 5px; /* Spacing between links */
}

@media (min-width: 992px) {
    /* Absolute Centering for Main Links */
    #navbarMenu {
        position: relative;
    }
    
    .navbar-nav.mx-auto {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 8px 18px !important;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.nav-active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link:hover {
    color: var(--gold) !important;
}

.navbar-nav .nav-link.nav-active {
    color: var(--gold) !important;
}

/* Profile Icon Styling */
.nav-profile-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 5px 12px !important;
    overflow: visible !important;
    white-space: nowrap;
}

.nav-profile-link span {
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.nav-profile-link i {
    font-size: 1.6rem !important;
    line-height: 1;
}

.nav-profile-link::after {
    display: none !important;
}

/* Navbar Actions (Always visible icons) */
.navbar-actions {
    display: flex;
    align-items: center;
}

.navbar-actions .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 8px 10px !important;
    transition: all 0.3s ease;
}

#mainNavbar.navbar-scrolled .navbar-actions .nav-link {
    color: var(--navy-dark) !important;
}

.navbar-actions .nav-link:hover {
    color: var(--gold) !important;
}

@media (max-width: 991px) {
    #mainNavbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .navbar-actions {
        order: 2;
        margin: 0 !important; /* Remove ms-auto */
        flex: 1;
        justify-content: center;
        gap: 15px !important;
    }
    
    .navbar-toggler {
        order: 3;
        margin-left: 0 !important;
    }
    
    .navbar-brand {
        order: 1;
        margin-right: 0 !important;
        flex: 0 0 auto;
    }

    .navbar-actions .nav-link {
        padding: 5px 8px !important;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .navbar-actions .bi {
        line-height: 1;
        display: block;
    }

    /* Fixed: Force dropdown to float on mobile instead of expanding navbar */
    #nav-user-item .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(10px) !important;
        background: white !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
        border: 1px solid rgba(0,0,0,0.08) !important;
        display: none; /* Let BS handle show/hide */
        min-width: 140px !important; /* Fixed width for consistency */
        padding: 8px !important;
        text-align: center !important;
    }

    #nav-user-item .dropdown-menu.show {
        display: block !important;
    }

    #nav-user-item .dropdown-item {
        padding: 10px 15px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
        display: block !important; /* Revert to block */
        color: var(--navy-dark) !important;
    }
}

/* User Dropdown Styling */
#nav-user-item .dropdown-menu {
    border-radius: 10px;
    padding: 5px;
    min-width: 140px;
    margin-top: 12px;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

#nav-user-item .dropdown-item, 
#nav-user-item .dropdown-item i {
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-dark) !important; /* Force dark text and icons on white bg */
}

#nav-user-item .dropdown-item:hover,
#nav-user-item .dropdown-item:hover i {
    background-color: rgba(255, 186, 0, 0.1) !important;
    color: var(--navy-dark) !important;
}

#nav-user-item .dropdown-item.text-danger,
#nav-user-item .dropdown-item.text-danger i {
    color: #dc3545 !important;
}

#nav-user-item .dropdown-item.text-danger:hover,
#nav-user-item .dropdown-item.text-danger:hover i {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

#nav-user-item .dropdown-header {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Custom Hamburger */
.custom-toggler {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.custom-toggler:focus {
    outline: none;
    box-shadow: none;
}

.toggler-icon {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--gold);
    border-radius: 4px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-toggler {
    transition: background-color 0.3s ease, border-radius 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

/* Active feedback: "Color while clicking" */
.custom-toggler:active {
    background-color: rgba(255, 186, 0, 0.1);
    transform: scale(0.9);
}

/* Contrast adjustment for scrolled state */
.navbar-scrolled .toggler-icon {
    background: var(--navy-dark);
    box-shadow: 0 0 2px rgba(255, 186, 0, 0.4);
}


/* =====================
   Banner Section
   ===================== */
.banner-img {
    height: 100vh;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(6, 26, 58, 0.8), rgba(6, 26, 58, 0.3));
    z-index: 1;
}

.header-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: initial;
    left: 8%;
    right: 8%;
    text-align: left;
    z-index: 2;
}

.banner-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out backwards;
}

.banner-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    max-width: 600px;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.banner-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-warm)) !important;
    border: none;
    color: var(--navy-dark) !important;
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 186, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 186, 0, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness for Banner */
@media (max-width: 768px) {
    .header-caption {
        text-align: center;
        left: 5%;
        right: 5%;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .banner-overlay {
        background: linear-gradient(to top, rgba(6, 26, 58, 0.8), rgba(6, 26, 58, 0.3));
    }
}

/* =====================
   Why Choose Section
   ===================== */

.why-section {
    background: #f8f9fa;
}

.why-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #043668;
}

.why-subtitle {
    color: #666;
}

.why-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 10px;
    transition: 0.3s;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.why-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #ffba00;
}

.why-card h5 {
    color: #043668;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.why-card p {
    font-size: 14px;
    color: #555;
}

/* =====================
   Customer Talks Section
   ===================== */

.customer-talks {
    background-color: #f8f9fa !important;
    font-family: 'Poppins', sans-serif;
}

.title-underline {
    position: relative;
    width: 40px;
    height: 3px;
    background-color: #e63946;
    margin: 10px auto 0;
}

.title-underline::before,
.title-underline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    /* Light black / grayish line */
    transform: translateY(-50%);
}

.title-underline::before {
    right: 100%;
}

.title-underline::after {
    left: 100%;
}

.customer-talks .customer-card {
    max-width: 800px;
    padding: 0 20px;
}

.customer-talks .avatar-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 5px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* very soft shadow */
}

.customer-talks .customer-avatar {
    width: 100%;
    height: 100%;
    background-color: #d1d5db;
    /* Gray solid background */
    overflow: hidden;
}

.customer-talks .customer-name {
    color: #222;
    font-size: 18px;
    letter-spacing: -0.3px;
}

.customer-talks .customer-location {
    font-size: 13px;
    color: #888 !important;
}

.customer-talks .rating .bi-star-fill,
.customer-talks .rating .bi-star-half {
    color: #ffba00;
}

.customer-talks .quote-icon {
    font-family: serif;
    font-size: 60px;
    color: #d1e8ff;
    position: absolute;
    line-height: 1;
}

.customer-talks .quote-left {
    top: -15px;
    left: 0;
}

.customer-talks .quote-right {
    bottom: -45px;
    right: 0;
}

.customer-talks .quote-text {
    font-size: 15px;
    line-height: 1.8;
    color: #666 !important;
}

/* Indicators (Circle preview) */
.customer-talks .custom-indicators {
    bottom: -50px;
}

.customer-talks .custom-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0 6px;
    transition: 0.3s;
}

.customer-talks .custom-indicators .active {
    background-color: #e63946;
    transform: scale(1.3);
}

/* Custom Hamburger Animation */
.custom-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}

.custom-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}




/* =====================
   WhatsApp Floating Button
   ===================== */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 10px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(255, 186, 0, 0.7);
    animation: whatsappPulse 2s infinite;
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 186, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 186, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 186, 0, 0);
    }
}

/* =====================
   Footer
   ===================== */

.site-footer {
    background: #201f1f;
    color: #ccc;
    padding: 40px 0 20px;
    font-family: 'Poppins', sans-serif;
}

.site-footer h5 {
    color: #ffba00;
    font-weight: 600;
    margin-bottom: 15px;
}

.site-footer p,
.site-footer a,
.site-footer span {
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
}

.social-links .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links .social-icon:hover {
    background: var(--gold);
    color: #111 !important;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(255, 186, 0, 0.3);
}

.contact-item {
    font-size: 14px;
    margin-bottom: 12px;
}

.contact-item i {
    color: var(--gold);
    font-size: 16px;
}

.site-footer a:hover {
    color: #ffba00;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 20px 0 15px;
}

.footer-bottom {
    font-size: 13px;
    color: #aaa;
    text-align: center;
}