:root {
    --primary: #00ff88;
    --bg: #050b10;
    --text: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border: #1d242c;
    --card-bg: rgba(20, 24, 30, 0.65);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.45);
}

body.light-mode {
    --primary: #00a859;
    --bg: #f0f4f8;
    --text: #0f1419;
    --text-primary: #0f1419;
    --text-secondary: rgba(15, 20, 25, 0.7);
    --border: #d0d7de;
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg);
    overflow-anchor: none;
}

html {
    /* scroll-behavior: smooth; */
    /* Disabled - causes stuttering when scrolling up from bottom */
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

::selection {
    background: rgba(0, 255, 136, 0.3);
    color: #ffffff;
    text-shadow: 0 0 5px var(--primary);
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
    transform: translate(-50%, -50%);
    left: 0;
    top: 0;
}

.cursor-trail {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    overflow: hidden;
    pointer-events: none;
    animation: none;
    z-index: -10;
}

.bg-layer::before,
.bg-layer::after {
    content: "";
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    filter: blur(60px) saturate(160%);
    opacity: 0.35;
    border-radius: 50%;
    pointer-events: none;
    z-index: -10;
}

.bg-layer::before {
    left: -15vmax;
    top: -20vmax;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(0, 255, 136, 0.5),
        transparent 60%
    );
    animation: blobMove1 28s ease-in-out infinite alternate;
}

.bg-layer::after {
    right: -18vmax;
    bottom: -22vmax;
    background: radial-gradient(
        circle at 70% 70%,
        rgba(0, 180, 255, 0.4),
        transparent 60%
    );
    animation: blobMove2 32s ease-in-out infinite alternate;
}

@keyframes hueShift {
    0% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(25deg);
    }

    100% {
        filter: hue-rotate(0deg);
    }
}

@keyframes blobMove1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(12vmax, 6vmax) scale(1.15);
    }

    100% {
        transform: translate(24vmax, 12vmax) scale(1);
    }
}

@keyframes blobMove2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10vmax, -6vmax) scale(1.1);
    }

    100% {
        transform: translate(-22vmax, -12vmax) scale(1);
    }
}

.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

.glass-card {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(16px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.05);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 0 20px rgba(0, 255, 136, 0.05);
    transition:
        transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.35s ease,
        background 0.35s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform, box-shadow;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.02) 30%,
        transparent 60%
    );
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.35s ease;
}

.glass-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 50%
    );
    opacity: 0;
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
    pointer-events: none;
}

.glass-card:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        0 0 36px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-6px);
}

.glass-card:hover::before {
    opacity: 0.9;
}

.glass-card:hover::after {
    opacity: 0.4;
    transform: translate(10%, 10%);
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.25rem 2rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.profile-section {
    grid-column: 5 / 9;
    padding: 2rem;
    text-align: center;
    animation-delay: 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotify-status-card {
    grid-column: 1 / 5;
    animation-delay: 0.1s;
}

.music-player-card {
    grid-column: 9 / 13;
    animation-delay: 0.3s;
}

.spotify-status-card,
.music-player-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    background: var(--glass-bg);
    /* Identical background */
    border: 1px solid var(--glass-border);
    /* Identical border */
    border-radius: 24px;
}

@media (max-width: 1200px) {
    .spotify-status-card,
    .profile-section,
    .music-player-card {
        grid-column: 1 / 13;
        min-height: 480px;
    }
}

.music-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.spotify-brand {
    color: #1db954;
}

.music-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    align-items: center;
}

#music-title {
    font-weight: 700;
    color: var(--text);
    font-size: 1.1rem;
}

#music-artist {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.music-btn {
    background: linear-gradient(135deg, var(--primary), #00c68a);
    border: none !important;
    color: #000 !important;
    border-radius: 12px;
    padding: 0.75rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.music-btn i {
    color: #000 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    animation: none !important;
    filter: none !important;
    font-size: 1.1rem;
}

.spotify-btn {
    background: linear-gradient(135deg, #1db954, #19a34a) !important;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.2) !important;
}

.music-btn:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.spotify-btn:hover {
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.3) !important;
}

.spotify-art-wrapper {
    width: 180px;
    /* Larger art */
    height: 180px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.spotify-art-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotify-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Space out elements */
    padding: 0.5rem 0;
}

.spotify-active-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 1.25rem;
}

.spotify-track-name {
    font-weight: 800;
    font-size: 1.15rem;
    text-align: center;
    color: #fff;
}

.spotify-artist-name {
    font-size: 1rem;
    opacity: 0.8;
    text-align: center;
}

.spotify-album-name {
    font-size: 0.85rem;
    opacity: 0.5;
    text-align: center;
    font-style: italic;
}

.spotify-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.spotify-progress-bar {
    height: 100%;
    background: #1db954;
    width: 0%;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
}

.spotify-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.35rem;
    font-family: monospace;
}

.music-controls {
    margin-top: auto;
}

.spotify-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0.5;
    height: 100%;
}

.spotify-placeholder i {
    font-size: 4rem;
    color: #1db954;
}

.spotify-placeholder span {
    font-size: 1.1rem;
    font-weight: 600;
}

.visualizer-canvas {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin: 0.5rem 0;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(2deg);
    }

    50% {
        transform: translateY(0px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

.avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    animation: float 3s ease-in-out infinite;
}

/* Enhanced Link Underline - Universal (using :where for lower specificity) */
a:where(
    :not(
        .social-link,
        .contact-btn,
        .music-btn,
        .spec-item,
        .activity-link,
        .steam-profile-link,
        .status-view-link
    )
) {
    position: relative;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

a:where(
        :not(
            .social-link,
            .contact-btn,
            .music-btn,
            .spec-item,
            .activity-link,
            .steam-profile-link,
            .status-view-link
        )
    )::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease-in-out;
    box-shadow: 0 0 8px var(--primary);
}

a:where(
        :not(
            .social-link,
            .contact-btn,
            .music-btn,
            .spec-item,
            .activity-link,
            .steam-profile-link,
            .status-view-link
        )
    ):hover::after {
    width: 100%;
}

.steam-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
}

.steam-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.steam-username {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.steam-status-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.steam-game-info {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
    opacity: 0.9;
}

.steam-profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.steam-profile-link:hover {
    background: var(--primary) !important;
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.steam-profile-link:hover i {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #000 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .steam-status-panel,
    .discord-status-panel {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .steam-user-info,
    .discord-user-info {
        flex-direction: column;
        width: 100%;
    }

    .steam-name-row,
    .discord-name-row {
        justify-content: center;
    }

    .status-link-container {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .status-view-link {
        width: 100%;
    }
}

/* Status Dot Colors */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #767d85;
    /* Default Offline */
    box-shadow: 0 0 8px rgba(118, 125, 133, 0.5);
    transition: all 0.3s ease;
}

.online .status-dot {
    background: #43b581;
    box-shadow: 0 0 10px rgba(67, 181, 129, 0.6);
}

.away .status-dot {
    background: #faa61a;
    box-shadow: 0 0 10px rgba(250, 166, 26, 0.6);
}

.busy .status-dot {
    background: #f04747;
    box-shadow: 0 0 10px rgba(240, 71, 71, 0.6);
}

.in-game .status-dot {
    background: #43b581;
    box-shadow: 0 0 10px rgba(67, 181, 129, 0.6);
}

.offline .status-dot {
    background: #747f8d;
    box-shadow: none;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;

    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%,
    100% {
        box-shadow:
            0 0 40px rgba(0, 255, 136, 0.3),
            0 0 60px rgba(0, 255, 136, 0.2),
            inset 0 0 20px rgba(0, 255, 136, 0.1);
    }

    50% {
        box-shadow:
            0 0 60px rgba(0, 255, 136, 0.5),
            0 0 90px rgba(0, 255, 136, 0.3),
            inset 0 0 30px rgba(0, 255, 136, 0.2);
    }
}

.avatar:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 0 80px rgba(0, 255, 136, 0.6);
}

.avatar-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.3;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text);
    opacity: 0.8;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.profile-stat-item:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.2);
}

.profile-stat-item i {
    font-size: 1.3rem;
    color: var(--primary);
}

.profile-stat-item span:not(.stat-label) {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: "Courier New", monospace;
}

.profile-stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visualizer-section {
    grid-column: 5 / 13;
    padding: 2rem;
    animation-delay: 0.2s;
}

.visualizer-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.music-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-controls {
    display: flex;
    justify-content: flex-end;
}

