:root {
    --bg-color: #050505;
    --text-primary: #ededed;
    --accent: #00ff41;
    /* Cyberpunk Green */
    --accent-secondary: #ff003c;
    /* Cyberpunk Red */
    --font-glitch: 'Rubik Glitch', system-ui;
    --font-body: 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    position: relative;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

/* Glitch Text */
.glitch-title {
    font-family: var(--font-glitch);
    font-size: 4rem;
    color: var(--accent);
    position: relative;
    margin: 20px 0;
    text-shadow: 2px 2px var(--accent-secondary);
    animation: glitch-skew 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

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

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-2deg);
    }

    40% {
        transform: skew(2deg);
    }

    60% {
        transform: skew(-1deg);
    }

    80% {
        transform: skew(1deg);
    }

    100% {
        transform: skew(0deg);
    }
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-title::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-secondary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: -2px;
    text-shadow: -1px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(12px, 9999px, 86px, 0);
    }

    10% {
        clip: rect(78px, 9999px, 14px, 0);
    }

    20% {
        clip: rect(2px, 9999px, 160px, 0);
    }

    30% {
        clip: rect(62px, 9999px, 4px, 0);
    }

    40% {
        clip: rect(26px, 9999px, 126px, 0);
    }

    50% {
        clip: rect(89px, 9999px, 16px, 0);
    }

    60% {
        clip: rect(3px, 9999px, 107px, 0);
    }

    70% {
        clip: rect(54px, 9999px, 82px, 0);
    }

    80% {
        clip: rect(100px, 9999px, 95px, 0);
    }

    90% {
        clip: rect(16px, 9999px, 7px, 0);
    }

    100% {
        clip: rect(33px, 9999px, 123px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    100% {
        clip: rect(12px, 9999px, 45px, 0);
    }
}

/* Group Photo */
.group-photo-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
    border: 2px solid var(--accent);
    padding: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.group-photo {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(80%) contrast(120%);
    transition: filter 0.3s;
}

.group-photo:hover {
    filter: grayscale(0%) contrast(100%);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 255, 65, 0.5);
    opacity: 0.5;
    animation: scan 3s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Button */
.btn-glitch {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 15px 40px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-glitch:hover {
    background-color: var(--accent);
    color: var(--bg-color);
    box-shadow: 0 0 30px var(--accent);
}

/* Members Section */
.members-section.hidden {
    display: none;
}

.members-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: slideUp 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.members-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.carousel-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    perspective: 1000px;
}

.carousel-track-container {
    overflow: hidden;
    border: 1px solid #333;
    background: #111;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.carousel-track {
    display: flex;
    list-style: none;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 20px;
    text-align: center;
}

.member-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #444;
    margin-bottom: 20px;
}

.member-name {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-desc {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 11;
    padding: 10px 15px;
    border-radius: 50%;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: var(--accent);
    color: black;
}

.prev {
    left: -50px;
}

.next {
    right: -50px;
}

@media (max-width: 600px) {
    .nav-btn {
        display: none;
    }

    /* Use swipe on mobile */
    .carousel-container {
        width: 100%;
    }

    .swipe-hint {
        display: block;
        margin-top: 20px;
        color: #555;
        font-size: 0.8rem;
    }
}

.swipe-hint {
    display: none;
}