:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background animated shapes for visual excellence */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 15s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

header {
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
}

.header-content h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(to right, #60a5fa, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.header-content p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.gallery-section {
    margin-bottom: 60px;
}

.gallery-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    display: inline-block;
    font-weight: 600;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.video-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.video-card video {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* Masonry Grid for Posters */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

@media (max-width: 1024px) {
    .masonry-grid { column-count: 2; }
}

@media (max-width: 600px) {
    .masonry-grid { column-count: 1; }
    .header-content h1 { font-size: 2.5rem; }
}

.poster-card {
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.poster-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.poster-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.poster-card:hover img {
    transform: scale(1.05);
}

.poster-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.poster-card:hover .poster-overlay {
    opacity: 1;
}

.poster-overlay span {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.poster-card:hover .poster-overlay span {
    transform: translateY(0);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--accent-primary);
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--glass-border);
    color: #64748b;
    font-size: 0.9rem;
    margin-top: auto;
}

.stats-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    color: #93c5fd;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
}

.download-btn {
    display: inline-block;
    margin: 10px 10px 15px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    text-align: center;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.asset-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    break-inside: avoid;
    margin-bottom: 20px;
}

.asset-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.asset-container video,
.asset-container .poster-card {
    border: none;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    width: 100%;
}

.asset-container .poster-card:hover {
    transform: none;
    box-shadow: none;
}

/* Grid Controls Styles */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.section-header-flex h2 {
    font-size: 2rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-weight: 600;
}

.grid-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.grid-controls span {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-right: 5px;
}

.grid-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.grid-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@media (max-width: 768px) {
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
