body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
    color: #00ff00;
    background-color: #000;
    overflow-x: hidden;
    cursor: none;
}

#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
}

#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    /* Add a semi-transparent background */
    transition: opacity 0.5s ease-out;
}

#typewriter-text {
    font-size: 3em;
    text-align: center;
    margin-bottom: 1em;
    text-shadow: none;
    /* No glow effect */
    z-index: 2;
}

/* Remove this block as we're removing the scroll instruction */
#scroll-instruction {
    display: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

#portfolio-content {
    position: relative;
    z-index: 1;
    background-color: #000;
    transition: opacity 0.5s ease-in;
    opacity: 0;
    display: none;
    /* Initially hide the portfolio content */
}

.show-portfolio {
    opacity: 1 !important;
    visibility: visible !important;
    /* Ensure it's visible */
}

.hide-intro {
    opacity: 0 !important;
    pointer-events: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 1em 0;
}

nav li {
    margin: 0;
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease;
    padding: 0.5em 1em;
    border-radius: 4px;
    display: block;
}

nav li:hover a,
nav li.active a {
    color: #00ff00;
    text-shadow: none;
    /* Remove glow effect */
    background-color: rgba(0, 255, 0, 0.1);
}

nav a,
.project-link,
footer a,
.app-legal a .cyberpunk-btn {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease;
    padding: 0.5em 1em;
    border-radius: 4px;
    display: block;
}

nav a:hover,
.project-link:hover,
footer a:hover,
.app-legal a:hover .cyberpunk-btn:hover {
    color: #00ff00;
    text-shadow: none;
    /* Remove glow effect */
    background-color: rgba(0, 255, 0, 0.1);
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease;
    padding: 0.5em 1em;
    border-radius: 4px;
    display: block;
}

nav a:hover,
nav a.active {
    color: #00ff00;
    text-shadow: none;
    /* Remove glow effect */
    background-color: rgba(0, 255, 0, 0.1);
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em;
    scroll-margin-top: 60px;
    /* Adjust this value to match your header height */
}

.content {
    max-width: 800px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

h1,
h2,
h3 {
    margin-bottom: 0.5em;
    line-height: 1.2;
    text-shadow: 0 0 1.5px #00ff00;
    /* No glow effect */
}

h1,
h2,
h3,
p,
a,
li {
    color: #00ff00;
    /* Bright green for high contrast against black background */
}

h1 {
    font-size: 3.5em;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 1.8em;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
}

.project {
    background: rgba(0, 255, 0, 0.1);
    padding: 1.5em;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: none;
    /* Remove glow effect */
}

.project img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1em;
    position: relative;
    overflow: hidden;
}

.project img::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
    transform: skewX(-25deg);
    animation: shine 2.5s infinite;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.project h3 {
    margin-bottom: 0.5em;
    position: relative;
    display: inline-block;
}

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

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

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

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    10% {
        clip: rect(112px, 9999px, 76px, 0);
    }

    20% {
        clip: rect(85px, 9999px, 77px, 0);
    }

    30% {
        clip: rect(27px, 9999px, 97px, 0);
    }

    40% {
        clip: rect(64px, 9999px, 98px, 0);
    }

    50% {
        clip: rect(61px, 9999px, 85px, 0);
    }

    60% {
        clip: rect(99px, 9999px, 114px, 0);
    }

    70% {
        clip: rect(34px, 9999px, 115px, 0);
    }

    80% {
        clip: rect(98px, 9999px, 129px, 0);
    }

    90% {
        clip: rect(43px, 9999px, 96px, 0);
    }

    100% {
        clip: rect(82px, 9999px, 64px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(129px, 9999px, 36px, 0);
    }

    10% {
        clip: rect(36px, 9999px, 92px, 0);
    }

    20% {
        clip: rect(62px, 9999px, 135px, 0);
    }

    30% {
        clip: rect(92px, 9999px, 66px, 0);
    }

    40% {
        clip: rect(124px, 9999px, 13px, 0);
    }

    50% {
        clip: rect(85px, 9999px, 140px, 0);
    }

    60% {
        clip: rect(110px, 9999px, 59px, 0);
    }

    70% {
        clip: rect(23px, 9999px, 140px, 0);
    }

    80% {
        clip: rect(53px, 9999px, 109px, 0);
    }

    90% {
        clip: rect(71px, 9999px, 139px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 138px, 0);
    }
}

