/* ================================================
   MODERN MOBILE NAVIGATION
   ================================================ */

/* Hamburger Menu Button - Modern Design */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Hamburger Lines */
.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-primary, #D4622F);
    margin: 5px auto;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 3px;
    position: relative;
}

/* Animated Hamburger → X */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: linear-gradient(180deg, rgba(15, 15, 15, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
        backdrop-filter: blur(20px);
        transform: translateX(-100%);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                    opacity 0.3s ease;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        z-index: 1000;
        padding: 20px 0;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-links li {
        list-style: none;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(212, 98, 47, 0.1);
        opacity: 0;
        transform: translateX(-50px);
        animation: slideInLeft 0.4s ease forwards;
    }

    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { animation-delay: 0.35s; }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 20px 30px;
        color: var(--color-text-primary, #FFFFFF);
        font-size: 1.2rem;
        font-weight: 600;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: var(--color-primary, #D4622F);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .nav-links a:hover::before,
    .nav-links a:active::before {
        transform: scaleY(1);
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: rgba(212, 98, 47, 0.1);
        padding-left: 35px;
        color: var(--color-primary, #D4622F);
    }

    /* Mobile menu overlay fade effect */
    .nav-links::after {
        content: '';
        position: fixed;
        top: 80px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.3);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .nav-links.active::after {
        opacity: 1;
    }
}

/* Slide in animation */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tablet Responsive (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links a {
        font-size: 0.95rem;
        padding: 0 12px;
    }
}

/* Mobile Typography Improvements */
@media (max-width: 768px) {
    /* Improved text readability on mobile */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    /* Better touch targets */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Section padding on mobile */
    section {
        padding: 60px 20px;
    }
}

/* Extra small mobile (< 375px) */
@media (max-width: 374px) {
    .nav-links a {
        font-size: 1.1rem;
        padding: 18px 25px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}
