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

:root {
    --background-image: url('images/bgd.gif');
    --accent: rgba(150, 80, 200, 0.9);
    --accent-muted: rgba(150, 80, 200, 0.4);
    --card-bg: rgba(70, 20, 100, 0.3);
    --card-border: rgba(150, 80, 200, 0.4);
    --card-shadow: rgba(100, 0, 180, 0.4);
    --text-color: rgba(220, 180, 255, 0.9);
    --text-muted: rgba(220, 180, 255, 0.8);
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --music-control-bg: rgba(100, 50, 150, 0.3);
    --music-control-hover: rgba(120, 70, 170, 0.4);
    --slider-bg: rgba(100, 50, 150, 0.3);
    --slider-knob: rgba(150, 80, 200, 0.4);
    --particle-color: rgba(255, 255, 255, 0.7);
}

body.nature, body.nature * {
    --background-image: url('images/bgc.gif');
    --accent: rgba(60, 160, 80, 0.95);
    --accent-muted: rgba(80, 160, 100, 0.35);
    --card-bg: rgba(20, 60, 30, 0.28);
    --card-border: rgba(80, 160, 100, 0.28);
    --card-shadow: rgba(20, 80, 40, 0.35);
    --text-color: rgba(200, 255, 210, 0.95);
    --text-muted: rgba(200, 255, 210, 0.85);
    --overlay-bg: rgba(0, 0, 0, 0.45);
    --music-control-bg: rgba(40, 120, 60, 0.28);
    --music-control-hover: rgba(60, 140, 80, 0.34);
    --slider-bg: rgba(40, 120, 60, 0.28);
    --slider-knob: rgba(80, 160, 100, 0.36);
    --particle-color: rgba(200, 255, 210, 0.65);
}

#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.intro-content h1 {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    animation: pulse 2s infinite;
}

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

body {
    font-family: 'Courier New', monospace;
    background-color: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    opacity: 0;
    transition: opacity 800ms ease;
}

body::before {
    background-image: var(--background-image);
    opacity: 1;
}

body::after {
    background-image: var(--bg-after);
    opacity: 0;
}

body.bg-fade-active::after { opacity: 1; }


.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 500px;
}

.card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 80px;
    border: 1px solid var(--card-border);
    box-shadow: 0 0 40px var(--card-shadow);
    width: 80%;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

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

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-pic:hover {
    transform: translateX(-50%) rotateY(15deg) scale(1.05);
}
.username {
    font-size: 2.8rem;
    color: var(--text-color);
    text-shadow: 0 2px 8px var(--card-shadow);
    text-align: center;
    margin: 40px 100px 0.4rem;
}

.typing-container {
    min-height: 60px;
    font-size: 1.4rem;
    color: var(--text-muted);
    text-align: center;
}

.typing-text {
    display: inline;
    margin-left: 1.5rem;
}

.cursor {
    width: 8px;
    border: 1px solid rgb(255, 255, 255);
    display: inline-block;
    animation: blink 0.7s infinite;
}

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

.social-bottom {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: -5%;
}

.social-icon {
    font-size: 1.6rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.music-control {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: var(--music-control-bg);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    z-index: 3;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-control:hover {
    background: var(--music-control-hover);
    transform: scale(1.1);
}

.music-control i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.theme-switch {
    position: fixed;
    bottom: 20px;
    right: 25px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--slider-bg);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(500px);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background: var(--slider-knob);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--accent-muted);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background: var(--accent);
}

.intro-content .typing-container {
    min-height: auto;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.intro-content .typing-text-intro {
    display: inline;
}

.intro-content .cursor {
    width: 8px;
    border: 1px solid rgb(255, 255, 255);
    display: inline-block;
    animation: blink 0.7s infinite;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

