/* =============================================
   KIZAGAN TEKNOLOJİ — Professional Design System
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #020617;
    --bg-secondary: #0f172a;
    --card-bg: rgba(15, 23, 42, 0.6);
    --card-bg-solid: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --text-secondary: #cbd5e1;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --accent-subtle: rgba(59, 130, 246, 0.15);
    --nav-bg: rgba(2, 6, 23, 0.85);
    --neon-green: #10b981;
    --neon-green-glow: rgba(16, 185, 129, 0.5);
    --danger: #ef4444;
    --warning: #f59e0b;
    --gold: #fbbf24;
    --purple: #8b5cf6;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Orbitron', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 50% -20%, rgba(30, 58, 138, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent-color);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ============== SPLASH SCREEN ============== */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: splashPulse 1.5s ease infinite;
}

.splash-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 1.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.splash-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.splash-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--purple));
    animation: splashLoad 1.8s ease forwards;
}

@keyframes splashPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.8;
    }
}

@keyframes splashLoad {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* ============== TOAST ============== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 90000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--card-bg-solid);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    font-size: 0.92rem;
    font-weight: 500;
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
    max-width: 350px;
}

.toast.success {
    border-left-color: var(--neon-green);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

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

@keyframes toastOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ============== BACKGROUND ============== */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* ============== NAVIGATION ============== */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0.8rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(2, 6, 23, 0.95);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.logo-img {
    height: 46px;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0.65;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-fast);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--accent-color);
}

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

.nav-link-games {
    color: var(--neon-green) !important;
    opacity: 1 !important;
    text-shadow: 0 0 12px var(--neon-green-glow);
}

.nav-link-games::after {
    background: var(--neon-green) !important;
    box-shadow: 0 0 8px var(--neon-green-glow) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Music Bar */
.music-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 7px 18px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

#track-info {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
    min-width: 90px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.music-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
    padding: 4px;
}

.music-btn:hover {
    color: var(--accent-color);
    transform: scale(1.15);
}

/* ============== SPA PAGES ============== */
.page-view {
    display: none;
    animation: pageIn 0.6s ease;
}

.page-view.active {
    display: block;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* ============== HEADER / HERO ============== */
header {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 9vw, 6rem);
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff 10%, #60a5fa 50%, #a78bfa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -1px;
    filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.25));
    animation: heroGradient 6s ease infinite;
}

@keyframes heroGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 650px;
    font-weight: 300;
    line-height: 1.9;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: scrollBounce 2s ease infinite;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: rotate(45deg);
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ============== SECTION TITLES ============== */
.section-title {
    text-align: center;
    margin: 5rem 0 2.5rem;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--purple));
    margin: 12px auto 0;
    border-radius: 3px;
}

/* ============== SLIDER / PROJECTS ============== */
.slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--nav-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: var(--accent-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.left {
    left: 0;
}

.slider-arrow.right {
    right: 0;
}

.slider-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 50px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.comp-card {
    flex: 0 0 320px;
    height: 460px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.comp-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 25px 50px -10px var(--accent-glow);
}

.comp-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.comp-card:hover img {
    transform: scale(1.1);
}

.comp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 25px 25px;
    background: linear-gradient(to top, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.85) 40%, transparent 100%);
    transition: var(--transition);
}

.comp-overlay h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 1px;
}

.comp-card:hover .comp-overlay {
    padding-bottom: 30px;
}

/* ============== TEAMS & DEPARTMENTS ============== */
.content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.team-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2.5rem;
}

.team-box {
    cursor: pointer;
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    flex: 1;
    min-width: 240px;
    max-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.team-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--purple));
    opacity: 0;
    transition: var(--transition);
}

.team-box:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.12);
}

.team-box:hover::before {
    opacity: 1;
}

.team-box h3 {
    color: var(--accent-color);
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.team-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============== REVEAL ============== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============== GALLERY ============== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    filter: grayscale(20%) brightness(0.85);
    background: #1e293b;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.gallery-grid img:hover {
    transform: scale(1.04) translateY(-4px);
    filter: grayscale(0) brightness(1.05);
    box-shadow: 0 15px 35px var(--accent-glow);
    border-color: rgba(59, 130, 246, 0.3);
    z-index: 10;
    position: relative;
}

/* ============== ARCADE ============== */
.arcade-hero {
    text-align: center;
    padding: 3.5rem 2rem 1.5rem;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.08), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.arcade-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
    margin-bottom: 1.2rem;
}

.arcade-controls-top {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.nickname-input {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-color);
    color: var(--neon-green);
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: bold;
    width: 280px;
    text-align: center;
    outline: none;
    transition: 0.3s;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    font-family: var(--font-display);
}

.nickname-input:focus {
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 10px rgba(59, 130, 246, 0.15);
}

