:root {
    --bg-dark: #121212;
    --card-bg-dark: rgba(30, 30, 30, 0.3);
    --text-primary-dark: #ffffff;
    --text-secondary-dark: rgba(255, 255, 255, 0.7);
    --accent-color: #e0b873;
    --gradient-1: #23272a;
    --gradient-2: #181a1b;
    --gradient-3: #23272a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: var(--background, #181a1b);
    background-color: var(--background, #181a1b);
    padding: 20px;
    position: relative;
    transition: transform 0.1s ease-out, filter 0.1s ease-out, background 0.3s;
    transform-origin: center center;
}

body::before, body::after {
    display: none !important;
}

.glass-card, .info-card, .profile-image, .contact-icon, .skill-bar, .language-tag, .hobbies-icons li {
    transition: transform 0.1s ease-out;
}

.skill-level {
    transition: width 0.1s ease-out;
}

.glass-card {
    position: relative;
    background: var(--card-bg, rgba(30, 30, 30, 0.3));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(27, 28, 51, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-primary-dark);
    animation: fadeIn 1s ease-in-out;
    overflow: hidden;
    transition: transform 0.08s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(27, 28, 51, 0.5);
}

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-icon, .info-card, .skill {
    transition: all 0.3s ease;
}

.contact-icon:hover, .info-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.skill:hover .skill-bar {
    box-shadow: 0 0 20px var(--accent-color);
}

.music-player {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 250px;
    max-width: 90vw;
    height: 400px;
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    border: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
    transition: none;
}

.music-player.no-music {
    background: rgba(255, 255, 255, 0.05);
}

.music-player.no-music .waveform {
    opacity: 0.5;
}

.music-player.no-music .waveform-bar {
    background: rgba(255, 255, 255, 0.05);
}

.music-player::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 120px;
    width: 35px;
    height: 20px;
    background: url('arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;
}

.music-player::after { display: none !important; }

.music-player-text {
    position: absolute;
    top: 5px;
    right: 24px;
    color: white;
    font-size: 0.9em;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.music-player-text:hover {
    opacity: 1;
}

a, button, .skill-level, .lang-level {
    transition: all 0.3s ease;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(27, 28, 51, 0.37);
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, 10px);
    }
    50% {
        transform: translate(0, 20px);
    }
    75% {
        transform: translate(-10px, 10px);
    }
    100% {
        transform: translate(0, 0);
    }
}

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

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 L100 0 L100 100 L0 100 Z' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: float 25s linear infinite;
    z-index: -1;
    border-radius: 20px;
}

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

.profile-section {
    text-align: center;
    margin-bottom: 40px;
    animation: slideUp 1s ease-out;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.image-placeholder {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
}

.name {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s ease;
    animation: slideUp 1s ease-out 0.2s both;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight {
    color: var(--highlight-color);
    font-weight: 500;
}

.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}

.language-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.language-tag:hover {
    background: rgba(255, 255, 255, 0.3);
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #1b1c33, #2a2b4a);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.contact-section {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #FFCC70;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 22px;
    justify-content: flex-start;
    margin-top: 18px;
}

.social-link {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--highlight-color);
}

.discord-link {
    position: relative;
}

.discord-tooltip {
    display: none;
    position: absolute;
    background: #23272a; 
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 1rem;
    left: 50%;
    transform: translateX(-50%);
    bottom: 130%;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(27, 28, 51, 0.18);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.contact-icon.discord:hover .discord-tooltip {
    display: block;
}

.discord-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: #23272a transparent transparent transparent;
}

@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
}

