* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #1a4d8f 0%, #0a2540 50%, #000814 100%);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}
body.light-mode {
    background: linear-gradient(180deg, #87ceeb 0%, #5b9bd5 50%, #4a7ba7 100%);
    color: #1d1d1f;
}
body.light-mode::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 223, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 223, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 100, 100, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(100, 200, 255, 0.15) 0%, transparent 50%);
    animation: backgroundShift 20s ease infinite;
    z-index: -1;
}
@keyframes backgroundShift {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.7; transform: scale(1.05) rotate(1deg); }
}
.floating-renders {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.render {
    position: absolute;
    opacity: 0.15;
    filter: drop-shadow(0 0 20px rgba(255, 223, 0, 0.3));
    animation: floatRender 20s ease-in-out infinite;
    pointer-events: none;
}
.render-1 {
    width: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}
.render-2 {
    width: 250px;
    top: 60%;
    right: 8%;
    animation-delay: 5s;
    animation-duration: 30s;
}
.render-3 {
    width: 280px;
    bottom: 15%;
    left: 10%;
    animation-delay: 10s;
    animation-duration: 28s;
}
.render-4 {
    width: 320px;
    top: 40%;
    right: 5%;
    animation-delay: 15s;
    animation-duration: 32s;
}
.render-logo {
    width: 200px !important;
    opacity: 0.2 !important;
    border-radius: 20px;
    filter: drop-shadow(0 0 30px rgba(255, 223, 0, 0.5));
}
.render-logo-1 {
    top: 25%;
    left: 15%;
    animation-delay: 3s;
    animation-duration: 22s;
}
.render-logo-2 {
    bottom: 30%;
    right: 12%;
    animation-delay: 12s;
    animation-duration: 26s;
}
.render-logo-3 {
    top: 55%;
    left: 50%;
    animation-delay: 18s;
    animation-duration: 24s;
}
.floating-renders::before,
.floating-renders::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: url('https://media.tenor.com/80x8KB3gJvEAAAAj/sm64-mario.gif');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    animation: floatRender 15s ease-in-out infinite;
}
.floating-renders::before {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}
.floating-renders::after {
    bottom: 25%;
    left: 20%;
    animation-delay: 8s;
}
@keyframes floatRender {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(5deg);
    }
    50% {
        transform: translateY(-50px) translateX(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-20px) translateX(30px) rotate(4deg);
    }
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
header {
    text-align: center;
    padding: 60px 20px 80px;
    position: relative;
}
.avatar-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 20px;
    margin: 0;
    animation: fadeInDown 0.8s ease;
}

.avatar-container {
    position: relative;
    display: inline-block;
    padding: 25px;
    background: linear-gradient(145deg, #8B4513 0%, #654321 50%, #3d2817 100%);
    border-radius: 15px;
    box-shadow: 
        inset 0 4px 8px rgba(0, 0, 0, 0.6),
        inset 0 -4px 8px rgba(139, 69, 19, 0.4),
        0 15px 40px rgba(0, 0, 0, 0.7),
        0 0 0 8px #654321,
        0 0 0 12px #8B4513;
    animation: paintingFloat 4s ease-in-out infinite;
}

.avatar-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 10px;
    pointer-events: none;
    z-index: 2;
}

.avatar-container::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background-image: url('https://media.tenor.com/80x8KB3gJvEAAAAj/sm64-mario.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: starSpin 3s linear infinite, starPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 223, 0, 0.9));
    z-index: 3;
}

.avatar-image {
    width: 280px;
    height: 280px;
    border-radius: 8px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 0 30px rgba(100, 150, 255, 0.4),
        inset 0 0 50px rgba(255, 255, 255, 0.1);
    object-fit: cover;
    position: relative;
    z-index: 1;
    animation: paintingRipple 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.avatar-image:hover {
    animation: paintingRipple 0.6s ease-in-out infinite, paintingWarp 0.4s ease-in-out;
    filter: brightness(1.1);
}

@keyframes paintingFloat {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-15px);
    }
}

@keyframes paintingRipple {
    0%, 100% {
        filter: brightness(1) contrast(1);
    }
    25% {
        filter: brightness(1.05) contrast(1.05);
        transform: scale(1.01);
    }
    50% {
        filter: brightness(0.98) contrast(0.98);
        transform: scale(0.99);
    }
    75% {
        filter: brightness(1.02) contrast(1.02);
        transform: scale(1.005);
    }
}