.music-btn {
    background: linear-gradient(135deg, var(--primary), #00c68a);
    border: 1px solid rgba(0, 0, 0, 0.35);
    color: #000;
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.music-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 255, 136, 0.45);
    filter: brightness(1.05);
}

.music-btn i {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #000 !important;
}

.music-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: center;
    align-items: center;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.music-meta.changing {
    opacity: 0;
    transform: translateY(5px);
}

#music-title {
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#music-title i.fa-spotify {
    color: #1db954;
    font-size: 1rem;
}

#music-artist {
    font-size: 0.9rem;
    opacity: 0.7;
}

.music-link {
    color: var(--text);
    text-decoration: none;
    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

.music-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.visualizer-canvas {
    width: 100%;
    height: 320px;
    border-radius: 18px;
    background: transparent;
    border: 1px solid rgba(0, 255, 136, 0.25);
    box-shadow:
        0 0 32px rgba(0, 255, 136, 0.12),
        inset 0 0 20px rgba(0, 0, 0, 0.35);
    transition:
        opacity 0.5s ease,
        height 0.5s ease,
        margin 0.5s ease;
}

.visualizer-canvas.hidden {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    border: none;
}

.social-section {
    grid-column: 1 / 7;
    padding: 2rem;
    animation-delay: 0.3s;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.socials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    flex: 1 1 170px;
    max-height: 50px;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--social-color, var(--primary));
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.social-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        var(--social-color, var(--primary)) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-link:hover::before {
    transform: scaleY(1);
}

.social-link:hover::after {
    opacity: 0.15;
}

.social-link:hover {
    transform: translateX(12px) scale(1.05);
    border-color: var(--social-color, var(--primary));
    box-shadow: 0 0 25px var(--social-color, var(--primary));
    /* Updated Glow */
    background: rgba(255, 255, 255, 0.03);
    /* Keep subtle bg */
}

.social-link i {
    font-size: 1.3rem;
    /* Default Unified Look: Primary Gradient */
    background: linear-gradient(135deg, #00ff88, #00b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

.social-link:hover i {
    transform: scale(1.2) rotate(10deg);
    /* On Hover: Reveal Brand Color */
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--social-color, var(--primary));
    filter: drop-shadow(0 0 8px var(--social-color, var(--primary)));
}

.stats-section {
    grid-column: 7 / 13;
    padding: 2rem;
    animation-delay: 0.4s;
}

.activity-section {
    grid-column: 1 / 13;
    padding: 2rem;
    animation-delay: 0.45s;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
    min-height: 400px;
}

.feed-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 12px 32px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feed-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 20% 20%,
        rgba(0, 255, 136, 0.1),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    /* FIX: Allow clicks to pass through overlay */
}

.feed-card:hover::after {
    opacity: 1;
}

.feed-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 16px 40px rgba(0, 255, 136, 0.3);
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* --- Activity & Feed Styles (Refactored) --- */

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Independent scrolling constraints */
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
    /* Space for scrollbar */
    /* Scrollbar styling for Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar for Webkit (Chrome, Edge, Safari) */
.feed-list::-webkit-scrollbar {
    width: 6px;
}

.feed-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.feed-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.activity-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    /* Hidden initially for animation */
    animation: fadeInUp 0.5s ease forwards;
    position: relative;
    flex-shrink: 0;
    /* Prevent shrinking in flex container */
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(4px);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.activity-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.3;
    word-break: break-word;
}

.activity-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.activity-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit description to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.2rem;
}

/* Metadata Row Styling */
.activity-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.meta-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-badge i {
    font-size: 0.7rem;
    color: var(--primary);
}

.meta-date {
    margin-left: auto;
    /* Push date to the right */
    font-family: monospace;
    opacity: 0.7;
}

.feed-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.feed-item:hover {
    transform: translateX(6px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.2);
}

.last-update-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.last-update-info small {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.last-update-info small:hover {
    color: rgba(255, 255, 255, 0.65);
}

.feed-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-style: italic;
}

.feed-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(0, 255, 136, 0.1);
    display: grid;
    place-items: center;
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.2);
}

.feed-content {
    flex: 1;
}

.feed-title {
    font-weight: 700;
    margin-bottom: 0.15rem;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    min-height: 160px;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-card:hover {
    transform: scale(1.08) translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.4);
}

.stat-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    animation: bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(10deg);
    }
}

.stat-card:hover i {
    transform: scale(1.2) rotate(360deg);
    filter: drop-shadow(0 0 12px var(--primary));
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.7;
}

.skills-section {
    grid-column: 1 / 13;
    padding: 2rem;
    animation-delay: 0.6s;
}

/* Projects Section */
.projects-section {
    grid-column: 1 / 13;
    padding: 2rem;
    animation-delay: 0.5s;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        background 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 136, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow:
        0 12px 40px rgba(0, 255, 136, 0.15),
        0 0 20px rgba(0, 255, 136, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
    flex: 1;
}

.project-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-badge-active {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--primary);
}

.project-badge-current {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196f3;
}

.project-badge-collab {
    background: rgba(156, 39, 176, 0.15);
    border: 1px solid rgba(156, 39, 176, 0.3);
    color: #9c27b0;
}

.project-badge-archive {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.project-badge-private {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.project-stats {
    display: flex;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.project-stat:hover {
    color: var(--primary);
}

.project-stat i {
    font-size: 0.9rem;
}

.project-link {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--primary), #00c68a);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.project-link i,
.project-link .fa-external-link-alt {
    color: #000 !important;
    filter: brightness(0) !important;
}

.project-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition:
        width 0.5s,
        height 0.5s;
}

.project-link:hover::before {
    width: 200px;
    height: 200px;
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.4);
}

/* Skeleton Loading */
.project-card-skeleton {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.skeleton-header {
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    width: 70%;
}

.skeleton-desc {
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.skeleton-desc:last-of-type {
    margin-bottom: 1rem;
    width: 90%;
}

.skeleton-footer {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 50%;
}

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

    50% {
        opacity: 0.7;
    }
}

.contact-section {
    grid-column: 1 / 9;
    padding: 2.6rem;
    animation-delay: 0.7s;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1.3rem;
    background: linear-gradient(135deg, var(--primary), #00c68a);
    color: #000;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.25);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition:
        width 0.6s,
        height 0.6s;
}

.contact-btn:hover::before {
    width: 300px;
    height: 300px;
}

.contact-btn:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.6);
}

.footer {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
}

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

.perf-indicator {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.copyright-bar {
    text-align: center;
    padding: 1.5rem 0 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in,
.animate-slide-up,
.animate-slide-right,
.animate-slide-left {
    opacity: 0;
    visibility: hidden;
    will-change: opacity, transform;
}

.in-view {
    visibility: visible;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Typing Cursor */
.typing-cursor::after {
    content: "|";
    display: inline-block;
    width: 4px;
    /* Fix for layout shift */
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    color: var(--primary);
}

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

    50% {
        opacity: 0;
    }
}

/* Glass Card Internal Glow (Static Replacement for Shine) */
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 20% 0%,
        rgba(255, 255, 255, 0.04),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

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

.activity-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.15rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.meta-item i {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Gaming & Setup Section */
.gaming-section {
    grid-column: 1 / -1;
    padding: 2rem;
}

.gaming-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pc-specs-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
}

.specs-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pc-specs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(
        120deg,
        rgba(0, 255, 136, 0.08),
        rgba(0, 0, 0, 0.25)
    );
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    text-decoration: none;
    color: var(--text);
}

.spec-item:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
}

/* Unified Icon Style for Consistency */
i:not(.social-link i) {
    background: linear-gradient(135deg, #00ff88, #00b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Required for clip to work on some browsers */
}

/* Specific Updates for Setup Items */
.spec-item i {
    font-size: 1.5rem;
    /* Gradient is applied by general rule above */
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.5));
    /* Replaced text-shadow for gradient text */
    margin-bottom: 0;
    /* Fix alignment */
    transition: all 0.4s ease;
}

.spec-item:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.8));
}

.spec-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.spec-item small {
    opacity: 0.6;
    margin-left: 6px;
    font-size: 0.85rem;
}

/* Contact Section Improvements */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), #00cc66);
    color: #000;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

.contact-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition:
        width 0.5s,
        height 0.5s;
}

.contact-btn:hover::before {
    width: 300px;
    height: 300px;
}

.contact-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 255, 136, 0.45);
}

.btn-label {
    opacity: 0.95;
}

.system-section {
    grid-column: 9 / 13;
    padding: 2rem;
}

