

:root {
    --primary-color: #ff0000;
    --primary-color-dark: #cc0000;
    --primary-color-light: #ff3333;
    --primary-color-opacity: rgba(255, 0, 0, 0.1);
    --primary-color-opacity-medium: rgba(255, 0, 0, 0.3);
    --primary-color-opacity-high: rgba(255, 0, 0, 0.5);
    

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-accent: #ff3333;
    --text-gradient-start: #ffffff;
    --text-gradient-end: #ff0000;
    --heading-gradient-start: #fff;
    --heading-gradient-end: #888;
}


body.theme-blue {
    --primary-color: #0066ff;
    --primary-color-dark: #0044cc;
    --primary-color-light: #3399ff;
    --primary-color-opacity: rgba(0, 102, 255, 0.1);
    --primary-color-opacity-medium: rgba(0, 102, 255, 0.3);
    --primary-color-opacity-high: rgba(0, 102, 255, 0.5);
    

    --text-accent: #3399ff;
    --text-gradient-end: #0066ff;
    --heading-gradient-end: #3399ff;
}

body.theme-purple {
    --primary-color: #9900ff;
    --primary-color-dark: #7700cc;
    --primary-color-light: #b366ff;
    --primary-color-opacity: rgba(153, 0, 255, 0.1);
    --primary-color-opacity-medium: rgba(153, 0, 255, 0.3);
    --primary-color-opacity-high: rgba(153, 0, 255, 0.5);
    

    --text-accent: #b366ff;
    --text-gradient-end: #9900ff;
    --heading-gradient-end: #b366ff;
}

body.theme-green {
    --primary-color: #00cc66;
    --primary-color-dark: #009933;
    --primary-color-light: #33ff99;
    --primary-color-opacity: rgba(0, 204, 102, 0.1);
    --primary-color-opacity-medium: rgba(0, 204, 102, 0.3);
    --primary-color-opacity-high: rgba(0, 204, 102, 0.5);
    

    --text-accent: #33ff99;
    --text-gradient-end: #00cc66;
    --heading-gradient-end: #33ff99;
}


.theme-text {
    color: var(--primary-color);
}

.theme-badge {
    background-color: var(--primary-color-opacity);
    color: var(--primary-color);
}

.hover\:border-theme:hover {
    border-color: var(--primary-color-opacity-medium);
}

html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #000000;
    color: #ffffff;
    cursor: none;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10000;
}
.scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
    box-shadow: 0 0 10px var(--primary-color-opacity-high);
    transition: width 0.1s ease;
}

.accent-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-gradient-start) 0%, var(--text-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-item {
    position: relative;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color-light);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.card {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid var(--primary-color-opacity);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    transform: perspective(1000px) translateZ(0);
    transition: all 0.5s ease;
    transition-duration: 0.5s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: var(--primary-color-opacity-medium);
    transform: perspective(1000px) translateZ(50px) translateY(-5px);
    box-shadow: 0 20px 40px var(--primary-color-opacity-high);
}

.input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input:focus {
    border-color: var(--primary-color-light);
}

.hero-bg {
    background: radial-gradient(circle at 50% 50%, var(--primary-color-opacity), transparent 70%);
}

.profile-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.profile-container img {
    border-radius: 24px;
    box-shadow: 0 0 40px var(--primary-color-opacity-high);
}

.profile-accent {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary-color-light) 0%, var(--primary-color) 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.5;
}

.section-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--heading-gradient-start), var(--heading-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-badge {
    background: var(--primary-color-opacity);
    color: var(--text-accent);
    border: 1px solid var(--primary-color-opacity-medium);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--primary-color-opacity-medium);
    transform: translateY(-2px);
}

.tech-stack {
    display: flex;
    gap: 2rem;
    font-size: 3rem;
}

.tech-stack i {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.tech-stack i:hover {
    opacity: 1;
    transform: translateY(-5px);
    color: var(--text-accent);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    transition-duration: 0.3s;
    position: relative;
    overflow: hidden;
}

.button-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color-dark), var(--primary-color));
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: inherit;
}

.button-primary:hover::before {
    opacity: 1;
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--primary-color-opacity-high);
}

.button-primary:active {
    transform: translateY(-1px);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    transition-duration: 0.3s;
}

.button-secondary:hover {
    background: var(--primary-color-opacity);
    border-color: var(--primary-color-opacity-medium);
    transform: translateY(-2px);
}

.nav-container {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-color-opacity);
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    position: relative;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    animation: rotateLogo 1s ease;
}

@keyframes rotateLogo {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

.nav-link {
    position: relative;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    border-radius: 100px;
    transition: all 0.3s ease;
    font-weight: 500;
    animation: fadeIn 0.5s ease backwards;
}

.nav-link:nth-child(1) { animation-delay: 0.2s; }
.nav-link:nth-child(2) { animation-delay: 0.3s; }
.nav-link:nth-child(3) { animation-delay: 0.4s; }
.nav-link:nth-child(4) { animation-delay: 0.5s; }

@keyframes fadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--primary-color-opacity-high);
    color: var(--text-accent);
}

