﻿/* wwwroot/Content/CSS/header.css */

/* ===== HEADER BASE STYLES ===== */
.samco-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    /* Header when scrolled */
    .samco-header.scrolled {
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
        transform: translateY(0);
    }

/* ===== HEADER TOP SECTION ===== */
.header-top {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: 15px 0;
    position: relative;
    overflow: hidden;
}

    .header-top::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #3498db, #2c3e50, #e74c3c, #27ae60, #f39c12, #9b59b6, #1abc9c, #34495e);
        background-size: 800% 100%;
        animation: gradientFlow 10s ease infinite;
    }

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo Area */
.logo-area {
    flex-shrink: 0;
}

.company-logo {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

    .company-logo:hover {
        transform: scale(1.02);
    }

.logo-animation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    position: relative;
    width: 60px;
    height: 60px;
}

.logo-gear {
    animation: rotateGear 20s linear infinite;
}

.gear-outer {
    animation: rotateGearReverse 15s linear infinite;
}

.gear-inner {
    animation: rotateGear 10s linear infinite;
}

@keyframes rotateGear {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateGearReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin: 0;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #3498db, #2c3e50, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: textShine 3s ease-in-out infinite alternate;
}

@keyframes textShine {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

.company-tagline {
    font-size: 12px;
    color: #a0c1e8;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Contact Information */
.contact-info {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

    .contact-item:hover {
        transform: translateY(-2px);
    }

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 18px;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: #3498db;
    color: white;
    transform: rotate(15deg);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: #a0c1e8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.contact-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .contact-value:hover {
        color: #3498db;
    }

/* ===== MAIN NAVIGATION ===== */
.main-nav {
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-item {
    position: relative;
    flex: 1;
    text-align: center;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 10px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .nav-link:hover::before {
        left: 100%;
    }

.nav-icon {
    font-size: 20px;
    transition: all 0.3s ease;
}

.nav-text {
    transition: all 0.3s ease;
}

/* Hover Effects */
.nav-link:hover {
    transform: translateY(-2px);
}

    .nav-link:hover .nav-icon {
        transform: scale(1.2) rotate(10deg);
    }

    .nav-link:hover .nav-text {
        letter-spacing: 0.5px;
    }

/* Individual Color Effects */
.nav-link[data-color="#3498db"]:hover {
    color: #3498db;
    border-bottom-color: #3498db;
    background: linear-gradient(to bottom, rgba(52, 152, 219, 0.1), transparent);
}

.nav-link[data-color="#2c3e50"]:hover {
    color: #2c3e50;
    border-bottom-color: #2c3e50;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.1), transparent);
}

.nav-link[data-color="#e74c3c"]:hover {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
    background: linear-gradient(to bottom, rgba(231, 76, 60, 0.1), transparent);
}

.nav-link[data-color="#27ae60"]:hover {
    color: #27ae60;
    border-bottom-color: #27ae60;
    background: linear-gradient(to bottom, rgba(39, 174, 96, 0.1), transparent);
}

.nav-link[data-color="#f39c12"]:hover {
    color: #f39c12;
    border-bottom-color: #f39c12;
    background: linear-gradient(to bottom, rgba(243, 156, 18, 0.1), transparent);
}

.nav-link[data-color="#9b59b6"]:hover {
    color: #9b59b6;
    border-bottom-color: #9b59b6;
    background: linear-gradient(to bottom, rgba(155, 89, 182, 0.1), transparent);
}

.nav-link[data-color="#1abc9c"]:hover {
    color: #1abc9c;
    border-bottom-color: #1abc9c;
    background: linear-gradient(to bottom, rgba(26, 188, 156, 0.1), transparent);
}

.nav-link[data-color="#34495e"]:hover {
    color: #34495e;
    border-bottom-color: #34495e;
    background: linear-gradient(to bottom, rgba(52, 73, 94, 0.1), transparent);
}

.nav-link[data-color="#d35400"]:hover {
    color: #d35400;
    border-bottom-color: #d35400;
    background: linear-gradient(to bottom, rgba(211, 84, 0, 0.1), transparent);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 10px 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .dropdown-item::before {
        content: '';
        position: absolute;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
        transition: left 0.3s ease;
        z-index: -1;
    }

    .dropdown-item:hover {
        color: white;
        padding-left: 25px;
    }

        .dropdown-item:hover::before {
            left: 0;
        }

    .dropdown-item i {
        width: 20px;
        text-align: center;
    }

/* ===== NAV ACTIONS ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.search-toggle {
    background: none;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .search-toggle:hover {
        background: #f8f9fa;
        transform: rotate(15deg);
        color: #3498db;
    }

.btn-quick-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

    .btn-quick-action:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
        color: white;
        text-decoration: none;
    }

.action-text {
    white-space: nowrap;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .mobile-toggle:hover {
        background: #f8f9fa;
    }

.toggle-bar {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

    .search-overlay.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

.search-container {
    padding: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

    .search-input:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }

.search-submit {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-submit:hover {
        transform: rotate(90deg);
    }

.search-close {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-close:hover {
        background: #e9ecef;
        transform: rotate(90deg);
    }

/* ===== MOBILE NAVIGATION ===== */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 320px;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

    .mobile-navigation.active {
        right: 0;
    }

.mobile-nav-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.logo-initial {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-weight: 700;
}

.mobile-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .mobile-close:hover {
        transform: rotate(90deg);
    }

.mobile-search-container {
    padding: 20px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #e9ecef;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    outline: none;
}

.mobile-search-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .mobile-search-btn:hover {
        transform: rotate(15deg);
    }

.mobile-nav-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

    .mobile-nav-link:hover {
        background: #f8f9fa;
        border-left-color: #3498db;
        padding-left: 30px;
        color: #3498db;
    }

    .mobile-nav-link i {
        width: 20px;
        text-align: center;
        font-size: 18px;
    }

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100
