/* static/css/about.css */

.about-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

/* -- About Store Section -- */
.about-store-section {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image-placeholder {
    flex: 1;
    height: 350px;
    background-color: #e2e8f0;
    border-radius: 16px;
}

.about-text-content {
    flex: 1;
}

.about-text-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.about-text-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 16px;
}

/* -- Team Section -- */
.team-section {
    text-align: center;
}

.team-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-photo-placeholder {
    width: 180px;
    height: 180px;
    background-color: #e2e8f0;
    border-radius: 50%;
    /* This makes it a circle */
    margin-bottom: 20px;
}

.member-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.member-role {
    font-size: 14px;
    color: #718096;
    text-transform: uppercase;
}


.work-section {
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    /* Important for slider effect */
}

.work-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.video-slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    perspective: 1000px;
    /* For 3D-like effects if desired */
}



.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card.active {
    transform: scale(1);
    opacity: 1;
    z-index: 10;
}


.video-card.active .video-title {
    opacity: 1;
}

/* -- Video Popup -- */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.video-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.video-popup-content {
    width: 90%;
    max-width: 900px;
}

#popup-video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 90vh;
}

.work-section {
    padding: 80px 0;
    text-align: center;
    overflow-x: hidden;
}

.work-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.video-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    /* Give the container a fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-card {
    position: absolute;
    /* Use absolute positioning for smooth transitions */
    width: 280px;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s ease, opacity 0.5s ease, z-index 0s 0.25s;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Positional Styles */
.video-card.left {
    transform: translateX(-60%) scale(0.85);
    opacity: 0.7;
    z-index: 1;
}

.video-card.center {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 10;
}

.video-card.right {
    transform: translateX(60%) scale(0.85);
    opacity: 0.7;
    z-index: 1;
}



/* -- Responsive Design -- */

/* For tablets */
@media (max-width: 768px) {
    .about-store-section {
        flex-direction: column;
        /* Stack image and text */
        gap: 32px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        /* Stack members */
        gap: 50px;
    }

    .video-card {
        width: 200px;
        height: 320px;
    }

    .video-slider-container {
        height: 360px;
    }

    .video-card.left {
        transform: translateX(-55%) scale(0.85);
    }

    .video-card.right {
        transform: translateX(55%) scale(0.85);
    }
}
img {
  width: 100%; /* Make the image take 100% of its parent's width */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Remove any extra space below the image */
  border-radius: 20px;
}

.about-image-placeholder img {
    width: 100%;  /* Make the image take the full width of the container */
    height: 100%; /* Make the image take the full height of the container */
    object-fit: cover; /* This makes the image cover the area without distortion */
    border-radius: 16px; /* Match the container's border-radius */
}
/* For mobile phones */
@media (max-width: 480px) {
    .about-page-container {
        padding: 0 16px;
    }

    .about-text-content h2,
    .team-section h2 {
        font-size: 24px;
    }

    .about-image-placeholder {
        height: 250px;
    }

    .member-photo-placeholder {
        width: 150px;
        height: 150px;
    }

    .video-card {
        width: 160px;
        height: 250px;
    }

    .video-slider-container {
        height: 280px;
    }

    .video-card.left {
        transform: translateX(-50%) scale(0.8);
    }

    .video-card.right {
        transform: translateX(50%) scale(0.8);
    }

    .video-slider-container {
        gap: 8px;
    }
}