@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&display=swap');

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

body {
    font-family: 'Fira Code', monospace;
    background: #0a0a0a;
    color: #00ff00;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 25% 25%, #001100 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #002200 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { background-color: #0a0a0a; }
    100% { background-color: #0d0d0d; }
}

.terminal-container {
    max-width: 1200px;
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 8px;
    box-shadow: 
        0 0 20px #00ff00,
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    animation: terminalGlow 2s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
    0% { box-shadow: 0 0 20px #00ff00, inset 0 0 20px rgba(0, 255, 0, 0.1); }
    100% { box-shadow: 0 0 30px #00ff00, inset 0 0 30px rgba(0, 255, 0, 0.2); }
}

.terminal-header {
    background: #001100;
    padding: 10px 15px;
    border-bottom: 1px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    font-weight: 500;
    color: #ff0000;
    animation: textFlicker 1.5s infinite;
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.minimize { background: #ffff00; }
.maximize { background: #00ff00; }
.close { background: #ff0000; }

.terminal-body {
    padding: 20px;
    line-height: 1.6;
}

.hack-sequence {
    margin-bottom: 30px;
}

.line {
    margin: 5px 0;
    font-size: 14px;
}

.prompt {
    color: #ff6600;
    font-weight: 500;
}

.command {
    color: #00ffff;
    margin-left: 10px;
}

.output {
    color: #cccccc;
    margin-left: 20px;
}

.output.success {
    color: #00ff00;
    font-weight: 500;
}

.terminal-sequence {
    font-family: 'Fira Code', monospace;
}

.terminal-line {
    margin: 5px 0;
    font-size: 14px;
    display: none;
}

.terminal-line.visible {
    display: block;
    opacity: 1;
}

.old-name {
    color: #00ff00;
    font-weight: 700;
    animation: crossoutEffect 2s ease-in-out forwards 1s;
}

.new-name {
    color: #ff0000;
    font-weight: 700;
    font-size: 1.2em;
    text-shadow: 
        2px 2px 0px #00ff00,
        -1px -1px 0px #00ffff,
        0 0 10px #ff0000;
    animation: glitch 2s infinite 1s;
}

.warning {
    color: #ff6600;
    font-weight: 700;
    animation: warningFlash 1s infinite alternate;
}

.signature {
    color: #00ff00;
    font-style: italic;
    text-align: right;
}

@keyframes crossoutSequence {
    0% {
        color: #00ff00;
        text-decoration: none;
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
    30% {
        color: #00ff00;
        text-decoration: none;
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
    35% {
        color: #ff0000;
        text-decoration: none;
        opacity: 1;
        transform: scale(1.05);
        filter: brightness(1.5);
    }
    40% {
        color: #ff0000;
        text-decoration: line-through;
        text-decoration-color: #ff0000;
        text-decoration-thickness: 6px;
        opacity: 1;
        transform: scale(1.05);
        filter: brightness(1.5);
    }
    50% {
        color: #888888;
        text-decoration: line-through;
        text-decoration-color: #ff0000;
        text-decoration-thickness: 6px;
        opacity: 0.8;
        transform: scale(0.95);
        filter: brightness(0.7);
    }
    100% {
        color: #666666;
        text-decoration: line-through;
        text-decoration-color: #cc0000;
        text-decoration-thickness: 4px;
        opacity: 0.6;
        transform: scale(0.9);
        filter: brightness(0.5);
    }
}

@keyframes simpleGraffitiAppear {
    0% {
        opacity: 0;
        transform: rotate(-1deg) scale(0.7);
        filter: blur(2px);
    }
    30% {
        opacity: 0.3;
        transform: rotate(-1deg) scale(0.8);
        filter: blur(1px);
    }
    60% {
        opacity: 0.7;
        transform: rotate(-1deg) scale(0.95);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: rotate(-1deg) scale(1);
        filter: blur(0px);
    }
}

@keyframes graffitiAppear {
    0% {
        opacity: 0;
        transform: rotate(-2deg) scale(0.5);
        filter: blur(4px);
    }
    30% {
        opacity: 0;
        transform: rotate(-2deg) scale(0.5);
        filter: blur(4px);
    }
    40% {
        opacity: 0.4;
        transform: rotate(-2deg) scale(0.7);
        filter: blur(3px);
    }
    50% {
        opacity: 0.6;
        transform: rotate(-2deg) scale(0.85);
        filter: blur(2px);
    }
    60% {
        opacity: 0.8;
        transform: rotate(-2deg) scale(0.95);
        filter: blur(1px);
    }
    70% {
        opacity: 0.9;
        transform: rotate(-2deg) scale(1.05);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: rotate(-2deg) scale(1);
        filter: blur(0px);
    }
}

@keyframes slideOutCrossout {
    0% {
        color: #00ff00;
        text-decoration: none;
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
    30% {
        color: #00ff00;
        text-decoration: none;
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
    35% {
        color: #ff0000;
        text-decoration: none;
        opacity: 1;
        transform: translateX(0) scale(1.05);
        filter: brightness(1.5);
    }
    40% {
        color: #ff0000;
        text-decoration: line-through;
        text-decoration-color: #ff0000;
        text-decoration-thickness: 6px;
        opacity: 1;
        transform: translateX(0) scale(1.05);
        filter: brightness(1.5);
    }
    50% {
        color: #888888;
        text-decoration: line-through;
        text-decoration-color: #ff0000;
        text-decoration-thickness: 6px;
        opacity: 0.8;
        transform: translateX(0) scale(0.95);
        filter: brightness(0.7);
    }
    70% {
        color: #666666;
        text-decoration: line-through;
        text-decoration-color: #cc0000;
        text-decoration-thickness: 4px;
        opacity: 0.6;
        transform: translateX(-50px) scale(0.8);
        filter: brightness(0.5);
    }
    100% {
        color: #444444;
        text-decoration: line-through;
        text-decoration-color: #cc0000;
        text-decoration-thickness: 4px;
        opacity: 0.3;
        transform: translateX(-100px) scale(0.7);
        filter: brightness(0.3);
    }
}

@keyframes slideInGraffiti {
    0% {
        left: 100%;
        transform: rotate(-3deg) scale(0.8);
        opacity: 0;
        filter: blur(3px);
    }
    40% {
        left: 100%;
        transform: rotate(-3deg) scale(0.8);
        opacity: 0;
        filter: blur(3px);
    }
    50% {
        left: 80%;
        transform: rotate(-3deg) scale(0.9);
        opacity: 0.3;
        filter: blur(2px);
    }
    60% {
        left: 60%;
        transform: rotate(-3deg) scale(0.95);
        opacity: 0.6;
        filter: blur(1px);
    }
    70% {
        left: 50%;
        transform: translateX(-50%) rotate(-3deg) scale(1.05);
        opacity: 0.8;
        filter: blur(0px);
    }
    80% {
        left: 50%;
        transform: translateX(-50%) rotate(-3deg) scale(1.02);
        opacity: 0.9;
        filter: blur(0px);
    }
    100% {
        left: 50%;
        transform: translateX(-50%) rotate(-3deg) scale(1);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes graffitiGlitchEffect {
    0%, 100% { 
        transform: rotate(-2deg) scale(1);
    }
    20% { 
        transform: rotate(-1deg) scale(1.01);
    }
    40% { 
        transform: rotate(-3deg) scale(0.99);
    }
    60% { 
        transform: rotate(-1deg) scale(1.01);
    }
    80% { 
        transform: rotate(-3deg) scale(0.99);
    }
}

@keyframes graffitiGlitch {
    0%, 100% { 
        transform: translateX(-50%) rotate(-3deg) scale(1);
    }
    20% { 
        transform: translateX(calc(-50% - 2px)) rotate(-2deg) scale(1.01);
    }
    40% { 
        transform: translateX(calc(-50% - 2px)) rotate(-4deg) scale(0.99);
    }
    60% { 
        transform: translateX(calc(-50% + 2px)) rotate(-2deg) scale(1.01);
    }
    80% { 
        transform: translateX(calc(-50% + 2px)) rotate(-4deg) scale(0.99);
    }
}

.glitch {
    animation: glitch 2s infinite;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #00ffff;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #ff00ff;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(2px, 2px); }
    20% { transform: translate(-2px, -2px); }
    30% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
}

.content-section {
    margin: 30px 0;
}

.warning-box {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    animation: warningPulse 1s infinite alternate, boxGrow 3s ease-out forwards 2s;
}

@keyframes warningPulse {
    0% { border-color: #ff0000; }
    100% { border-color: #ff6666; }
}

@keyframes boxGrow {
    0% {
        padding: 20px;
        min-height: 0;
        height: auto;
    }
    100% {
        padding: 30px;
        min-height: 0;
        height: auto;
        padding-bottom: 40px;
    }
}

.warning-box h2 {
    color: #ff0000;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-card {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #00ff00;
    padding: 20px;
    border-radius: 4px;
}

.info-card h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.info-card p {
    margin: 8px 0;
    color: #cccccc;
}

.message-box {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

.message-box::before {
    content: "CLASSIFIED";
    position: absolute;
    top: -12px;
    left: 20px;
    background: #0a0a0a;
    color: #ff0000;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
}

.message-box h3 {
    color: #ff6600;
    margin-bottom: 15px;
}

.message-box p {
    margin: 10px 0;
    color: #cccccc;
}

.highlight {
    color: #ff0000;
    font-weight: 700;
    animation: textFlicker 1s infinite;
}

.signature {
    text-align: right;
    color: #00ff00;
    font-style: italic;
    margin-top: 20px;
}

.contact-section {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid #00ffff;
    padding: 20px;
    margin: 30px 0;
}

.contact-section h3 {
    color: #00ffff;
    margin-bottom: 15px;
}

.contact-section p {
    margin: 8px 0;
    color: #cccccc;
}

.footer-terminal {
    margin-top: 40px;
    border-top: 1px solid #00ff00;
    padding-top: 20px;
}

.typing-effect {
    animation: typing 3s steps(30, end);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes crossoutEffect {
    0% {
        color: #00ff00;
        text-decoration: none;
    }
    50% {
        color: #ff0000;
        text-decoration: none;
    }
    100% {
        color: #666666;
        text-decoration: line-through;
        text-decoration-color: #ff0000;
        text-decoration-thickness: 2px;
    }
}

@keyframes warningFlash {
    0% { color: #ff6600; }
    100% { color: #ff9900; }
}

.typing {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        margin: 10px;
    }
    
    .glitch {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-body {
        padding: 15px;
    }
}

/* Finale Overlay */
.finale-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.finale-overlay.active {
    display: flex;
    animation: fadeInOverlay 1s ease-in forwards;
}

.spinning-logo {
    margin-bottom: 50px;
    animation: spinLogo 3s linear infinite;
}

.spinning-logo img {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 0 30px #00ff00);
}

.finale-text {
    text-align: center;
}

.big-logo-text {
    font-size: 6rem;
    font-weight: 700;
    color: #00ff00;
    text-transform: uppercase;
    text-shadow: 
        4px 4px 0px #ff0000,
        -3px -3px 0px #00ffff,
        0 0 20px #00ff00,
        0 0 40px #00ff00,
        0 0 60px #00ff00;
    margin: 0;
    animation: finalGlitch 2s infinite, pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spinLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes finalGlitch {
    0%, 100% { 
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    10% { 
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    20% { 
        transform: translate(-2px, -2px);
        filter: hue-rotate(180deg);
    }
    30% { 
        transform: translate(2px, 2px);
        filter: hue-rotate(270deg);
    }
    40% { 
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
    50% { 
        transform: translate(-1px, 1px);
        filter: hue-rotate(45deg);
    }
    60% { 
        transform: translate(1px, -1px);
        filter: hue-rotate(135deg);
    }
    70% { 
        transform: translate(-1px, -1px);
        filter: hue-rotate(225deg);
    }
    80% { 
        transform: translate(1px, 1px);
        filter: hue-rotate(315deg);
    }
    90% { 
        transform: translate(0, -1px);
        filter: hue-rotate(180deg);
    }
}

@keyframes pulseGlow {
    0% { 
        text-shadow: 
            4px 4px 0px #ff0000,
            -3px -3px 0px #00ffff,
            0 0 20px #00ff00,
            0 0 40px #00ff00,
            0 0 60px #00ff00;
    }
    100% { 
        text-shadow: 
            4px 4px 0px #ff0000,
            -3px -3px 0px #00ffff,
            0 0 30px #00ff00,
            0 0 60px #00ff00,
            0 0 90px #00ff00;
    }
}

/* Responsive finale */
@media (max-width: 768px) {
    .spinning-logo img {
        width: 200px;
        height: 200px;
    }
    
    .big-logo-text {
        font-size: 3rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}