@keyframes paintingWarp {
    0%, 100% {
        transform: scale(1) perspective(500px) rotateY(0deg);
    }
    25% {
        transform: scale(1.05) perspective(500px) rotateY(-5deg);
    }
    50% {
        transform: scale(1.08) perspective(500px) rotateY(0deg);
    }
    75% {
        transform: scale(1.05) perspective(500px) rotateY(5deg);
    }
}

@keyframes starSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes starPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.8;
    }
}
.hero-section {
    animation: fadeInDown 1s ease 0.3s both;
}
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}
@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(255, 223, 0, 0.6), 0 0 80px rgba(255, 100, 100, 0.4);
        border-color: rgba(255, 223, 0, 0.6);
    }
    50% { 
        box-shadow: 0 0 60px rgba(255, 223, 0, 0.8), 0 0 100px rgba(255, 100, 100, 0.6);
        border-color: rgba(255, 100, 100, 0.8);
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
header h1 {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 50%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 223, 0, 0.5);
    letter-spacing: -2px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}
.subtitle {
    font-size: 1.8rem;
    color: #ffdf00;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(255, 223, 0, 0.5);
}
.tagline {
    font-size: 1.3rem;
    color: #9ca3af;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}
.avatar-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    margin: 0 20px 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid rgba(255, 223, 0, 0.6);
    box-shadow: 
        0 0 40px rgba(255, 223, 0, 0.6),
        0 0 80px rgba(255, 100, 100, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    animation: float 6s ease-in-out infinite, glow 3s ease-in-out infinite;
    transition: all 0.4s ease;
}

.avatar-image:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 0 60px rgba(255, 223, 0, 0.8),
        0 0 100px rgba(255, 100, 100, 0.6),
        0 30px 80px rgba(0, 0, 0, 0.5);
}

.about {
    padding: 60px 40px;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    margin: 0 20px 40px;
    border: 1px solid rgba(255, 223, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease 0.3s both;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.about h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.about p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #d1d5db;
    margin-bottom: 20px;
}
.about p:last-child {
    margin-bottom: 0;
}
.highlight {
    color: #ffdf00;
    font-weight: 600;
    position: relative;
    text-shadow: 0 0 10px rgba(255, 223, 0, 0.5);
}
.about strong {
    color: #ff6b6b;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}
.skills {
    padding: 80px 40px;
    animation: fadeInUp 1s ease 0.5s both;
}
.skills h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 20px;
}
.skill-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 223, 0, 0.3);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffdf00 0%, #ff6b6b 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.skill-card:hover::before {
    transform: scaleX(1);
}
.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(255, 223, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 107, 0.6);
    background: rgba(17, 24, 39, 0.8);
}
.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.skill-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #ffdf00;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(255, 223, 0, 0.3);
}
.skill-card p {
    font-size: 1.05rem;
    color: #9ca3af;
    line-height: 1.6;
}
.projects {
    padding: 80px 40px;
    animation: fadeInUp 1s ease 0.7s both;
}
.projects h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.project-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 223, 0, 0.3);
    margin: 0 20px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffdf00 0%, #ff6b6b 100%);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}
.project-card:hover::before {
    transform: scaleY(1);
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(255, 223, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 107, 0.6);
    background: rgba(17, 24, 39, 0.8);
}
.project-card.featured {
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.15) 0%, rgba(255, 107, 107, 0.15) 100%);
    border: 2px solid rgba(255, 223, 0, 0.4);
}
.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}
.project-card h3 {
    font-size: 1.8rem;
    color: #ffdf00;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(255, 223, 0, 0.3);
}
.badge {
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 223, 0, 0.6);
}
.project-card p {
    font-size: 1.1rem;
    color: #d1d5db;
    line-height: 1.7;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.links {
    padding: 80px 40px;
    animation: fadeInUp 1s ease 0.9s both;
}
.links h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 0 20px;
}
.link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 223, 0, 0.3);
    text-decoration: none;
    color: #fff;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.15) 0%, rgba(255, 107, 107, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.link-card:hover::before {
    opacity: 1;
}
.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(255, 223, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 107, 0.6);
}
.link-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.link-icon-svg {
    width: 2.5rem;
    height: 2.5rem;
    position: relative;
    z-index: 1;
    color: #ffdf00;
    transition: all 0.3s ease;
}

