/* Main Header Styles */

.main-header {
    background: #000;
    border-bottom: 3px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-top {
    background: #000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.header-brand {
    display: flex;
    align-items: center;
    margin-right: 40px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.9;
}

.logo-image {
    height: 50px;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #e01b1b, #9e0e0e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 45px;
    align-items: center;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: #e01b1b;
    border-bottom-color: #e01b1b;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 200px;
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 16px;
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background: #2a2a2a;
    color: #e01b1b;
    padding-left: 20px;
}

.dropdown-link.active {
    background: #0a0a0a;
    color: #e01b1b;
}

.dropdown-menu li:first-child .dropdown-link {
    border-radius: 3px 3px 0 0;
}

.dropdown-menu li:last-child .dropdown-link {
    border-radius: 0 0 3px 3px;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-header {
    padding: 10px 25px;
    border: 2px solid #e01b1b;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
}

.btn-header-primary {
    background: #e01b1b;
    color: #fff;
}

.btn-header-primary:hover {
    background: #ff2e2e;
    border-color: #ff2e2e;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive */
@media (max-width: 1024px) {
    .header-container {
        height: 80px;
        padding: 0 15px;
    }

    .main-nav {
        gap: 25px;
    }

    .logo-text {
        font-size: 28px;
    }

    .logo-image {
        height: 45px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-container {
        height: 70px;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #000;
        border-top: 3px solid #1a1a1a;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.25s ease;
        z-index: 999;
    }

    .main-nav.active {
        max-height: 80vh;
        border-bottom: 3px solid #1a1a1a;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #1a1a1a;
        padding: 12px 0;
    }

    .nav-link {
        font-size: 14px;
        padding: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #0a0a0a;
        margin: 10px 0 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item.has-dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .header-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #0a0a0a;
        padding: 15px 20px;
        border-top: 1px solid #1a1a1a;
        display: none;
    }

    .main-nav.active + .header-actions {
        display: flex;
    }

    .btn-header {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 24px;
    }

    .logo-image {
        height: 38px;
        max-width: 150px;
    }

    .nav-link {
        font-size: 13px;
    }
}