.nav-link.button-primary {
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.nav-link.button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    z-index: -1;
    transition: transform 0.5s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.nav-link.button-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cursor, .cursor-dot {
    will-change: transform;
    pointer-events: none;
    position: fixed;
    z-index: 9999;
}

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%); 
    mix-blend-mode: difference;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color-opacity);
    color: var(--text-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}
.back-to-top:hover {
    background: var(--primary-color-opacity);
    border-color: var(--primary-color-opacity-medium);
    transform: translateY(0) scale(1.05);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hidden { display: none; }

@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px; /* keep above bottom nav on mobile */
        right: 16px;
    }
}


.cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%); 
}

a:hover ~ .cursor,
button:hover ~ .cursor,
.card:hover ~ .cursor,
[role="button"]:hover ~ .cursor,
.clickable:hover ~ .cursor {
    transform: scale(1.5);
    background: var(--primary-color-opacity);
    border-color: var(--primary-color);
}


.cursor.clicking {
    transform: scale(0.8);
    background: var(--primary-color-opacity-medium);
}

.cursor-dot.clicking {
    transform: scale(2);
}

.grid-background {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(var(--primary-color-opacity) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary-color-opacity) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    transition-duration: 1s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


section:first-of-type.reveal {
    transition-delay: 0.2s;
}

.social-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-10px);
}

.social-card .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.platform-icon {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.social-card:hover .platform-icon {
    transform: scale(1.1);
}

.platform-icon {
    width: 64px;
    height: 64px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px var(--primary-color-opacity-medium));
}

.social-card:hover .platform-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--primary-color-opacity-high));
}


::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color-opacity-medium);
    border-radius: 50px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-opacity-high);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color-opacity-medium) transparent;
}


@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-color-opacity-medium);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-container {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        margin: 0;
        border-radius: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border: none;
        border-top: 1px solid var(--primary-color-opacity-medium);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 3rem !important;
    }

    .section-title {
        font-size: 2.5rem !important;
    }

    .profile-container {
        width: 250px;
        height: 250px;
    }

    .tech-stack {
        gap: 1rem;
        font-size: 2rem;
    }

    .card {
        padding: 1rem !important;
    }
}

@media (max-width: 640px) {
    .nav-container {
        border-radius: 16px;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        padding: 1rem;
        display: flex;
        justify-content: space-around;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .profile-container {
        width: 200px;
        height: 200px;
    }

    .grid-cols-2, 
    .grid-cols-3, 
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    .flex-wrap {
        justify-content: center;
    }

    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {

    .cursor, .cursor-dot {
        display: none !important;
    }


    body {
        cursor: auto !important;
    }


    .nav-container {
        margin: 0;
        border-radius: 0;
        padding: 0.5rem 1rem;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        border-top: 1px solid var(--primary-color-opacity-medium);
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem;
    }


    .nav-link svg {
        width: 1rem;
        height: 1rem;
        display: block;
        margin: 0 auto 0.25rem;
    }


    header .flex.items-center.gap-2 {
        justify-content: space-around;
        width: 100%;
    }


    .logo {
        display: none;
    }
    .content-wrapper {
        padding-bottom: 80px;
    }
    
    /*
    .color-switcher {
        position: fixed;
        top: auto;
        right: 10px;
        bottom: 90px;
        transform: none;
        padding: 8px;
        border-radius: 20px;
        flex-direction: column;
        width: auto;
        height: auto;
    } */
    
    .color-switcher:hover {
        transform: scale(1.05);
    }
    
    .color-option {
        width: 20px;
        height: 20px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .color-option.active::after {
        width: 6px;
        height: 6px;
    }
    

    /* .color-switcher {
        position: fixed;
        top: auto;
        right: 10px;
        bottom: 90px;
        transform: none;
        padding: 8px;
        border-radius: 20px;
        flex-direction: row;
        width: auto;
        height: auto;
        max-height: 40px;
        display: flex;
        justify-content: space-between;
        gap: 8px;
    } */
    
    .color-switcher:hover {
        transform: scale(1.05);
    }
    
    /* .color-option {
        width: 20px;
        height: 20px;
        margin: 0;
        flex-shrink: 0;
    } */
    
    .color-option.active::after {
        width: 6px;
        height: 6px;
    }
    

    .py-32 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    

    .text-xl {
        font-size: 1rem;
    }
    

    .gap-16 {
        gap: 2rem;
    }
}



.color-switcher {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 30px;
    border: 1px solid var(--primary-color-opacity);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--primary-color-opacity-medium);
    transition: all 0.3s ease;
    width: auto;
    height: auto;
}

.color-switcher:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--primary-color-opacity-high);
}

.color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.color-option:hover, .color-option.active {
    transform: scale(1.2);
    border-color: white;
}

