@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700;900&display=swap');

:root {
    --primary: #00ff9d;
    --secondary: #ff00ff;
    --bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.avatar-container {
    position: relative;
    margin-bottom: 2rem;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px var(--primary), 0 0 60px var(--secondary);
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

h1 {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    background: transparent;
}

.cta-button {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg);
    background: var(--primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.8);
    background: var(--text);
}

/* Gallery Section */
.gallery {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary);
    background: transparent;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    color: #666;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(20, 20, 20, 0.9);
    margin: 10% auto;
    padding: 2rem;
    border: 2px solid var(--primary);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px var(--primary);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: var(--primary);
    text-decoration: none;
}

.modal h2 {
    color: var(--secondary);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--secondary);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn:hover {
    transform: scale(1.05);
}

.youtube {
    background: #FF0000;
    box-shadow: 0 0 10px #FF0000;
}

.telegram {
    background: #0088cc;
    box-shadow: 0 0 10px #0088cc;
}

.twitch {
    background: #9146FF;
    box-shadow: 0 0 10px #9146FF;
}

.modal-img {
    width: 100px;
    height: auto;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Mobile Optimization */
@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: 100vh;
        height: auto;
        width: 100%;
        overflow: hidden;
    }

    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }

    .avatar {
        width: 140px;
        height: 140px;
        border-width: 3px;
    }

    .subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        width: 80%;
        max-width: 300px;
    }

    .gallery {
        padding: 3rem 1rem;
        width: 100%;
        overflow: hidden;
    }

    .gallery h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }

    .card {
        border-radius: 15px;
        height: auto;
        background: transparent;
        border: none;
        /* Force visibility */
        opacity: 1 !important;
        transform: none !important;
    }

    .card img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 15px;
        object-fit: contain;
    }

    .modal-content {
        width: 85% !important;
        margin: 10% auto !important;
        padding: 1.5rem;
        max-height: 80vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        left: 0;
        right: 0;
    }

    /* Disable scroll animations on mobile */
    .hidden {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }
}

/* Scroll Animations */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translate(0);
}

.card:nth-child(even).hidden {
    transform: translateX(100%);
}

/* Hero Specific Animations */
.hero .avatar-container,
.hero h1,
.hero .subtitle,
.hero .cta-button {
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero .avatar-container {
    animation-delay: 0.2s;
}

.hero h1 {
    animation-delay: 0.4s;
}

.hero .subtitle {
    animation-delay: 0.6s;
}

.hero .cta-button {
    animation-delay: 0.8s;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}