.link-card:hover .link-icon-svg {
    color: #ff6b6b;
    transform: scale(1.1);
}
.link-text {
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}
footer {
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 223, 0, 0.3);
    animation: fadeInUp 1s ease 1.1s both;
}
footer p {
    margin: 15px 0;
    font-size: 1.2rem;
    color: #ffdf00;
    text-shadow: 0 2px 8px rgba(255, 223, 0, 0.3);
}
.footer-note {
    font-size: 1.4rem;
    margin-top: 20px;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a4d8f 0%, #0a2540 50%, #000814 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader {
    text-align: center;
}
.loader-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 223, 0, 0.2);
    border-top: 4px solid #ffdf00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}
#theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 223, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 223, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
#theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 223, 0, 0.3);
    box-shadow: 0 6px 20px rgba(255, 223, 0, 0.5);
}
.theme-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 223, 0, 0.4);
    padding: 8px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.theme-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.theme-option {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #ffdf00;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.theme-option:hover {
    background: rgba(255, 223, 0, 0.2);
    color: #fff;
}
.theme-option.active {
    background: rgba(255, 223, 0, 0.3);
    color: #fff;
}
body.light-mode .about,
body.light-mode .skill-card,
body.light-mode .project-card,
body.light-mode .link-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 223, 0, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
body.light-mode .about p,
body.light-mode .skill-card p,
body.light-mode .project-card p {
    color: #1d1d1f;
}
body.light-mode .skill-card h3,
body.light-mode .project-card h3 {
    color: #ff6b6b;
}
body.light-mode .tagline,
body.light-mode .skill-card p {
    color: #4a4a4a;
}
body.light-mode footer {
    border-top: 1px solid rgba(255, 223, 0, 0.4);
}
body.light-mode footer p {
    color: #ff6b6b;
}
body.light-mode #theme-toggle {
    background: rgba(255, 223, 0, 0.3);
    border: 2px solid rgba(255, 223, 0, 0.5);
}
body.light-mode .theme-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 223, 0, 0.5);
}
body.light-mode .theme-option {
    color: #ff6b6b;
}
body.light-mode .theme-option:hover {
    background: rgba(255, 223, 0, 0.2);
    color: #ff6b6b;
}
body.light-mode .theme-option.active {
    background: rgba(255, 223, 0, 0.3);
}
body.light-mode #loading-screen {
    background: linear-gradient(180deg, #87ceeb 0%, #5b9bd5 50%, #4a7ba7 100%);
}
body.light-mode .loader-circle {
    border: 4px solid rgba(255, 223, 0, 0.3);
    border-top: 4px solid #ffdf00;
}
body.light-mode .link-card {
    color: #1d1d1f;
}

body.light-mode .link-icon-svg {
    color: #ff6b6b;
}

body.light-mode .link-card:hover .link-icon-svg {
    color: #ffdf00;
}
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #0a2540;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffdf00 0%, #ff6b6b 100%);
    border-radius: 10px;
    border: 2px solid #0a2540;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffe44d 0%, #ff8787 100%);
}
::selection {
    background: rgba(255, 223, 0, 0.4);
    color: #000;
}
.sparkle {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    animation: sparkleAnimation 1.5s ease-out forwards;
    z-index: 9999;
    background-image: url('https://media.tenor.com/80x8KB3gJvEAAAAj/sm64-mario.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 10px rgba(255, 223, 0, 0.8));
}
@keyframes sparkleAnimation {
    0% {
        transform: scale(0) rotate(0deg) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg) translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: scale(0.5) rotate(360deg) translateY(-40px);
        opacity: 0;
    }
}
.discord-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    border: 3px solid rgba(255, 223, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.5);
    transition: all 0.3s ease;
}

.discord-toggle .discord-icon {
    width: 30px;
    height: 30px;
    color: #fff;
}

.discord-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.7);
}
.discord-widget {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    width: 350px;
    max-height: 600px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px 0 0 20px;
    border: 2px solid rgba(255, 223, 0, 0.3);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}
