/* General Styling */
body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: #FFFAE3; /* Soft yellow for warmth */
    color: #4D3319;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px;
}

h1, h2, h3 {
    color: #D2691E; /* Playful brown for headings */
    text-align: center;
    font-weight: bold;
}

/* Splash Screen with Bounce Effect */
.splash {
    position: relative;
    height: 100vh;
    background: url('../../pro/projects/image/oo.gif') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: bounceIn 1s ease-in-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* Introduction Section */
.introduction {
    background: #FFF5D7; /* Warm pastel */
    padding: 50px 0;
    text-align: center;
    border-radius: 15px;
}

.introduction img {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

/* introduction image outline*/
.image-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-content 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);
}

/* concepting image outline */

.split-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.con-text-content {
    flex: 1;
    min-width: 30%;
    max-width: 40%;
    padding: 20px;
}

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

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

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

/* Comic-Style Panels */
.comic-panels {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 50px 0;
    background: #FFECB3;
}

.panel {
    background: white;
    border: 5px solid #D2691E;
    padding: 15px;
    max-width: 300px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 5px 5px 0px #A0522D;
    transition: transform 0.2s ease-in-out;
}

.panel:hover {
    transform: scale(1.05);
}

.panel img {
    width: 100%;
    border-radius: 5px;
}


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