:root {
    --primary-color: #ff0000;
    --secondary-color: #b10000;
    --accent-color: #b91c1c;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #e2e8f0;
    --text-dim: #94a3b8;
    --card-bg: #1e293b;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Big Outline Typography */
.bg-outline-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.08);
    z-index: 0;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.left-vertical {
    left: 0;
    top: 50%;
    transform: translate(-30%, -50%) rotate(-90deg);
}

.right-vertical {
    left: auto;
    right: 0;
    top: 50%;
    transform: translate(30%, -50%) rotate(90deg);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--bg-darker);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.logo .accent {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Odstraněn parametr 'fixed', protože způsoboval seky při scrollování */
    background: url('20241201_001738.jpg') center 30% / cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), var(--bg-dark));
    z-index: 0;
}

.hero-content {
    z-index: 2;
    max-width: 1000px;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-image-container {
    flex-shrink: 0;
}

.profile-pic {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
    transition: var(--transition);
}

.profile-pic:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.glowing-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: floatOrb 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 60%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, var(--secondary-color) 0%, transparent 60%);
    bottom: -10%;
    left: 0%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, #6a0000 0%, transparent 60%);
    top: 35%;
    left: 45%;
    animation-delay: -10s;
    animation-duration: 18s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
    100% { transform: translate(30px, -50px) scale(0.9); }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.skill-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.skill-card:hover::after {
    left: 150%;
}

.skill-card:hover {
    background: rgba(37, 51, 71, 0.6);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.1);
}

/* .ecdl-card removed to keep uniform style */
.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-list {
    list-style: none;
    margin-top: 1.5rem;
}

.skill-list li {
    margin-bottom: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-list li i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Hardware Section */
.hardware-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hw-item {
    text-align: center;
    padding: 2.5rem;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: var(--transition);
}

.hw-item:hover {
    transform: translateY(-8px);
    background: rgba(37, 51, 71, 0.6);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.1);
}

.hw-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(2, 6, 23, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: var(--transition);
}