.system-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.2rem;
}

.system-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.system-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.system-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.system-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.system-link:hover {
    text-decoration: underline;
}

.system-desc {
    opacity: 0.8;
    line-height: 1.4;
}

.contact-btn i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.about-section {
    grid-column: 1 / 13;
    padding: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 28px rgba(0, 255, 136, 0.25);
}

.about-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.about-value a {
    color: var(--primary);
    text-decoration: underline;
}

.about-value {
    color: rgba(255, 255, 255, 0.9);
}

.about-os {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.os-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.lang-slider {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
    --fill: 100%;
}

.lang-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.lang-track {
    position: relative;
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35);
}

.lang-fill {
    position: absolute;
    inset: 0;
    width: var(--fill);
    background: linear-gradient(90deg, #00ff88, #00d4b4, #00aaff);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.4);
    border-radius: inherit;
    animation: fillSlide 1.2s ease forwards;
}

.lang-thumb {
    display: none;
}

.lang-slider[data-level="100"] {
    --fill: 100%;
}

.lang-slider[data-level="90"] {
    --fill: 90%;
}

.lang-slider[data-level="35"] {
    --fill: 35%;
}

.lang-slider[data-level="25"] {
    --fill: 25%;
}

.lang-slider[data-level="20"] {
    --fill: 20%;
}

@keyframes fillSlide {
    from {
        width: 0;
    }

    to {
        width: var(--fill);
    }
}

@keyframes thumbPulse {
    0%,
    100% {
        box-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.9);
    }
}

/* Time & Timezone Section */
.time-section {
    grid-column: 1 / 13;
    padding: 2rem;
}

.time-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.time-display:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 28px rgba(0, 255, 136, 0.25);
}

.time-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: "Courier New", monospace;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    line-height: 1;
}

.timezone-info {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.time-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.6;
}

