
body {
    background-color: #0a0a0a;
    color: #2d02ad;
    font-family: 'Ubuntu', sans-serif;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.glitch-title h1 {
    font-size: 4em;
    position: relative;
    color: #2d02ad;
    animation: glitch 1s infinite;
}

.glitch-title h1 {
    font-size: 3em;
    position: relative;
    color: #2d02ad;
    animation: subtle-glitch 3s infinite ease-in-out;
    z-index: 1;
    overflow: hidden;
}

.glitch-title h1::before, .glitch-title h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #2d02ad;
    z-index: -1;
    overflow: hidden;
    background: #0a0a0a;
    opacity: 0.8;
    animation: glitch-layers-subtle 3s infinite ease-in-out;
}

.glitch-title h1::before {
    left: 1px;
    text-shadow: -1px 0 #2d02ad;
    clip: rect(0, 900px, 0, 0);
}

.glitch-title h1::after {
    left: -1px;
    text-shadow: -1px 0 #0a0a0a;
    clip: rect(0, 900px, 0, 0);
}

@keyframes glitch-layers-subtle {
    0% {
        clip: rect(0, 9999px, 5px, 0);
        transform: skew(0.1deg);
    }
    20% {
        clip: rect(5px, 9999px, 15px, 0);
        transform: skew(-0.1deg);
    }
    40% {
        clip: rect(15px, 9999px, 25px, 0);
        transform: translateX(-1px);
    }
    60% {
        clip: rect(25px, 9999px, 35px, 0);
        transform: skew(0.2deg);
    }
    80% {
        clip: rect(35px, 9999px, 45px, 0);
        transform: translateX(1px);
    }
    100% {
        clip: rect(45px, 9999px, 55px, 0);
        transform: skew(0deg);
    }
}


.project-description p {
    font-size: 1.5em;
    margin: 20px;
    color: #2d02ad;
}

.project-image img {
    max-width: 80%;
    height: auto;
    border: 2px solid #2d02ad;
    transition: transform 0.3s, filter 0.3s;
    filter: brightness(80%);
}

.project-image img:hover {
    transform: scale(1.05);
    filter: brightness(100%);
}


.project-details p {
    font-size: 1.2em;
    color: #ffffff;
    margin: 20px 0;
}


.glitch-button a {
    display: inline-block;
    font-size: 1.5em;
    color: #2d02ad;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #2d02ad;
    position: relative;
    overflow: hidden;
    transition: color 0.3s, background-color 0.3s;
}

.glitch-button a:hover {
    background-color: #2d02ad;
    color: #0a0a0a;
    border: 2px solid #0a0a0a;
}

.glitch-button a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: skewX(-20deg) translateX(-150%);
    transition: transform 0.5s;
}

.glitch-button a:hover::before {
    transform: skewX(-20deg) translateX(150%);
}

@media (max-width: 768px) {
    .project-file {
        font-size: 1em; /* Reduce font size */
        padding: 15px; /* Adjust padding */
        margin-bottom: 10px;
    }

    .project-file h1 {
        font-size: 1.5em; /* Make title smaller */
        word-wrap: break-word; /* Ensure long titles don't cut off */
    }

    .content {
        padding: 10px; /* Adjust overall content padding for mobile */
    }
}