:root {
    --text-color: #43FF5E;
    --ticks-container-width: 80vw;
    --tick-height: 1em;
    --tick-width: 10px;
    --tick-margin-right: 2px;
    --hacker-green: #43FF5E;
    --hacker-blue: #00FFFF;
    --hacker-red: #FF0055;
    --hacker-yellow: #FFFF00;
}

@media (min-width: 768px) {
    :root {
        --ticks-container-width: 50vw;
    }
}

/* === Impreza Main === */
.l-canvas {
    display: flex;
    flex-direction: column;
}

body {
    min-height: 100vh !important;
    display: flex;
    flex-direction: column;
}

@media (max-width: 899px) {
    body {
        min-height: 100dvh !important;
    }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #30302F;
}

.l-section {
    margin: auto !important;
}

/* Binary date glitch effect */
.binary-segment {
    display: inline-block;
    position: relative;
    font-family: monospace;
    color: var(--hacker-green);
    transition: all 0.05s ease;
    text-shadow: 0 0 5px rgba(67, 255, 94, 0.8);
    position: relative;
}

/* Base glitch effect */
.glitch-effect {
    position: relative;
    display: inline-block;
    animation: textShadowPulse 2s infinite;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-effect::before {
    color: var(--hacker-blue);
    z-index: -1;
    left: -2px;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-before 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate-reverse;
}

.glitch-effect::after {
    color: var(--hacker-red);
    z-index: -2;
    left: 2px;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    animation: glitch-after 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate-reverse;
}

/* Scan lines */
.binary-hint-container {
    position: relative;
    overflow: hidden;
}

/* Remove the scan lines effect */
.binary-hint-container::before {
    content: none; /* Removing the scan lines */
}

/* Enhanced glitch animations */
@keyframes glitch-before {
    0% {
        transform: translateX(-2px) skewX(3deg);
    }
    10% {
        transform: translateX(2px) skewY(1deg);
    }
    20% {
        transform: translateX(-3px) skewY(-1deg);
    }
    30% {
        transform: translateX(3px);
    }
    40% {
        transform: translateX(-2px) skewX(-2deg);
    }
    50% {
        transform: translateX(1px) skewY(1deg);
    }
    60% {
        transform: translateX(-2px);
    }
    70% {
        transform: translateX(3px) skewX(2deg);
    }
    80% {
        transform: translateX(-1px);
    }
    90% {
        transform: translateX(2px) skewY(-1deg);
    }
    100% {
        transform: translateX(-3px);
    }
}

@keyframes glitch-after {
    0% {
        transform: translateX(3px) skewX(-3deg);
    }
    10% {
        transform: translateX(-2px) skewY(-1deg);
    }
    20% {
        transform: translateX(3px) skewY(1deg);
    }
    30% {
        transform: translateX(-3px);
    }
    40% {
        transform: translateX(2px) skewX(2deg);
    }
    50% {
        transform: translateX(-1px) skewY(-1deg);
    }
    60% {
        transform: translateX(3px);
    }
    70% {
        transform: translateX(-3px) skewX(-2deg);
    }
    80% {
        transform: translateX(1px);
    }
    90% {
        transform: translateX(-2px) skewY(1deg);
    }
    100% {
        transform: translateX(3px);
    }
}

@keyframes textShadowPulse {
    0% {
        text-shadow: 0 0 4px var(--hacker-green), 0 0 0px var(--hacker-green);
    }
    30% {
        text-shadow: 0 0 4px var(--hacker-green), 0 0 10px var(--hacker-green);
    }
    60% {
        text-shadow: 0 0 4px var(--hacker-green), 0 0 5px var(--hacker-green);
    }
    70% {
        text-shadow: 0 0 8px var(--hacker-green), 0 0 15px var(--hacker-blue);
    }
    80% {
        text-shadow: 0 0 4px var(--hacker-green), 0 0 5px var(--hacker-green);
    }
    100% {
        text-shadow: 0 0 4px var(--hacker-green), 0 0 10px var(--hacker-green);
    }
}

@keyframes text-flicker {
    0% { opacity: 1; }
    8% { opacity: 0.8; transform: translateY(0); }
    12% { opacity: 0.4; transform: translateY(1px); }
    16% { opacity: 1; transform: translateY(-1px); color: var(--hacker-green);}
    25% { opacity: 0.6; transform: translateY(0); color: var(--hacker-blue);}
    38% { opacity: 1; transform: translateY(0); color: var(--hacker-green);}
    40% { opacity: 0.2; transform: translateY(2px);}
    48% { opacity: 1; transform: translateY(-1px); color: var(--hacker-yellow);}
    60% { opacity: 0.9; transform: translateY(0);}
    70% { opacity: 0.7; transform: translateY(-2px); color: var(--hacker-green);}
    80% { opacity: 1; transform: translateY(0);}
    90% { opacity: 0.9; transform: translateY(1px); color: var(--hacker-blue);}
    100% { opacity: 1; transform: translateY(0); color: var(--hacker-green);}
}

.binary-scramble {
    animation: text-flicker 0.2s infinite;
}

#binary-hint {
    position: relative;
    padding: 5px;
}

.l-footer .l-section {
    background: #30302F;
    color: #FFFFFF;
}

.l-footer {
    font-size: var(--font-size-base);
}

/* Logo styling */
.logo-cooming {
    perspective: 1000px; /* Adds perspective to create 3D effect */
}

.logo-cooming img {
    animation: logo-yaw-rotation 8s infinite linear; /* 8-second rotation cycle, linear timing, infinite loop */
    transform-style: preserve-3d; /* Preserves the 3D effect */
    backface-visibility: visible; /* Shows the back face during animation */
    transform-origin: center center; /* Rotation happens around the center */
}

/* Yaw rotation animation keyframes */
@keyframes logo-yaw-rotation {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Loading bar styling */
#loading-bar {
    width: 100%;
    max-width: 90vw;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    opacity: 0;
}

.loading-header {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.loading-bar-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
}

.ticks-container {
    background-color: #111;
    outline: 1px solid #333;
    padding: 2px;
    line-height: 1;
    display: flex;
    align-items: center;
    box-sizing: content-box;
    white-space: nowrap;
    width: var(--ticks-container-width);
    height: var(--tick-height);
}

.ticks-container.no-bg {
    background-color: transparent;
    outline: none;
}

.loading-tick {
    background-color: var(--text-color);
    height: var(--tick-height);
    vertical-align: middle;
    margin-right: var(--tick-margin-right);
}

.loading-tick:last-child {
    margin-right: 0 !important;
}

.loading-cursor {
    background-color: rgb(255, 255, 255);
    height: var(--tick-height);
    display: inline-block;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

.percentage-text {
    text-align: right;
    font-size: 16px;
    color: var(--text-color);
    margin-left: 20px;
}

.coming-soon-text {
    font-size: 24px;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--text-color);
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #loading-bar {
        padding: 15px;
    }
    
    .loading-header {
        font-size: 16px;
    }
    
    .coming-soon-text {
        font-size: 20px;
    }
}