/* General Styles */
body {
    background-color: white;
    font-family: Arial, sans-serif;
    color: #000;
    position: relative;
    transition: background-color 0.3s ease-in-out;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content wrapper */
.main-content {
    flex: 1 0 auto;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation Container */
.navbar-container {
    background-color: white;
    position: relative;
    width: 100%;
    z-index: 100;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar Styling */
.navbar {
    padding: 15px 0;
    background-color: white;
    position: relative;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.navbar-brand {
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    max-width: 250px;
    height: auto;
}

/* Right-aligned items container */
.nav-right-items {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* Grid Icon */
.grid-icon-btn {
    display: flex;
    align-items: center;
    padding: 0;
}

.grid-icon-btn img {
    height: 32px;
    width: auto;
}

/* Mobile Navigation */
.navbar-collapse {
    z-index: 1050;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        background-color: white;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        padding: 60px 20px 20px;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    .navbar-nav {
        margin-top: 20px;
    }

    .navbar-nav .nav-item {
        margin: 10px 0;
    }

    .navbar-nav .nav-link {
        display: flex;
        align-items: center;
        padding: 10px 15px;
        color: #000;
    }

    .nav-icon {
        width: 25px;
        height: 24px;
        object-fit: contain;
        margin-right: 10px;
    }
}

/* Desktop Navigation */
@media (min-width: 992px) {
    .navbar-collapse {
        position: static;
        display: flex;
        justify-content: flex-end;
        width: auto;
        margin-right: 15px;
        transform: none;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
    }

    .navbar-nav {
        flex-direction: row;
        margin: 0;
        padding: 0;
    }

    .navbar-nav .nav-item {
        margin: 0 15px;
    }

    .navbar-nav .nav-link {
        padding: 8px 15px;
        color: #000;
        display: flex;
        align-items: center;
    }

    .close-nav-btn,
    .nav-icon {
        display: none;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        margin-right: 15px;
        gap: 20px;
    }

    .desktop-nav .nav-link {
        padding: 8px 15px;
        color: #000;
    }
}

/* COMPLETE HAMBURGER MENU STYLING */

/* Base hamburger styling - remove all Bootstrap defaults */
.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible,
.navbar-toggler:hover,
.navbar-toggler:not(:disabled):not(.disabled):active,
.navbar-light .navbar-toggler {
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 8px !important;
    position: relative !important;
}

/* Reset hamburger icon completely */
.navbar-toggler .navbar-toggler-icon,
.navbar-toggler-icon,
.navbar-light .navbar-toggler-icon {
    background-image: none !important;
    background-color: transparent !important;
    width: 24px !important;
    height: 18px !important;
    position: relative !important;
    display: block !important;
    border: none !important;
}

/* MOBILE HAMBURGER - Show green lines on small screens */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
    }

    .navbar-toggler-icon {
        background-color: #28a745 !important;
        height: 3px !important;
        width: 24px !important;
        position: relative !important;
        top: 0 !important;
        border-radius: 0 !important;
    }

    .navbar-toggler-icon::before {
        content: '' !important;
        position: absolute !important;
        top: -8px !important;
        left: 0 !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #28a745 !important;
        display: block !important;
        border-radius: 0 !important;
    }

    .navbar-toggler-icon::after {
        content: '' !important;
        position: absolute !important;
        bottom: -8px !important;
        left: 0 !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #28a745 !important;
        display: block !important;
        border-radius: 0 !important;
    }

    /* Override any Bootstrap interference */
    button.navbar-toggler span.navbar-toggler-icon {
        background-image: none !important;
        background-color: #28a745 !important;
        height: 3px !important;
        width: 24px !important;
    }

    button.navbar-toggler span.navbar-toggler-icon::before {
        content: '' !important;
        position: absolute !important;
        top: -8px !important;
        left: 0 !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #28a745 !important;
        display: block !important;
    }

    button.navbar-toggler span.navbar-toggler-icon::after {
        content: '' !important;
        position: absolute !important;
        bottom: -8px !important;
        left: 0 !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #28a745 !important;
        display: block !important;
    }
}

/* DESKTOP - Hide hamburger on large screens */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Show desktop navigation on large screens */
.desktop-nav {
    display: none;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex !important;
    }
    
    .desktop-nav.d-none.d-lg-flex {
        display: flex !important;
    }
}

/* Additional Bootstrap overrides */
.navbar-light .navbar-toggler {
    border-color: transparent !important;
}

.navbar-light .navbar-toggler-icon {
    background-image: none !important;
}

/* Preloader */
#preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

#preloader img {
    width: 150px;
    max-width: 80%;
    max-height: 80%;
    height: auto;
}

/* Hero Section */
.hero-section {
    padding: 0;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    max-width: 300px;
    height: auto;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
        min-height: 180px;
    }

    .hero-img {
        max-width: 250px;
    }
}