.time-difference {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.time-difference i {
    font-size: 1.2rem;
}

/* Responsive Design for Time Section */
@media (max-width: 768px) {
    .time-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .time-separator {
        display: none;
    }

    .time-value {
        font-size: 2rem;
    }
}

.bg-canvas {
    z-index: -1;
}

.float-particle {
    z-index: -2 !important;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .profile-section,
    .visualizer-section,
    .social-section,
    .stats-section,
    .gaming-section,
    .skills-section,
    .contact-section,
    .system-section {
        grid-column: 1 / -1;
    }

    .gaming-content {
        grid-template-columns: 1fr;
    }

    .socials-grid {
        justify-content: stretch;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.25rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav {
        gap: 0.5rem;
    }

    .nav-btn {
        padding: 0.5rem 0.7rem;
    }

    .visualizer-canvas {
        height: 240px;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Naprawa niewidzialnych modułów/przycisków */
.nav-buttons,
.action-module {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex;
    z-index: 10;
}

/* Kontener ze scrollem */
.scrollable-content {
    height: 380px;
    /* Fixed height to force layout */
    overflow-y: scroll;
    /* Force scrollbar visibility */
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    /* FIX: Ensure z-index works */
    z-index: 2;
    /* FIX: Place above card overlays */
    /* Ensure scrollbar styling for Firefox */
    scrollbar-width: thin;
    scrollbar-color: #00ff99 rgba(255, 255, 255, 0.05);
}

/* Customowy Scrollbar dla Nobara/Chrome */
.scrollable-content::-webkit-scrollbar {
    width: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: #00ff99;
    border-radius: 10px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

/* Animacja wejścia */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.item-animate {
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
    /* Ensure hidden before animation */
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    body {
        cursor: auto;
    }
}

/* Performance optimizations for low-end devices */
@media (max-width: 768px), (max-height: 600px) {
    .bg-layer::before,
    .bg-layer::after {
        filter: blur(40px) saturate(120%) !important;
    }

    .glass-card {
        backdrop-filter: blur(10px) saturate(150%) !important;
        -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .main-container {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .glass-card {
        padding: 1.25rem !important;
        border-radius: 16px;
    }

    .section-title {
        font-size: 1rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .avatar-container {
        width: 140px;
        height: 140px;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .visualizer-canvas {
        height: 100px !important;
    }
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
    .glass-card:hover {
        transform: none;
    }

    .stat-card:hover,
    .social-link:hover,
    .contact-btn:hover,
    .music-btn:hover {
        transform: none;
    }

    .stat-card:active,
    .social-link:active,
    .contact-btn:active,
    .music-btn:active {
        transform: scale(0.95);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-container {
        display: flex;
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .stats-grid,
    .activity-grid,
    .gaming-content,
    .about-grid,
    .contact-grid,
    .socials-grid {
        display: flex;
        flex-direction: column;
    }

    .feed-card,
    .stat-card,
    .spec-item,
    .contact-card,
    .about-card {
        width: 100%;
    }

    /* Improve touch targets */
    .music-btn,
    .contact-btn,
    .social-link {
        min-height: 48px;
        padding: 0.85rem 1.2rem;
    }

    .theme-toggle {
        width: 48px;
        height: 48px;
        bottom: 1rem;
        right: 1rem;
    }

    /* Optimize text sizes */
    body {
        font-size: 15px;
    }

    .wip-notice {
        bottom: 1rem;
        width: calc(100% - 1rem);
        padding: 1rem;
    }

    .wip-content {
        gap: 0.75rem;
    }

    .wip-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .wip-icon-wrapper i {
        font-size: 1.2rem;
    }

    .wip-title {
        font-size: 0.9rem;
    }

    .wip-description {
        font-size: 0.8rem;
    }

    .wip-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

/* --- STEAM PANEL OVERHAUL --- */
.steam-panel-section {
    grid-column: 1 / 13;
    padding: 2rem;
}

.steam-status-panel,
.discord-status-panel,
.roblox-status-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.steam-user-info,
.discord-user-info,
.roblox-user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.steam-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.steam-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    object-fit: cover;
}

.steam-avatar-wrapper .status-dot {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border: 3px solid #0b0f14;
    z-index: 2;
}

.steam-avatar-wrapper.online .status-dot {
    background: #57cbff;
    box-shadow: 0 0 10px rgba(87, 203, 255, 0.6);
}

.steam-avatar-wrapper.away .status-dot {
    background: #ffc82c;
    box-shadow: 0 0 10px rgba(255, 200, 44, 0.6);
}

.steam-avatar-wrapper.busy .status-dot {
    background: #ff4b4b;
    box-shadow: 0 0 10px rgba(255, 75, 75, 0.6);
}

.steam-avatar-wrapper.in-game .status-dot {
    background: #90ff47;
    box-shadow: 0 0 10px rgba(144, 255, 71, 0.6);
}

.steam-avatar-wrapper.offline .status-dot {
    background: #3a3f44;
    box-shadow: none;
}

.steam-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.steam-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.steam-username {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.steam-status-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.steam-game-info {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
    opacity: 0.9;
}

.discord-activity-info {
    font-size: 0.95rem;
    color: #5865f2;
    font-weight: 500;
    opacity: 0.9;
}

.discord-last-seen {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.7;
}

.discord-last-seen i {
    font-size: 0.75rem;
}

.steam-extra-info {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.6;
}

.steam-extra-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.discord-extra-info {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.6;
}

.discord-extra-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.steam-right-content {
    display: flex;
    align-items: center;
}

.discord-right-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    gap: 0.5rem;
}

.discord-activity-item {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text);
    text-align: right;
}

.discord-activity-item .activity-name {
    font-weight: 600;
    color: #5865f2;
    display: block;
    margin-bottom: 0.25rem;
}

.discord-activity-item .activity-type {
    opacity: 0.7;
    font-size: 0.75rem;
}

.steam-profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.steam-profile-link:hover {
    background: var(--primary) !important;
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.steam-profile-link:hover i {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #000 !important;
}

/* ========================================== */
/* STATUS PANELS GRID (Steam + Discord) */
.status-panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.status-sub-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.status-sub-panel:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary);
}

.sub-panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.status-sub-panel.compact-panel {
    padding: 1.2rem;
}

.status-sub-panel.compact-panel .steam-status-panel,
.status-sub-panel.compact-panel .discord-status-panel,
.status-sub-panel.compact-panel .roblox-status-panel {
    padding: 1.1rem;
    gap: 1rem;
    flex-direction: column;
    align-items: stretch;
}

.status-sub-panel.compact-panel .steam-avatar-wrapper,
.status-sub-panel.compact-panel .discord-avatar-wrapper,
.status-sub-panel.compact-panel .roblox-avatar-wrapper {
    width: 64px;
    height: 64px;
}

.status-sub-panel.compact-panel .steam-username,
.status-sub-panel.compact-panel .discord-username,
.status-sub-panel.compact-panel .roblox-username {
    font-size: 1.05rem;
}

.status-sub-panel.compact-panel .steam-user-info {
    justify-content: flex-start;
}

.status-sub-panel.compact-panel .steam-name-row {
    justify-content: flex-start;
}

.status-sub-panel.compact-panel .steam-extra-info {
    justify-content: flex-start;
    gap: 1rem;
}

.status-sub-panel.compact-panel .status-link-container {
    width: 100%;
    justify-content: flex-start;
}

.discord-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.discord-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    object-fit: cover;
}

.discord-avatar-wrapper .status-dot {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border: 3px solid #0b0f14;
    background: #888;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.discord-avatar-wrapper.online .status-dot {
    background: #90ff47;
    box-shadow: 0 0 10px rgba(144, 255, 71, 0.6);
}

.discord-avatar-wrapper.idle .status-dot {
    background: #ffc82c;
    box-shadow: 0 0 10px rgba(255, 200, 44, 0.6);
}

.discord-avatar-wrapper.dnd .status-dot {
    background: #ff4b4b;
    box-shadow: 0 0 10px rgba(255, 75, 75, 0.6);
}

.discord-avatar-wrapper.offline .status-dot {
    background: #3a3f44;
    box-shadow: none;
}

.roblox-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.roblox-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    object-fit: cover;
}

.roblox-avatar-wrapper .status-dot {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border: 3px solid #0b0f14;
    background: #888;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.roblox-avatar-wrapper.online .status-dot {
    background: #00a2ff;
    box-shadow: 0 0 10px rgba(0, 162, 255, 0.6);
}

.roblox-avatar-wrapper.away .status-dot {
    background: #8b8f96;
    box-shadow: none;
}

.roblox-avatar-wrapper.busy .status-dot {
    background: #f5c242;
    box-shadow: 0 0 10px rgba(245, 194, 66, 0.6);
}

.roblox-avatar-wrapper.in-game .status-dot {
    background: #43b581;
    box-shadow: 0 0 10px rgba(67, 181, 129, 0.6);
}

.roblox-avatar-wrapper.offline .status-dot {
    background: #3a3f44;
    box-shadow: none;
}

.discord-details,
.steam-details,
.roblox-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.discord-name-row,
.steam-name-row,
.roblox-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.roblox-name-icon {
    color: #ef3340;
    font-size: 1.05rem;
    opacity: 0.9;
}

.discord-username,
.steam-username,
.roblox-username {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.discord-status-text,
.steam-status-text,
.roblox-status-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.discord-activity-info {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.roblox-game-info {
    font-size: 0.9rem;
    color: #ef3340;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.status-link-container {
    display: flex;
    justify-content: flex-end;
    width: auto;
    margin-left: 0;
    flex: 0 0 auto;
    align-self: center;
}

.status-view-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.status-view-link:hover {
    background: var(--primary) !important;
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

/* Mobile Adjustments for Steam Panel */
@media (max-width: 768px) {
    .status-panels-grid {
        grid-template-columns: 1fr;
    }

    .steam-status-panel,
    .discord-status-panel,
    .roblox-status-panel {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        align-items: stretch;
    }

    .steam-user-info,
    .discord-user-info,
    .roblox-user-info {
        flex-direction: column;
        width: 100%;
    }

    .steam-name-row,
    .discord-name-row,
    .roblox-name-row {
        justify-content: center;
    }

    .status-link-container {
        justify-content: center;
        width: 100%;
    }

    .steam-profile-link,
    .status-view-link {
        width: 100%;
    }
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #767d85;
    transition: all 0.3s ease;
}

.online .status-dot {
    background: #43b581;
    box-shadow: 0 0 10px rgba(67, 181, 129, 0.6);
}

.away .status-dot {
    background: #faa61a;
    box-shadow: 0 0 10px rgba(250, 166, 26, 0.6);
}

.busy .status-dot {
    background: #f04747;
    box-shadow: 0 0 10px rgba(240, 71, 71, 0.6);
}

.in-game .status-dot {
    background: #43b581;
    box-shadow: 0 0 10px rgba(67, 181, 129, 0.6);
}

.offline .status-dot {
    background: #747f8d;
    box-shadow: none;
}

.copyright-bar {
    text-align: center;
    padding: 2rem;
    opacity: 0.6;
    font-weight: 600;
}

/* WIP Notice Banner - Glassmorphism Design */
.wip-notice {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: calc(100% - 2rem);
    background: linear-gradient(
        135deg,
        rgba(0, 255, 136, 0.1),
        rgba(0, 184, 255, 0.1)
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    z-index: 10000;
    padding: 1.5rem;
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 40px rgba(0, 255, 136, 0.2);
}

.wip-notice.hidden {
    animation: slideOutDown 0.4s cubic-bezier(0.6, 0, 0.84, 0) forwards;
}

.wip-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
}

.wip-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 136, 0.2),
        rgba(0, 184, 255, 0.2)
    );
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    flex-shrink: 0;
}

.wip-icon-wrapper i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #00ff88, #00b8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: iconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.6));
}

.wip-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wip-title {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.02em;
}

.wip-description {
    font-size: 0.875rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
}

.wip-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    flex-shrink: 0;
}

.wip-close i {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.wip-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.wip-close:hover i {
    color: #000;
    -webkit-text-fill-color: #000 !important;
}

@keyframes slideInUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    to {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
}

@keyframes iconBounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }

    .project-card {
        padding: 1.2rem;
    }

    .project-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .steam-status-panel {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .steam-user-info {
        flex-direction: column;
        width: 100%;
    }

    .steam-name-row {
        justify-content: center;
    }

    .steam-profile-link {
        width: 100%;
    }

    /* Removed duplicate WIP notice styles - now in main mobile block */
}

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

    .project-card {
        padding: 1rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-footer {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 1rem !important;
    }

    .project-stats {
        width: auto !important;
        justify-content: flex-start !important;
    }

    .project-link {
        width: auto !important;
        justify-content: flex-end !important;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px var(--shadow),
        0 0 20px rgba(0, 255, 136, 0.05);
    z-index: 9999;
    font-size: 1.3rem;
}

.theme-toggle:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.3);
}

.theme-toggle i {
    background: linear-gradient(135deg, #00ff88, #00b8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Light mode adjustments */
body.light-mode .theme-toggle i {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Light mode specific adjustments for better visibility */
body.light-mode .bg-layer::before {
    background: radial-gradient(
        circle at 30% 30%,
        rgba(0, 204, 112, 0.3),
        transparent 60%
    );
}

body.light-mode .bg-layer::after {
    background: radial-gradient(
        circle at 70% 70%,
        rgba(0, 150, 255, 0.25),
        transparent 60%
    );
}

body.light-mode .wip-notice {
    background: linear-gradient(
        135deg,
        rgba(0, 168, 89, 0.08),
        rgba(0, 184, 255, 0.08)
    );
    border: 1px solid rgba(0, 168, 89, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset,
        0 0 40px rgba(0, 168, 89, 0.15);
}

body.light-mode .wip-icon-wrapper {
    background: linear-gradient(
        135deg,
        rgba(0, 168, 89, 0.15),
        rgba(0, 184, 255, 0.15)
    );
    border: 1px solid rgba(0, 168, 89, 0.3);
}

body.light-mode .wip-title {
    color: rgba(0, 0, 0, 0.95);
}

body.light-mode .wip-description {
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .wip-close {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .wip-close i {
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .wip-close:hover {
    background: var(--primary);
    border-color: var(--primary);
}

body.light-mode .wip-close:hover i {
    color: #fff;
    -webkit-text-fill-color: #fff !important;
}

/* Light Mode: Enhanced text visibility and contrast */
body.light-mode .about-value {
    color: rgba(0, 0, 0, 0.85);
}

body.light-mode .about-title {
    color: var(--primary);
    font-weight: 700;
}

body.light-mode .profile-bio {
    color: rgba(0, 0, 0, 0.75);
    opacity: 1;
}

body.light-mode #music-artist {
    color: var(--text);
    opacity: 0.65;
}

body.light-mode .spotify-placeholder span {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .spotify-artist-name {
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .spotify-album-name {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .stat-label {
    color: var(--text);
    opacity: 0.7;
}

body.light-mode .feed-meta {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .activity-desc {
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .activity-meta-row {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .steam-status-text {
    color: var(--text);
    opacity: 0.7;
}

body.light-mode .steam-extra-info {
    color: var(--text);
    opacity: 0.6;
}

body.light-mode .last-update-info small {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .system-desc {
    color: rgba(0, 0, 0, 0.75);
}

body.light-mode .spec-item span {
    color: rgba(0, 0, 0, 0.85);
}

body.light-mode .spec-item small {
    color: rgba(0, 0, 0, 0.55);
}

body.light-mode .copyright-bar {
    color: rgba(0, 0, 0, 0.5);
}

/* Light Mode: Improved shadows for depth without harshness */
body.light-mode .glass-card {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 8px rgba(0, 168, 89, 0.04);
}

body.light-mode .glass-card:hover {
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 0 16px rgba(0, 168, 89, 0.1);
}

body.light-mode .stat-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-mode .stat-card:hover {
    box-shadow: 0 8px 20px rgba(0, 168, 89, 0.15);
}

body.light-mode .social-link:hover {
    box-shadow: 0 0 16px rgba(0, 168, 89, 0.2);
}

body.light-mode .feed-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.light-mode .feed-card:hover {
    box-shadow: 0 8px 20px rgba(0, 168, 89, 0.15);
}

body.light-mode .about-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-mode .about-card:hover {
    box-shadow: 0 6px 16px rgba(0, 168, 89, 0.12);
}

body.light-mode .music-btn {
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.2);
}

body.light-mode .music-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 168, 89, 0.3);
}

body.light-mode .contact-btn {
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.2);
}

body.light-mode .contact-btn:hover {
    box-shadow: 0 8px 24px rgba(0, 168, 89, 0.35);
}

body.light-mode .project-card {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 168, 89, 0.2);
}

body.light-mode .project-card:hover {
    border-color: rgba(0, 168, 89, 0.4);
    box-shadow:
        0 12px 40px rgba(0, 168, 89, 0.1),
        0 0 20px rgba(0, 168, 89, 0.06);
    background: rgba(255, 255, 255, 0.6);
}

body.light-mode .project-badge {
    background: rgba(0, 168, 89, 0.12);
    border-color: rgba(0, 168, 89, 0.3);
}

body.light-mode .project-link {
    box-shadow: 0 4px 16px rgba(0, 168, 89, 0.2);
}

body.light-mode .project-link:hover {
    box-shadow: 0 8px 24px rgba(0, 168, 89, 0.35);
}

body.light-mode .theme-toggle {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 8px rgba(0, 168, 89, 0.04);
}

body.light-mode .theme-toggle:hover {
    box-shadow: 0 8px 24px rgba(0, 168, 89, 0.2);
}

/* Light Mode: Avatar adjustments */
body.light-mode .avatar {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 168, 89, 0.25);
}

body.light-mode .avatar:hover {
    box-shadow: 0 0 50px rgba(0, 168, 89, 0.4);
}

/* Light Mode: Background adjustments for better contrast */
body.light-mode .bg-layer::before {
    background: radial-gradient(
        circle at 30% 30%,
        rgba(0, 168, 89, 0.15),
        transparent 60%
    );
    opacity: 0.5;
}

body.light-mode .bg-layer::after {
    background: radial-gradient(
        circle at 70% 70%,
        rgba(0, 120, 200, 0.12),
        transparent 60%
    );
    opacity: 0.5;
}

/* Light Mode: Canvas opacity for cleaner look */
body.light-mode .bg-canvas {
    opacity: 0.6;
}

/* Light Mode: Better contrast for language sliders */
body.light-mode .lang-track {
    background: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .lang-fill {
    background: linear-gradient(90deg, #00a859, #00c670, #00d88a);
    box-shadow: 0 0 12px rgba(0, 168, 89, 0.3);
}

/* Light Mode: Visualizer border */
body.light-mode .visualizer-canvas {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 168, 89, 0.15);
}

/* Light Mode: Better feed item visibility */
body.light-mode .activity-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .activity-item:hover {
    background: rgba(0, 168, 89, 0.05);
    border-color: rgba(0, 168, 89, 0.2);
}

body.light-mode .feed-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .feed-item:hover {
    background: rgba(0, 168, 89, 0.04);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.15);
}

/* Light Mode: Meta badges visibility */
body.light-mode .meta-badge {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.7);
}

/* Light Mode: Steam panel adjustments */
body.light-mode .steam-status-panel {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .discord-status-panel {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .roblox-status-panel {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .status-sub-panel {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .status-sub-panel:hover {
    border-color: var(--primary);
}

body.light-mode .steam-game-info {
    color: var(--primary);
}

body.light-mode .discord-activity-info {
    color: var(--primary);
}

body.light-mode .roblox-game-info {
    color: #c32734;
}

/* Light Mode: System card */
body.light-mode .system-card {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .system-logo {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Light Mode: Contact card */
body.light-mode .contact-card {
    background: rgba(0, 0, 0, 0.02);
}

/* Light Mode: PC specs container */
body.light-mode .pc-specs-container {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .spec-item {
    background: linear-gradient(
        120deg,
        rgba(0, 168, 89, 0.06),
        rgba(0, 0, 0, 0.02)
    );
    border: 1px solid rgba(0, 168, 89, 0.2);
}

body.light-mode .spec-item:hover {
    background: rgba(0, 168, 89, 0.08);
    box-shadow: 0 4px 16px rgba(0, 168, 89, 0.2);
}

/* Light Mode: Social links with proper backgrounds */
body.light-mode .social-link {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .social-link:hover {
    background: rgba(0, 168, 89, 0.06);
}

/* Light Mode: Feed icon */
body.light-mode .feed-icon {
    background: rgba(0, 168, 89, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 168, 89, 0.15);
}

/* Light Mode: Scrollbar adjustments */
body.light-mode::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode::-webkit-scrollbar-thumb {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(0, 168, 89, 0.4);
}

body.light-mode .feed-list::-webkit-scrollbar-track,
body.light-mode .scrollable-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .feed-list::-webkit-scrollbar-thumb,
body.light-mode .scrollable-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(0, 168, 89, 0.4);
}

/* Light Mode: Selection color */
body.light-mode ::selection {
    background: rgba(0, 168, 89, 0.25);
    color: #000;
    text-shadow: none;
}

/* ==========================================
   RESPONSIVE DESIGN FOR NEW SECTIONS
   ========================================== */

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

    .security-tabs {
        flex-direction: column;
    }

    .security-tab {
        min-width: 100%;
    }

    .github-extras-grid {
        grid-template-columns: 1fr;
    }

    .extra-list {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .security-overview {
        grid-template-columns: 1fr;
    }

    .alert-header,
    .extra-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .alert-meta,
    .extra-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Light Mode Support for New Sections */
body.light-mode .security-stat-card,
body.light-mode .security-tab,
body.light-mode .security-alert-item,
body.light-mode .github-extra-card,
body.light-mode .extra-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .security-stat-card:hover,
body.light-mode .security-alert-item:hover,
body.light-mode .github-extra-card:hover,
body.light-mode .extra-item:hover {
    background: rgba(0, 168, 89, 0.04);
    border-color: var(--primary);
}

body.light-mode .security-tab.active {
    background: rgba(0, 168, 89, 0.1);
}

body.light-mode .alert-repo,
body.light-mode .alert-tool,
body.light-mode .alert-date {
    background: rgba(0, 0, 0, 0.04);
}

body.light-mode .language-bar-container {
    background: rgba(0, 0, 0, 0.06);
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-section {
    grid-column: 1 / 13;
}

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

.skill-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.skill-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 136, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

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

.skill-badge:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.2);
}

.skill-badge i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.skill-badge:hover i {
    transform: scale(1.1) rotate(5deg);
}

.skill-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   ACTIVITY TIMELINE
   ========================================== */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.activity-timeline::-webkit-scrollbar {
    width: 8px;
}

.activity-timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.activity-timeline::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 4px;
}

.activity-timeline::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

.timeline-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover::before {
    opacity: 1;
}

.timeline-item:hover {
    background: rgba(0, 255, 136, 0.03);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(8px);
}

.timeline-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    color: var(--primary);
    font-size: 1.3rem;
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.timeline-action {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.timeline-details {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
}

.timeline-repo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-commit-msg {
    font-style: italic;
    opacity: 0.8;
}

/* ==========================================
   VISITOR COUNTER FLOATING
   ========================================== */
.visitor-counter-floating {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px var(--shadow),
        0 0 20px rgba(0, 255, 136, 0.05);
    z-index: 998;
}

.visitor-counter-floating:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.3);
}

.visitor-counter-floating i {
    color: var(--primary);
    font-size: 1rem;
}

#visitor-count-floating {
    font-family: "Courier New", monospace;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary);
}

/* ========================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px var(--shadow),
        0 0 20px rgba(0, 255, 136, 0.05);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    color: var(--primary);
    transition: all 0.3s ease;
}

.back-to-top:hover i {
    transform: scale(1.15);
}

/* ==========================================
   VISITOR COUNTER
   ========================================== */
.copyright-bar {
    padding: 1.5rem 2rem;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .skill-badge {
        padding: 1rem 0.75rem;
    }

    .skill-badge i {
        font-size: 2rem;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .copyright-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

body.light-mode .skill-badge {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .skill-badge:hover {
    background: rgba(0, 168, 89, 0.05);
}

body.light-mode .timeline-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .timeline-item:hover {
    background: rgba(0, 168, 89, 0.04);
}

body.light-mode .back-to-top {
    background: rgba(0, 168, 89, 0.1);
}

body.light-mode .profile-stat-item {
    background: rgba(0, 168, 89, 0.05);
    border-color: rgba(0, 168, 89, 0.2);
}

body.light-mode .profile-stat-item:hover {
    background: rgba(0, 168, 89, 0.1);
}

/* ===========================================
   ADVANCED TERMINAL STYLES
   =========================================== */

/* Terminal Toggle Button - Matching theme-toggle and back-to-top style */
.terminal-toggle {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px var(--shadow),
        0 0 20px rgba(0, 255, 136, 0.05);
    z-index: 99999;
    font-size: 1.3rem;
}

.terminal-toggle:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.3);
}

.terminal-toggle i {
    color: var(--primary);
    transition: all 0.3s ease;
}

.terminal-toggle:hover i {
    transform: scale(1.15);
}

.terminal-toggle.active {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.3);
}

.terminal-toggle.active i {
    transform: scale(1.15);
}

/* Terminal Container */
.terminal-container {
    position: fixed;
    top: 5rem;
    left: 1.5rem;
    width: 700px;
    max-width: calc(100vw - 3rem);
    height: 500px;
    max-height: calc(100vh - 7rem);
    background: rgba(10, 15, 20, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(0, 255, 136, 0.15),
        inset 0 0 100px rgba(0, 255, 136, 0.02);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family:
        "Fira Code", "Cascadia Code", "JetBrains Mono", "SF Mono", Monaco,
        "Courier New", monospace;
    resize: both;
    min-width: 400px;
    min-height: 300px;
}

.terminal-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Terminal Header */
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(
        180deg,
        rgba(30, 40, 50, 0.95),
        rgba(20, 28, 35, 0.95)
    );
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    cursor: move;
    user-select: none;
    gap: 1rem;
}

.terminal-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-buttons-left {
    min-width: 80px;
}

.terminal-buttons-right {
    min-width: 80px;
    justify-content: flex-end;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.terminal-btn::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: transparent;
}

.terminal-btn.red {
    background: #ff5f56;
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.5);
}

.terminal-btn.red:hover {
    background: #ff3b30;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.8);
}

.terminal-btn.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.5);
}

.terminal-btn.yellow:hover {
    background: #ff9500;
    box-shadow: 0 0 15px rgba(255, 149, 0, 0.8);
}

.terminal-btn.green {
    background: #27c93f;
    box-shadow: 0 0 8px rgba(39, 201, 63, 0.5);
}

.terminal-btn.green:hover {
    background: #28cd41;
    box-shadow: 0 0 15px rgba(40, 205, 65, 0.8);
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    flex: 1;
    justify-content: center;
}

.terminal-title i {
    color: var(--primary);
}

.terminal-opacity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-opacity-control i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

#terminal-opacity-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#terminal-opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    transition: all 0.2s ease;
}

#terminal-opacity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.8);
}

#terminal-opacity-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    transition: all 0.2s ease;
}

#terminal-opacity-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.8);
}

.terminal-actions {
    display: flex;
    gap: 0.5rem;
}

.terminal-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.terminal-action-btn:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* Terminal Body */
.terminal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem;
    position: relative;
}

/* Terminal Output */
.terminal-output {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.05);
}

.terminal-output::-webkit-scrollbar {
    width: 6px;
}

.terminal-output::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Terminal Lines */
.terminal-line {
    line-height: 1.6;
    font-size: 0.9rem;
    word-wrap: break-word;
    white-space: pre-wrap;
    margin-bottom: 0.25rem;
    animation: lineAppear 0.2s ease-out;
}

@keyframes lineAppear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-line.cmd {
    color: rgba(255, 255, 255, 0.5);
}

.terminal-line.cmd .cmd-text {
    color: #fff;
    font-weight: 500;
}

.terminal-line.output {
    color: rgba(255, 255, 255, 0.85);
}

.terminal-line.success {
    color: #27c93f;
}

.terminal-line.error {
    color: #ff5f56;
}

.terminal-line.warning {
    color: #ffbd2e;
}

.terminal-line.info {
    color: #00b8ff;
}

.terminal-line.system {
    color: #bd93f9;
    font-style: italic;
}

.terminal-line.highlight {
    color: var(--primary);
    font-weight: 600;
}

/* ASCII Art styling */
.terminal-ascii {
    font-family: "Fira Code", monospace;
    line-height: 1.2;
    white-space: pre;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: asciiGlow 2s ease-in-out infinite alternate;
}

@keyframes asciiGlow {
    0% {
        text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    }

    100% {
        text-shadow:
            0 0 20px rgba(0, 255, 136, 0.8),
            0 0 40px rgba(0, 255, 136, 0.4);
    }
}

/* Terminal Links */
.terminal-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terminal-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary);
}

/* Terminal Tables */
.terminal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

.terminal-table th {
    text-align: left;
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

.terminal-table td {
    padding: 0.25rem 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.terminal-table tr:hover td {
    background: rgba(0, 255, 136, 0.05);
}

/* Progress Bar */
.terminal-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.terminal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00b8ff);
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Terminal Input Line */
.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    position: relative;
}

.terminal-prompt {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

.prompt-user {
    color: #27c93f;
    font-weight: 600;
}

.prompt-root {
    color: #ff3b30;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
    animation: rootPulse 1s ease-in-out infinite;
}

@keyframes rootPulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.prompt-at {
    color: rgba(255, 255, 255, 0.5);
}

.prompt-host {
    color: #00b8ff;
    font-weight: 600;
}

.prompt-colon {
    color: rgba(255, 255, 255, 0.5);
}

.prompt-path {
    color: #bd93f9;
    font-weight: 500;
}

.prompt-symbol {
    color: var(--primary);
    font-weight: 700;
    margin-left: 0.25rem;
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    caret-color: var(--primary);
}

.terminal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Autocomplete Suggestions */
.terminal-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 28, 35, 0.98);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-suggestions.visible {
    display: block;
    animation: suggestionsAppear 0.2s ease-out;
}

@keyframes suggestionsAppear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(0, 255, 136, 0.15);
}

.suggestion-item i {
    color: var(--primary);
    font-size: 0.8rem;
    width: 20px;
    text-align: center;
}

.suggestion-cmd {
    color: #fff;
    font-weight: 500;
}

.suggestion-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-left: auto;
}

