/* General Body Styles */
body {
    background-image: none; /* Remove background image for this page */
    background-color: #0a0a0a; /* Darker background */
    color: #ccc; /* Lighter default text for readability */
    font-family: 'Inter', sans-serif;
}

/* Ensure headers and footers don't have conflicting backgrounds */
.main-header, .main-footer {
    background-color: transparent;
}

/* Page Hero Section */
.page-hero {
    text-align: center;
    padding: 60px 20px;
}

.page-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
}

/* Video Gallery Layout */
.video-gallery .container {
    display: flex;
    justify-content: center; /* Center items if they don't fill the space */
    gap: 40px; /* Increased spacing between items */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    padding: 40px 20px;
}

/* Individual Video Item Styling */
.video-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Added 'all' and a bounce timing function */
    flex: 1 1 300px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
}

.video-item:hover {
    transform: translateY(-8px) scale(1.04); /* Reduced expansion */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85); /* Enhanced shadow */
}

.video-container {
    width: 100%;
    position: relative;
    /* Aspect ratio for vertical video, e.g., 9:16 */
    aspect-ratio: 9 / 16;
    background-color: #000;
}

.video-container .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* So you can click the video */
    text-align: center;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.video-container .video-overlay p {
    font-size: 1.1rem;
    padding: 20px;
}


.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 20px;
    flex-grow: 1;
}

.video-info h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: #ffffff; /* Bright white for titles */
}

.video-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0b0b0; /* Slightly muted text for description */
}

.instagram-button {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #666;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.instagram-button:hover {
    background-color: #007BFF;
    border-color: #007BFF;
    color: white;
}

/* Fade-in Animations (modified to not conflict with hover transforms) */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay classes */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }


/* Style for Project Beta to have a 1:1 aspect ratio */
#project-beta-item .video-container {
    aspect-ratio: 1 / 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .video-gallery .container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .video-item {
        max-width: none !important; /* Remove width constraint */
        width: 90vw !important;
        margin: 0 auto;
        flex: none !important; /* Override flex properties */
    }

    .video-container {
        width: 100%;
        position: relative;
        background-color: #000;
    }

    .video-container video {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block;
    }

    /* Ensure Project Beta keeps square ratio on mobile too */
    #project-beta-item .video-container {
        aspect-ratio: 1 / 1;
        max-height: 60vh;
    }
}

/* Header alignment fix */
.main-nav a, .dropbtn { line-height: 1.0; }