/* ================================
   NAVBAR ENHANCEMENTS ONLY
   ================================ */

/* Custom animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeInDown2 {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.animate-fadeInDown {
    animation: fadeInDown 0.4s ease-out forwards;
}

.animate-fadeOutUp {
    animation: fadeOutUp 0.4s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown2 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ================================
   STYLISH TOAST NOTIFICATION
   ================================ */
.toast-notification {
    animation: fadeInDown2 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-notification i {
    display: inline-block;
}

/* ================================
   CAROUSEL IMAGE OPTIMIZATION
   ================================ */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: inherit;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    flex-shrink: 0;
}

.carousel-image.hidden {
    display: none !important;
}

/* Ensure image container fills space */
.carousel-container img {
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Profile image in navbar styling */
.profile-navbar-img {
    margin-left: auto;
    margin-right: 2rem;
    pointer-events: auto;
}

.profile-navbar-img img {
    transition: all 0.3s ease;
}

.profile-navbar-img:hover img {
    transform: scale(1.1);
    border-color: #10b981 !important;
}

/* Prevent horizontal scrolling on mobile - More targeted approach */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Logo brand styling */
.logo-brand {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-brand:hover {
    transform: scale(1.05);
}

.logo-brand span:first-child {
    position: relative;
}

.logo-brand:hover span:first-child {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399, #10b981);
    width: 0%;
    z-index: 100;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 0 60px rgba(52, 211, 153, 0.3);
    transition: width 0.1s linear;
    filter: blur(0.5px);
}

/* Enhanced navbar styling */
header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.85)) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

header.scrolled {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(10, 10, 10, 0.92)) !important;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border-bottom-color: rgba(16, 185, 129, 0.25);
    backdrop-filter: blur(20px);
}

/* Ensure desktop navigation is hidden on mobile */
@media (max-width: 768px) {
    .hidden.md\:flex {
        display: none !important;
    }

    /* Ensure mobile menu button only shows on mobile */
    #mobile-menu-btn {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    #mobile-menu-btn {
        display: none !important;
    }

    #mobile-menu {
        display: none !important;
    }
}

/* Animated nav links */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: -4px -8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: #10b981 !important;
    transform: translateY(-1px);
}

/* Resume button in navbar */
.nav-resume-btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95)) !important;
}

.nav-resume-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateY(-50%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-resume-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-resume-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5), 0 0 30px rgba(16, 185, 129, 0.3) !important;
    border-color: rgba(16, 185, 129, 0.6);
}

.nav-resume-btn:hover::before {
    left: 100%;
}

.nav-resume-btn:hover::after {
    opacity: 1;
}

.nav-resume-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Mobile menu enhancement - Full width dropdown */
#mobile-menu {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.99) 0%, rgba(16, 16, 16, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(16, 185, 129, 0.2);
    margin-top: 0.5rem;
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

#mobile-menu li {
    padding: 0;
    margin: 0;
}

#mobile-menu a {
    position: relative;
    display: block;
    padding: 1rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: inherit;
    border-left: 3px solid transparent;
}

#mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), transparent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

#mobile-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 50%;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.3s ease;
    border-radius: 0 3px 3px 0;
}

#mobile-menu a:hover {
    color: #10b981;
    padding-left: 2rem;
    border-left-color: #10b981;
}

#mobile-menu a:hover::before {
    width: 100%;
}

#mobile-menu a:hover::after {
    width: 3px;
}

/* Hamburger menu icon animation */
#mobile-menu-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.1);
}

#mobile-menu-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2), inset 0 0 15px rgba(16, 185, 129, 0.05);
    transform: scale(1.05);
}

#mobile-menu-btn i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #10b981;
    font-size: 1.5rem;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

#mobile-menu-btn:hover i {
    color: #34d399;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
}

/* Prevent overflow only on key container elements */
main,
.container {
    width: 100%;
}

/* Skill badges enhancement */
.skill-badge {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.skill-badge::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;
}

.skill-badge:hover {
    transform: translateY(-2px) scale(1.05);
}

.skill-badge:hover::before {
    left: 100%;
}

/* Card hover effects */
.project-card,
.skill-category {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover,
.skill-category:hover {
    transform: translateY(-6px);
}

/* Button shine effect */
button,
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button::before,
.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateY(-50%);
    transition: left 0.5s ease;
}

button:hover::before,
.btn-premium:hover::before {
    left: 100%;
}

/* Scroll to top button enhancements */
#scroll-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#scroll-top:hover {
    transform: translateY(-4px) scale(1.15);
}

#scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-top:not(.visible) {
    opacity: 0;
    visibility: hidden;
}

/* Smooth transitions on focus */
input:focus,
textarea:focus {
    transition: all 0.3s ease;
}

/* ================================
   PREMIUM SKILLS & PROJECTS STYLING
   ================================ */

/* Skills Category Cards - Premium Style */
.skill-category {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.04), rgba(52, 211, 153, 0.02)) !important;
    border: 2px solid rgba(16, 185, 129, 0.3) !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -100%;
    right: -100%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), rgba(52, 211, 153, 0.1), transparent);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    z-index: 0;
}

.skill-category::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.skill-category:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08), rgba(52, 211, 153, 0.04)) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3), inset 0 0 40px rgba(16, 185, 129, 0.1), 0 0 30px rgba(16, 185, 129, 0.15) !important;
    transform: translateY(-12px) scale(1.01);
}

.skill-category:hover::before {
    opacity: 1;
    top: -50%;
    right: -50%;
}

.skill-category:hover::after {
    opacity: 1;
}

.skill-category > * {
    position: relative;
    z-index: 2;
}

