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

/* Base Styles */
:root {
    --primary-color: #00eeff;
    --secondary-color: #9d4edd;
    --accent-color: #ff006e;
    --instagram-color: #E4405F;
    --youtube-color: #FF0000;
    --discord-color: #5865F2;
    --tiktok-color: #000000;
    --github-color: #333333;
    --telegram-color: #0088cc;
    --work-color: #00d4ff;
    --email-color: #ea4335;
    --bg-color: #0a0a0a;
    --card-bg: #0f0f0f;
    --text-color: #e0e0e0;
    --muted-text: #888;
    --border-radius: 12px;
    --box-shadow: 0 8px 32px rgba(0, 238, 255, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --nav-height: 70px;
}

/* Light Theme */
body.light-theme {
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #1a1a1a;
    --muted-text: #666;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(5deg);
    }
    66% {
        transform: translateY(20px) rotate(-3deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes musicBars {
    0%, 100% {
        height: 3px;
    }
    50% {
        height: 15px;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes glitch {
    0%, 100% {
        text-shadow:
                0.05em 0 0 var(--primary-color),
                -0.05em -0.025em 0 var(--secondary-color),
                0.025em 0.05em 0 var(--accent-color);
    }
    25% {
        text-shadow:
                -0.05em -0.025em 0 var(--primary-color),
                0.025em 0.05em 0 var(--secondary-color),
                -0.025em -0.05em 0 var(--accent-color);
    }
    50% {
        text-shadow:
                0.025em 0.05em 0 var(--primary-color),
                -0.05em -0.025em 0 var(--secondary-color),
                0.05em 0 0 var(--accent-color);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Base Layout */
body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

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

.loading-text {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 10px;
    overflow: hidden;
    border-radius: 2px;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0;
    transition: width 0.3s ease;
}

.loading-percentage {
    font-size: 14px;
    color: var(--muted-text);
    font-family: 'JetBrains Mono', monospace;
}

/* Background */
.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

#particleCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.gradient-sphere {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
    rgba(157, 78, 221, 0.3),
    rgba(0, 238, 255, 0.1),
    transparent);
    filter: blur(80px);
    opacity: 0.6;
    top: -20%;
    right: -20%;
    animation: float 40s ease-in-out infinite;
}

.gradient-sphere-2 {
    position: absolute;
    width: 40vw;
    height: 40vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
    rgba(255, 0, 110, 0.2),
    rgba(0, 238, 255, 0.1),
    transparent);
    filter: blur(60px);
    opacity: 0.4;
    bottom: -10%;
    left: -10%;
    animation: float 35s ease-in-out infinite reverse;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(rgba(0, 238, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 238, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.light-theme .navbar {
    background: rgba(245, 245, 245, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.theme-toggle,
.audio-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover,
.audio-toggle:hover {
    border-color: var(--primary-color);
    transform: rotate(180deg);
}

.audio-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 40px) 20px 40px;
    min-height: 100vh;
}

/* Sections */
.section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    padding: 40px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
}

.glitch-container {
    margin-bottom: 20px;
    position: relative;
}

.glitch {
    font-size: 72px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.glitch-subtitle {
    font-size: 48px;
    letter-spacing: 8px;
    color: var(--secondary-color);
}

.glitch:hover {
    animation: glitch 0.5s cubic-bezier(.25, .46, .45, .94) both infinite;
}

/* Typing Animation */
.tagline-container {
    height: 30px;
    margin-bottom: 40px;
}

.tagline {
    font-size: 18px;
    color: var(--muted-text);
    font-weight: 300;
    letter-spacing: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 14px;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Links Grid */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.link-card {
    position: relative;
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    overflow: hidden;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.light-theme .link-card {
    background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.05));
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Social Media Specific Styles */
.link-card.instagram:hover {
    border-color: var(--instagram-color);
    box-shadow: 0 10px 40px rgba(228, 64, 95, 0.3);
}

.link-card.youtube:hover {
    border-color: var(--youtube-color);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.3);
}

.link-card.discord:hover {
    border-color: var(--discord-color);
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.3);
}

.link-card.tiktok:hover {
    border-color: var(--tiktok-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.link-card.github:hover {
    border-color: var(--github-color);
    box-shadow: 0 10px 40px rgba(51, 51, 51, 0.3);
}

.link-card.telegram:hover {
    border-color: var(--telegram-color);
    box-shadow: 0 10px 40px rgba(0, 136, 204, 0.3);
}

.link-card.work:hover {
    border-color: var(--work-color);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.link-card.email:hover {
    border-color: var(--email-color);
    box-shadow: 0 10px 40px rgba(234, 67, 53, 0.3);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
    rgba(0, 238, 255, 0.3),
    transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.link-card:hover .card-glow {
    opacity: 1;
}

.card-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(0, 238, 255, 0.3);
}

.card-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
    z-index: 2;
    position: relative;
}

.icon {
    font-size: 28px;
    color: var(--primary-color);
    margin-right: 15px;
    transition: var(--transition);
}

.link-card:hover .icon {
    transform: rotate(360deg) scale(1.2);
}

.link-info h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.link-info p {
    font-size: 12px;
    color: var(--muted-text);
}

/* Random Quote */
.random-quote {
    text-align: center;
    padding: 30px;
    position: relative;
}

.quote-text {
    font-size: 18px;
    font-style: italic;
    color: var(--muted-text);
    max-width: 600px;
    margin: 0 auto;
}

.quote-refresh {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    margin-top: 15px;
    transition: var(--transition);
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
}

.about-intro {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
}

.fun-facts {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .fun-facts {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.fun-facts h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.facts-list {
    list-style: none;
}

.facts-list li {
    padding: 5px 0;
    font-size: 15px;
}

.about-visual {
    position: relative;
}

.polaroid-container {
    position: relative;
    display: inline-block;
}

.polaroid {
    background: white;
    padding: 15px 15px 60px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    transition: var(--transition);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.polaroid img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.polaroid-caption {
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
    text-align: center;
    color: #333;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

/* Vibes Section */
.mood-board {
    margin-bottom: 60px;
}

.mood-board h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.mood-item {
    height: 100px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mood-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mood-text {
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Photo Gallery */
.photo-gallery {
    margin-bottom: 60px;
}

.photo-gallery h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Favorites */
.favorites-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.favorite-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.light-theme .favorite-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.05));
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.favorite-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.favorite-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.favorite-card h4 {
    font-size: 14px;
    color: var(--muted-text);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.favorite-card p {
    font-size: 16px;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    color: var(--muted-text);
    font-size: 14px;
    margin-top: 80px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.5px;
}

.light-theme footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-easter-egg {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.5;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 238, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    animation: confetti 3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .glitch {
        font-size: 48px;
    }

    .glitch-subtitle {
        font-size: 32px;
    }

    .links {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body {
        cursor: auto !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: calc(var(--nav-height) + 20px) 16px 20px;
    }

    .glitch {
        font-size: 36px;
    }

    .glitch-subtitle {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .section-title {
        font-size: 32px;
    }

    .mood-grid,
    .gallery-grid,
    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .audio-toggle {
        bottom: 20px;
        right: 20px;
    }

    .polaroid {
        transform: rotate(0deg);
    }

    .polaroid img {
        width: 100%;
        height: auto;
    }
}