.nickname-input::placeholder {
    color: rgba(16, 185, 129, 0.4);
    font-weight: normal;
    font-family: var(--font-display);
    font-size: 0.8rem;
}

.game-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.game-tab-btn {
    background: #1e293b;
    color: var(--text-muted);
    border: 2px solid transparent;
    padding: 11px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-tab-btn.active,
.game-tab-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.arcade-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    align-items: flex-start;
    justify-content: center;
}

.game-view-container {
    display: none;
    flex: 1;
    min-width: 320px;
    max-width: 800px;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
}

.game-view-container.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pageIn 0.4s ease;
}

.game-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.game-info-bar span {
    color: var(--neon-green);
    font-weight: bold;
    text-shadow: 0 0 8px var(--neon-green-glow);
}

canvas.game-canvas {
    background: #020617;
    border: 3px solid #334155;
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 1);
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    max-width: 450px;
    height: auto;
    image-rendering: pixelated;
}

.game-view-container:focus-within canvas.game-canvas,
canvas.game-canvas:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
}

.game-controls-mobile {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    max-width: 440px;
}

.game-controls-dpad {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    grid-template-rows: repeat(3, 56px);
    gap: 6px;
    margin-top: 15px;
    justify-content: center;
}

.dpad-center {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.btn-arcade {
    background: #334155;
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    flex: 1;
    font-size: 1.5rem;
    transition: 0.15s;
    border-bottom: 4px solid #1e293b;
    font-family: var(--font-display);
    min-height: 56px;
    min-width: 56px;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.btn-arcade:active {
    transform: translateY(4px);
    border-bottom: 0px;
    background: #475569;
}

.btn-arcade.primary {
    background: var(--accent-color);
    border-bottom-color: #2563eb;
}

.btn-arcade.primary:active {
    background: #2563eb;
}

.arcade-sidebar {
    width: 340px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scoreboard-title {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    padding-bottom: 12px;
    margin-bottom: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.score-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.85rem;
    border-left: 4px solid #334155;
    transition: var(--transition-fast);
}

.score-item:hover {
    background: rgba(0, 0, 0, 0.5);
}

.score-item.top-1 {
    border-left-color: var(--gold);
    background: rgba(251, 191, 36, 0.08);
}

.score-item.top-2 {
    border-left-color: #94a3b8;
}

.score-item.top-3 {
    border-left-color: #b45309;
}

.score-name {
    color: var(--text-color);
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.score-val {
    color: var(--neon-green);
    font-weight: 900;
    text-shadow: 0 0 5px var(--neon-green-glow);
}

/* ============== MODALS ============== */
.modal,
.lib-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.97);
    z-index: 4000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(15px);
}

.modal.active,
.lib-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.modal-main-img {
    max-width: 100%;
    max-height: 65vh;
    border-radius: var(--radius-md);
    object-fit: contain;
    box-shadow: 0 0 40px var(--accent-glow);
}

.modal-counter {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
    font-family: var(--font-display);
    letter-spacing: 2px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
    z-index: 4100;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.left-arrow {
    left: -70px;
}

.right-arrow {
    right: -70px;
}

@media (max-width: 1300px) {
    .left-arrow {
        left: 10px;
    }

    .right-arrow {
        right: 10px;
    }
}

.modal-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    overflow-x: auto;
    max-width: 900px;
    padding: 8px;
}

.modal-thumbs img {
    width: 100px;
    height: 68px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
    border: 2px solid transparent;
}

.modal-thumbs img.active {
    opacity: 1;
    border-color: var(--accent-color);
}

.modal-thumbs img:hover {
    opacity: 0.85;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 4200;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* ============== TEAM LIBRARY ============== */
.lib-container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--card-bg);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.lib-sidebar {
    width: 280px;
    background: rgba(2, 6, 23, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.lib-sidebar h3 {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    padding-left: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-display);
}

.lib-team-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: white;
    padding: 13px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.6;
}

.lib-team-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.lib-team-btn.active {
    background: var(--accent-color);
    opacity: 1;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.lib-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    position: relative;
}

.lib-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.3s;
    z-index: 10;
}

.lib-close:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.lib-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lib-topic {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.lib-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.lib-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.lib-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s;
    cursor: pointer;
}

.lib-gallery img:hover {
    transform: scale(1.04);
    border-color: var(--accent-color);
}

/* ============== SPACE STATISTICS ============== */
.space-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.space-stat-card {
    background: var(--card-bg);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem 1.2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.space-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--purple));
    opacity: 0;
    transition: var(--transition);
}

.space-stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.space-stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow);
    margin-bottom: 6px;
}

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

.astronaut-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.astronaut-badge {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.astronaut-badge:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.astronaut-badge .craft-tag {
    font-size: 0.7rem;
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

/* ============== ADMIN ============== */
.admin-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--nav-bg);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.2;
    transition: 0.3s;
    font-size: 0.9rem;
}

