/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Modal/Overlay Styles */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3rem;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    backdrop-filter: blur(20px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.project-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-header h2 {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.modal-tags .tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.modal-media {
    margin-bottom: 2rem;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-media p {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(34, 197, 94, 0.2);
}

/* Modern Audio Player Styles */
.audio-player {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 20, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Mobile audio player optimizations */
@media (max-width: 768px) {
    .audio-player {
        padding: 0.5rem;
        margin: 0.5rem 0;
        border-radius: 12px;
    }
    
    .player-header {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }
    
    .player-header h4 {
        font-size: 1rem;
        flex-grow: 1;
    }
    
    .track-stats {
        display: none; /* Hide track stats on mobile for space */
    }
    
    .current-track-display {
        padding: 0.3rem;
        margin-bottom: 0.3rem;
    }
    
    .track-artwork {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-right: 0.5rem;
    }
    
    .current-title {
        font-size: 0.8rem;
        line-height: 1.1;
        margin-bottom: 0.1rem;
    }
    
    .current-category {
        font-size: 0.6rem;
    }
    
    .audio-controls-modern {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem;
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
    }
    
    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .play-pause-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .progress-section {
        width: 100%;
        margin: 0;
        order: 2;
        margin-top: 0.5rem;
    }
    
    .volume-section {
        justify-content: center;
        order: 3;
        width: 100%;
        margin-top: 0.25rem;
    }
    
    .volume-slider-modern {
        width: 120px;
    }
    
    /* Compact mobile playlist */
    .playlist-container {
        max-height: 450px;
    }
    
    .category-header-modern {
        padding: 0.4rem 0.5rem;
        margin-bottom: 0.2rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    .track-count {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
    
    .playlist-item-modern {
        padding: 0.4rem 0.5rem;
        gap: 0.5rem;
    }
    
    .track-number {
        font-size: 0.7rem;
        width: 20px;
    }
    
    .track-title-modern {
        font-size: 0.8rem;
        line-height: 1.1;
    }
    
    .track-meta {
        font-size: 0.65rem;
    }
    
    .play-btn-modern {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .new-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Floating player mobile optimizations */
    .floating-music-player .audio-player {
        padding: 0.4rem;
        margin: 0;
        border-radius: 0;
        border: none;
        background: transparent;
    }
    
    .floating-music-player .playlist-container {
        max-height: 400px;
    }
    
    .floating-music-player .player-header {
        padding-bottom: 0.25rem;
        margin-bottom: 0.4rem;
    }
    
    .floating-close-btn {
        font-size: 1.2rem;
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .audio-player {
        padding: 0.4rem;
        margin: 0.4rem 0;
    }
    
    .player-header {
        margin-bottom: 0.4rem;
        padding-bottom: 0.2rem;
    }
    
    .player-header h4 {
        font-size: 0.9rem;
    }
    
    .current-track-display {
        padding: 0.25rem;
        margin-bottom: 0.25rem;
    }
    
    .track-artwork {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        margin-right: 0.4rem;
    }
    
    .current-title {
        font-size: 0.7rem;
        line-height: 1;
        margin-bottom: 0.05rem;
    }
    
    .current-category {
        font-size: 0.55rem;
    }
    
    .audio-controls-modern {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0.4rem;
        gap: 0.8rem;
        margin-bottom: 0.5rem;
        flex-wrap: wrap;
    }
    
    .control-btn {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .play-pause-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .volume-slider-modern {
        width: 100px;
    }
    
    .progress-section {
        width: 100%;
        margin: 0;
        order: 2;
        margin-top: 0.4rem;
    }
    
    .volume-section {
        justify-content: center;
        order: 3;
        width: 100%;
        margin-top: 0.2rem;
    }
    
    .playlist-container {
        max-height: 350px;
    }
    
    .category-header-modern {
        padding: 0.3rem 0.4rem;
        margin-bottom: 0.15rem;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
    
    .track-count {
        font-size: 0.55rem;
        padding: 0.08rem 0.3rem;
    }
    
    .playlist-item-modern {
        padding: 0.35rem 0.4rem;
        gap: 0.4rem;
    }
    
    .track-number {
        font-size: 0.65rem;
        width: 18px;
    }
    
    .track-title-modern {
        font-size: 0.75rem;
        line-height: 1;
    }
    
    .track-meta {
        font-size: 0.6rem;
    }
    
    .play-btn-modern {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    /* Ultra-compact floating player for very small screens */
    .floating-music-player .audio-player {
        padding: 0.3rem;
    }
    
    .floating-music-player .playlist-container {
        max-height: 320px;
    }
    
    .floating-music-player .player-header {
        padding-bottom: 0.2rem;
        margin-bottom: 0.3rem;
    }
    
    .floating-close-btn {
        font-size: 1rem;
        width: 22px;
        height: 22px;
    }
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.player-header h4 {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
}

.track-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.total-tracks {
    color: #6366f1;
    font-weight: 600;
}

.genre-count {
    color: rgba(255, 255, 255, 0.7);
}

.duration-status {
    color: #6366f1;
    font-size: 0.85rem;
    font-weight: 500;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.current-track-display {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.track-artwork {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.track-details .current-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.track-details .current-category {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.audio-controls-modern {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.control-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.1);
}

.play-pause-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
}

.progress-section {
    flex-grow: 1;
    margin: 0 1rem;
}

.progress-bar-container {
    margin-bottom: 0.5rem;
}

.progress-bar-modern {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-icon {
    font-size: 1.2rem;
}

.volume-slider-modern {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-slider-modern::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    cursor: pointer;
}

.playlist-container {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.5) rgba(255, 255, 255, 0.1);
}

.playlist-container::-webkit-scrollbar {
    width: 8px;
}

.playlist-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 4px;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5856eb, #7c3aed);
}

.category-section-modern {
    margin-bottom: 2rem;
}

.category-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    font-size: 1.2rem;
}

.category-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.track-count {
    background: rgba(99, 102, 241, 0.3);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.new-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.playlist-item-modern {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
}

.playlist-item-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.playlist-item-modern.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.track-number {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    width: 30px;
    text-align: center;
}

.playlist-item-modern.active .track-number {
    color: #6366f1;
    font-weight: bold;
}

.track-info-modern {
    flex-grow: 1;
}

.track-title-modern {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.track-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.play-btn-modern {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn-modern:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.playlist-item-modern.active .play-btn-modern {
    color: #6366f1;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.6);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Floating Music Player Styles */
.floating-music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.98), rgba(10, 10, 20, 0.98));
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow: hidden;
}

.floating-music-player.active {
    transform: translateY(0);
}

.music-player-content {
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.5) transparent;
}

.music-player-content::-webkit-scrollbar {
    width: 8px;
}

.music-player-content::-webkit-scrollbar-track {
    background: transparent;
}

.music-player-content::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px;
}

.music-player-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    z-index: 1600;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    user-select: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.music-player-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #7c3aed, #6366f1);
}

.music-player-toggle.minimized {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.music-player-toggle.minimized:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.toggle-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.music-icon {
    font-size: 1.2rem;
    animation: musicPulse 2s infinite;
}

@keyframes musicPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.floating-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Mobile optimizations for floating player */
@media (max-width: 768px) {
    .floating-music-player {
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
    }
    
    .music-player-toggle {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50% !important;
        padding: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.6);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .toggle-content {
        font-size: 0.8rem;
        gap: 0;
        flex-direction: column;
    }
    
    .music-icon {
        font-size: 1.4rem;
        animation: musicPulse 3s infinite;
    }
    
    .toggle-text {
        display: none !important; /* Hide text on mobile for bubble effect */
    }
    
    .music-player-toggle:hover,
    .music-player-toggle:active {
        transform: translateY(-2px) scale(1.1);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.8);
    }
    
    .music-player-toggle.minimized {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }
    
    .music-player-toggle.minimized .music-icon {
        animation: none;
    }
}

@media (max-width: 480px) {
    .floating-music-player {
        max-height: 92vh;
    }
    
    .music-player-toggle {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 3px 15px rgba(99, 102, 241, 0.6);
    }
    
    .music-icon {
        font-size: 1.2rem;
    }
    
    .music-player-toggle:hover {
        transform: translateY(-1px) scale(1.05);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.7);
    }
}

/* Enhanced Background Effects with Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
    animation: floatingGradients 20s ease-in-out infinite;
    transform: translate(-10%, -10%);
}

/* Add animated particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 100px 50px, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(2px 2px at 400px 150px, rgba(99, 102, 241, 0.3), transparent),
        radial-gradient(1px 1px at 300px 300px, rgba(168, 85, 247, 0.4), transparent),
        radial-gradient(1px 1px at 200px 400px, rgba(139, 92, 246, 0.2), transparent),
        radial-gradient(2px 2px at 500px 250px, rgba(99, 102, 241, 0.3), transparent);
    pointer-events: none;
    z-index: -1;
    animation: floatingParticles 25s linear infinite;
}

@keyframes floatingGradients {
    0%, 100% {
        transform: translate(-10%, -10%) rotate(0deg);
    }
    25% {
        transform: translate(-15%, -5%) rotate(1deg);
    }
    50% {
        transform: translate(-5%, -15%) rotate(0deg);
    }
    75% {
        transform: translate(-12%, -8%) rotate(-1deg);
    }
}

@keyframes floatingParticles {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: linear-gradient(145deg, 
        rgba(10, 10, 10, 0.95) 0%, 
        rgba(15, 15, 25, 0.9) 50%, 
        rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar.hidden {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
}

.navbar.scrolled {
    background: linear-gradient(145deg, 
        rgba(8, 8, 8, 0.98) 0%, 
        rgba(12, 12, 20, 0.95) 50%, 
        rgba(8, 8, 8, 0.98) 100%);
    backdrop-filter: blur(30px);
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 60px rgba(99, 102, 241, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo h2 {
    font-weight: 600;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-button {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.15) 0%, 
        rgba(139, 92, 246, 0.1) 50%, 
        rgba(99, 102, 241, 0.15) 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    z-index: -1;
    transform: scale(0.8);
}

.nav-button:hover::before,
.nav-button.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-button:hover,
.nav-button.active {
    color: #ffffff;
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.contact-button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    background-size: 200% 200%;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: gradientShift 3s ease-in-out infinite;
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-button span,
.contact-button {
    position: relative;
    z-index: 2;
}

.contact-button:hover::before {
    opacity: 1;
}

.contact-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(99, 102, 241, 0.5),
        0 0 30px rgba(99, 102, 241, 0.4),
        0 0 60px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    animation: gradientShift 1.5s ease-in-out infinite;
}

.contact-button:active {
    transform: translateY(-1px);
    box-shadow: 
        0 5px 15px rgba(99, 102, 241, 0.5),
        0 0 15px rgba(99, 102, 241, 0.4),
        0 0 30px rgba(139, 92, 246, 0.3);
    color: white;
    border-radius: 12px;
}

/* Main Content */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* Scroll-triggered animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(10px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
    filter: blur(8px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
    filter: blur(8px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(60px) scale(0.92);
    filter: blur(12px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.stagger-animation {
    transition-delay: var(--stagger-delay, 0ms);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    text-align: center;
    padding: 2rem 0;
}

/* Profile Picture */
.profile-picture {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-picture img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(99, 102, 241, 0.3);
    box-shadow: 
        0 0 40px rgba(99, 102, 241, 0.6),
        0 0 80px rgba(139, 92, 246, 0.5),
        0 16px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.profile-picture img:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 60px rgba(99, 102, 241, 0.8),
        0 0 120px rgba(139, 92, 246, 0.6),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: #a0a0a0;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(
        135deg, 
        #6366f1 0%, 
        #8b5cf6 25%, 
        #a855f7 50%, 
        #8b5cf6 75%, 
        #6366f1 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerWave 3s ease-in-out infinite, floatWave 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    position: relative;
}

.stat-label {
    font-size: 0.9rem;
    color: #a0a0a0;
    font-weight: 500;
}

/* Section Styles */
.section-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 50%, 
        rgba(255, 255, 255, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 40px rgba(99, 102, 241, 0.1);
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.about-card p {
    color: #a0a0a0;
    line-height: 1.7;
}

/* Interests Section */
.interests-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .interests-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .interests-grid {
        grid-template-columns: 1fr;
    }
}

.interest-category {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.interest-category:hover {
    transform: translateY(-4px);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 50%, 
        rgba(255, 255, 255, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.interest-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: center;
}

.interest-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.interest-item {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.interest-item:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #ffffff;
    transform: scale(1.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.interest-item.highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.7), rgba(139, 92, 246, 0.7)) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: 1px solid rgba(99, 102, 241, 0.8) !important;
    z-index: 1;
    position: relative;
    display: inline-block !important;
    visibility: visible !important;
}

.interest-item.highlight:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.interest-item.music-favorite {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.8);
}

.interest-item.music-favorite:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

/* Resume Section */
.resume-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 4rem 0;
}

.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px; /* Normal line thickness */
    background: linear-gradient(to bottom, #6366f1, #8b5cf6);
    transform: translateX(-50%);
    z-index: 1; /* Ensure line is below the dots */
}

.timeline-item {
    position: relative;
    margin: 4rem 0; /* Increase vertical spacing between items */
    display: flex;
    align-items: center; /* Center align items with timeline */
    width: 100%;
    min-height: 120px; /* Increase height for better spacing */
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 2rem; /* Reasonable space for timestamp pills */
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem; /* Reasonable space for timestamp pills */
}

.timeline-date {
    position: absolute;
    left: 50%;
    top: 50%; /* Center vertically relative to timeline item */
    transform: translate(-50%, -50%); /* Center both horizontally and vertically */
    font-weight: 600;
    color: #ffffff;
    font-size: 0.85rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* Space between start and end dates */
    width: 100%;
    max-width: 300px; /* Allow wider overall container */
}

.timeline-date .date-start {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-right: 0.5rem; /* Push away from center */
}

.timeline-date .date-end {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-left: 0.5rem; /* Push away from center */
}

.timeline-date::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px; /* Reasonable dot size */
    height: 12px;
    background: #6366f1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px #0a0a0a; /* Reasonable shadow for separation */
    z-index: 5; /* Ensure dot appears above the timeline line */
}

.timeline-content {
    width: 47%; /* Increase width slightly */
    max-width: 550px; /* Increase max-width */
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow-x: visible; /* Allow horizontal overflow if needed */
    overflow-y: auto; /* Allow vertical scrolling if needed */
    word-wrap: break-word; /* Ensure long words wrap */
    overflow-wrap: break-word; /* Modern property for word wrapping */
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto; /* Enable hyphenation for long words */
}

.timeline-content h4 {
    color: #6366f1;
    font-weight: 500;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.timeline-content ul {
    list-style: none;
    margin-left: 0;
}

.timeline-content li {
    color: #a0a0a0;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #6366f1;
}

/* Education and Skills */
.education-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.degree-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.degree-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.degree-card h4 {
    color: #6366f1;
    font-weight: 500;
    margin-bottom: 1rem;
}

.degree-card p {
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag.proficient {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-color: #6366f1;
    color: #ffffff;
}

.skill-tag.intermediate {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

.skill-tag.novice {
    color: #a0a0a0;
}

/* Honors Section */
.honors-section {
    margin-top: 4rem;
    padding: 3rem 0;
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.honors-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.honors-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 50%, 
        rgba(255, 255, 255, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 40px rgba(99, 102, 241, 0.1);
}

.honor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.honor-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    min-width: 200px;
}

.honor-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

.honor-issuer {
    color: #8b5cf6;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.honor-description {
    color: #a0a0a0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Projects Section */
.projects-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 4rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 50%, 
        rgba(255, 255, 255, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 40px rgba(99, 102, 241, 0.1);
}

.project-card.clickable-card {
    position: relative;
    overflow: hidden;
}

.project-card.clickable-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 16px;
}

.project-card.clickable-card:hover::after {
    opacity: 1;
}

.project-card.clickable-card::before {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.project-card.coming-soon {
    opacity: 0.8;
}

.project-card.coming-soon::before {
    background: linear-gradient(135deg, #64748b, #475569);
}

.project-header {
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #c4b5fd;
}

.project-description {
    color: #a0a0a0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-achievements {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievement {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: #86efac;
    font-weight: 500;
    transition: all 0.2s ease;
}

.achievement:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
}

.modal-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* External Links and PDF Sections */
.external-links {
    margin: 1.5rem 0;
    text-align: center;
}

.external-link-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.external-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5856eb, #7c3aed);
}

/* Music Embeds Section */
.music-embeds-section {
    margin: 2rem 0;
    text-align: center;
}

.music-embeds-section h4 {
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.music-embeds-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.music-embed-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.music-embed-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.music-embed-item h5 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.music-embed-container {
    border-radius: 12px;
    overflow: hidden;
}

/* Spotify specific styling */
.music-embed-item[data-platform="spotify"] .music-embed-container {
    box-shadow: 0 8px 30px rgba(29, 185, 84, 0.2);
    background: rgba(29, 185, 84, 0.1);
    padding: 1rem;
}

.music-embed-item[data-platform="spotify"] iframe {
    width: 100%;
    height: 352px;
    border: none;
    border-radius: 12px;
}

/* Apple Music specific styling */
.music-embed-item[data-platform="appleMusic"] .music-embed-container {
    box-shadow: 0 8px 30px rgba(252, 60, 68, 0.2);
    background: rgba(252, 60, 68, 0.1);
    padding: 1rem;
}

/* YouTube Music specific styling */
.music-embed-item[data-platform="youtubeMusic"] .music-embed-container {
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.2);
    background: rgba(255, 0, 0, 0.1);
    padding: 1rem;
}

/* Iframely responsive embeds */
.iframely-embed {
    width: 100%;
    margin: 0;
    padding: 0;
}

.iframely-responsive {
    width: 100% !important;
    height: 140px !important;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.iframely-responsive a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
    overflow: hidden;
}

/* Fallback styling for iframely content */
.music-embed-item[data-platform="appleMusic"] .iframely-responsive,
.music-embed-item[data-platform="youtubeMusic"] .iframely-responsive {
    min-height: 140px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading state for embeds */
.music-embed-item .iframely-responsive:empty::after {
    content: "Loading embed...";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Music Profile Link Buttons (Primary Display) */
.music-profile-link {
    margin-bottom: 1rem;
}

.profile-link-btn {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 80px;
}

.profile-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.apple-music-btn:hover {
    background: rgba(252, 60, 68, 0.2);
    border-color: rgba(252, 60, 68, 0.5);
    box-shadow: 0 8px 25px rgba(252, 60, 68, 0.3);
}

.youtube-music-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.profile-icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.profile-text {
    flex-grow: 1;
    text-align: left;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-platform {
    font-size: 0.9rem;
    opacity: 0.8;
}

.profile-arrow {
    font-size: 1.5rem;
    margin-left: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.profile-link-btn:hover .profile-arrow {
    transform: translateX(5px);
}

/* Hide iframely fallback initially, show if main link fails */
.iframely-embed-fallback {
    display: none;
    margin-top: 1rem;
}

/* Show iframely embed if it loads successfully */
.iframely-embed-fallback .iframely-responsive:not(:empty) {
    display: block;
}

.music-embed-item[data-platform="appleMusic"] .iframely-embed-fallback:has(.iframely-responsive:not(:empty)),
.music-embed-item[data-platform="youtubeMusic"] .iframely-embed-fallback:has(.iframely-responsive:not(:empty)) {
    display: block;
}

.music-embed-item[data-platform="appleMusic"] .music-profile-link:has(+ .iframely-embed-fallback .iframely-responsive:not(:empty)),
.music-embed-item[data-platform="youtubeMusic"] .music-profile-link:has(+ .iframely-embed-fallback .iframely-responsive:not(:empty)) {
    display: none;
}

.streaming-services-text {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 2rem;
    font-size: 0.95rem;
}

/* Responsive grid for desktop */
@media (min-width: 768px) {
    .music-embeds-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Spotify gets full width, Apple Music and YouTube Music side by side */
    .music-embed-item[data-platform="spotify"] {
        grid-column: 1 / -1;
    }
    
    .music-embeds-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .music-embed-item[data-platform="appleMusic"] {
        grid-column: 1;
    }
    
    .music-embed-item[data-platform="youtubeMusic"] {
        grid-column: 2;
    }
}

/* Video Section Styles */
.video-section {
    margin: 1.5rem 0;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.modal-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: #000;
}

.modal-video:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .video-container {
        max-width: 100%;
        margin: 0;
    }
    
    .modal-video {
        border-radius: 8px;
    }
}

/* Enhanced Project Modal Formatting */
.project-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.team-section, .concept-section, .contributions-section, .rob-section, .jackson-section, .summary-section {
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 4px solid #6366f1;
}

.team-section h3, .concept-section h3, .contributions-section h3, .rob-section h3, .jackson-section h3 {
    margin-bottom: 1.5rem;
    color: #6366f1;
    font-size: 1.3rem;
    font-weight: 600;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: center;
}

.team-member {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-member h4 {
    margin-bottom: 0.4rem;
    color: #ffffff;
    font-size: 1rem;
}

.team-member .role {
    color: #8b5cf6;
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.team-member .sub-role {
    color: #a1a1aa;
    font-size: 0.85rem;
    line-height: 1.3;
}

.contribution-category {
    margin: 1.5rem 0;
}

.contribution-category h4 {
    color: #f97316;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-tag {
    background: #f97316;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.contributor {
    background: #10b981;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
    justify-content: center;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.4;
    font-size: 0.85rem;
    text-align: left;
}

.feature-item strong {
    color: #22d3ee;
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

.summary-section {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.summary-section p {
    font-style: italic;
    color: #d1d5db;
    line-height: 1.6;
}

.learning-section {
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
    border-left: 4px solid #8b5cf6;
}

.learning-section h3 {
    margin-bottom: 1.5rem;
    color: #8b5cf6;
    font-size: 1.3rem;
    font-weight: 600;
}

.live-demo-section {
    margin: 1.5rem 0;
}

.demo-container {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.demo-container h4 {
    color: #22d3ee;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.demo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.demo-feature {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.4;
    font-size: 0.9rem;
}

.demo-feature strong {
    color: #22d3ee;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .team-section, .concept-section, .contributions-section, .rob-section, .jackson-section, .summary-section, .learning-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .demo-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
    
    .team-member {
        padding: 0.8rem;
    }
    
    .team-member .sub-role {
        font-size: 0.8rem;
    }
}

.pdf-section {
    margin: 1.5rem 0;
}

.pdf-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pdf-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    text-decoration: none;
}

.pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.pdf-download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

.pdf-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.pdf-preview-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-pdf-preview {
    width: 100%;
    height: 500px;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: white;
}

.pdf-fallback {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

.pdf-fallback p {
    margin: 0.5rem 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-style: italic;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-content p {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Typing cursor animation */
.typing-cursor {
    color: #6366f1;
    font-weight: normal;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Shimmer and Wave Animations for Achievement Text */
@keyframes shimmerWave {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatWave {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-1px) rotate(0deg);
    }
    75% {
        transform: translateY(-2px) rotate(-0.5deg);
    }
}

/* Mobile-specific fixes for animation issues */
@media (max-width: 768px) {
    /* Fix resume tab animation getting stuck in transition */
    .tab-content {
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
    
    .tab-content.active {
        display: block;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    
    /* Re-enable simplified animations on mobile */
    .fade-in,
    .fade-in-up {
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    .fade-in.visible,
    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Keep fade-in-left and fade-in-right simpler on mobile */
    .fade-in-left {
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    .fade-in-left.visible {
        opacity: 1;
        transform: translateX(0);
    }
    
    .fade-in-right {
        opacity: 0;
        transform: translateX(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    .fade-in-right.visible {
        opacity: 1;
        transform: translateX(0);
    }

    /* Improved navbar layout for mobile */
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        padding: 0.8rem 0; /* Increase vertical padding significantly */
        border-radius: 12px;
        min-height: 70px; /* Increase minimum height */
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between; /* Space between menu and contact */
        align-items: center;
        padding: 0.8rem 0.75rem; /* Increase vertical padding more */
        gap: 0.5rem; /* Increased gap for better spacing */
        min-height: 60px; /* Increase minimum touch target */
        position: relative;
        box-sizing: border-box;
    }

    .nav-logo {
        display: none; /* Hide name on mobile for more space */
    }

    .nav-logo h2 {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .nav-menu {
        display: flex;
        gap: 0.15rem; /* Further reduce gap to save space */
        flex: 1; /* Allow menu to take available space */
        justify-content: center;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: calc(100% - 50px); /* Reserve less space for smaller contact button */
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-button {
        padding: 0.7rem 0.6rem; /* Reduce padding to save space */
        font-size: 0.7rem; /* Smaller font to fit better */
        border-radius: 6px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 44px; /* Reduce minimum width */
        text-align: center;
        line-height: 1.1; /* Tighter line height */
        height: auto; /* Allow natural height */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-contact {
        position: static; /* Remove absolute positioning */
        flex-shrink: 0; /* Don't allow contact to shrink */
    }

    .contact-button {
        padding: 0.6rem 0.4rem; /* Make smaller than nav-buttons */
        font-size: 0.65rem; /* Smaller font size */
        border-radius: 6px;
        white-space: nowrap;
        min-width: 35px; /* Smaller minimum width */
        line-height: 1.1; /* Match nav-button line height */
        height: auto; /* Allow natural height */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-content {
        margin-top: 90px; /* Increase to account for taller navbar */
        min-height: calc(100vh - 90px);
    }

    .hero-section {
        min-height: calc(100vh - 90px);
        padding: 1rem 0;
    }

    .hero-title {
        white-space: normal;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Mobile profile picture */
    .profile-picture img {
        width: 260px;
        height: 260px;
        margin-bottom: 1.5rem;
        border: 4px solid rgba(99, 102, 241, 0.3);
        box-shadow: 
            0 0 30px rgba(99, 102, 241, 0.5),
            0 0 60px rgba(139, 92, 246, 0.4),
            0 10px 35px rgba(0, 0, 0, 0.4);
    }

    .about-section,
    .resume-section,
    .projects-section,
    .interests-section {
        min-height: auto;
        padding: 3rem 0;
        align-items: flex-start;
    }
    
    /* Specific mobile optimizations for resume section */
    .resume-section {
        padding: 2rem 0;
        overflow-x: hidden;
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline::before {
        display: none; /* Remove the central line on mobile */
    }

    .timeline-item {
        flex-direction: column;
        margin: 1.5rem 0;
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-date {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 1rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        width: fit-content;
        background: rgba(99, 102, 241, 0.2);
        border: 1px solid rgba(99, 102, 241, 0.4);
        border-radius: 15px;
    }
    
    .timeline-date::after {
        display: none; /* Remove the dot on mobile */
    }

    .education-skills {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Mobile timeline content optimization */
    .timeline-content {
        width: 100%;
        max-width: none;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 1.5rem;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        cursor: pointer;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Mobile cards optimization */
    .degree-card,
    .skills {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .skills-grid {
        width: 100%;
        overflow-x: hidden;
    }
    
    .skill-tags {
        width: 100%;
        box-sizing: border-box;
    }
    
    .skill-tag {
        word-break: break-word;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    /* Mobile honors section */
    .honors-section {
        margin-top: 2rem;
        padding: 2rem 0;
    }

    .honors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .honors-card {
        padding: 1.5rem;
    }

    .honor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .honor-header h3 {
        font-size: 1.1rem;
        min-width: unset;
    }

    .honor-date {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Add mobile-specific footer message */
    .footer-content::after {
        content: "💻 Best experienced on desktop or laptop";
        display: block;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.8rem;
        font-style: italic;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .section-content {
        padding: 0 1rem;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

/* Extra small devices - Enhanced mobile optimization */
@media (max-width: 480px) {
    .navbar {
        width: calc(100% - 16px);
        top: 8px;
        padding: 0.3rem 0;
    }

    .nav-container {
        padding: 0 0.5rem;
        gap: 0.2rem;
    }

    .nav-logo h2 {
        font-size: 0.8rem;
    }

    .nav-button {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
        min-width: 40px;
    }

    .contact-button {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
        min-width: 40px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Small mobile profile picture */
    .profile-picture img {
        width: 220px;
        height: 220px;
        margin-bottom: 1rem;
        border: 4px solid rgba(99, 102, 241, 0.3);
        box-shadow: 
            0 0 25px rgba(99, 102, 241, 0.5),
            0 0 50px rgba(139, 92, 246, 0.4),
            0 8px 30px rgba(0, 0, 0, 0.4);
    }

    .section-content {
        padding: 0 1rem;
    }

    .about-card,
    .project-card {
        padding: 1.25rem;
    }

    /* Small mobile honors section */
    .honors-card {
        padding: 1.25rem;
    }

    .honor-header h3 {
        font-size: 1rem;
    }

    .honor-issuer {
        font-size: 0.9rem;
    }

    .honor-description {
        font-size: 0.9rem;
    }
    
    /* Additional fixes for very small screens */
    .main-content {
        margin-top: 70px;
    }
    
    .hero-section {
        min-height: calc(100vh - 70px);
    }
}

/* Small mobile modal optimizations - reduce claustrophobic feeling */
@media (max-width: 480px) {
    .project-modal {
        padding: 0.5rem;
        align-items: flex-start;
    }
    
    .modal-content {
        padding: 1rem; /* Significantly reduced padding */
        margin-top: 1rem;
        border-radius: 12px;
        max-height: 92vh; /* More screen space for content */
        font-size: 0.9rem; /* Smaller base font size */
    }
    
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.2rem;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-header h2 {
        font-size: 1.4rem; /* Significantly smaller title */
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .modal-tags {
        margin-bottom: 1rem;
        gap: 0.3rem;
    }
    
    .modal-tags .tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem; /* Smaller tags */
    }
    
    .modal-description {
        font-size: 0.85rem; /* Smaller description text */
        line-height: 1.5; /* Tighter line height */
        margin-bottom: 1rem;
    }
    
    .modal-media {
        padding: 0.8rem; /* Reduced media section padding */
        margin-bottom: 1rem;
    }
    
    .modal-achievements {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .achievement {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem; /* Smaller achievement badges */
    }
    
    /* Optimize text sections in modals */
    .modal-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .modal-content h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .modal-content p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .modal-content ul {
        margin-bottom: 0.8rem;
    }
    
    .modal-content li {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        line-height: 1.4;
    }
}

/* Medium desktop modal optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    .modal-content {
        max-width: 900px;
        width: 90%;
        padding: 3rem;
    }
    
    .modal-header h2 {
        font-size: 2.2rem;
    }
    
    .modal-description {
        font-size: 1.1rem;
        line-height: 1.8;
    }
}

/* Desktop modal optimizations */
@media (min-width: 1024px) {
    .modal-content {
        max-width: 1400px;
        width: 95%;
        padding: 4rem;
        border-radius: 24px;
    }
    
    .modal-header h2 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .modal-description {
        font-size: 1.2rem;
        line-height: 1.9;
        margin-bottom: 2.5rem;
    }
    
    .modal-tags {
        margin-bottom: 2.5rem;
    }
    
    .modal-tags .tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .modal-media {
        padding: 2.5rem;
        margin-bottom: 2.5rem;
        border-radius: 16px;
    }
    
    .modal-achievements {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .achievement {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Medium mobile modal optimizations - reduce claustrophobic feeling */
@media (max-width: 768px) and (min-width: 481px) {
    .project-modal {
        padding: 0.8rem;
        align-items: flex-start;
    }
    
    .modal-content {
        padding: 1.2rem; /* Reduced from 1.5rem */
        margin-top: 1rem; /* Reduced from 2rem */
        border-radius: 16px;
        max-height: 90vh; /* Increased from 85vh */
        font-size: 0.95rem; /* Slightly smaller base font */
    }
    
    .modal-close {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 1.3rem;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-header h2 {
        font-size: 1.6rem; /* Reduced from 2rem */
        margin-bottom: 0.6rem;
        line-height: 1.2;
    }
    
    .modal-tags {
        margin-bottom: 1.2rem;
        gap: 0.4rem;
    }
    
    .modal-tags .tag {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .modal-description {
        font-size: 0.9rem; /* Reduced from 1rem */
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .modal-media {
        padding: 1.2rem; /* Reduced from 1.5rem */
        margin-bottom: 1.2rem;
    }
    
    .modal-achievements {
        gap: 0.6rem;
        margin-top: 1.2rem;
    }
    
    .achievement {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
    
    /* Optimize text sections in modals for medium mobile */
    .modal-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .modal-content h4 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    
    .modal-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.9rem;
    }
    
    .modal-content li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        line-height: 1.4;
    }
}

/* PDF Viewer Styles */
.pdf-viewer-container {
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.5);
}

.pdf-viewer {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.fullscreen-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fullscreen-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.fullscreen-btn:active {
    transform: translateY(1px);
}

/* PDF Fullscreen Modal */
.pdf-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pdf-fullscreen-modal.active {
    opacity: 1;
    visibility: visible;
}

.pdf-fullscreen-modal iframe {
    width: 100%;
    height: 90%;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
}

.pdf-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3001;
}

.pdf-modal-close:hover {
    background: rgba(99, 102, 241, 0.8);
    transform: scale(1.05);
}

/* Mobile PDF Viewer */
@media (max-width: 768px) {
    .pdf-viewer {
        height: 300px;
    }
    
    .pdf-fullscreen-modal {
        padding: 1rem;
    }
    
    .pdf-fullscreen-modal iframe {
        height: 85%;
    }
    
    .pdf-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Mobile PDF Controls */
    .pdf-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .pdf-btn, .pdf-download-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .modal-pdf-preview {
        height: 350px;
    }
    
    .pdf-fallback {
        padding: 1.5rem;
    }
}