.discord-widget.active {
    right: 0;
}
.discord-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    border-bottom: 2px solid rgba(255, 223, 0, 0.3);
}
.discord-logo {
    width: 24px;
    height: 24px;
    color: #fff;
}
.discord-title {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.discord-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.discord-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}
.discord-content {
    padding: 20px;
    max-height: 540px;
    overflow-y: auto;
}
.discord-loading {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 1.1rem;
}
.discord-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.discord-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 223, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 223, 0, 0.3);
}
.discord-user-info {
    flex: 1;
}
.discord-username {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}
.discord-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #9ca3af;
}
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(17, 24, 39, 0.95);
}
.status-online { background: #3ba55d; }
.status-idle { background: #faa81a; }
.status-dnd { background: #ed4245; }
.status-offline { background: #747f8d; }
.discord-activity {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid rgba(255, 223, 0, 0.2);
}
.activity-title {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}
.activity-content {
    display: flex;
    gap: 12px;
}
.activity-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}
.activity-details {
    flex: 1;
}
.activity-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}
.activity-state,
.activity-details-text {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 3px;
    word-wrap: break-word;
}
.discord-activity:last-child {
    margin-bottom: 0;
}
.spotify-activity {
    border-color: #1DB954;
}
.spotify-activity .activity-title {
    color: #1DB954;
}
body.light-mode .discord-widget {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(88, 101, 242, 0.4);
}
body.light-mode .discord-activity {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.3);
}
body.light-mode .discord-username {
    color: #1d1d1f;
}
body.light-mode .activity-name {
    color: #1d1d1f;
}
.pages {
    padding: 80px 40px;
    animation: fadeInUp 1.2s ease 1s both;
}

.page-card {
    opacity: 0;
    animation: fadeInScale 0.6s ease forwards;
}

.page-card:nth-child(1) {
    animation-delay: 1.2s;
}

.page-card:nth-child(2) {
    animation-delay: 1.4s;
}

.page-card:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.pages h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 0 20px;
}
.page-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 223, 0, 0.3);
    text-decoration: none;
    color: #fff;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInScale 0.6s ease forwards;
}

.page-card:nth-child(1) {
    animation-delay: 1.2s;
}

.page-card:nth-child(2) {
    animation-delay: 1.4s;
}

.page-card:nth-child(3) {
    animation-delay: 1.6s;
}
.page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.page-card:hover::before {
    opacity: 1;
}
.page-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(255, 223, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 107, 0.6);
}
.page-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-icon-svg {
    width: 3rem;
    height: 3rem;
    color: #ffdf00;
    transition: all 0.3s ease;
}

.page-card:hover .page-icon-svg {
    color: #ff6b6b;
    transform: scale(1.1);
}
.page-info {
    flex: 1;
    position: relative;
    z-index: 1;
}
.page-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffdf00;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(255, 223, 0, 0.3);
}
.page-info p {
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.5;
}
.page-arrow {
    font-size: 2rem;
    color: #ffdf00;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}
.page-card:hover .page-arrow {
    transform: translateX(10px);
}
.page-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.page-card-disabled:hover {
    transform: none;
    box-shadow: none;
}
.page-card-disabled .page-arrow {
    opacity: 0.5;
}
.page-card-disabled:hover .page-arrow {
    transform: none;
}
body.light-mode .page-card {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 223, 0, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
body.light-mode .page-info h3 {
    color: #ff6b6b;
}
body.light-mode .page-info p {
    color: #4a4a4a;
}
body.light-mode .page-arrow {
    color: #ff6b6b;
}

body.light-mode .page-icon-svg {
    color: #ff6b6b;
}

body.light-mode .page-card:hover .page-icon-svg {
    color: #ffdf00;
}
@media (max-width: 768px) {
    header {
        padding: 40px 20px 60px;
    }
    header h1 {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    .subtitle {
        font-size: 1.4rem;
    }
    .tagline {
        font-size: 1.1rem;
    }
    .avatar-section {
        padding: 20px 20px 15px;
        margin: 0;
    }
    .avatar-container {
        padding: 18px;
    }
    .avatar-container::after {
        width: 45px;
        height: 45px;
        top: -15px;
        right: -15px;
    }
    .avatar-image {
        width: 200px;
        height: 200px;
    }
    .about, .skills, .projects, .links {
        padding: 40px 20px;
        margin: 0 10px 30px;
    }
    .about h2, .skills h2, .projects h2, .links h2 {
        font-size: 2.2rem;
    }
    .skills-grid, .project-grid, .links-grid, .pages-grid {
        grid-template-columns: 1fr;
        margin: 0;
    }
    .pages {
        padding: 40px 20px;
        margin: 0 10px 30px;
    }
    .theme-switcher {
        top: 15px;
        right: 15px;
    }
    #theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    .discord-widget {
        width: 100%;
        max-width: 350px;
        right: -100%;
        border-radius: 20px 0 0 20px;
    }
    .discord-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }
}
