/* 
    HAJVERI TRADE HUB - CLEAN COMBINED STYLES 
    Target: Bootstrap 5.3+
*/

/* --- 1. GLOBAL SETUP --- */
:root {
    --primary-blue: #0d6efd;
    --dark-blue: #020f2b;
    --light-bg: #f8f9fc;
    --transition-smooth: 0.3s ease;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--light-bg);
    color: #333;
    padding-top: 80px; /* Space for fixed navbar */
    line-height: 1.6;
}

/* --- 2. NAVBAR & NAVIGATION --- */
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(13, 110, 253, 0.98) !important;
    padding: 12px 0;
    transition: var(--transition-smooth);
}

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

/* Regular Dropdown Logic */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 220px;
}

.dropdown-header {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1.2px;
    font-weight: 800;
    color: var(--primary-blue);
    padding: 10px 20px 5px;
}

.dropdown-item {
    font-weight: 500;
    padding: 8px 20px;
    color: #444;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f0f7ff;
    color: var(--primary-blue);
    padding-left: 28px; /* Subtle slide-in effect */
}

/* --- Desktop HOVER DROPDOWN LOGIC --- */
@media (min-width: 992px) {
    /* Show the menu on hover */
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0; /* Prevents a gap that breaks the hover state */
        opacity: 1;
        visibility: visible;
        animation: fadeIn 0.3s ease; /* Using the animation from your earlier code */
    }

    /* Keep the parent link highlighted when hovering the menu */
    .nav-item.dropdown:hover > .nav-link {
        color: #fff !important; /* Adjust based on your theme */
    }
    
    /* Remove the default Bootstrap 'click' arrow rotation if desired */
    .dropdown-toggle::after {
        transition: transform 0.2s;
    }
    .nav-item.dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}
/* --- 3. HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--dark-blue), #0d47a1, #1e88e5);
    padding: 120px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(18px, 2vw, 22px);
    opacity: 0.9;
    max-width: 750px;
    margin: 0 auto 35px;
}

.btn-main {
    background: white;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-main:hover {
    background: #f1f1f1;
    transform: translateY(-3px);
    color: var(--dark-blue);
}

/* --- 4. PRODUCT CARDS --- */
.product-card {
    padding: 45px 30px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.product-card .icon {
    font-size: 50px;
    color: var(--primary-blue);
    margin-bottom: 25px;
    display: inline-block;
}

.product-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

/* --- 5. FLOATING ELEMENTS --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1050;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.05) translateY(-5px);
}

/* --- 6. FOOTER --- */
footer {
    background: #111;
    color: rgba(255,255,255,0.6);
    padding: 50px 0;
    border-top: 3px solid var(--primary-blue);
}

/* --- 7. ANIMATIONS --- */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Mobile Tweaks */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-blue);
        margin: 10px -15px;
        padding: 20px;
        border-radius: 10px;
    }
    .dropdown-menu {
        background: rgba(255,255,255,0.1);
        box-shadow: none;
    }
    .dropdown-item {
        color: white;
    }
}