/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    color: white;
    flex-direction: column;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff; 
    position: relative;
    transition: background-image 1s ease-in-out;
    display: flex;
    flex-direction: column;
}
/*Sets the background for each project page, make new page class for each project*/
.scrapforge-page {
    background: url('../images/scrapforge (1).png') no-repeat center center fixed;
    background-size: cover;
}
.novazone1-page {
    background: url('../images/novazone1 (1).png') no-repeat center center fixed;
    background-size: cover;
}
.novazone2-page {
    background: url('../images/novazone2 (1).png') no-repeat center center fixed;
    background-size: cover;
}
.wormhole-page {
    background: url('../images/wormhole (1).png') no-repeat center center fixed;
    background-size: cover;
}
.projectsnake-page {
    background: url('../images/projectsnake (1).png') no-repeat center center fixed;
    background-size: cover;
}
.projectdragon-page {
    background: url('../images/projectdragon (4).png') no-repeat center center fixed;
    background-size: cover;
}
.projectfactory-page {
    background: url('../images/projectfactory (3).png') no-repeat center center fixed;
    background-size: cover;
}
.lastdance-page {
    background: url('../images/lastdance (1).png') no-repeat center center fixed;
    background-size: cover;
}
.nexusmanager-page {
    background: url('../images/nexus/Background.jpeg') no-repeat center center fixed;
    background-size: cover;
}

.paragraph-image{
   width: 100%;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black transparent overlay */
    z-index: 1; /* Ensure the overlay stays beneath the content */
}

.content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 70px auto 0 auto;
    margin-bottom: 60px;
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.14); /* White transparent background */
    border-radius: 10px;
    flex-grow: 0; /* Stop flexbox from making it too tall */
    min-height: auto; /* Remove any unnecessary stretching */
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-info {
    margin-bottom: 1.5rem;
}

.project-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* CSS for the video container */
.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
    max-width: 100%; /* Ensures it doesn't overflow the container */
    background: #000; /* Optional: Gives a black background in case video doesn't load immediately */
    z-index: 2;
}

/* CSS for the iframe */
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Removes the iframe border */
}

.contributions {
    text-align: left;
    margin-top: 0rem;
}

    .contributions h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }


/* Buttons Container */
.buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

/* Fancy Button Styling */
.fancy-button {
    display: inline-block;
    padding: 15px 30px;
    margin: 0rem 0; /* Vertical spacing */
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #3498db; /* Nice blue color */
    border: none;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .fancy-button:hover {
        background-color: #2980b9; /* Darker blue on hover */
        transform: translateY(-5px); /* Slight lift on hover */
    }

    .fancy-button:active {
        background-color: #1f6392; /* Even darker blue when clicked */
        transform: translateY(0);
    }

/* Contact Footer Styling */
.contact-footer {
    background: #000000; /* Pure black for footer */
    color: #ffffff;
    text-align: center;
    padding: 1rem; /* Add some padding for a better look */
    z-index: 2; /* Ensure the footer stays on top of the overlay */
    position: relative;
    width: 100%;
    margin-top: auto;
}

    .contact-footer a {
        color: #1E90FF; /* Bright blue links for contrast */
        text-decoration: none;
        margin: 0 10px;
        transition: color 0.3s ease;
    }

        .contact-footer a:hover {
            color: #ffffff; /* Links turn white on hover */
        }

.title-section {
    background: #121212;
    padding: 0px 0;
}

    .title-section h2 {
        text-align: center;
        font-size: 2.5rem;
        position: relative;
        color: #ffffff; /* Ensure headings are white */
    }

.about-section h2, .favourite-project-section h2, .projects-section h2, .contact-footer h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    position: relative;
    color: #ffffff; /* Ensure headings are white */
}

    .about-section h2::after, .favourite-project-section h2::after, .projects-section h2::after, .contact-footer h2::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: #1E90FF; /* Changed to bright blue for accent */
        margin: 10px auto 0;
        border-radius: 2px;
    }

/* Navigation Bar */
.navbar {
    position: fixed;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    z-index: 1000;
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar .logo {
        font-size: clamp(1.2rem, 2.5vw, 2rem);
        font-weight: bold;
        color: #ffffff;
        text-decoration: none;
    }

    .navbar .nav-links {
        list-style: none;
        display: none;
    }

@media (min-width: 769px) {
    .navbar .nav-links {
        display: flex; /* Show on desktop */
    }
}

.navbar .nav-links li {
    margin-left: 20px;
}

.navbar .nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
}

    .navbar .nav-links a:hover {
        color: #1E90FF;
    }

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none; /* Hide nav links by default on mobile */
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        align-items: center;
        z-index: 999;
    }

        .navbar .nav-links.active {
            display: flex; /* Show nav links when toggled */
        }

        .navbar .nav-links li {
            margin: 15px 0; /* Vertical spacing for mobile */
        }
}

/* Navbar Toggle Button */
.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #fff;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        display: none;
    }

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

        .nav-links li {
            margin: 15px 0;
        }
}