/* ================================
   HAMBURGER MENU FOR MOBILE
   Your style - modern, clean design
   ================================ */

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    cursor: none;
    z-index: 101;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: #2C3E50;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

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

.hamburger-btn:hover .hamburger-line {
    background: #E85D44;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 280px;
    height: 100%;
    background: #FDF6E3;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.mobile-menu-logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #2C3E50;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(232, 93, 68, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #E85D44;
    transform: rotate(90deg);
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
    stroke: #E85D44;
    transition: stroke 0.3s ease;
}

.mobile-menu-close:hover svg {
    stroke: #FFFFFF;
}

/* Mobile Menu Links */
.mobile-menu-links {
    list-style: none;
    padding: 20px 0;
}

.mobile-menu-links li {
    margin: 0;
}

.mobile-menu-links a {
    display: block;
    padding: 18px 25px;
    color: #2C3E50;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    cursor: none;
    position: relative;
}

.mobile-menu-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 70%;
    background: linear-gradient(90deg, #E85D44, transparent);
    transition: width 0.3s ease;
    border-radius: 0 5px 5px 0;
}

.mobile-menu-links a:hover {
    color: #E85D44;
    padding-left: 35px;
    background: rgba(232, 93, 68, 0.05);
}

.mobile-menu-links a:hover::before {
    width: 4px;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 25px;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
    margin-top: auto;
}

.mobile-menu-social-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5D6D7E;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.mobile-menu-socials {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.mobile-social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #E85D44, #d44a31);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(232, 93, 68, 0.2);
}

.mobile-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(232, 93, 68, 0.3);
}

.mobile-social-link svg {
    width: 22px;
    height: 22px;
    fill: #FFFFFF;
}

.mobile-social-link.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2);
}

.mobile-social-link.twitter:hover {
    box-shadow: 0 6px 18px rgba(29, 161, 242, 0.3);
}

.mobile-social-link.linkedin {
    background: linear-gradient(135deg, #0077B5, #005885);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.2);
}

.mobile-social-link.linkedin:hover {
    box-shadow: 0 6px 18px rgba(0, 119, 181, 0.3);
}

.mobile-social-link.github {
    background: linear-gradient(135deg, #333333, #1a1a1a);
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.2);
}

.mobile-social-link.github:hover {
    box-shadow: 0 6px 18px rgba(51, 51, 51, 0.3);
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex !important;
    }

    .nav-links {
        display: none !important;
    }
}

/* Adjust mobile menu for smaller screens */
@media (max-width: 480px) {
    .mobile-menu {
        width: 90%;
    }

    .mobile-menu-links a {
        font-size: 1rem;
        padding: 16px 20px;
    }

    .mobile-social-link {
        width: 42px;
        height: 42px;
    }

    .mobile-social-link svg {
        width: 20px;
        height: 20px;
    }
}

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

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .hamburger-btn,
    .mobile-menu-close,
    .mobile-menu-links a,
    .mobile-social-link {
        cursor: pointer !important;
    }
}
