/* Reset some basic HTML elements */
body, h1, p, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    overflow-x: hidden;
}

a {
    color: #f0f0f0;
    text-decoration: underline;
}
a:visited {
    color: #f0f0f0;
}

#main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 20px;
}

header h1 {
    font-size: 3rem;
    color: #33ff66;
}

header p {
    font-size: 1.5rem;
    margin-bottom: 50px;
    color: #999;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

a.project-link {
    text-decoration: none;
}

.project-item {
    margin: 0 15px 30px;
    border-left: 2px solid #33ff66;
    padding-left: 10px;
    text-align: left;
}

.project-title {
    display: block;
    font-size: 1.3rem;
    color: #33ff66;
    margin-bottom: 5px;
}

.project-description {
    color: #ccc;
}

footer {
    margin-top: 50px;
    font-size: 0.8rem;
}

/* Hover effect */
a:hover .project-title,
a:focus .project-title {
    background: -webkit-linear-gradient(#33ff66, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Media query to handle responsiveness */
@media (max-width: 768px) {
    #main-container {
        padding: 50px 15px; /* Reduce the horizontal padding */
    }
    
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .project-item {
        margin: 10px; /* Adjust margin for mobile */
        padding-left: 10px; /* Adjust padding for mobile */
        width: 100%;
    }

    .project-title {
        font-size: 1.1rem; /* Adjust font size for mobile */
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
}

/* Ensure no element overflows and causes horizontal scroll */
body, html {
    overflow-x: hidden;
}

/* Prevent too wide elements in case there are any */
* {
    box-sizing: border-box;
    max-width: 100%;
}

.reversed-r {
    /* Different color */
    color: #dddddd;

    /* Make the 'r' uppercase */
    text-transform: uppercase;

    /* Use scale to flip it horizontally making it look reversed */
    display: inline-block; /* Required to transform inline elements like span */
    transform: scale(-1, 1);

    /* Animation */
    animation: reflection-flicker 1s ease-out 1;
}

/* Keyframes for the reflection animation */
@keyframes reflection-flicker {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
}
