/* General Styling */
body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Splash Section */
.splash {
    position: relative;
    height: 100vh;
    background: url('../../pro/projects/image/egr3.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.5s ease-out;
}

.splash-content h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.5);
}

.splash-content h2 {
    font-size: 1.5rem;
    color: #bbb;
}

/* Section Styling */
section {
    padding: 80px 15%;
}

.container {
    max-width: 1000px;
    margin: auto;
}

h2 {
    font-size: 2rem;
    color: #f0f0f0;
    text-transform: uppercase;
}

p {
    font-size: 1.1rem;
    color: #c0c0c0;
}

section {
    padding: 50px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

section {
    padding: 50px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Image Panels */
.intro, .image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.intro img, .image-row img {
    width: 100%;
    max-width: 590px;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .intro, .image-row {
        flex-direction: column;
        align-items: center;
    }
}

/* === Grid Layout for Images === */
.battle, .carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Flexible 3-column grid */
    gap: 20px; /* Space between grid items */
    margin-top: 20px;
}

/* === Image Styling === */
.battle img, .carousel img {
    width: 100%; /* Full width within container */
    height: auto; /* Maintain aspect ratio */
    max-height: 250px; /* Limit height for large images */
    object-fit: cover; /* Crop to fit container */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease;
}

/* Brainstorming Section - Split Layout */
/* Fixing Split Layout */
.split-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Ensuring Text Content Takes Space */
.text-content {
    flex: 1;
    min-width: 40%;
    max-width: 50%;
    padding: 20px;
}

/* Ensuring Images Stay in a Grid and Scale Properly */
.image-content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 10px;
    justify-content: center;
}

.image-content img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}


/* Navigation Buttons */
.navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 50px 0;
}

.nav-button {
    text-decoration: none;
    background: #444;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-button:hover {
    background: #777;
}

/* === Back to Main Page Button === */
/* === Navigation Buttons === */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #222;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navigation-buttons a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #444;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.navigation-buttons a:hover {
    background-color: #555;
    transform: scale(1.05);
}

/* Styling for individual buttons */
.main-page-button {
    flex-grow: 1;
    text-align: center;
}

.prev-project-button,
.next-project-button {
    flex-grow: 0;
}

@media (max-width: 768px) {
    .navigation-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .navigation-buttons a {
        width: 100%; /* Buttons fill width on smaller screens */
        text-align: center;
    }
}