.project p {
    flex-grow: 1;
}

.project-link {
    align-self: flex-start;
    margin-top: 1em;
    padding: 0.5em 1em;
    background: linear-gradient(45deg, #00ff00, #00ccff);
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ff00ff, transparent);
    transition: all 0.4s;
    z-index: -1;
}

.project-link:hover {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.project-link:hover::before {
    left: 100%;
}

.project-link::after {
    content: '>';
    position: absolute;
    opacity: 0;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    transition: all 0.3s;
}

.project-link:hover::after {
    opacity: 1;
    right: 10px;
}


.cyberpunk-btn {
    align-self: flex-start;
    margin-top: 1em;
    padding: 0.8em 1.5em;
    background: linear-gradient(45deg, #00ff00, #00ccff);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}


.cyberpunk-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 80%);
    transform: scale(0);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    opacity: 0;
    z-index: -1;
}


.cyberpunk-btn:hover {
    transform: scale(1.05) translateY(-3px);
    color: #ffffff;
    background: linear-gradient(45deg, #00ccff, #ff00ff);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.4);
}


.cyberpunk-btn:hover::before {
    transform: scale(1);
    opacity: 1;
}


.cyberpunk-btn::after {
    content: '>';
    position: absolute;
    opacity: 0;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}


.cyberpunk-btn:hover::after {
    opacity: 1;
    right: 10px;
}

@keyframes neonPulse {
    0% {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #00ff00, 0 0 35px #00ff00, 0 0 40px #00ff00, 0 0 50px #00ff00, 0 0 75px #00ff00;
    }

    50% {
        text-shadow: 0 0 2px #fff, 0 0 5px #fff, 0 0 7px #fff, 0 0 10px #00ff00, 0 0 17px #00ff00, 0 0 20px #00ff00, 0 0 25px #00ff00, 0 0 37px #00ff00;
    }

    100% {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #00ff00, 0 0 35px #00ff00, 0 0 40px #00ff00, 0 0 50px #00ff00, 0 0 75px #00ff00;
    }
}


.cyberpunk-btn:hover {
    animation: neonPulse 1.5s ease-in-out infinite;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

input,
textarea,
button {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 0.8em;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #00cc00;
    box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.2);
}

button {
    cursor: pointer;
    background-color: #00ff00;
    color: #000;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s ease;
    background: linear-gradient(45deg, #00ff00, #00ccff);
    border: none;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 1;
    transition: all 0.3s ease;
}

button:hover::before {
    left: -100%;
    top: -100%;
}

button:hover {
    box-shadow: none;
    /* Remove glow effect */
    transform: scale(1.05);
}

button:active {
    transform: scale(0.98);
}

footer {
    text-align: center;
    padding: 1em;
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 0.5em 0;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.5em;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Add this to your existing styles.css */

.glitch-container {
    position: relative;
    display: inline-block;
}

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

.glitch-container::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-container::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(17px, 9999px, 94px, 0);
    }

    20% {
        clip: rect(37px, 9999px, 44px, 0);
    }

    40% {
        clip: rect(58px, 9999px, 54px, 0);
    }

    60% {
        clip: rect(80px, 9999px, 66px, 0);
    }

    80% {
        clip: rect(108px, 9999px, 85px, 0);
    }

    100% {
        clip: rect(129px, 9999px, 144px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(129px, 9999px, 36px, 0);
    }

    20% {
        clip: rect(36px, 9999px, 92px, 0);
    }

    40% {
        clip: rect(62px, 9999px, 135px, 0);
    }

    60% {
        clip: rect(92px, 9999px, 66px, 0);
    }

    80% {
        clip: rect(124px, 9999px, 13px, 0);
    }

    100% {
        clip: rect(85px, 9999px, 140px, 0);
    }
}

#portfolio-content section {
    background-color: #000;
}

#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#home h1 {
    font-size: 3em;
    margin-bottom: 0.2em;
}

#home h2 {
    font-size: 1.5em;
    margin-bottom: 1em;
}

