/* 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/e4e1.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;
}

/* === Grid Layout for Images === */
.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 === */
.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;
}

/* Updated Image Grid Layout for Egregore Page */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-grid img {
    width: 100%; /* Ensures images shrink proportionally */
    height: auto; /* Maintains aspect ratio */
    max-width: 400px; /* Prevents images from getting too large */
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}




/* 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;
    }
}