.about-extra {
    margin-top: 25px;
    font-size: 1rem;
    color: #fff;
    opacity: 0.95;
}
.about-extra .highlight {
    color: var(--highlight-color);
    font-weight: 600;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    width: 100%;
    justify-content: flex-start;
}
.flag {
    font-size: 1.6rem;
    margin-right: 2px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.10));
}
.lang-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.18);
    border-radius: 4px;
    margin-left: 10px;
    min-width: 60px;
    max-width: 120px;
    overflow: hidden;
}
.lang-level {
    height: 100%;
    background: linear-gradient(90deg, #1b1c33, #2a2b4a);
    border-radius: 4px;
    transition: width 1s cubic-bezier(.4,2,.6,1);
}

.bio-center {
    text-align: center;
    margin: 18px auto 0 auto;
    max-width: 600px;
    font-size: 1.15rem;
    color: #fff;
    opacity: 0.97;
    font-weight: 400;
}

.about-extra .fun-fact {
    margin-top: 28px;
    font-size: 1rem;
    color: #fff;
    opacity: 0.95;
}

.hobbies-list {
    margin-bottom: 18px;
}
.hobbies-heading {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--highlight-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hobbies-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
}
.hobbies-icons li {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 7px 16px 7px 10px;
    box-shadow: 0 2px 8px rgba(27, 28, 51, 0.04);
    transition: background 0.2s;
}
.hobbies-icons li:hover {
    background: rgba(255,255,255,0.16);
}
.hobby-icon {
    font-size: 1.3em;
    margin-right: 10px;
    color: var(--highlight-color);
    display: flex;
    align-items: center;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 12px rgba(27, 28, 51, 0.10);
    background: #fff;
}

.language-extra {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.lang-journey-label {
    font-size: 0.98rem;
    color: var(--highlight-color);
    font-weight: 500;
    margin-bottom: 2px;
}
.lang-journey-bar {
    width: 80%;
    max-width: 220px;
    height: 10px;
    background: rgba(255,255,255,0.18);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2px;
}
.lang-journey-progress {
    height: 100%;
    background: linear-gradient(90deg, #1b1c33, #2a2b4a);
    border-radius: 6px;
    transition: width 1s cubic-bezier(.4,2,.6,1);
}
.lang-quote {
    font-size: 0.95rem;
    color: #fff;
    opacity: 0.85;
    font-style: italic;
    text-align: center;
    margin-top: 4px;
}
.self-taught-note {
    margin-top: 22px;
    font-size: 1rem;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 10px 18px;
    text-align: center;
    opacity: 0.95;
}

.get-in-touch-link i.fas.fa-envelope {
    color: #fff !important;
    transition: color 0.2s;
}
.get-in-touch-link:hover i.fas.fa-envelope {
    color: var(--highlight-color) !important;
}

.get-in-touch {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.get-in-touch h2 {
    margin-bottom: 1rem;
    color: var(--highlight-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0;
    width: 100%;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    position: relative;
}

.contact-icon:hover {
    transform: translateY(-5px);
    background: #444;
}

.contact-icon i {
    font-size: 1.25rem;
}

.contact-icon.email {
    background: #EA4335;
}

.contact-icon.github {
    background: #333;
}

.contact-icon.discord {
    background: #5865F2;
    position: relative;
}

#discord-status-dot {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid #23272a;
    background: #747f8d;
    z-index: 2;
    transition: background 0.2s;
}

#discord-activity-text {
    text-align: center;
    font-size: 1.08rem;
    color: #fff;
    opacity: 0.93;
    min-height: 1.5em;
    margin-bottom: 2px;
}

.squiggle {
    position: absolute;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}
.squiggle-top-left {
    top: 0;
    left: 0;
    transform: translate(-30px, 10px) rotate(-8deg);
}
.squiggle-top-right {
    top: 0;
    right: 0;
    transform: translate(30px, 10px) scaleX(-1) rotate(-8deg);
}

.vinyl-disk {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 45px auto 20px;
    background: transparent;
}

.vinyl-disk::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.vinyl-disk img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.music-info {
    text-align: center;
    margin-top: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

.song-title-wrapper, .song-artist-wrapper {
    width: 100%;
    text-align: center;
    margin: 8px 0 0 0;
    padding: 0 2px;
}

.song-title {
    font-size: 1.35em;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
    white-space: nowrap;
    display: inline-block;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 8px 0;
    white-space: nowrap;
    display: inline-block;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-title.scroll, .song-artist.scroll {
    padding-left: 100%;
    animation: scrollText 15s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.last-song {
    width: 100%;
    text-align: center;
    font-size: 0.95em;
    color: #e0b873;
    margin: 8px 0 0 0;
    word-break: break-word;
}
.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    position: relative;
    margin: 15px auto;
    width: 90%;
}

.progress {
    background: var(--accent-color);
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width 0.2s ease;
}

.timestamp {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    display: block;
}

.listen-with-me {
    background: var(--highlight-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin-top: 10px;
}

.listen-with-me:hover {
    transform: translateY(-2px);
    background-color: var(--highlight-color);
    filter: brightness(1.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 0 15px;
}

.volume-control i {
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.volume-control i:hover {
    opacity: 1;
}

.slider-container {
    position: relative;
    width: 80px;
    height: 20px;
    display: flex;
    align-items: center;
}

#volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    position: relative;
    z-index: 2;
}

.slider-progress {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    pointer-events: none;
    transition: width 0.1s ease;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

#volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pause spinning when no music is playing */
.vinyl-disk.paused img {
    animation-play-state: paused;
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .glass-card {
        width: 95%;
        margin: 10px auto;
        padding: 20px;
        transform: none !important;
    }

    .info-card.glass-effect {
        width: 95%;
        margin: 10px auto;
    }

    .music-player {
        position: relative;
        width: 95%;
        height: auto;
        min-height: 400px;
        margin: 20px auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .vinyl-disk {
        width: 120px;
        height: 120px;
        margin: 20px auto 15px;
    }

    .music-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }

    .song-title-wrapper, .song-artist-wrapper {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    .song-title {
        font-size: 1.1em;
    }

    .song-artist {
        font-size: 0.9em;
    }

    .progress-bar {
        width: 100%;
        margin: 10px auto;
    }

    .listen-with-me {
        margin: 10px auto 5px;
        padding: 8px 16px;
        font-size: 0.85em;
    }

    .profile-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        margin: 0 auto 15px;
    }

    .name {
        font-size: 1.8rem;
    }

    .info-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .contact-methods {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
    }

    .contact-icon i {
        font-size: 1.1rem;
    }

    .hobbies-icons {
        justify-content: center;
        gap: 10px;
    }

    .hobbies-icons li {
        font-size: 0.95rem;
        padding: 6px 12px;
    }

    .language-item {
        justify-content: center;
        margin-bottom: 15px;
    }

    .language-tag {
        font-size: 1rem;
        padding: 8px 16px;
        min-width: 100px;
    }

    .skill {
        width: 100%;
    }

    .skill-bar {
        height: 6px;
    }

    .about-extra {
        margin-top: 20px;
        font-size: 0.95rem;
    }

    .bio-center {
        font-size: 1rem;
        margin: 15px auto 0;
    }

    .lang-journey-bar {
        width: 90%;
        max-width: 200px;
    }

    .no-music-message {
        font-size: 1.1em;
        width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .name {
        font-size: 1.6rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .vinyl-disk {
        width: 100px;
        height: 100px;
    }

    .hobbies-icons {
        flex-direction: column;
        align-items: center;
    }

    .hobbies-icons li {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .language-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lang-bar {
        margin: 5px 0;
    }
}

@media (hover: none) {
    .contact-icon:hover {
        transform: none;
    }

    #volume-slider::-webkit-slider-thumb:hover {
        transform: none;
    }

    .social-link:hover {
        color: inherit;
    }

    .glass-card:hover {
        transform: none;
        box-shadow: 0 8px 32px 0 rgba(27, 28, 51, 0.37);
    }

    .info-card:hover {
        transform: none;
    }

    .language-tag:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.profile-section { animation: slideUp 1s ease-out; }
.info-card:nth-child(1) { animation: slideUp 1s ease-out 0.2s both; }
.info-card:nth-child(2) { animation: slideUp 1s ease-out 0.4s both; }
.info-card:nth-child(3) { animation: slideUp 1s ease-out 0.6s both; }

.no-music-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-size: 1.2em;
    font-family: 'Comic Sans MS', cursive;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 80%;
    display: none;
}

.music-player.no-music .no-music-message {
    opacity: 1;
    display: block;
}

.music-player.no-music .vinyl-disk,
.music-player.no-music .music-info,
.music-player.no-music .progress-bar,
.music-player.no-music .listen-with-me {
    opacity: 1;
    pointer-events: auto;
}

.last-song {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    text-align: center;
    font-style: italic;
    display: none;
}

.theme-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 999;
}

#theme-toggle-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    cursor: pointer;
    font-size: 1.3em;
    box-shadow: 0 2px 8px rgba(27, 28, 51, 0.08);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#theme-toggle-btn:hover {
    background: rgba(255,255,255,0.3);
}

body.theme-light {
    --background: #ededed;
    --foreground: #23272a;
    --card-bg: #fff;
    --accent-color: #4f8cff;
    --highlight-color: #4f8cff;
    --gradient-1: #e0eafc;
    --gradient-2: #cfdef3;
    --text-primary-dark: #23272a;
    --text-secondary-dark: rgba(30, 30, 30, 0.7);
    --squiggly-color: #4f8cff;
}

body.theme-light, body.theme-light .glass-card, body.theme-light .info-card, body.theme-light .bio-center, body.theme-light .name, body.theme-light .self-taught-note, body.theme-light .highlight, body.theme-light .about-extra, body.theme-light .fun-fact, body.theme-light .location, body.theme-light .language-tag, body.theme-light .hobbies-icons li, body.theme-light .contact-icon, body.theme-light .get-in-touch, body.theme-light .song-title, body.theme-light .song-artist, body.theme-light .lang-quote {
    color: #23272a !important;
}

body.theme-dark {
    --background: #181a1b;
    --foreground: #f7f7f7;
    --card-bg: #23272a;
    --accent-color: #7289da;
    --highlight-color: #7289da;
    --gradient-1: #232526;
    --gradient-2: #414345;
    --text-primary-dark: #ffffff;
    --text-secondary-dark: rgba(255, 255, 255, 0.7);
    --squiggly-color: #7289da;
}

body.theme-vinyl {
    background: var(--background, #181818);
    color: var(--foreground, #fff);
    --card-bg: #232323;
    --accent-color: var(--accent-color, #fff);
    --gradient-1: #232526;
    --gradient-2: #181818;
    --text-primary-dark: #ffffff;
    --text-secondary-dark: rgba(255, 255, 255, 0.7);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    background-repeat: repeat;
    background-size: 60px 60px;
    display: block !important;
}
body.theme-light::before {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='60' height='60' fill='white'/%3E%3Cpath d='M0 0L60 60ZM60 0L0 60Z' stroke='%23e0eafc' stroke-width='1.5'/%3E%3C/svg%3E");
}
body.theme-dark::before, body.theme-vinyl::before, body:not(.theme-light):not(.theme-dark):not(.theme-vinyl)::before {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='60' height='60' fill='black'/%3E%3Cpath d='M0 0L60 60ZM60 0L0 60Z' stroke='%23323232' stroke-width='1.5'/%3E%3C/svg%3E");
}

body:not(.theme-light):not(.theme-dark):not(.theme-vinyl) {
    --solid-bg: #101014;
    --background: var(--solid-bg, #101014);
    --foreground: #f7f7f7;
    --card-bg: #23272a;
    --accent-color: #4a4b6e;
    --highlight-color: #6b6d9e;
    --text-primary-dark: #ffffff;
    --text-secondary-dark: rgba(255, 255, 255, 0.7);
    --squiggly-color: #6b6d9e;
}

.theme-popup {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,30,0.92);
    color: #fff;
    padding: 10px 28px;
    border-radius: 18px;
    font-size: 1.1em;
    font-family: inherit;
    z-index: 2000;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.3s, top 0.3s;
}
.theme-popup.hide {
    opacity: 0;
    top: 40px;
}

.lofi-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.lofi-bubble {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.lofi-button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    color: #fff;
    cursor: pointer;
    font-size: 1.3em;
    box-shadow: 0 2px 8px rgba(27, 28, 51, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lofi-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.lofi-button.playing {
    animation: pulse 1s infinite;
}

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

@keyframes vibrate {
    0% { transform: translate(0); }
    25% { transform: translate(-1px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
}

body.vibrating {
    animation: vibrate 0.1s linear infinite;
}       
.now-playing-text {
    font-size: 14px;
    color: #fff;
    padding: 8px 15px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    width: fit-content;
    justify-content: center;
    align-items: center;
}

.lofi-player-text {
    color: white !important;
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0px 0px 5px rgba(0,0,0,0.3);
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin-bottom: 10px;
}

.lofi-player-text:hover {
    opacity: 1;
}

.now-playing-text-content {
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

#solid-bg-picker {
    width: 54px;
    height: 54px;
    border: 2px solid #ffcc70;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(27, 28, 51, 0.18);
    border-radius: 16px;
    transition: box-shadow 0.3s, border 0.3s, background 0.3s, transform 0.2s;
    outline: none;
    margin-left: 10px;
    margin-right: 10px;
    animation: picker-float 2.5s ease-in-out infinite alternate;
}
#solid-bg-picker:hover {
    background: #fffbe6;
    border: 2px solid #fbd786;
    box-shadow: 0 10px 24px rgba(255, 204, 112, 0.25);
    transform: scale(1.08) rotate(-2deg);
}
@keyframes picker-float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.04); }
}

.lofi-gradient-text {
  background: linear-gradient(90deg, #ffb347, #ffcc70, #a1c4fd, #c2e9fb, #f7797d, #FBD786, #c6ffdd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0.5px;
  animation: gradient-move 3s linear infinite;
  display: inline-block;
}
.lofi-underline {
  border-bottom: 2px solid #ffcc70;
  padding-bottom: 2px;
  font-weight: 600;
}
@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
