:root[data-theme="dark"] {
    --bg-color: #1f1f1f;
    --text-color: #ffffff;
    --overlay-bg: rgba(31, 31, 31, 0.7);
    --subtitle-color: #888888;
    --accent-color: #ff1919;
}

:root[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #000000;
    --overlay-bg: rgba(240, 240, 240, 0.9);
    --subtitle-color: #666666;
    --accent-color: #ff1919;
}

body {
    margin: 0;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    overflow: hidden;
    position: fixed;
    width: 100%;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.profile-info {
    background: var(--overlay-bg);
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 3rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 25, 25, 0.2);
}

.profile-content {
    text-align: left;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--subtitle-color);
    margin: 0.5rem 0 1.5rem 0;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--accent-color);
}

.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

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

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

.quote-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--subtitle-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.quote {
    font-style: italic;
    color: var(--subtitle-color);
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.quote-btn {
    background: transparent;
    color: var(--accent-color);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-btn:hover {
    transform: rotate(180deg);
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.hero-mask {
    width: 80px;
    height: 80px;
    fill: var(--accent-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.wanted-poster {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-bar {
    width: 200px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.loading-text {
    color: var(--text-color);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-top: 20px;
}

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

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

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

@media screen and (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .profile-content {
        text-align: center;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 2rem;
    }

    .social-icons {
        justify-content: center;
    }

    .theme-switch {
        top: 10px;
        right: 10px;
    }

    .switch {
        width: 50px;
        height: 28px;
    }

    .slider:before {
        height: 22px;
        width: 22px;
    }

    input:checked + .slider:before {
        transform: translateX(22px);
    }

    .social-icon::after {
        display: none;
    }

    .credits {
        bottom: 10px;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .profile-info {
        padding: 1rem;
    }

    .profile-pic {
        width: 120px;
        height: 120px; 
    }

    h1 {
        font-size: 1.8rem;
    }

    .social-icons {
        gap: 0.8rem;
    }

    .social-icon {
        font-size: 1.3rem;
    }
}

@media screen and (min-width: 1200px) {
    .profile-info {
        max-width: 600px;
    }
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.credits {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
    z-index: 2;
}

.credits i {
    color: var(--accent-color);
    animation: pulse 1.5s ease-in-out infinite;
}