/* Terminal Statusbar */
.terminal-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: linear-gradient(
        180deg,
        rgba(20, 28, 35, 0.95),
        rgba(15, 22, 28, 0.95)
    );
    border-top: 1px solid rgba(0, 255, 136, 0.15);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.status-left,
.status-center,
.status-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.status-item i {
    color: var(--primary);
    font-size: 0.7rem;
}

/* Special Terminal Effects */
.matrix-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: "Fira Code", monospace;
    font-size: 14px;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    animation: matrixFall linear infinite;
    white-space: nowrap;
}

@keyframes matrixFall {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(calc(100vh + 100%));
    }
}

/* Typing animation for terminal output */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    animation: typingBorder 0.75s step-end infinite;
}

@keyframes typingBorder {
    0%,
    100% {
        border-color: var(--primary);
    }

    50% {
        border-color: transparent;
    }
}

/* Glitch effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(17px, 9999px, 94px, 0);
    }

    5% {
        clip: rect(33px, 9999px, 145px, 0);
    }

    10% {
        clip: rect(121px, 9999px, 11px, 0);
    }

    15% {
        clip: rect(144px, 9999px, 75px, 0);
    }

    20% {
        clip: rect(119px, 9999px, 37px, 0);
    }

    25% {
        clip: rect(42px, 9999px, 68px, 0);
    }

    30% {
        clip: rect(133px, 9999px, 20px, 0);
    }

    35% {
        clip: rect(58px, 9999px, 113px, 0);
    }

    40% {
        clip: rect(91px, 9999px, 142px, 0);
    }

    45% {
        clip: rect(57px, 9999px, 97px, 0);
    }

    50% {
        clip: rect(26px, 9999px, 137px, 0);
    }

    55% {
        clip: rect(8px, 9999px, 89px, 0);
    }

    60% {
        clip: rect(103px, 9999px, 56px, 0);
    }

    65% {
        clip: rect(15px, 9999px, 149px, 0);
    }

    70% {
        clip: rect(66px, 9999px, 41px, 0);
    }

    75% {
        clip: rect(147px, 9999px, 85px, 0);
    }

    80% {
        clip: rect(99px, 9999px, 23px, 0);
    }

    85% {
        clip: rect(72px, 9999px, 131px, 0);
    }

    90% {
        clip: rect(39px, 9999px, 109px, 0);
    }

    95% {
        clip: rect(128px, 9999px, 61px, 0);
    }

    100% {
        clip: rect(84px, 9999px, 117px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(129px, 9999px, 36px, 0);
    }

    5% {
        clip: rect(42px, 9999px, 148px, 0);
    }

    10% {
        clip: rect(88px, 9999px, 73px, 0);
    }

    15% {
        clip: rect(16px, 9999px, 95px, 0);
    }

    20% {
        clip: rect(137px, 9999px, 58px, 0);
    }

    25% {
        clip: rect(64px, 9999px, 122px, 0);
    }

    30% {
        clip: rect(9px, 9999px, 141px, 0);
    }

    35% {
        clip: rect(111px, 9999px, 27px, 0);
    }

    40% {
        clip: rect(75px, 9999px, 86px, 0);
    }

    45% {
        clip: rect(48px, 9999px, 134px, 0);
    }

    50% {
        clip: rect(102px, 9999px, 19px, 0);
    }

    55% {
        clip: rect(23px, 9999px, 107px, 0);
    }

    60% {
        clip: rect(146px, 9999px, 52px, 0);
    }

    65% {
        clip: rect(67px, 9999px, 93px, 0);
    }

    70% {
        clip: rect(35px, 9999px, 140px, 0);
    }

    75% {
        clip: rect(119px, 9999px, 44px, 0);
    }

    80% {
        clip: rect(82px, 9999px, 126px, 0);
    }

    85% {
        clip: rect(13px, 9999px, 69px, 0);
    }

    90% {
        clip: rect(97px, 9999px, 31px, 0);
    }

    95% {
        clip: rect(54px, 9999px, 115px, 0);
    }

    100% {
        clip: rect(143px, 9999px, 78px, 0);
    }
}

/* Hack effect overlay */
.hack-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.hack-content {
    color: var(--primary);
    font-family: "Fira Code", monospace;
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 0 0 20px var(--primary);
}