.color-option.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.color-red {
    background: #ff0000;
}

.color-blue {
    background: #0066ff;
}

.color-purple {
    background: #9900ff;
}

.color-green {
    background: #00cc66;
}

.keybinds-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--primary-color-opacity);
    color: var(--text-primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.keybinds-btn:hover { transform: scale(1.1); }

.motion-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--primary-color-opacity);
    color: var(--text-primary);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.motion-btn[aria-pressed="true"] {
    background: var(--primary-color-opacity);
    border-color: var(--primary-color-opacity-medium);
}
.motion-btn:hover { transform: scale(1.1); }

.keybinds-panel {
    position: absolute;
    right: 110%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20,20,20,0.95);
    border: 1px solid var(--primary-color-opacity);
    border-radius: 10px;
    padding: 10px;
    min-width: 180px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    z-index: 1200;
}
.keybinds-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.keybinds-row + .keybinds-row { margin-top: 6px; }
.kbd {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--primary-color-opacity);
    border-radius: 6px;
    padding: 2px 6px;
    color: var(--text-primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}



.motion-popup {
    position: fixed;
    right: 24px;
    bottom: 120px;
    background: rgba(20,20,20,0.95);
    border: 1px solid var(--primary-color-opacity);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    z-index: 1200;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.motion-popup.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .motion-popup { bottom: 170px; right: 16px; }
}

/* Reduce Motion global fallbacks */
[data-reduce-motion="true"] *, [data-reduce-motion="true"] *::before, [data-reduce-motion="true"] *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

[data-reduce-motion="true"] .card {
    transform: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}



[data-reduce-motion="true"] .reveal {
    opacity: 1 !important;
    transform: none !important;
}

[data-reduce-motion="true"] .nav-link:hover, [data-reduce-motion="true"] .button-primary:hover, [data-reduce-motion="true"] .button-secondary:hover {
    transform: none !important;
}

@media (max-width: 360px) {
    .nav-link {
        padding: 0.25rem;
        font-size: 0.7rem;
    }
}


@media (max-width: 768px) {

    .nav-container {
        margin: 0;
        padding: 0.75rem;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        border: none;
        border-top: 1px solid var(--primary-color-opacity-medium);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }


    .nav-link {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        padding: 0.5rem;
        text-align: center;
        min-width: 60px;
    }

    .nav-link.button-primary {
        background: none;
        color: var(--primary-color);
    }

    .nav-link svg {
        width: 1.5rem;
        height: 1.5rem;
        margin-bottom: 0.25rem;
    }

    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 2rem !important;
    }


    .card {
        padding: 1rem !important;
    }

    .py-32 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .gap-16 {
        gap: 2rem !important;
    }


    section {
        overflow: hidden;
        padding-bottom: 5rem; 
    }


    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }


    .tech-stack {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }


    .button-primary,
    .button-secondary {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }


    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }


    footer {
        margin-bottom: 4rem;
    }
}




.color-switcher {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 30px;
    border: 1px solid var(--primary-color-opacity);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--primary-color-opacity-medium);
    transition: all 0.3s ease;
}

.color-switcher:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--primary-color-opacity-high);
}

.color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.color-option:hover, .color-option.active {
    transform: scale(1.2);
    border-color: white;
}

.color-option.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.color-red {
    background: #ff0000;
}

.color-blue {
    background: #0066ff;
}

.color-purple {
    background: #9900ff;
}

.color-green {
    background: #00cc66;
}

@media (max-width: 360px) {
    .nav-link {
        font-size: 0.7rem;
        padding: 0.25rem;
    }

    h1 {
        font-size: 2rem !important;
    }

    .tech-stack i {
        font-size: 2rem;
    }
}

/* Performance improvements on mobile */
@media (max-width: 768px) {
    .card {
        padding: 1rem !important;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
        backdrop-filter: none;
    }
    .profile-container img {
        box-shadow: 0 0 20px var(--primary-color-opacity-medium);
    }
}




@media (max-width: 768px) {

    .nav-container {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        margin: 0;
        padding: 0.75rem 1rem;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--primary-color-opacity-medium);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-link {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.7);
        transition: all 0.3s ease;
    }

    .nav-link.active {
        color: var(--primary-color);
    }

    .nav-link svg {
        width: 1.5rem;
        height: 1.5rem;
        margin-bottom: 0.25rem;
        transition: all 0.3s ease;
    }

    .nav-link.active svg {
        filter: drop-shadow(0 0 8px var(--primary-color-opacity-high));
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: width 0.3s ease;
        border-radius: 2px;
    }

    .nav-link.active::after {
        width: 20px;
    }

    .nav-link.button-primary {
        background: none;
        padding: 0.5rem;
    }

    .nav-link.button-primary::before {
        display: none;
    }

    header .flex.items-center.gap-2 {
        gap: 0;
    }


    .nav-link:active {
        transform: scale(0.95);
    }
}
