* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sticky Header Container */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 140px;
    /* Fixed height to prevent layout shift */
}

/* Marquee Header */
.header__marquee {
    background: white;
    color: #333;
    padding: 12px 0;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform: translateY(0);
    position: absolute;
    width: 100%;
    z-index: 10;
}

.header__marquee.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.header__marquee-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 40px;
}

.header__locations {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.header__locations marquee {
    font-size: 14px;
    font-weight: 500;
}

.header__location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 50px;
    color: #555;
}

.header__location i {
    color: #FF0000;
}

.header__contact {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.header__phone,
.header__email {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.header__phone:hover,
.header__email:hover {
    background: #FF0000;
    color: white;
    transform: translateY(-1px);
}

.header__phone i,
.header__email i {
    color: #FF0000;
    transition: color 0.3s ease;
}

.header__phone:hover i,
.header__email:hover i {
    color: white;
}

.header__social {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.header__social-link {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header__social-link:hover {
    background: #FF0000;
    color: white;
    transform: translateY(-2px);
}

/* Main Header */
.header__main {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(56px);
    /* Height of marquee header */
    z-index: 5;
}

.header__marquee.hidden~.header__main {
    transform: translateY(0);
}

.header__main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    flex-shrink: 0;
    margin-left: -25px;
}

.header__logo img {
    height: 80px;
    width: auto;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header__nav-item {
    position: relative;
}

.header__nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.header__nav-link:hover {
    color: #FF0000;
}

.header__nav-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.header__nav-item:hover .header__nav-link i {
    transform: rotate(180deg);
}

/* Dropdown */
.header__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.header__nav-item:hover .header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__dropdown-list {
    list-style: none;
    padding: 15px 0;
}

.header__dropdown-item {
    border-bottom: 1px solid #f0f0f0;
}

.header__dropdown-item:last-child {
    border-bottom: none;
}

.header__dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header__dropdown-link:hover {
    background: #f8f9fa;
    color: #FF0000;
}

.header__cta {
    background: #FF0000;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header__cta:hover {
    background: #e60000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Mobile Menu Toggle */
.header__mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

/* MasterClass Button */
.header__masterclass-btn {
    background: linear-gradient(135deg, #FF0000, #FF0000);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    margin-left: 15px;
}

.header__masterclass-btn:hover {
    background: linear-gradient(135deg, #d71818ff, #c51e1eff);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header {
        height: auto;
        /* Remove fixed height on mobile */
    }

    .header__marquee {
        display: none;
        /* Hide upper header completely on mobile */
    }

    .header__main {
        transform: translateY(0);
        /* Reset transform since no marquee on mobile */
        z-index: 5;
    }

    .header__marquee-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
    }

    .header__locations {
        order: 1;
        width: 100%;
    }

    .header__contact {
        order: 2;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .header__social {
        order: 3;
        justify-content: center;
        gap: 12px;
    }

    .header__location {
        font-size: 13px;
        margin-right: 35px;
    }

    .header__phone,
    .header__email {
        font-size: 13px;
        padding: 6px 12px;
    }

    .header__social-link {
        width: 32px;
        height: 32px;
    }

    .header__main-content {
        padding: 0 15px;
    }

    .header__logo {
        margin-left: 0px;
    }

    .header__logo img {
        height: 50px;

    }

    .header__mobile-toggle {
        display: block;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        gap: 0;
        padding: 80px 0 20px;
        overflow-y: auto;
        z-index: 2000;
        /* Higher z-index for mobile menu */
    }

    .header__nav.active {
        transform: translateX(0);
    }

    .header__nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        padding: 0 20px;
    }

    .header__nav-list::-webkit-scrollbar {
        width: 4px;
    }

    .header__nav-list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .header__nav-list::-webkit-scrollbar-thumb {
        background: #FF0000;
        border-radius: 2px;
    }

    .header__nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .header__nav-item:last-child {
        border-bottom: none;
    }

    .header__nav-link {
        padding: 18px 0;
        justify-content: space-between;
        font-size: 16px;
    }

    .header__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        display: none;
        margin-top: 10px;
        border-radius: 8px;
    }

    .header__nav-item.active .header__dropdown {
        display: block;
    }

    .header__dropdown-link {
        padding: 15px 20px;
        font-size: 15px;
    }

    .header__cta {
        margin: 20px 0 0;
        text-align: center;
        display: inline-block;
        align-self: center;
    }

    /* Mobile menu overlay */
    .header__nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .header__masterclass-btn {
        margin: 10px 0 0;
        text-align: center;
        display: inline-block;
        align-self: center;
        margin-left: 0;
    }

    /* Close button for mobile menu */
    .header__nav::after {
        content: '✕';
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: #333;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f0f0f0;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
}

@media (max-width: 480px) {
    .header__logo img {
        height: 45px;
    }
}

/* Demo content for scrolling */
.demo-content {
    height: 200vh;
    padding: 50px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}