/* Video Section */
.video-player {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 8px;
    max-height: 180px;
    object-fit: cover;
}

.play-pause-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.play-pause-button img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
}

/* Counter Section */
#counter-section {
    padding: 40px 0;
    text-align: center;
    background-color: #f8f9fa;
    cursor: pointer;
}

.odometer {
    display: inline-block;
    font-size: 3rem;
    font-weight: bold;
    color: blue;
    transition: color 0.3s ease;
}

#counter-section:hover .odometer {
    color: red;
}

/* Grid Section Styles */
.d-grid {
    display: grid;
    grid-gap: 20px;
}

.d-grid .p-3 {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.d-grid .p-3:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.d-grid .p-3 img {
    max-width: none !important;
    max-height: none !important;
    width: 220px !important;
    height: auto !important;
    object-fit: 220px !important;
    transform: none !important;
}

.d-grid .p-3:hover img {
    transform: none !important;
}

.d-grid .p-3 a {
    display: inline-block;
    width: auto;
    height: auto;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ticker */
.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    padding: 15px 0;
    position: relative;
    background: White;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.ticker {
    display: flex;
    gap: 40px;
    animation: ticker-scroll 25s linear infinite;
    will-change: transform;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker img {
    width: 80px;
    height: 40px;
    object-fit: contain;
}

.ticker > a {
    padding: 0 30px;
    flex-shrink: 0;
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

#scroll-to-top img {
    width: 50px;
    height: 50px;
}

/* Footer Styles */
footer {
    flex-shrink: 0;
    padding: 20px 0;
    background-color: #212529;
    color: white;
}

.social-icons {
    margin-bottom: 15px;
}

.social-icons a {
    margin: 0 10px;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: #007bff;
}

/* Contact Container Styling */
.contact-container {
    background-color: #f0f0f0;
    padding: 40px 0;
    margin-bottom: 40px;
}

.contact-card {
    background-color: white;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.contact-title {
    font-weight: bold;
    color: red;
}

.contact-phone {
    font-weight: bold;
    color: red;
    font-size: 1.5rem;
}

/* App Section Styling */
.app-section {
    text-align: center;
    padding: 40px 0;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.store-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.app-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.app-item {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    max-width: 250px;
}

.app-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.app-item img {
    max-width: 120px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.app-item:hover img {
    transform: scale(1.1);
}

/* TESTIMONIAL STYLING - COMPLETE FIX */

/* Testimonial Avatar Container */
.testimonial-avatar {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    border: 4px solid white !important;
    margin: 0 auto 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 32px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Testimonial Image - Perfect Circular Fit */
.testimonial-image {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fallback Initials */
.testimonial-initials {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
    font-size: 32px !important;
    font-weight: bold !important;
    color: white !important;
    display: none !important;
}

/* Show initials when image fails */
.testimonial-avatar .testimonial-image[style*="display: none"] + .testimonial-initials {
    display: block !important;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    padding: 8px 0;
    margin-top: 4px;
    z-index: 1000;
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    clear: both;
    font-weight: 400;
    color: #333;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: background-color 0.15s ease-in-out;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #16181b;
    background-color: #f8f9fa;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section img {
        max-height: 100px;
    }
    
    .d-grid .p-3 img {
        max-width: 150px;
        max-height: 120px;
    }
    
    .play-pause-button img {
        width: 50px;
        height: 50px;
    }

    /* Mobile dropdown adjustments */
    .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: #f8f9fa;
        border: none;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .dropdown-item {
        padding: 10px 15px;
        color: #000;
    }
    
    .dropdown-item:hover {
        background-color: #e9ecef;
    }
}

@media (max-width: 768px) {
    .hero-section .d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-section .p-2 {
        margin-bottom: 15px;
    }
    
    .play-pause-button img {
        width: 40px;
        height: 40px;
    }
    
    .ticker img {
        width: 60px;
        height: 30px;
    }
    
    #scroll-to-top {
        bottom: 10px;
        right: 10px;
    }
    
    #scroll-to-top img {
        width: 40px;
        height: 40px;
    }
    
    .d-grid {
        grid-gap: 15px;
    }
    
    .d-grid .p-3 {
        padding: 15px;
    }

    .app-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .app-item {
        max-width: 90%;
    }
}

/* Desktop dropdown positioning */
@media (min-width: 992px) {
    .nav-item.dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
}