.cta-button {
    display: inline-block;
    padding: 0.8em 1.5em;
    background-color: #00ff00;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    background: linear-gradient(45deg, #00ff00, #00ccff);
    border: none;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 1;
    transition: all 0.3s ease;
}

.cta-button:hover::before {
    left: -100%;
    top: -100%;
}

.cta-button:hover {
    box-shadow: none;
    /* Remove glow effect */
    transform: scale(1.05);
}

/* Add this to your existing styles */
.cursor {
    font-weight: 100;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Add responsive design improvements */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
    }

    #typewriter-text {
        font-size: 2em;
    }
}

/* Add smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Improve accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Add styles for install banner */
#install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 255, 0, 0.1);
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#install-button {
    background-color: #00ff00;
    color: #000;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Custom cursor styles */
body,
a,
button,
input,
textarea {
    cursor: none;
}

#custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-size: 18px;
    /* Reduced from 24px */
    color: #00ff00;
    /* Neon green color */
    text-shadow: 0 0 1px #00ff00;
    user-select: none;
    display: none;
    /* Initially hidden */
    transform: translate(-50%, -50%);
    /* Center the cursor on the pointer */
    mix-blend-mode: difference;
    filter: drop-shadow(0 0 2px #00ff00) drop-shadow(0 0 5px #00ff00);
}

/* Add this to show default cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

    body,
    a,
    button,
    input,
    textarea {
        cursor: auto !important;
    }

    #custom-cursor {
        display: none !important;
    }
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
    /* Increased z-index to ensure it's above other elements */
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #00ff00;
    /* Neon green color */
    margin: 3px 0;
    transition: 0.4s;
    box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    /* Glowing effect */
}

/* Remove the glitch-hamburger animation */
.hamburger-menu:hover .bar {
    animation: none;
}

/* Remove the @keyframes glitch-hamburger block */

@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    nav .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 255, 0, 0.2);
        z-index: 1000;
        /* Ensure it's below the hamburger menu */
    }

    nav .nav-links.active {
        display: flex;
    }

    nav li {
        margin: 10px 0;
    }
}

/* Cyberpunk Alert Styles */
.cyberpunk-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px #00ff00;
    padding: 20px;
    z-index: 1000;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
}

.cyberpunk-alert .alert-content {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.cyberpunk-alert button {
    background-color: #00ff00;
    color: #000;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.cyberpunk-alert button:hover {
    background-color: #000;
    color: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

/* Remove the glitch animation from the alert */
.cyberpunk-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px #00ff00;
    padding: 20px;
    z-index: 1000;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
}

/* Remove the glitch class and its animation */
.cyberpunk-alert.glitch {
    animation: none;
}

/* Remove the glitch-alert keyframes animation */
@keyframes glitch-alert {
    /* Remove this entire keyframes block */
}

/* Futuristic scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(0deg, #00ff00, #00ccff);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(0deg, #00ccff, #00ff00);
}

/* Matrix-style background for sections */
section {
    position: relative;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="50%" y="50%" font-size="70" fill="rgba(0,255,0,0.1)" text-anchor="middle" dominant-baseline="middle">01</text></svg>');
    background-size: 100px 100px;
    z-index: -1;
    opacity: 0.1;
}

/* Add a futuristic loader */
.loader {
    width: 50px;
    height: 50px;
    border: 3px solid #00ff00;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #00ccff;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Add these styles at the end of your existing CSS file */

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 1em;
}

.project-links a {
    font-size: 0.9em;
    padding: 0.3em 0.7em;
}

/* Styles for the new pages */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em;
}

main h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

main h2 {
    font-size: 1.8em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

main p {
    margin-bottom: 1em;
}

main section {
    margin-bottom: 2em;
}