/* ==================== HACKER THEME - CORE STYLES ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: #0a0e27;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    color: #00ff41;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: hidden;
    position: relative;
}

/* Scanline effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 255, 65, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ==================== MENU BUTTON & NAVIGATION ==================== */

.menu-button {
    position: fixed;
    top: 15px;
    right: 15px;
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 8px 16px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5), inset 0 0 10px rgba(0, 255, 65, 0.1);
    border-radius: 6px;
    max-width: 140px;
}

.menu-button:hover {
    background: #00ff41;
    color: #0a0e27;
    box-shadow: 0 0 20px #00ff41, 0 0 40px #00ff41;
    transform: scale(1.05);
    text-shadow: none;
}

.menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100vh;
    background: rgba(10, 14, 39, 0.98);
    border-left: 2px solid #00ff41;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px;
    gap: 10px;
    transition: right 0.4s ease;
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0, 255, 65, 0.3);
}

.menu.active {
    right: 0;
}

.menu a {
    color: #00ff41;
    text-decoration: none;
    padding: 15px;
    border: 1px solid #00ff41;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 255, 65, 0.05);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.menu a:hover {
    background: #00ff41;
    color: #0a0e27;
    box-shadow: 0 0 20px #00ff41;
    transform: translateX(-5px);
}

/* ==================== CONTAINER & LAYOUT ==================== */

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    border: 2px solid #00ff41;
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.4),
        inset 0 0 20px rgba(0, 255, 65, 0.05);
    position: relative;
    backdrop-filter: blur(10px);
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #00ff41, 
        transparent
    );
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==================== TITLE & LOGO ==================== */

.title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.title-logo {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 10px #00ff41);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { filter: drop-shadow(0 0 10px #00ff41); }
    50% { filter: drop-shadow(0 0 20px #00ff41); }
}

h1 {
    color: #00ff41;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 10px #00ff41,
        0 0 20px #00ff41,
        0 0 30px #00ff41;
    margin: 0;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41; }
    50% { text-shadow: 0 0 20px #00ff41, 0 0 30px #00ff41, 0 0 40px #00ff41; }
}

h2, h3 {
    color: #00ff41;
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ff41;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

/* ==================== TEXT & CONTENT ==================== */

p {
    line-height: 1.8;
    margin: 15px 0;
    color: #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

ul, ol {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin: 8px 0;
    line-height: 1.6;
    color: #00ff41;
}

code {
    background: rgba(0, 255, 65, 0.1);
    padding: 2px 6px;
    border: 1px solid #00ff41;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #00ff41;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* ==================== HORIZONTAL RULES ==================== */

hr {
    border: none;
    border-top: 1px solid #00ff41;
    margin: 20px 0;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* ==================== SEARCH BAR ==================== */

.search-bar {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.search-input {
    padding: 12px 20px;
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid #00ff41;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    border-radius: 6px;
    width: 300px;
    max-width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3), inset 0 0 10px rgba(0, 255, 65, 0.05);
    text-shadow: 0 0 5px #00ff41;
}

.search-input::placeholder {
    color: rgba(0, 255, 65, 0.6);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 20px #00ff41, inset 0 0 10px rgba(0, 255, 65, 0.1);
    background: rgba(10, 14, 39, 0.95);
}

.search-button {
    padding: 12px 20px;
    border: 2px solid #00ff41;
    background: transparent;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3), inset 0 0 10px rgba(0, 255, 65, 0.05);
}

.search-button:hover {
    background: #00ff41;
    color: #0a0e27;
    box-shadow: 0 0 20px #00ff41, 0 0 40px #00ff41;
    transform: scale(1.05);
}

.search-button:active {
    transform: scale(0.95);
}

/* ==================== NEON BUTTONS ==================== */

button {
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 12px 30px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    margin: 10px 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #00ff41;
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.5),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
}

button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:hover {
    background: #00ff41;
    color: #0a0e27;
    box-shadow: 
        0 0 20px #00ff41,
        0 0 40px #00ff41,
        0 0 60px #00ff41;
    transform: translateY(-2px);
    text-shadow: none;
}

button:active {
    transform: translateY(0);
}

/* ==================== FOOTER ==================== */

footer {
    text-align: center;
    padding: 30px;
    color: #00ff41;
    border-top: 1px solid #00ff41;
    margin-top: 40px;
    text-shadow: 0 0 5px #00ff41;
    background: rgba(10, 14, 39, 0.5);
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Keeps menu button from overlapping title */
    }

    .container {
        margin: 14px 10px 10px;
        padding: 20px;
    }

    .title-logo {
        width: 35px;
        height: 35px;
    }

    h1 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    button {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
    }

    .menu {
        width: 200px;
    }

    .menu-button {
        top: 12px;
        right: 12px;
        padding: 7px 12px;
        font-size: 0.9rem;
        max-width: 120px;
    }

    p, li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 80px; /* Extra breathing room on very small screens */
    }

    .container {
        margin: 12px 6px 6px;
        padding: 15px;
        border-width: 1px;
    }

    .title-logo {
        width: 30px;
        height: 30px;
    }

    h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    button {
        padding: 8px 15px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .menu-button {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 0.85rem;
        max-width: 110px;
    }

    .menu {
        width: 180px;
        padding: 70px 15px 15px;
    }

    .menu a {
        padding: 12px;
        font-size: 0.9rem;
    }

    p, li {
        font-size: 0.9rem;
    }
}

/* ==================== ANIMATIONS & EFFECTS ==================== */

@keyframes flicker {
    0%, 100% { opacity: 1; }
    41%, 43% { opacity: 0.8; }
    47%, 49% { opacity: 0.9; }
}

.container {
    animation: flicker 5s infinite;
}

/* Matrix rain effect (optional - can be removed if too heavy) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(circle, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: matrixRain 20s linear infinite;
    z-index: 1;
}

@keyframes matrixRain {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}