/* Light mode adjustments */
body.light-mode .terminal-container {
    background: rgba(245, 248, 250, 0.98);
    border-color: rgba(0, 168, 89, 0.3);
}

body.light-mode .terminal-header {
    background: linear-gradient(
        180deg,
        rgba(235, 240, 245, 0.95),
        rgba(225, 232, 240, 0.95)
    );
    border-color: rgba(0, 168, 89, 0.2);
}

body.light-mode .terminal-title {
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .terminal-line {
    color: rgba(0, 0, 0, 0.85);
}

body.light-mode .terminal-line.cmd {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .terminal-line.cmd .cmd-text {
    color: #000;
}

body.light-mode .terminal-input {
    color: #000;
    background: rgba(255, 255, 255, 0.5);
}

body.light-mode .terminal-input-line {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    border-radius: 6px;
}

body.light-mode .prompt-user {
    color: #1a8f4a;
}

body.light-mode .prompt-host {
    color: #0080c0;
}

body.light-mode .prompt-path {
    color: #8b5cf6;
}

body.light-mode .terminal-suggestions {
    background: rgba(245, 248, 250, 0.98);
}

body.light-mode .suggestion-cmd {
    color: #000;
}

body.light-mode .terminal-statusbar {
    background: linear-gradient(
        180deg,
        rgba(235, 240, 245, 0.95),
        rgba(225, 232, 240, 0.95)
    );
    border-color: rgba(0, 168, 89, 0.15);
    color: rgba(0, 0, 0, 0.5);
}

/* Mobile responsiveness for terminal */
@media (max-width: 768px) {
    .terminal-toggle {
        top: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .terminal-container {
        top: 4rem;
        left: 0.5rem;
        width: calc(100vw - 1rem);
        max-width: none;
        height: calc(100vh - 5rem);
        min-width: auto;
        min-height: 250px;
        border-radius: 12px;
    }

    .terminal-header {
        padding: 0.5rem 0.75rem;
    }

    .terminal-body {
        padding: 0.75rem;
    }

    .terminal-line {
        font-size: 0.8rem;
    }

    .terminal-prompt {
        font-size: 0.8rem;
    }

    .terminal-input {
        font-size: 0.8rem;
    }

    .terminal-actions {
        display: none;
    }
}

/* ==========================================
   KONAMI CODE EASTER EGG
   ========================================== */

/* Progress indicator when entering code */
#konami-progress-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    z-index: 9999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

#konami-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00ffff);
    border-radius: 2px;
    width: 0;
    transition: width 0.15s ease;
    box-shadow: 0 0 10px var(--primary);
}

/* Flash animation for key input */
@keyframes konamiFlash {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes konamiDeactivate {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Boot overlay */
#konami-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#konami-overlay.fade-out {
    opacity: 0;
}

.konami-boot {
    font-family: "Fira Code", monospace;
    color: var(--primary);
    text-align: left;
    max-width: 90vw;
}

.boot-terminal {
    background: rgba(0, 20, 10, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.boot-line {
    opacity: 0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-shadow: 0 0 10px var(--primary);
    color: rgba(0, 255, 136, 0.8);
}

.boot-line.success {
    color: #00ff88;
    font-weight: 700;
    margin-top: 0.5rem;
    text-shadow: 0 0 20px #00ff88;
}

.boot-line.hack {
    color: #ff3b30;
    font-weight: 700;
    text-shadow: 0 0 20px #ff3b30;
    animation: hackBlink 0.3s ease-in-out infinite !important;
}

@keyframes hackBlink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bootLine {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bootAscii {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.boot-ascii {
    opacity: 0;
    font-size: 0.6rem;
    line-height: 1.2;
    color: var(--primary);
    white-space: pre;
    text-shadow: 0 0 15px var(--primary);
    text-align: center;
    animation: asciiPulse 1s ease-in-out infinite alternate;
}

@keyframes asciiPulse {
    0% {
        text-shadow: 0 0 10px var(--primary);
    }

    100% {
        text-shadow:
            0 0 30px var(--primary),
            0 0 60px var(--primary);
    }
}

.boot-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    opacity: 0;
    font-size: 1.2rem;
}

.warning-icon {
    color: #ff3b30;
    font-weight: 700;
    text-shadow: 0 0 15px #ff3b30;
}

.warning-text {
    color: #ff3b30;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 15px #ff3b30;
}

@keyframes warningBlink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Matrix rain canvas */
#matrix-rain {
    position: fixed;
    inset: 0;
    z-index: 999990;
    pointer-events: none;
    opacity: 0.2;
}

/* Scanlines effect */
#konami-scanlines {
    position: fixed;
    inset: 0;
    z-index: 999991;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
    animation: scanlineMove 0.08s linear infinite;
}

@keyframes scanlineMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 3px;
    }
}

/* CRT flicker effect */
#konami-crt {
    position: fixed;
    inset: 0;
    z-index: 999992;
    pointer-events: none;
    animation: crtFlicker 0.05s infinite;
}

@keyframes crtFlicker {
    0% {
        opacity: 0.02;
        background: rgba(0, 255, 136, 0.02);
    }

    50% {
        opacity: 0;
        background: transparent;
    }

    100% {
        opacity: 0.02;
        background: rgba(0, 255, 136, 0.02);
    }
}

/* Vignette effect */
#konami-vignette {
    position: fixed;
    inset: 0;
    z-index: 999989;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* Hacker mode body modifications */
body.konami-hacker-mode {
    animation: hackerHue 3s linear infinite;
}

@keyframes hackerHue {
    0% {
        filter: hue-rotate(var(--konami-hue, 0deg)) brightness(1.05);
    }

    100% {
        filter: hue-rotate(var(--konami-hue, 0deg)) brightness(1.05);
    }
}

/* Glitch effect for text */
.konami-glitch {
    animation: glitchText 0.15s ease-in-out;
    position: relative;
}

.konami-glitch::before,
.konami-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes glitchText {
    0% {
        transform: translate(0);
        clip-path: inset(0 0 0 0);
    }

    10% {
        transform: translate(-3px, 2px) skewX(2deg);
        clip-path: inset(10% 0 60% 0);
        filter: hue-rotate(90deg);
    }

    20% {
        transform: translate(3px, -2px) skewX(-2deg);
        clip-path: inset(50% 0 20% 0);
        filter: hue-rotate(180deg);
    }

    30% {
        transform: translate(-2px, -1px);
        clip-path: inset(20% 0 40% 0);
        filter: hue-rotate(270deg);
    }

    40% {
        transform: translate(2px, 1px) skewX(1deg);
        clip-path: inset(70% 0 10% 0);
    }

    50% {
        transform: translate(-1px, 2px);
        clip-path: inset(30% 0 50% 0);
        filter: hue-rotate(45deg);
    }

    60% {
        transform: translate(1px, -1px) skewX(-1deg);
        clip-path: inset(80% 0 5% 0);
    }

    70% {
        transform: translate(0);
        clip-path: inset(0 0 0 0);
    }

    100% {
        transform: translate(0);
        clip-path: inset(0 0 0 0);
        filter: none;
    }
}

/* Inverted images */
.konami-invert {
    filter: invert(1) hue-rotate(180deg);
    transition: filter 0.3s ease;
}

/* Random hacked messages */
.konami-hacked-msg {
    position: fixed;
    z-index: 999995;
    font-family: "Fira Code", monospace;
    font-size: 0.9rem;
    color: #ff3b30;
    text-shadow: 0 0 10px #ff3b30;
    pointer-events: none;
    animation: hackedMsgAppear 2s ease-out forwards;
    white-space: nowrap;
}

@keyframes hackedMsgAppear {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    20% {
        opacity: 1;
        transform: translateY(0);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Secret message panel - FIXED POSITION */
#konami-secret {
    position: fixed;
    top: 5rem;
    left: calc(1.5rem + 700px + 10px);
    z-index: 9999998;
    background: rgba(0, 10, 5, 0.98);
    border: 2px solid var(--primary);
    border-radius: 12px;
    width: 280px;
    max-height: 500px;
    box-shadow:
        0 0 40px rgba(0, 255, 136, 0.4),
        0 0 80px rgba(0, 255, 136, 0.2),
        inset 0 0 30px rgba(0, 255, 136, 0.05);
    animation: secretAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: "Fira Code", monospace;
    overflow: hidden;
}

/* Connector line between terminal and panel */
#konami-secret::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

#konami-secret.minimized {
    width: auto;
}

#konami-secret.minimized .secret-content {
    display: none;
}

