/* Importing modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');

/* CSS Variables for Colors */
:root {
    --dark-gray: #282828;
    --medium-gray: #7B7878;
    --light-gray: #CDCDCD;
    --almost-white: #FEFEFE;
    --almost-black: rgba(0, 0, 0, 0.8);
}

/* Global styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-gray);
    margin: 0;
    padding: 0;
    background-color: var(--almost-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    margin-bottom: 40px;
}

#logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-and-tagline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px; /* Added margin for spacing */
}

#logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    margin: 0;
    color: var(--dark-gray);
}

#logo h2 {
    font-size: 1.5em;
    font-weight: 300;
    margin: 0;
    color: var(--medium-gray);
}

#logo h3 {
    font-size: 1.1em;
    font-weight: 300;
    margin: 0;
    color: var(--medium-gray);
    flex: 1;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
    align-items: center; /* Align items center to align with h3 */
}

nav ul li {
    margin: 0 15px;
}

nav ul li button {
    background: none;
    border: none;
    font-size: 1.2em;
    color: var(--dark-gray);
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    transition: background-color 0.3s;
}

nav ul li button:hover {
    color: var(--dark-gray);
    background-color: var(--light-gray);
}

hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--light-gray);
}

.additional-text {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--dark-gray);
}

/* Project styles */
#work {
    display: none;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination button {
    background-color: var(--dark-gray);
    color: var(--almost-white);
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    transition: background-color 0.3s;
}

.pagination button:hover {
    background-color: var(--medium-gray);
}

.projects {
    display: flex;
    justify-content: space-between;
}

.column {
    width: 48%;
}

.project {
    background-color: var(--almost-white);
    border: 1px solid var(--light-gray);
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.projectThumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.projectThumbnail iframe,
.projectThumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.info-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--almost-white);
    color: var(--dark-gray);
    opacity: 0.4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', sans-serif; /* Use a more futuristic font */
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6); /* Add shadow for a more modern look */
}

.info-icon:hover {
    background-color: var(--medium-grey);
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.projectThumbnailHover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--almost-black);
    color: var(--almost-white);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    transform: translateX(-100%);
}

.projectThumbnail:hover .projectThumbnailHover,
.projectThumbnail[data-clicked="overlay"] .projectThumbnailHover {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.projectThumbnail[data-clicked="true"] .projectThumbnailHover {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
}

.projectThumbnailHover h4 {
    margin: 0 0 5px 0;
    font-size: 1.6em;
    font-family: 'Roboto', sans-serif;
    color: #e4e4e4; /* Not that light Font */
}

.projectThumbnailHover h5 {
    margin: 0;
    font-size: 1.4em;
    font-family: 'Roboto', sans-serif;
    color: var(--almost-white);
}

.projectThumbnailHover.clicked {
    pointer-events: none;
}

.projectThumbnail.no-hover:hover .projectThumbnailHover {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-100%) !important;
}

/* Style adjustments for project info */
.projectInfo {
    display: none;
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    margin-top: 10px;
    background-color: var(--almost-white);
    color: var(--dark-gray);
    font-family: 'Roboto', sans-serif;
}

.projectInfo.active {
    display: block;
}

.projectInfo h4 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-family: 'Orbitron', sans-serif;
}

.projectInfo p {
    margin: 0 0 10px 0;
}

.projectInfo ul {
    list-style: none;
    padding: 0;
}

.projectInfo ul li {
    margin-bottom: 5px;
}

/* About page styles */
#about {
    display: none;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    position: relative; /* Added for the overlay positioning */
}

.about-column {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Match the style of the project thumbnails */
.about-thumbnail {
    background-color: var(--almost-white);
    border: 1px solid var(--light-gray);
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative; /* Ensures overlay positioning works */
    overflow: hidden; /* Ensures the image stays within the bounds */
}

.about-thumbnail.hidden {
    display: none; /* Hide the element when the hidden class is added */
}

.about-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease; /* For hover effect */
}

.about-thumbnail:hover img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.about-thumbnail-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--almost-black);
    color: var(--almost-white);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 1;
    transform: translateY(-100%);
    text-align: justify;
}

.about-thumbnail:hover .about-thumbnail-hover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Ensure responsiveness */
@media (max-width: 768px) {
    .about-thumbnail {
        width: 100%;
        padding: 5px;
    }

    .about-thumbnail img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .about-thumbnail {
        width: 100%;
        padding: 2px;
    }

    .about-thumbnail img {
        width: 100%;
        height: auto;
    }
}


/* Footer styles */
footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: var(--almost-white);
    bottom: 0;
    left: 0;
    height: auto;
    color: var(--dark-gray);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container {
    width: 100%;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-and-tagline {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    #logo h1 {
        font-size: 2em;
    }

    #logo h2 {
        font-size: 1.2em;
    }

    #logo h3 {
        font-size: 1em;
    }

    nav ul {
        justify-content: flex-end;
        margin-top: 10px; /* Add spacing on mobile */
    }

    nav ul li {
        margin: 0 5px;
    }

    nav ul li button {
        font-size: 1em;
    }

    .projects {
        flex-direction: column;
    }

    .column {
        width: 100%;
    }

    .about-content {
        flex-direction: column;
    }

    .about-row {
        flex-direction: column;
    }

    .about-column {
        width: 100%;
        max-width: none;
    }

    .about-thumbnail {
        max-width: none;
    }

    .about-column p {
    margin: 20px 0;
}

.about-column ul {
    list-style: none;
    padding: 0;
}

.about-column ul li {
    margin-bottom: 5px;
}

    /* Ensure the overlay covers the entire video on mobile devices */
    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10; /* Ensure it is above the video */
        background: rgba(0, 0, 0, 0); /* Optional: semi-transparent background */
    }
}

@media (max-width: 480px) {
    #logo h1 {
        font-size: 1.7em;
    }

    #logo h2 {
        font-size: 1em;
    }

    #logo h3 {
        font-size: 0.9em;
    }

    nav ul {
        justify-content: flex-end;
        align-items: center;
        margin-top: 10px;
    }

    nav ul li {
        margin: 0 5px;
    }

    nav ul li button {
        font-size: 0.9em;
    }

    .nav-and-tagline {
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Change overflow to auto */
}

#loading-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF; /* Dark background for a futuristic look */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

#spinner {
    width: 40px;
    height: 40px;
    position: relative;
    margin-bottom: 20px;
}

.cube1, .cube2 {
    background-color: #1B1212;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 0;
    left: 0;
    animation: cubeMove 1.7s infinite ease-in-out;
}

.cube2 {
    animation-delay: -0.8s;
}

@keyframes cubeMove {
    25% { transform: translateX(42px) rotate(-90deg) scale(0.5); }
    50% { transform: translateX(42px) translateY(42px) rotate(-179deg); }
    50.1% { transform: translateX(42px) translateY(42px) rotate(-180deg); }
    75% { transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5); }
    100% { transform: rotate(-360deg); }
}

#loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    letter-spacing: 1.2px;
}