
/* Mobile Navigation */
.burger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--txora-orange);
    transition: transform 0.3s ease;
    background: none;
    border: none;
    padding: 0.5rem; /* Increased touch area */
    margin: -0.5rem; /* Compensate for padding */
    outline: none;
    -webkit-tap-highlight-color: transparent; /* Fix for iOS tap highlight */
    z-index: 1001; /* Ensure it's on top */
    position: relative;
}

@media screen and (max-width: 768px) {
    /* Navbar Container adjustments */
    .navbar {
        position: relative;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: calc(100% + 0.5rem); /* Starts exactly below header */
        width: 45%; /* Narrower width */
        min-width: 200px;
        height: auto;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Left align text */
        
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, visibility 0.4s; /* Bouncy effect */
        opacity: 0;
        visibility: hidden;
        
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        padding: 0.2rem 0; /* Minimal container padding */
        z-index: 9999; /* Force on top */
        border-top: 1px solid rgba(0,0,0,0.05);
        border-bottom-left-radius: 10px;
    }

    /* Active State */
    .nav-active {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
    }

    /* List Items */
    .nav-links li {
        width: 100%;
        opacity: 0;
        margin: 0;
        transform: translateY(-20px); /* Initial state for animation */
        list-style: none; /* Ensure no bullets */
    }

    /* Links Styling */
    .nav-links a {
        display: flex;
        align-items: center;
        padding: 0.2rem 1rem; /* Ultra compact padding */
        font-size: 0.85rem; /* Smaller text */
        font-weight: 500;
        color: var(--text-color);
        text-decoration: none;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        width: 100%; /* Ensure click area spans full width */
        border-bottom: 1px solid rgba(0,0,0,0.03); /* Faint separator */
    }

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

    /* Icons in Links */
    .nav-links a i {
        display: inline-block; /* Show icons in mobile */
        margin-right: 15px;
        width: 25px;
        text-align: center;
        color: var(--txora-orange);
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    /* Hover Effects */
    .nav-links a:hover {
        background-color: rgba(255, 140, 0, 0.05); /* Light orange bg */
        color: var(--txora-orange);
        padding-left: 2.5rem; /* Slight slide right */
        border-left: 4px solid var(--txora-orange);
    }

    .nav-links a:hover i {
        transform: scale(1.2);
    }

    /* Keyframes for JS Animation */
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0px);
        }
    }

    /* Hamburger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .burger {
        display: block;
    }
}
