/* Custom Styles for Garuda Exports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

/* Smooth hover transitions */
.transition-smooth {
    transition: all 0.3s ease-in-out;
}

/* Custom shadow for cards */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Stats number styling */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Hero overlay gradient */
.hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

/* Button hover effect */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #23b249;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a8a38;
}

/* Mobile menu animation */
.mobile-menu-open {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product image zoom effect */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* ========== FLOATING BUTTONS STYLES ========== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-call {
    background-color: #0077b5;
}

@media (max-width: 768px) {
    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    .floating-buttons {
        bottom: 20px;
        right: 15px;
        gap: 12px;
    }
}

/* ========== MEGA MENU STYLES (BORDER, LIMITED WIDTH) ========== */
.mega-dropdown {
    position: relative;
}

.mega-dropdown > a {
    display: inline-flex;
    align-items: center;
}

.mega-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    max-width: 90vw;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.02);
    z-index: 1000;
    padding: 20px;
    border-radius: 12px;
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    background: white;
}

/* Keep dropdown open when hovering over Products link OR the dropdown content */
.mega-dropdown:hover .mega-dropdown-content,
.mega-dropdown-content:hover {
    display: block;
}

/* Small invisible bridge to prevent dropdown closing when moving diagonally */
.mega-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mega-grid a {
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    display: block;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.mega-grid a:hover {
    background-color: #23b249;
    color: white;
    transform: translateY(-2px);
    border-color: #23b249;
}

@media (max-width: 768px) {
    .mega-dropdown-content {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 12px;
    }
    .mega-grid {
        grid-template-columns: 1fr;
    }
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.mobile-menu-open {
    max-height: 600px;
}

#mobile-menu:not(.hidden) {
    display: block;
}

/* Mobile menu container - allow scrolling if needed */
#mobile-menu {
    max-height: 80vh;
    overflow-y: auto;
    position: absolute;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Products submenu scrollable */
#mobile-products-submenu {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar inside submenu */
#mobile-products-submenu::-webkit-scrollbar {
    width: 4px;
}
#mobile-products-submenu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
#mobile-products-submenu::-webkit-scrollbar-thumb {
    background: #23b249;
    border-radius: 4px;
}