@keyframes secretAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.secret-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(
        180deg,
        rgba(0, 255, 136, 0.15),
        rgba(0, 255, 136, 0.05)
    );
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

.secret-title-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secret-title-icon {
    color: #ff3b30;
    font-weight: 700;
    font-size: 0.8rem;
}

.secret-title-text {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.secret-btn-min {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-family: "Fira Code", monospace;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.secret-btn-min:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.secret-content {
    padding: 1.25rem;
}

.secret-ascii-small {
    font-size: 0.6rem;
    line-height: 1.1;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    white-space: pre;
    text-shadow: 0 0 10px var(--primary);
}

.secret-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.secret-info {
    text-align: center;
    margin-bottom: 1rem;
}

.secret-info p {
    margin: 0.25rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.secret-code-display {
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: var(--primary);
    font-size: 0.75rem;
    margin-top: 0.5rem !important;
    letter-spacing: 2px;
}

.secret-stats {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.25rem 0;
    color: rgba(255, 255, 255, 0.6);
}

.stat-row span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.secret-progress-section {
    margin-bottom: 1rem;
}

.secret-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.secret-progress-label span:last-child {
    color: var(--primary);
    font-weight: 700;
}

.secret-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.secret-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00ffaa);
    border-radius: 3px;
    transition: width 1s linear;
    box-shadow: 0 0 10px var(--primary);
}

#konami-deactivate {
    width: 100%;
    background: rgba(255, 59, 48, 0.1);
    border: 2px solid #ff3b30;
    color: #ff3b30;
    padding: 0.75rem;
    border-radius: 8px;
    font-family: "Fira Code", monospace;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#konami-deactivate:hover {
    background: #ff3b30;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.5);
}

