/* --- Vertical Projects Layout --- */
.projects-body {
    background-image: url('assets/images/contactbg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    padding-bottom: 100px; /* Extra space at the bottom for scrolling */
    display: flex;
    flex-direction: column; /* Stack projects top to bottom*/
    align-items: center;    
    background-color: #041423;
}
.recent-work-container {
    margin-top: 50px;
    margin-bottom: -10px;
    color: black;
	background-color: rgba(255, 255, 255, 0.97); 
    padding-left: 50px;
    padding-right: 50px;
    border-radius: 10px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    max-width: 75%;
    
}

.projects-body h1 {
    text-align: center;
    color: black;
    font-size: 2rem;
    margin: 30px 0;
}

/*The Main Feed Container */
.projects-feed {
    display: flex;
    flex-direction: column; /* Stacks items top to bottom */
    align-items: center;    /* Centers items horizontally */
    gap: 60px;              /* Big space between each project */
    max-width: 900px;       /* Limits width so lines aren't too long to read */
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. The Big White Card */
.project-wide-card {
    background-color: rgba(255, 255, 255, .98);
    width: 100%; /* Take up all available space inside the max-width */
    border-radius: 20px;
    overflow: hidden; /* Keeps image corners rounded */
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Image Handling */
.project-image-container {
    width: 100%;
    height: 450px; /* Forces all images to be the same height */
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

/* Content Area */
.wide-content {
    padding: 40px;
}

.wide-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
    text-decoration: underline;
    text-underline-offset: 8px;
}

.wide-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Tech Stack Bubbles */
.tech-stack {
    margin-top: 15px;
}

.tech-stack span {
    display: inline-flex;
    background-color: #333;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* The Button */
.wide-btn {
    display: inline-block;
    background-color: #333;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
    margin: 3px;
}

/* --- Carousel / Slider Styling --- */

.carousel-container {
    position: relative; /* Allows positioning arrows inside this box */
}

/* Hide all carousel images by default */
.carousel-img {
    display: none; 
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Only show the image that has the 'active' class */
.carousel-img.active {
    display: block;
    animation: fadeEffect 0.5s; /* Smooth fade in */
}

/* Simple fade animation */
@keyframes fadeEffect {
    from {opacity: 0.8;}
    to {opacity: 1;}
}

/* Arrow Buttons styling */
.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Perfect centering adjustment */
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border: none;
    background-color: rgba(0,0,0,0.3); /* Semi-transparent black */
    user-select: none;
}

/* Position the "Next" button to the right */
.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Position the "Prev" button to the left */
.prev-btn {
    left: 0;
    border-radius: 0 3px 3px 0;
}
/* Hover only on assumed non-mobile*/
@media (min-width: 600px) {
    .prev-btn:hover, .next-btn:hover {
        background-color: rgba(0,0,0,0.8);
}

    .wide-btn:hover {
        background-color: #e74c3c;
}
}

@media (max-width: 600px) {
    .wide-content p {
        font-size: .8rem;
    }
}