/* ====== PORTFOLIO PAGE STYLES ====== */

.portfolio-banner {
    background: linear-gradient(135deg, rgba(0, 152, 218, 0.9), rgba(10, 37, 64, 0.95)), url('../Project Images/header/history.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

/* --- 3D FACTORY CAROUSEL --- */
.factory-section {
    perspective: 2000px;
    overflow: hidden;
    padding: 120px 0;
}

.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.carousel-3d {
    width: 400px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-3d-item {
    position: absolute;
    width: 400px;
    height: 280px;
    left: 0;
    top: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.carousel-3d-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.5s ease;
}

.carousel-3d-item.active img {
    filter: brightness(1.1);
}

.carousel-3d-controls {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 40px;
    pointer-events: none;
    z-index: 100;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 152, 218, 0.5);
}

.carousel-btn svg {
    width: 30px;
    height: 30px;
}

/* --- STACKED AWARDS SLIDER --- */
.awards-section {
    background: var(--off-white);
    padding: 100px 0;
}

.awards-stacked-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.awards-stacked-slider {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-card {
    position: absolute;
    width: 320px;
    height: 440px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 15px;
    box-shadow: var(--shadow-xl);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-origin: center center;
}

.award-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: var(--radius-md);
}

/* Card States managed by JS */
.award-card.active {
    z-index: 10;
    transform: translateX(0) scale(1.1);
    opacity: 1;
}

.award-card.prev {
    z-index: 5;
    transform: translateX(-120px) scale(0.9) rotate(-5deg);
    opacity: 0.7;
    filter: blur(2px);
}

.award-card.next {
    z-index: 5;
    transform: translateX(120px) scale(0.9) rotate(5deg);
    opacity: 0.7;
    filter: blur(2px);
}

.award-card.hidden {
    z-index: 0;
    transform: translateY(100px) scale(0.7);
    opacity: 0;
    pointer-events: none;
}

.awards-info {
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.award-description h3 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.award-description p {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 30px;
}

.awards-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.awards-nav-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.awards-nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

#awardCounter {
    font-weight: 700;
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .awards-stacked-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .carousel-3d-wrapper {
        height: 400px;
    }

    .carousel-3d {
        width: 320px;
        height: 220px;
    }

    .carousel-3d-item {
        width: 320px;
        height: 220px;
    }
}

@media (max-width: 640px) {
    .carousel-3d-wrapper {
        height: 300px;
    }

    .carousel-3d {
        width: 250px;
        height: 180px;
    }

    .carousel-3d-item {
        width: 250px;
        height: 180px;
    }

    .award-card {
        width: 260px;
        height: 360px;
    }
}