.btn-icon {
    font-size: 0.75rem;
}

/* Mobile adjustments for Konami */
@media (max-width: 768px) {
    .boot-ascii {
        font-size: 0.3rem;
    }

    .boot-terminal {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .boot-line {
        font-size: 0.75rem;
    }

    #konami-secret {
        width: calc(100% - 2rem);
        max-width: 320px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        bottom: 1rem;
        top: auto;
    }

    #konami-secret::before {
        display: none;
    }

    .secret-ascii-small {
        font-size: 0.45rem;
    }
}

/* Sudo root effects */
body.konami-godmode {
    animation: godmodeGlow 2s ease-in-out infinite;
}

@keyframes godmodeGlow {
    0%,
    100% {
        box-shadow: inset 0 0 100px rgba(255, 215, 0, 0.2);
    }

    50% {
        box-shadow: inset 0 0 200px rgba(255, 215, 0, 0.4);
    }
}

body.konami-rainbow {
    animation: rainbowCycle 2s linear infinite;
}

@keyframes rainbowCycle {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

body.konami-max-glitch {
    animation: maxGlitch 0.1s infinite;
}

@keyframes maxGlitch {
    0% {
        transform: translate(0) skew(0);
        filter: none;
    }

    10% {
        transform: translate(-5px, 3px) skew(2deg);
        filter: hue-rotate(90deg);
    }

    20% {
        transform: translate(5px, -3px) skew(-2deg);
        filter: saturate(200%);
    }

    30% {
        transform: translate(-3px, -2px) skew(1deg);
        filter: hue-rotate(180deg);
    }

    40% {
        transform: translate(3px, 2px) skew(-1deg);
        filter: brightness(1.5);
    }

    50% {
        transform: translate(0) skew(0);
        filter: invert(1);
    }

    60% {
        transform: translate(-2px, 1px) skew(0.5deg);
        filter: hue-rotate(270deg);
    }

    70% {
        transform: translate(2px, -1px) skew(-0.5deg);
        filter: contrast(150%);
    }

    80% {
        transform: translate(0) skew(0);
        filter: none;
    }

    90% {
        transform: translate(-1px, 2px);
        filter: hue-rotate(45deg);
    }

    100% {
        transform: translate(0) skew(0);
        filter: none;
    }
}

/* ==========================================

body.light-mode .profile-stat-item:hover {
    background: rgba(0, 168, 89, 0.1);
}

/* Hide status panels initially to prevent showing default values while loading */
#steam-status-panel,
#discord-status-panel,
#roblox-status-panel {
    display: flex;
}

/* Loading spinner styles */
.status-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: var(--primary);
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: all;
}

.status-loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 136, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Content fade-in animation */
.steam-user-info,
.discord-user-info,
.roblox-user-info {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 20px;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Toast notification styles */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: all;
    animation:
        slideInDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        fadeOut 0.3s ease 4.7s forwards;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #22c55e;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.info .toast-icon {
    color: var(--primary);
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Skeleton loader styles */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 0.75rem;
}

.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

/* FAQ Section Styles */
.faq-section {
    grid-column: 1 / 13;
    padding: 2rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: border-color;
    contain: layout style paint;
}

.faq-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.02);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question:focus {
    outline: none;
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.faq-question i {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--primary);
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        padding 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.4s ease;
    padding: 0 1.5rem;
    opacity: 0;
    will-change: max-height, opacity;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 600px;
    padding: 0 1.5rem 1.25rem 1.5rem;
    opacity: 1;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Focus indicators for better accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
.terminal-input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Mobile optimizations for FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1rem;
    }

    .faq-question[aria-expanded="true"] + .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }

    .toast-container {
        width: calc(100% - 2rem);
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
    }
}
