:root {
    --cw-bg: #010409;
    --cw-cyan: #00f2ff;
    --cw-blue: #0066ff;
    --cw-glass: rgba(10, 20, 30, 0.7);
}

body {
    background-color: var(--cw-bg);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    /* Layered Tech Texture */
    background-image: 
        radial-gradient(circle at 50% 10%, rgba(0, 242, 255, 0.15) 0%, transparent 50%),
        linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* Glowing Mesh Background (Reference: image_bd61b0) */
.mesh-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300f2ff" fill-opacity="0.05" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,149.3C672,149,768,203,864,202.7C960,203,1056,149,1152,128C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    z-index: -1;
}

/* Cyber-Frame Corner Brackets */
.cyber-card {
    background: var(--cw-glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 242, 255, 0.1);
    position: relative;
    padding: 2.5rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cyber-card::before, .cyber-card::after {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--cw-cyan);
}
.cyber-card::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.cyber-card::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.cyber-card:hover {
    transform: translateY(-10px);
    border-color: var(--cw-cyan);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.2);
}

/* Typography Tech-Texture */
.glow-title {
    font-weight: 900;
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    background: linear-gradient(to bottom, #fff, var(--cw-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-cyber {
    background: var(--cw-cyan);
    color: #000;
    font-weight: 800;
    border: none;
    border-radius: 0;
    padding: 15px 40px;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Update these properties in your existing .cyber-card class */
.cyber-card {
    background: var(--cw-glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 242, 255, 0.1);
    position: relative;
    padding: 2.5rem;
    /* Smooth transition for the background shift */
    transition: background 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* Base style for corner brackets */
.cyber-card::before, .cyber-card::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--cw-cyan);
    opacity: 0.5;
    /* Transition for the glow effect */
    transition: all 0.3s ease-in-out;
}

/* Hover Animation: Brackets */
.cyber-card:hover::before, 
.cyber-card:hover::after {
    opacity: 1;
    border-color: #ffffff; /* Brackets turn white for a high-energy look */
    filter: drop-shadow(0 0 8px var(--cw-cyan)) drop-shadow(0 0 15px var(--cw-cyan));
    animation: bracket-flicker 0.4s infinite alternate;
}

/* Subtle Flicker Animation for a "Live" Hardware feel */
@keyframes bracket-flicker {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Hover Effect: Card Interior */
.cyber-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.08) 0%, transparent 100%);
    border-color: rgba(0, 242, 255, 0.5);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

/* Add this to style.css */
.cyber-card .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cw-cyan), transparent);
    opacity: 0;
    z-index: 2;
}

.cyber-card:hover .scan-line {
    animation: scanning 2s linear infinite;
    opacity: 1;
}

@keyframes scanning {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* The Typing Indicator (Cursor) */
.typing-cursor {
    color: var(--cw-cyan);
    font-weight: 900;
    margin-left: 5px;
    filter: drop-shadow(0 0 8px var(--cw-cyan));
    animation: blink-caret 0.75s step-end infinite;
}

/* Cursor Blink Animation */
@keyframes blink-caret {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

/* Optional: Add a slight "glitch" color shift to the title text */
.glow-title span {
    position: relative;
    display: inline-block;
}

/* The base class for the typed text */
.tech-flicker {
    transition: all 0.2s ease;
}

/* The active state applied after typing finishes */
.flicker-active {
    animation: cyber-glow 3s infinite;
}

@keyframes cyber-glow {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 7px #fff,
            0 0 10px var(--cw-cyan),
            0 0 21px var(--cw-cyan);
        color: #fff;
    }
    20%, 24%, 55% {        
        text-shadow: none;
        color: rgba(0, 242, 255, 0.3); /* Dimmed state during flicker */
    }
}

/* Typing Cursor styling */
.typing-cursor {
    color: var(--cw-cyan);
    font-weight: 900;
    filter: drop-shadow(0 0 8px var(--cw-cyan));
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}