/* styles.css */
html, .body {
    
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
    
}

.hacking-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hacking-animation__text {
    font-family: monospace;
    font-size: 18px;
    line-height: 1.5rem;
    white-space: pre-wrap;
    text-align: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: lime;
}


.hacking-animation__text span:nth-child(3n+2) {
    color: green;
}

        .hacking-animation-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
            color: lime;
            font-family: monospace;
            font-size: 18px;
            white-space: pre-wrap;
            text-align: center;
            z-index: 5;
        }
        .transparent-window {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90%;
            height: 75%;
            background: rgba(0, 0, 0, 0.8);
            border: 3px solid rgb(32, 4, 246);
            padding: 20px;
            z-index: 10;
            color: white;
            overflow-x: hidden;
            overflow-y: auto;
        }
        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

.navbar {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid rgb(25, 0, 255);
    padding: 15px;
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    color: #0f0; /* Neon green */
    text-transform: uppercase;
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
    letter-spacing: 3px;
    animation: glitch 1.5s infinite alternate;
}

@keyframes glitch {
    0% { text-shadow: 2px 2px 5px #0f0, -2px -2px 5px red; }
    100% { text-shadow: -2px -2px 5px #0f0, 2px 2px 5px red; }
}

nav {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 300;
    margin: 10px auto;
    padding: 12px;
    max-width: 90%;
    border: 2px solid rgb(17, 0, 255);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 34, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Glowing border effect */
nav::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(45deg, red, #0f0, cyan);
    z-index: -1;
    opacity: 0.4;
    filter: blur(10px);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
}

nav li {
    padding: 12px 20px;
    position: relative;
    transition: transform 0.2s;
}

nav li a {
    text-decoration: none;
    color: #0f0;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
    letter-spacing: 1px;
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

/* Glitch Effect on Hover */
nav li a:hover {
    color: red;
    text-shadow: 0 0 15px red, 0 0 30px red;
    animation: glitchText 0.3s infinite alternate;
}

/* Glitch Text Effect */
@keyframes glitchText {
    0% { transform: skewX(5deg); }
    100% { transform: skewX(-5deg); }
}

/* Adding cool underline animation */
nav li::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: red;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

nav li:hover::after {
    width: 100%;
    left: 0;
}

/* Neon flickering effect */
@keyframes neonFlicker {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

nav li:hover {
    transform: scale(1.1);
    animation: neonFlicker 0.1s infinite alternate;
}
.logo-left, .logo-right {
    position: absolute;
    top: 10px;
    z-index: 1000;
    height: 50px; /* Adjust height as needed */
}

.logo-left {
    left: 10px; /* Position logo to the left */
}

.logo-right {
    right: 10px; /* Position logo to the right */
}
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

/* Hide scrollbar in Firefox */
html {
    scrollbar-width: none;
}
.about-section {
    margin-top: 20px;
}
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 90vw;
    height: 100vh;
    background-color: rgb(0 0 0 / 86%);
    color: #0f0;
    font-family: 'Inconsolata', Helvetica, sans-serif;
    text-align: center;
    overflow: scroll;
    animation: glitch 1.5s infinite alternate;
}

.popup-content {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px; /* Fixed horizontal size */
    height: 90vh; /* Almost full screen height */
    overflow-y: auto;
    padding: 20px;
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid #0f0;
    box-shadow: 0 0 15px #0f0;
    animation: flicker 2s infinite alternate;
}

.popup h2 {
    margin: 0;
    padding-bottom: 10px;
    color: #fadd04;
    text-shadow: 0 0 5px #ff0, 0 0 10px #ff0;
}

.popup p {
    display: block; /* Shows content */
    color: rgba(128, 255, 128, 0.8);
    text-shadow: 0 0 2px rgba(51, 255, 51, 0.5), 0 0 4px rgba(255, 255, 255, 0.8);
}

.popup .close-btn {
    display: block; /* Shows close button */
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #f00;
    text-shadow: 0 0 5px #f00, 0 0 10px #ff0;
}

.popup .close-btn:hover {
    color: #ff0;
}

body.popup-open {
    overflow: hidden; /* Prevents background scrolling when popup is open */
}

@keyframes glitch {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes loading {
    0% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.popup {
    animation: loading 1.5s ease-in-out;
}
/* Hacker-Style Modal */
.hacker-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
    color: #00FF00; /* Terminal green text */
    font-family: 'Courier New', Courier, monospace; /* Monospaced font */
    text-align: center;
    padding-top: 100px; /* Adjust padding to center the message */
    border: 2px solid #00FF00;
    box-sizing: border-box;
}

.hacker-message {
    font-size: 20px; /* Default font size */
    line-height: 1.5;
    margin-bottom: 20px;
    white-space: pre-wrap; /* Ensures text wraps if it's too long */
    word-wrap: break-word; /* Breaks long words */
    max-width: 80%; /* Limit the width of the text */
    margin-left: auto;
    margin-right: auto;
}

.close-btn {
    background: transparent;
    border: 2px solid #00FF00;
    color: #00FF00;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    display: inline-block;
}

/* Mobile version - will show the message on mobile, and hide only on desktop */
@media (max-width: 600px) {
    .hacker-modal {
        display: block;
        padding-top: 60px;
    }

    .hacker-message {
        font-size: 16px;
        max-width: 95%;
    }
}

