/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #f0f2f5;
    padding: 80px 5% 0; /* Added padding to prevent content overlap with sticky header */
}

/* Navigation Bar */
nav {
    position: fixed; /* Makes the nav bar sticky */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensures the nav bar stays above other elements */
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

nav .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #0066cc;
}

nav .nav-links {
    list-style: none;
}

nav .nav-links li {
    display: inline;
    margin-left: 20px;
}

nav .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

nav .nav-links a:hover {
    color: #0066cc;
}

/* Hero Section */
.hero {
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: Creates a parallax effect */
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.hero h2,
.hero p {
    position: relative;
    z-index: 2;
}


/* Main Content */
main .project {
    background-color: #fff;
    margin: 40px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Added padding to the main container */
}

.project h2 {
    background-color: #0066cc;
    color: #fff;
    padding: 20px;
    font-size: 1.8em;
    margin-bottom: 50px !important;
}

.project h2 a {
    color: #fff;
}

.project .container {
    padding: 20px;
}

/* Project Details - Flexbox Layout */
.project-details {
    display: flex;
    flex-wrap: wrap;
    margin: -15px; /* Adjust as needed */
}

.project-details > div {
    box-sizing: border-box;
    width: 50%;
    padding: 15px;
}

/* Section Headings */
.project-details h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #0066cc;
}

/* Lists */
.project-details ul {
    list-style: none;
    padding-left: 0;
}

.project-details li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.project-details li::before {
    content: "\2022";
    color: #0066cc;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Paragraphs */
.project-details p {
    font-size: 1em;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.screenshots a {
    flex: 1 0 calc(33.333% - 10px);
    box-sizing: border-box;
}

.screenshots img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.screenshots img:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    background-color: #0066cc;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.contact h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.contact-button {
    background-color: #fff;
    color: #0066cc;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.contact-button:hover {
    background-color: #f0f2f5;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
}

footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer p {
    margin: 0;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 1.2em;
}

.social-links a:hover {
    color: #0066cc;
}

/* Menu Toggle (Hamburger Icon) */
.menu-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .project-details {
        flex-direction: column;
        margin: 0;
        
    }

    .project .project-details > div {
        width: 100% !important;
        padding: 10px 0;
    }
   
    .screenshots a {
        flex: 1 0 100%;
    }
    

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    footer .social-links {
        margin-top: 10px;
    }
        .project h2 {
        font-size: 1.5em; /* Smaller font size on mobile */
    }
    .container {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Hide Navigation Links by Default */
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Show Navigation Links When Active */
    .nav-links.active {
        display: flex;
    }

    /* Show Menu Toggle on Mobile */
    .menu-toggle {
        display: block;
    }

    .nav-links li {
        text-align: center;
        padding: 15px 0;
    }

    .nav-links a {
        padding: 15px;
        width: 100%;
        display: block;
    }

}
@media (max-width: 480px) {
    .project-details {
        flex-direction: column;
        margin: 0;
    }

    section .project .project-details > div {
        width: 100% !important;
        padding: 10px 0;
    }
    .screenshots a {
        flex: 1 0 100%;
    }
        .project h2 {
        font-size: 1.2em; /* Smaller font size on mobile */
    }

}