.hw-item:hover .hw-icon {
    transform: scale(1.1) rotate(5deg);
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.hw-item h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.hw-item p {
    color: var(--text-dim);
}



/* Modern Footer */
.modern-footer {
    padding: 5rem 0 2rem;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.6;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer-brand .accent {
    color: var(--primary-color);
}

.footer-brand p {
    color: var(--text-dim);
    max-width: 450px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.social-icon i {
    z-index: 1;
    position: relative;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-8px);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.social-icon:hover::before {
    opacity: 1;
}

/* Specific colors on hover for icons */
.social-icon.github:hover::before { background: linear-gradient(135deg, #444, #111); }
.social-icon.linkedin:hover::before { background: linear-gradient(135deg, #0077b5, #005582); }
.social-icon.youtube:hover::before { background: linear-gradient(135deg, #ff0000, #cc0000); }
.social-icon.steam:hover::before { background: linear-gradient(135deg, #1b2838, #171a21); }

.social-icon.github:hover { box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1); }
.social-icon.linkedin:hover { box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3); }
.social-icon.youtube:hover { box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3); }
.social-icon.steam:hover { box-shadow: 0 10px 20px rgba(27, 40, 56, 0.4); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Project Section Styles */
.project-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 auto 4rem;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transition: var(--transition);
    overflow: hidden;
}

.project-card:last-child {
    margin-bottom: 0;
}

.project-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.2) 100%);
}

.project-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-features {
    list-style: none;
    margin: 1.5rem 0 2rem;
}

.project-features li {
    margin-bottom: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-features li i {
    color: var(--accent-color);
}

.project-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Media Queries */
@media (max-width: 768px) {
    .project-card {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 3rem;
    }

    .project-image-wrapper {
        min-height: 250px;
        height: 250px;
    }

    .project-info {
        padding: 2rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
        margin-bottom: 1rem;
    }

    .project-links {
        flex-direction: column;
    }

    .project-links .btn {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }

    .navbar .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        padding: 2rem;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);

        /* Animation initial state */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
    }

    .navbar .nav-links.nav-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar .nav-links li {
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease-in-out;
    }

    .navbar .nav-links.nav-active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered animation delays */
    .navbar .nav-links.nav-active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .navbar .nav-links.nav-active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .navbar .nav-links.nav-active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .navbar .nav-links.nav-active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .navbar .nav-links.nav-active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .hamburger {
        display: block;
    }

    .hero {
        background-position: center center;
    }

    .hero h1 {
        font-size: 2.5rem;
        white-space: normal;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .bg-outline-text {
        font-size: 25vw;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-background {
        width: 100%;
        height: 100%;
        opacity: 0.6;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Cursor Glow Effect */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-radius 0.3s ease;
    mix-blend-mode: screen;
    will-change: transform;
}

body.loading-state {
    background-color: #000 !important;
    overflow: hidden !important;
}

body.loading-state > *:not(#loader-wrapper):not(script) {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Loader Styles */
.crt-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 999999;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out;
}

.crt-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUcCgIZ6VmQnAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAClElEQVRo3u2aTU8UQRCGH5zdFVlFQUEU/AiIHogHjY3xohcTL8ajJ/+J/8GfYOJRD+rFqAcjKopEV5Hv3RVFdllgMbs7WeKmk5nZnu2G2NVJ3sxOT3fX09VV1dUzMI1vRalvcJQsJBvS8uJ/JNPIE9tmTZljM22x3QMgqLYf8J3G9iyw0gWM0nkJnAee5AlIJjhIUUc+AE4Ch4DFLrMzCOwDdgOdOQPKPEfFAZ4F7gMPgQ6g3kVWADoVfMpU41VK1QrwGTjtEO4t8Ap4AwyMY9nzwAKwBVgErAW2ygeUtdVCGZKXgXfA0HiQJBBgCBgG3mqOTWFZGXQdO2NgV8T5feCLEg2OAQqAt8A14Aqw3kB0J/AY2OMsT3G/MeoRMQAm6U4q/GsKTz1ItJNAFmtODN8QcBvYNgG4dhCNdGlVWREV6dXgY4bbRgXQ6gCpVYDGNOaKkgKkdDYluA/qDlDV/M+AFWViPQ2YugJflCE/ZcRUB2eAVRbRZWA7cAj4OMJ+HeiXL+nQbyOi8cTWGPIaGpwT0m/MzAK9uj/H01J5nNI1AGzU/fca3BPSaWANsMnlAWRYpfT+XFmKu8aYjcpw1jk1ZYlPdWsF01eCGoBRMQNa55Y5nVUt4JMcz5OIzAQG/eOuBwxIQzPpd7RGnDSq4KcCr2mcfgIvgCdakw0Qc0pIGkxJgX5VoJvAU+BXAkxgJpVu4k2I0gMq11eB+8Ab+ZdxI9BtxJUmWnUVYY+KtvfA8TGWnTWRLpB8eaWb+gXgmMrALAGJHv/9Sc5KxZ3FEuGg5srTlIwg0V1BopdmVbQblSZapULpKtKvR64xnWl8B/4AY/mz1voUGboAAAAASUVORK5CYII=');
    pointer-events: none;
    z-index: 2;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: 3;
    animation: scanroll 6s linear infinite;
    pointer-events: none;
}

.distort-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

@keyframes scanroll {
    0% { top: -10vh; }
    100% { top: 110vh; }
}

.loader-content {
    text-align: center;
    z-index: 4;
    position: relative;
    max-width: 300px;
}

.loader-content .logo {
    margin-bottom: 2rem;
}

.loader-content .top {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
}

.loader-content .top::after {
    content: "\00a9";
    font-size: 10px;
    position: relative;
    top: -5px;
    margin-left: 2px;
}

.loader-content .mid {
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    margin: 5px 0;
}

.loader-content .mid span {
    font-size: 20px;
    color: #FF6821;
    vertical-align: super;
}

.loader-content .bottom {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-dim);
}

.loader-bar-container {
    width: 150px;
    height: 10px;
    border: 2px solid #b2b2b2;
    border-radius: 7px;
    margin: 20px auto;
    padding: 2px 1px;
    overflow: hidden;
    position: relative;
    font-size: 0;
}

.loader-bar-container .box {
    width: 9px;
    height: 100%;
    background: linear-gradient(to bottom, #2838c7 0%,#5979ef 17%,#869ef3 32%,#869ef3 45%,#5979ef 59%,#2838c7 100%);
    display: inline-block;
    margin-right: 2px;
    animation: xploader 2s infinite linear;
    position: absolute;
    top: 0;
}

.loader-bar-container .box:nth-child(1) { left: -30px; animation-delay: 0s; }
.loader-bar-container .box:nth-child(2) { left: -20px; animation-delay: 0.1s; }
.loader-bar-container .box:nth-child(3) { left: -10px; animation-delay: 0.2s; }

@keyframes xploader {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(180px); }
}

.loading-status {
    margin-top: 2rem;
    font-family: 'Courier New', monospace;
    color: #FF6821;
    font-size: 14px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Timeline */
.timeline-container {
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.timeline-image {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    filter: brightness(0.9) contrast(1.1);
}

/* Glitch text effect */
.glitch {
    position: relative;
    animation: textGlitch 0.6s linear;
}

@keyframes textGlitch {
    3% { transform: translate(4px, -10px) skewX(32deg); }
    6% { transform: translate(4px, -10px) skewX(32deg); }
    7% { transform: translate(0px, 0px) skewX(0deg); }
    9% { transform: translate(0px, 0px) skewX(0deg); }
    15% { transform: translate(-2px, 6px) skew(-55deg); }
    20% { transform: translate(0px, 0px) skew(0deg); }
}

/* Screen Glitch Animation for Loader */
@keyframes crt-screen-glitch {
    3% { transform: translate(4px, -10px) skewX(3240deg); }
    6% { transform: translate(4px, -10px) skewX(3240deg); }
    7% { transform: translate(0px, 0px) skewX(0deg); }
    9% { transform: translate(0px, 0px) skewX(0deg); }
    2%, 54% { transform: translateX(0px) skew(0deg); }
    55% { transform: translate(-2px, 6px) skew(-5530deg); }
    56% { transform: translate(0px, 0px) skew(0deg); }
    57% { transform: translate(4px, -10px) skew(-70deg); }
    58% { transform: translate(0px, 0px) skew(0deg); }
    62% { transform: translate(0px, 10px) skew(0deg); }
    63% { transform: translate(4px, -2px) skew(0deg); }
    64% { transform: translate(1px, 3px) skew(-230deg); }
    65% { transform: translate(-7px, 2px) skew(120deg); }
    66% { transform: translate(0px, 0px) skew(0deg); }
}

.screen-glitch {
    animation: crt-screen-glitch 0.6s linear !important;
    transform-origin: center center;
}