/*==============================================================================
* Modern Navbar Styling for Tank Oiling Storage Company
* Author: Professional Web Developer
* Version: 1.0
===============================================================================*/

/* Main Navigation Styles */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header.sticky {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo h1 {
    margin-bottom: 0;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: var(--space-sm);
    position: relative;
    transition: color 0.3s ease;
    margin-top: -2%;
}

.logo h1::after {
    content: 'B.V';
    position: absolute;
    bottom: -3px;
    right: -20px;
    font-size: 0.6rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Nav List Styling */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.nav-item {
    margin: 0 0.15rem;
    position: relative;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;

    color: var(--medium-dark);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    position: relative;
    display: block;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(20, 78, 140, 0.05);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(20, 78, 140, 0.08);
}

/* Modern Bottom Border Animation */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.nav-link:hover::before, 
.nav-link.active::before {
    width: 70%;
    opacity: 1;
}

/* Dropdown Styling */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.6rem 0;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: var(--white);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.04);
}
.dropdown-item {
    display: block;
    padding: 0.7rem 1.7rem; /* ← Increase padding here (before: 1.2rem) */
    align-items: center;
    color: var(--medium-dark);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-item:hover {
    background-color: rgba(20, 78, 140, 0.05);
    color: var(--primary-color);
  
}


.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0.7rem;
    top: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    /* transition: all 0.3s ease; */
    transform: translateY(-50%);
    opacity: 0;
}

.dropdown-item:hover::before {
    width: 5px;
    opacity: 1;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1100;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.hamburger-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 5px;
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
    left: 0;
}

.hamburger-line:nth-child(3) {
    bottom: 0;
}

.hamburger:hover .hamburger-line:nth-child(2) {
    width: 100%;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 100%;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 0 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 12px 25px;
        border-radius: 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }
    
    .nav-link::before {
        display: none;
    }
    
    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        min-width: 100%;
        padding: 0;
        transition: max-height 0.3s ease;
        overflow: hidden;
        background-color: rgba(0, 0, 0, 0.02);
    }
    
    .dropdown.active .dropdown-content {
        max-height: 200px;
    }
    
    .dropdown-content::before {
        display: none;
    }
    
    .dropdown-item {
        padding: 10px 35px;
    }
    
    .dropdown-item:hover {
        padding-left: 40px;
    }
}

/* Animation for navbar on scroll */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header.scroll-down {
    animation: slideDown 0.5s ease forwards;
}

/* Navigation call-to-action button */
.nav-cta {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(247, 148, 29, 0.2);
}

.nav-cta:hover {
    background-color: var(--secondary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(247, 148, 29, 0.3);
}
