/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background: #f4f4f4;
    border-radius: 10px;
    margin: 20px 0;
    width: 100%;
}

.hero img {
    max-width: 300px;
    border-radius: 10px;
}

.hero-text {
    max-width: 500px;
}

/* Reverse Hero Section */
.reverse-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 20px 0;
    width: 100%;
    flex-direction: row-reverse !important; /* Ensure the image stays on the right */
}


.reverse-hero img {
    max-width: 300px;
    border-radius: 10px;
}

.reverse-hero-text {
    max-width: 500px;
}

/* Responsive Grid */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 800px;
    margin: auto;
}

.flex-item {
    flex: 1 1 300px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #007bff;
    padding: 15px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 50px; /* Increased gap for more separation */
}

.navbar ul li {
    display: inline;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* Responsive Typography */
h1 {
    font-size: 2rem;
    text-align: center;
}

p {
    font-size: 1rem;
    text-align: justify;
}

/* Filter Section */
.filter-container {
    text-align: center;
    margin: 20px 0;
}

.filter-container select {
    padding: 8px;
    font-size: 16px;
}

/* Projects Container */
.projects-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Individual Project */
.project {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.carousel img {
    width: 100%;
    border-radius: 10px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Project Details */
.project-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-align: left;
}

.project-description {
    width: 60%;
}

.project-stats {
    width: 35%;
    text-align: right;
}

.project-stats p {
    margin: 5px 0;
}

.download-btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.download-btn:hover {
    background: #0056b3;
}

.contact-container {
    width: 50%;
    margin: auto;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 8px;
    text-align: center;
}

.contact-container h2 {
    margin-bottom: 20px;
}

.contact-container form {
    display: flex;
    flex-direction: column;
}

.contact-container label {
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-container input,
.contact-container textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

.contact-container button {
    background: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-container button:hover {
    background: #0056b3;
}

.flash-messages {
    text-align: center;
    margin-bottom: 20px;
}

.success {
    color: green;
    background-color: #d4edda;
    padding: 10px;
    border-radius: 5px;
}

.error {
    color: red;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 5px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .project-details {
        flex-direction: column;
        text-align: center;
    }

    .project-description, .project-stats {
        width: 100%;
        text-align: center;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .navbar ul {
        flex-direction: column;
        padding: 0;
    }

    .navbar ul li {
        margin: 10px 0;
    }

    .hero, .reverse-hero {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    p {
        font-size: 0.9rem;
    }
}
