/* ========================= */
/*   RESET & BASE            */
/* ========================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cyber-cyan: #00f0ff;
    --cyber-magenta: #ff00e5;
    --cyber-blue: #0040ff;
    --cyber-green: #00ff88;
    --dark-bg: #030810;
    --grid-color: rgba(0, 240, 255, 0.04);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 60px rgba(0, 240, 255, 0.2);
    --glow-magenta: 0 0 20px rgba(255, 0, 229, 0.5), 0 0 60px rgba(255, 0, 229, 0.2);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: #fff;
}

/* ========================= */
/*   CANVAS BACKGROUND       */
/* ========================= */
#cyberCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ========================= */
/*   OVERLAY                 */
/* ========================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: 
        radial-gradient(ellipse at 50% 50%, transparent 0%, var(--dark-bg) 70%),
        linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

/* ========================= */
/*   SCANLINE                */
/* ========================= */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.015) 2px,
        rgba(0, 240, 255, 0.015) 4px
    );
}

.scanline::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 240, 255, 0.06) 50%,
        transparent 100%
    );
    animation: scanMove 4s linear infinite;
}

@keyframes scanMove {
    from { transform: translateY(0); }
    to { transform: translateY(50%); }
}

/* ========================= */
/*   CONTENT                 */
/* ========================= */
.content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 48px);
}

/* ========================= */
/*   GLITCH TITLE            */
/* ========================= */
.glitch-wrapper {
    position: relative;
}

.company-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #fff;
    text-shadow:
        var(--glow-cyan),
        0 0 100px rgba(0, 240, 255, 0.15),
        0 0 160px rgba(255, 0, 229, 0.08);
    position: relative;
    white-space: nowrap;
    animation: textFlicker 8s infinite;
    filter: drop-shadow(0 0 2px rgba(0, 240, 255, 0.4));
}

.company-name::before,
.company-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.company-name::before {
    color: var(--cyber-cyan);
    z-index: -1;
    animation: glitch1 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.company-name::after {
    color: var(--cyber-magenta);
    z-index: -2;
    animation: glitch2 3s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-3px, -1px); }
    92% { transform: translate(3px, 1px); }
    93% { transform: translate(-2px, 0px); }
    94% { transform: translate(2px, -1px); }
    95% { transform: translate(-1px, 2px); }
}

@keyframes glitch2 {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(3px, 1px); }
    92% { transform: translate(-3px, -1px); }
    93% { transform: translate(2px, 0px); }
    94% { transform: translate(-2px, 1px); }
    95% { transform: translate(1px, -2px); }
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    95% { opacity: 0.9; }
    96% { opacity: 1; }
}

/* ========================= */
/*   DIVIDER                 */
/* ========================= */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 500px;
    opacity: 0.6;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyber-cyan), transparent);
    animation: lineGlow 3s ease-in-out infinite;
}

.divider-dot {
    width: 6px;
    height: 6px;
    background: var(--cyber-cyan);
    box-shadow: var(--glow-cyan);
    animation: dividerBlink 2.4s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes dividerBlink {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ========================= */
/*   STATUS TEXT             */
/* ========================= */
.status-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.85rem, 2.4vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.94);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow:
        0 0 20px rgba(0, 240, 255, 0.55),
        0 0 44px rgba(0, 240, 255, 0.25),
        0 0 72px rgba(255, 0, 229, 0.12);
}

.bracket {
    color: #7ffcff;
    font-size: 1.2em;
    font-weight: 700;
    opacity: 1;
    text-shadow:
        0 0 16px rgba(0, 240, 255, 0.9),
        0 0 32px rgba(0, 240, 255, 0.45);
    animation: bracketPulse 2.4s ease-in-out infinite;
}

.status-inner {
    color: #f4feff;
    font-weight: 700;
    letter-spacing: 0.52em;
    text-shadow:
        0 0 18px rgba(0, 240, 255, 0.65),
        0 0 40px rgba(0, 240, 255, 0.35),
        0 0 56px rgba(255, 0, 229, 0.2);
    animation: statusBlink 3.5s ease-in-out infinite;
}

@keyframes bracketPulse {
    0%, 100% {
        opacity: 0.88;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.15);
    }
}

@keyframes statusBlink {
    0%, 100% {
        opacity: 0.92;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.18);
    }
}

/* ========================= */
/*   CORNER DECORATIONS      */
/* ========================= */
.corner {
    position: fixed;
    width: 60px;
    height: 60px;
    z-index: 10;
    pointer-events: none;
}

.corner::before,
.corner::after {
    content: '';
    position: absolute;
    background: var(--cyber-cyan);
    opacity: 0.3;
}

.corner-tl {
    top: 20px;
    left: 20px;
}
.corner-tl::before {
    top: 0; left: 0;
    width: 30px; height: 1px;
}
.corner-tl::after {
    top: 0; left: 0;
    width: 1px; height: 30px;
}

.corner-tr {
    top: 20px;
    right: 20px;
}
.corner-tr::before {
    top: 0; right: 0;
    width: 30px; height: 1px;
}
.corner-tr::after {
    top: 0; right: 0;
    width: 1px; height: 30px;
}

.corner-bl {
    bottom: 20px;
    left: 20px;
}
.corner-bl::before {
    bottom: 0; left: 0;
    width: 30px; height: 1px;
}
.corner-bl::after {
    bottom: 0; left: 0;
    width: 1px; height: 30px;
}

.corner-br {
    bottom: 20px;
    right: 20px;
}
.corner-br::before {
    bottom: 0; right: 0;
    width: 30px; height: 1px;
}
.corner-br::after {
    bottom: 0; right: 0;
    width: 1px; height: 30px;
}

/* ========================= */
/*   RESPONSIVE              */
/* ========================= */
@media (max-width: 600px) {
    .company-name {
        letter-spacing: 0.08em;
    }
    .status-text {
        letter-spacing: 0.2em;
    }
    .divider {
        max-width: 280px;
    }
    .corner {
        width: 40px;
        height: 40px;
    }
    .corner::before {
        width: 20px !important;
    }
    .corner::after {
        height: 20px !important;
    }
}