.admin-trigger:hover {
    opacity: 0.8;
    border-color: var(--accent-color);
}

.admin-panel {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.96);
    z-index: 5000;
    display: none;
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    overflow-y: auto;
}

.admin-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.admin-header h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.admin-nav {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.admin-tab-btn {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-tab-btn.active,
.admin-tab-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.admin-content {
    display: none;
    animation: fadeIn 0.3s ease;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.admin-content.active {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-control {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
    font-size: 0.88rem;
}

.btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1rem;
}

.data-item {
    background: var(--card-bg);
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-fast);
}

.data-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.data-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}

/* ============== AI CHATBOT ============== */
.ai-chat-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--purple));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transition: var(--transition);
    font-size: 1.6rem;
    border: none;
    color: white;
    animation: chatPulse 3s ease infinite;
}

.ai-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

@keyframes chatPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(139, 92, 246, 0.6);
    }
}

.ai-chat-window {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 450px;
    height: 600px;
    background: var(--card-bg-solid);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.ai-chat-window.active {
    display: flex;
    animation: chatWindowIn 0.35s ease;
}

@keyframes chatWindowIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

.chat-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-header h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
}

.chat-close:hover {
    color: var(--danger);
}

.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.chat-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: msgIn 0.3s ease;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.msg-ai {
    background: var(--accent-subtle);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg-user {
    background: var(--accent-color);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    outline: none;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.chat-input-area input:focus {
    border-color: var(--accent-color);
}

.chat-input-area button {
    background: linear-gradient(135deg, var(--accent-color), var(--purple));
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    font-size: 1.1rem;
}

.chat-input-area button:hover {
    transform: scale(1.08);
}

.typing-indicator {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: none;
    padding: 6px 14px;
}

.typing-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: typingDot 1.2s ease infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

/* ============== SCROLL TOP ============== */
.scroll-top-btn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: var(--card-bg);
    color: var(--accent-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: var(--accent-color);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ============== RESPONSIVE ============== */
@media(max-width: 992px) {
    nav {
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }

    .nav-links.mobile-active {
        display: flex;
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .music-bar {
        padding: 6px 12px;
    }

    #track-info {
        min-width: 60px;
        font-size: 0.7rem;
    }
}

@media(max-width: 768px) {
    .lib-container {
        flex-direction: column;
    }

    .lib-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        overflow-x: auto;
        padding: 0.8rem;
    }

    .lib-sidebar h3 {
        display: none;
    }

    .lib-team-btn {
        width: auto;
        white-space: nowrap;
        margin-bottom: 0;
        margin-right: 8px;
    }

    .lib-content {
        padding: 1.5rem;
    }

    .arcade-sidebar {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .gallery-grid img {
        height: 160px;
    }

    .team-box {
        min-width: 100%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .ai-chat-window {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 140px;
    }
}

@media(max-width: 480px) {
    nav {
        padding: 0.6rem 1rem;
    }

    .logo-img {
        height: 36px;
    }

    header {
        min-height: 70vh;
    }

    .comp-card {
        flex: 0 0 280px;
        height: 400px;
    }

    .game-info-bar {
        font-size: 1rem;
        padding: 10px 14px;
    }
}

/* ============== ADMIN LOGIN MODAL ============== */
.admin-login-box {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.15);
    animation: loginSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes loginSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

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

.admin-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-login-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: lockPulse 2s ease infinite;
}

@keyframes lockPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.8));
    }
}

.admin-login-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.admin-login-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.admin-login-form .form-group {
    margin-bottom: 1rem;
}

.admin-login-form .form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-login-form .form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.admin-login-form .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.admin-login-form .btn {
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    color: white;
}

.admin-login-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* ============== GAME OVER ANIMATIONS & STYLES ============== */
#game-over-modal {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#game-over-modal.active .game-over-content {
    animation: dropDownBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes dropDownBounce {
    0% {
        transform: scale(0.5) translateY(-200px) rotateX(-20deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.05) translateY(10px) rotateX(10deg);
        opacity: 1;
        filter: drop-shadow(0 0 50px rgba(239, 68, 68, 0.5));
    }

    100% {
        transform: scale(1) translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

.game-over-glitch {
    position: relative;
    color: white;
    display: inline-block;
}

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

.game-over-glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--neon-green);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.game-over-glitch::after {
    left: -3px;
    text-shadow: 2px 0 var(--accent-color);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 85px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 15px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(80px, 9999px, 35px, 0);
    }

    80% {
        clip: rect(50px, 9999px, 90px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 20px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(25px, 9999px, 70px, 0);
    }

    40% {
        clip: rect(45px, 9999px, 30px, 0);
    }

    60% {
        clip: rect(15px, 9999px, 80px, 0);
    }

    80% {
        clip: rect(85px, 9999px, 40px, 0);
    }

    100% {
        clip: rect(5px, 9999px, 60px, 0);
    }
}