/* Skill Badge Premium Styling */
.skill-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.4rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.12), rgba(52, 211, 153, 0.08)) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
    border-radius: 0.875rem;
    color: #34d399;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.skill-badge i {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    font-size: 1.1em;
}

.skill-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.skill-badge::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(52, 211, 153, 0.2));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.skill-badge:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.25), rgba(52, 211, 153, 0.15)) !important;
    border-color: rgba(16, 185, 129, 1) !important;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5), 0 0 25px rgba(16, 185, 129, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.15);
    transform: translateY(-4px) scale(1.1);
    color: #ecfdf5 !important;
}

.skill-badge:hover i {
    transform: scale(1.2) rotate(15deg);
    color: #fff;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.skill-badge:hover::before {
    left: 100%;
}

.skill-badge:hover::after {
    opacity: 1;
}

.skill-badge > * {
    position: relative;
    z-index: 2;
}

/* Skills Section Subsection Labels - Premium Style */
.skill-category > div > p {
    position: relative;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #34d399 !important;
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.skill-category:hover > div > p {
    border-bottom-color: rgba(16, 185, 129, 0.6);
    letter-spacing: 0.1em;
}

/* Skills Category Icons */
.skill-category .w-12 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1)) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.skill-category:hover .w-12 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(52, 211, 153, 0.2)) !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2);
    transform: scale(1.1) rotateY(10deg);
}

.skill-category .text-primary {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Project Card Premium Styling */
.project-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(5, 150, 105, 0.03)) !important;
    border: 2px solid rgba(16, 185, 129, 0.25) !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -100%;
    right: -100%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3), rgba(52, 211, 153, 0.1), transparent);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    z-index: 0;
}

.project-card:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.06)) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 24px 64px rgba(16, 185, 129, 0.3), inset 0 0 40px rgba(16, 185, 129, 0.08), 0 0 30px rgba(16, 185, 129, 0.2);
    transform: translateY(-16px) scale(1.02);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    opacity: 1;
    top: -50%;
    right: -50%;
}

.project-card > * {
    position: relative;
    z-index: 2;
}

/* Tech Tags Premium Style */
.tech-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1), rgba(52, 211, 153, 0.05)) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.4) !important;
    border-radius: 0.75rem;
    color: #34d399;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.tech-tag::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.tech-tag:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2), rgba(52, 211, 153, 0.12)) !important;
    border-color: rgba(16, 185, 129, 0.8) !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.25);
    transform: translateY(-3px) scale(1.08);
    color: #ecfdf5 !important;
}

.tech-tag:hover::before {
    left: 100%;
}

.tech-tag:hover::after {
    opacity: 1;
}

.tech-tag > * {
    position: relative;
    z-index: 2;
}

/* Carousel Image Enhancement */
.carousel-image {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .carousel-image {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Section Title Enhancement */
#skills h2,
#projects h2 {
    position: relative;
    background: linear-gradient(135deg, #34d399, #10b981, #34d399);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.skill-category h3,
.project-card h3 {
    background: linear-gradient(135deg, #ecfdf5, rgba(236, 253, 245, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive navbar */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    header {
        width: 100%;
        left: 0;
        right: 0;
        overflow: hidden;
    }

    nav {
        width: 100%;
        overflow: hidden;
    }

    .container {
        width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    #mobile-menu {
        background: linear-gradient(180deg, rgba(10, 10, 10, 0.99) 0%, rgba(16, 16, 16, 0.98) 100%);
        border-top: 2px solid rgba(16, 185, 129, 0.2);
        width: 100%;
        overflow: hidden;
    }

    #mobile-menu a {
        padding: 0.875rem 1.5rem;
        border-bottom: 1px solid rgba(16, 185, 129, 0.08);
        font-size: 0.95rem;
        display: block;
        width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    #mobile-menu a:last-child {
        border-bottom: none;
        padding-bottom: 1rem;
    }

    #mobile-menu a:first-child {
        padding-top: 0.5rem;
    }

    /* Better spacing for mobile */
    header {
        padding: 0 !important;
    }

    nav {
        padding: 0.75rem 1rem !important;
    }

    /* Skills & Projects responsive adjustments */
    .skill-category {
        padding: 1.5rem !important;
        transform: translateY(0) !important;
    }

    .skill-category:hover {
        transform: translateY(-6px) scale(1.005) !important;
    }

    .skill-badge {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }

    .skill-badge:hover {
        transform: translateY(-2px) scale(1.06) !important;
    }

    .project-card {
        transform: translateY(0) !important;
    }

    .project-card:hover {
        transform: translateY(-10px) scale(1.01) !important;
    }

    .tech-tag {
        padding: 0.5rem 0.95rem;
        font-size: 0.7rem;
    }

    .tech-tag:hover {
        transform: translateY(-2px) scale(1.06) !important;
    }
}

@media (max-width: 640px) {
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    #mobile-menu a {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }

    #mobile-menu-btn {
        width: 40px;
        height: 40px;
    }

    #mobile-menu-btn i {
        font-size: 1.25rem;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Ensure sections don't overflow */
    section {
        width: 100%;
        overflow-x: hidden;
    }

    /* Skills & Projects responsive adjustments for small screens */
    .skill-category {
        padding: 1.25rem !important;
        transform: translateY(0) !important;
    }

    .skill-category:hover {
        transform: translateY(-4px) scale(1.002) !important;
    }

    .skill-badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .skill-badge:hover {
        transform: translateY(-2px) scale(1.05) !important;
    }

    .project-card:hover {
        transform: translateY(-6px) scale(1) !important;
    }

    .tech-tag:hover {
        transform: translateY(-2px) scale(1.05) !important;
    }
}
