@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    --primary: #7dd3fc;
    --primary-dark: #38bdf8;
    --primary-light: #bae6fd;
    --accent: #e0f2fe;
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --bg-hover: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border: rgba(125, 211, 252, 0.2);
    --shadow: rgba(125, 211, 252, 0.3);
    --spotify: #7dd3fc;
}

html {
    scroll-behavior: smooth;
}

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    animation: fall linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: -2s; font-size: 1.2rem; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: -8s; font-size: 1.8rem; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 10s; animation-delay: -4s; font-size: 1rem; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: -10s; font-size: 1.5rem; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 9s; animation-delay: -6s; font-size: 2rem; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 11s; animation-delay: -3s; font-size: 1.3rem; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: -9s; font-size: 1.6rem; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 8s; animation-delay: -5s; font-size: 1.1rem; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 10s; animation-delay: -1s; font-size: 1.9rem; }
.snowflake:nth-child(10) { left: 92%; animation-duration: 15s; animation-delay: -12s; font-size: 1.4rem; }
.snowflake:nth-child(11) { left: 8%; animation-duration: 11s; animation-delay: -7s; font-size: 1.7rem; }
.snowflake:nth-child(12) { left: 50%; animation-duration: 9s; animation-delay: -4s; font-size: 1rem; }

@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: #0a0a0a;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 178vh;
    height: 100vh;
    min-width: 100vw;
    min-height: 56.25vw;
    transform: translate(-50%, -50%) scale(1.2);
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
}




.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 5rem 2rem 4rem 2rem;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.profile-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                linear-gradient(135deg, var(--primary), var(--accent)) border-box;
    box-shadow: 0 0 40px var(--shadow);
    animation: float 3s ease-in-out infinite;
}

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

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #7dd3fc, #bae6fd);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(125, 211, 252, 0.5);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(125, 211, 252, 0); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.social-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn i {
    position: relative;
    z-index: 1;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.social-btn:hover::before {
    opacity: 1;
}

.scroll-indicator {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
    color: var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.skills-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    flex: 0 0 140px;
}

.skill-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: var(--bg-hover);
    border-color: var(--primary);
    box-shadow: 0 10px 40px var(--shadow);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-card img.skill-icon {
    width: 3rem;
    height: 3rem;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.skill-card span {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.skill-card:hover span {
    color: var(--primary);
}

.spotify-section, .discord-section {
    background: transparent;
}

.discord-icon-header {
    text-align: center;
    margin-bottom: 2rem;
}

.discord-icon-header i {
    font-size: 4rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.discord-icon-header i:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

.spotify-widget, .discord-widget {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.discord-widget-card {
    max-width: 600px;
    margin: 0 auto;
}

.discord-loading, .discord-error {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
}

.discord-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #5865f2;
    opacity: 0.5;
}

.discord-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.discord-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow);
    border-color: var(--primary);
}

.discord-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.discord-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.discord-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

.discord-status {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}

.discord-user-info {
    flex: 1;
}

.discord-username {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.discord-discriminator {
    color: var(--text-secondary);
}

.discord-activity {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
}

.discord-activity + .discord-activity {
    margin-top: 0.8rem;
}

.discord-activity.custom-status {
    align-items: center;
    padding: 0.6rem 1rem;
}

.custom-emoji {
    width: 20px;
    height: 20px;
}

.emoji {
    font-size: 1.2rem;
}

.activity-image-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.activity-large-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(212, 175, 55, 0.1);
}

.activity-small-image {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.activity-name {
    font-weight: 600;
    color: var(--text-primary);
}

.activity-name i {
    color: var(--primary);
    margin-right: 0.3rem;
}

.activity-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.activity-state {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.activity-timestamp {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.discord-activity.spotify .activity-large-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.spotify-progress {
    margin-top: 0.5rem;
}

.spotify-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.spotify-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: none;
}

.spotify-loading, .spotify-idle, .spotify-error {
    text-align: center;
    padding: 3.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--spotify);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.spotify-active {
    display: flex;
    gap: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    align-items: center;
}

.spotify-active:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow);
    border-color: var(--primary);
}

.spotify-art {
    position: relative;
    flex-shrink: 0;
}

.spotify-art img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.playing-animation {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 20px;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
}

.playing-animation span {
    width: 3px;
    background: var(--spotify);
    border-radius: 2px;
    animation: playing 1s ease-in-out infinite;
}

.playing-animation span:nth-child(1) { animation-delay: 0s; height: 60%; }
.playing-animation span:nth-child(2) { animation-delay: 0.2s; height: 80%; }
.playing-animation span:nth-child(3) { animation-delay: 0.4s; height: 100%; }
.playing-animation span:nth-child(4) { animation-delay: 0.6s; height: 70%; }

@keyframes playing {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.spotify-details {
    flex: 1;
}

.song-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.3rem;
}

.song-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.artist-name, .album-name {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.listen-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background: var(--spotify);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.listen-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow);
}

.spotify-idle, .spotify-error {
    color: var(--text-secondary);
}

.spotify-idle i, .spotify-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--spotify);
    opacity: 0.5;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

.project-card {
    background: rgba(21, 21, 21, 0.3);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(10px);
}

.project-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 50px var(--shadow);
}

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.project-status.online {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.project-status.online i {
    animation: pulse-dot 2s ease-in-out infinite;
}

.project-status.offline {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

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

.project-image {
    position: relative;
    height: 200px;
    background: rgba(31, 31, 31, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.project-image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: all 0.4s ease;
    z-index: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 32px;
    align-items: center;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 500;
    transition: all 0.3s ease;
    height: 32px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.project-card:hover .tag {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary);
}

.view-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.view-counter:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 30px var(--shadow);
    transform: translateY(-3px);
}

.view-counter i {
    color: var(--primary);
    font-size: 1.1rem;
}

.view-counter span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer p {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8),
                 0 0 40px rgba(212, 175, 55, 0.5);
    animation: glowUp 3s ease-in-out infinite;
}

@keyframes glowUp {
    0% {
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.3),
                     0 0 10px rgba(212, 175, 55, 0.2);
    }
    50% {
        text-shadow: 0 -5px 30px rgba(212, 175, 55, 0.9),
                     0 -10px 50px rgba(212, 175, 55, 0.6),
                     0 -15px 70px rgba(212, 175, 55, 0.4);
    }
    100% {
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.3),
                     0 0 10px rgba(212, 175, 55, 0.2);
    }
}

.footer i {
    color: var(--primary);
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

@media (max-width: 768px) {
    .spotify-active {
        flex-direction: column;
        text-align: center;
    }

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

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    section {
        padding: 4rem 0;
    }
}
