/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #000000;
    --accent-color: #00ff00;
    --text-color: #00ff00;
    --secondary-color: #0033ff;
}

body, html {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hacker-style Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    z-index: 100;
    background: rgba(0,0,0,0.7);
}

.nav-item {
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-item:hover::before {
    width: 100%;
}

/* Hero Section with Full Black Background */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--dark-bg);
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.video-container iframe {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    filter: grayscale(100%) brightness(30%);
}

/* Floating Menu Objects */
.floating-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    z-index: 10;
}

.menu-object {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 20px;
    margin: 0 15px;
    text-align: center;
    transition: all 0.5s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-object:hover {
    transform: translateY(-20px) rotate(5deg);
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px var(--accent-color);
}

/* Terminal-like Text Effect */
.terminal-text {
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

/* Glitch Effect */
@keyframes glitch-anim {
    0% { clip: rect(44px, 450px, 56px, 0); }
    25% { clip: rect(20px, 450px, 30px, 0); }
    50% { clip: rect(10px, 450px, 20px, 0); }
    75% { clip: rect(30px, 450px, 40px, 0); }
    100% { clip: rect(50px, 450px, 60px, 0); }
}

.glitch-text {
    position: relative;
    color: var(--accent-color);
}

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

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

/* Edgy Heading Styles */
h1, h2 {
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

h1:hover, h2:hover {
    transform: scale(1.05);
}

/* Dynamic Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--accent-color);
}

/* Glitch Effect for Sections */
.glitch-section {
    position: relative;
    overflow: hidden;
}

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

.glitch-section::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-section::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim2 {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    5% { clip: rect(25px, 9999px, 30px, 0); }
    10% { clip: rect(15px, 9999px, 20px, 0); }
    15% { clip: rect(40px, 9999px, 50px, 0); }
    20% { clip: rect(10px, 9999px, 15px, 0); }
    25% { clip: rect(35px, 9999px, 45px, 0); }
    30% { clip: rect(20px, 9999px, 25px, 0); }
    35% { clip: rect(45px, 9999px, 50px, 0); }
    40% { clip: rect(5px, 9999px, 15px, 0); }
    45% { clip: rect(25px, 9999px, 35px, 0); }
    50% { clip: rect(15px, 9999px, 25px, 0); }
    55% { clip: rect(40px, 9999px, 45px, 0); }
    60% { clip: rect(10px, 9999px, 20px, 0); }
    65% { clip: rect(30px, 9999px, 40px, 0); }
    70% { clip: rect(20px, 9999px, 30px, 0); }
    75% { clip: rect(5px, 9999px, 15px, 0); }
    80% { clip: rect(35px, 9999px, 45px, 0); }
    85% { clip: rect(15px, 9999px, 25px, 0); }
    90% { clip: rect(40px, 9999px, 50px, 0); }
    95% { clip: rect(25px, 9999px, 35px, 0); }
    100% { clip: rect(10px, 9999px, 20px, 0); }
}

/* Hero Section Styles */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.features {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.feature {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: rgba(18, 18, 18, 0.8);
    margin: 0 15px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

footer {
    background-color: var(--dark-bg);
    color: var(--text-color);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Filesystem Checking Animation */
.filesystem-check {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
}

.filesystem-text {
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    margin-bottom: 10px;
}

.loading-dots {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.loading-dots span {
    color: var(--accent-color);
    opacity: 0;
    animation: loading-dots 1.4s infinite;
    display: inline-block;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.4s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes loading-dots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

.progress-bar {
    width: 300px;
    height: 10px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--accent-color);
    margin: 10px auto;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    animation: progress-animation 3s linear forwards;
}

@keyframes progress-animation {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--accent-color);
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 30px var(--accent-color);
    animation: modal-entrance 0.5s ease;
}

@keyframes modal-entrance {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--accent-color);
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-title {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.modal-links {
    list-style-type: none;
    padding: 0;
}

.modal-links li {
    margin-bottom: 15px;
    background: rgba(0, 255, 0, 0.05);
    border-left: 3px solid var(--accent-color);
    padding: 10px;
    transition: all 0.3s ease;
}

.modal-links li:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateX(10px);
}

.modal-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    transition: color 0.3s ease;
}

.modal-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, 0.1);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

/* Glitch Effect for Modal Title */
.modal-title.glitch-text {
    position: relative;
    color: var(--accent-color);
}

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

.modal-title.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.modal-title.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

/* Quote Modal Styles */
.modal-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--accent-color);
    margin-top: 20px;
}

.modal-quote blockquote {
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    font-size: 1.4rem;
    line-height: 1.6;
    font-style: italic;
    max-width: 800px;
    margin-bottom: 20px;
    position: relative;
}

.modal-quote blockquote::before,
.modal-quote blockquote::after {
    content: '"';
    color: var(--accent-color);
    font-size: 3rem;
    position: absolute;
    opacity: 0.5;
}

.modal-quote blockquote::before {
    left: -30px;
    top: -10px;
}

.modal-quote blockquote::after {
    right: -30px;
    bottom: -30px;
}

.modal-quote cite {
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* About Me Modal Styles */
.modal-about-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.ascii-art {
    font-family: monospace;
    color: var(--accent-color);
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: pre;
    margin-right: 30px;
    opacity: 0.8;
}

.about-me-text {
    flex-grow: 1;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
}

.about-me-text p {
    margin-bottom: 15px;
}

.about-me-text ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.about-me-text ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.about-me-text ul li::before {
    content: '▸';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.about-me-text .availability {
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LinkedIn Link Styles */
.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.linkedin-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.linkedin-link:hover {
    background-color: rgba(0, 255, 0, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.linkedin-icon {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.linkedin-text {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* Protocols Modal Styles */
.modal-protocols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.protocol-item {
    background: rgba(0, 255, 0, 0.05);
    border-left: 3px solid var(--accent-color);
    padding: 20px;
    transition: all 0.3s ease;
}

.protocol-item:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.protocol-title {
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
}

.protocol-item p {
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    opacity: 0.8;
}

/* Contact Modal Styles */
.modal-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.contact-info {
    background: rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--accent-color);
    padding: 30px;
    max-width: 500px;
    width: 100%;
}

.contact-title {
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
}

.contact-info p {
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    margin-bottom: 15px;
    opacity: 0.8;
}

.email-obfuscated {
    font-size: 1.2rem;
    word-break: break-all;
    user-select: none;
    cursor: not-allowed;
}

.email-obfuscated .terminal-text {
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    opacity: 0.9;
}

/* Projects Modal Styles */
.modal-projects {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.project-links {
    display: flex;
    gap: 30px;
}

.project-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 15px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    min-width: 200px;
    justify-content: center;
}

.project-link:hover {
    background-color: rgba(0, 255, 0, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.project-icon {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.project-text {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.github-link:hover {
    background-color: rgba(33, 31, 31, 0.1);
}

.ai-chat-link:hover {
    background-color: rgba(0, 128, 255, 0.1);
}