/* ===== UI ASTRA INSPIRED DESIGN SYSTEM ===== */
/* Following UI Astra's design language: clean, professional, modern */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* UI Astra Primary Colors */
    --uiastra-primary: hsl(166, 100%, 41%);
    --uiastra-secondary: hsl(184, 100%, 61%);
    
    /* Primary Scale */
    --primary-50: hsl(166, 100%, 94%);
    --primary-500: hsl(166, 100%, 41%);
    --primary-600: hsl(166, 100%, 33%);
    
    /* Grayscale (Light Mode) */
    --grayscale-surface: hsl(200, 13%, 95%);
    --grayscale-surface-subtle: hsl(210, 20%, 98%);
    --grayscale-border: hsl(210, 12%, 87%);
    --grayscale-border-hover: hsl(208, 13%, 81%);
    --grayscale-title: hsl(214, 12%, 11%);
    --grayscale-subtitle: hsl(210, 12%, 35%);
    --grayscale-body: hsl(209, 12%, 50%);
    --grayscale-caption: hsl(210, 13%, 60%);
    
    /* Background */
    --background: hsl(0, 0%, 100%);
    --site-background: hsl(0, 0%, 100%);
    
    /* Shadows - UI Astra style */
    --elevation-sm: 0px 16px 32px -4px rgba(90, 94, 107, 0.04), 0px 2px 4px 0px rgba(90, 94, 107, 0.08);
    --elevation-md: 0px 24px 48px -8px rgba(90, 94, 107, 0.06), 0px 2px 4px 0px rgba(90, 94, 107, 0.12);
    --elevation-lg: 0px 34px 9px 0px rgba(90, 94, 107, 0.00), 0px 22px 9px 0px rgba(90, 94, 107, 0.01), 0px 12px 7px 0px rgba(90, 94, 107, 0.05), 0px 5px 5px 0px rgba(90, 94, 107, 0.09), 0px 1px 3px 0px rgba(90, 94, 107, 0.10);
}

/* Dark Mode Variables */
.dark {
    /* Grayscale (Dark Mode) */
    --grayscale-surface: hsl(210, 13%, 15%);
    --grayscale-surface-subtle: hsl(210, 11%, 7%);
    --grayscale-border: hsl(210, 13%, 25%);
    --grayscale-border-hover: hsl(208, 12%, 30%);
    --grayscale-title: hsl(204, 11%, 96%);
    --grayscale-subtitle: hsl(210, 12%, 87%);
    --grayscale-body: hsl(209, 12%, 70%);
    --grayscale-caption: hsl(210, 13%, 60%);
    
    /* Background */
    --background: hsl(0, 0%, 12%);
    --site-background: hsl(0, 0%, 12%);
    
    /* Dark Mode Shadows */
    --elevation-sm: 0px 16px 32px -4px rgba(0, 0, 0, 0.3), 0px 2px 4px 0px rgba(0, 0, 0, 0.4);
    --elevation-md: 0px 24px 48px -8px rgba(0, 0, 0, 0.4), 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
    --elevation-lg: 0px 34px 9px 0px rgba(0, 0, 0, 0.1), 0px 22px 9px 0px rgba(0, 0, 0, 0.2), 0px 12px 7px 0px rgba(0, 0, 0, 0.3), 0px 5px 5px 0px rgba(0, 0, 0, 0.4), 0px 1px 3px 0px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--site-background);
    color: var(--grayscale-title);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth transitions for theme switching */
.hero,
.filter-bar,
.masonry-item,
.card-overlay,
.modal-backdrop,
.modal-content,
.filter-btn,
.action-btn,
.load-more-btn {
    transition-property: background-color, border-color, color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Hero Section - UI Astra Style */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--background) 0%, var(--grayscale-surface-subtle) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, hsla(166, 100%, 41%, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, hsla(184, 100%, 61%, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 184, 0.1);
    border: 1.5px solid var(--uiastra-primary);
    border-radius: 2rem;
    color: var(--uiastra-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 217, 184, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 217, 184, 0);
    }
}

.glitch {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    color: var(--grayscale-title);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--grayscale-title) 0%, var(--uiastra-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--grayscale-body);
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--grayscale-surface);
    border: 1.5px solid var(--grayscale-border);
    border-radius: 1.5rem;
    box-shadow: var(--elevation-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--uiastra-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--grayscale-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--grayscale-border);
}

.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--uiastra-primary);
    font-size: 0.875rem;
    font-weight: 600;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--uiastra-primary);
    border-radius: 50%;
    opacity: 0.4;
}

/* Filter Bar - UI Astra Button Style */
.filter-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1.5px solid var(--grayscale-border);
    padding: 1.5rem 2rem;
    box-shadow: var(--elevation-sm);
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    font-family: 'Inter', sans-serif;
    padding: 0.75rem 1.5rem;
    background: var(--grayscale-surface);
    border: 1.5px solid var(--grayscale-border);
    border-radius: 1rem;
    color: var(--grayscale-title);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.filter-btn:hover {
    background: var(--grayscale-surface);
    border-color: var(--grayscale-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--elevation-sm);
}

.filter-btn.active {
    background: var(--grayscale-title);
    color: var(--grayscale-surface-subtle);
    border-color: var(--grayscale-title);
    box-shadow: 
        inset 1px -3px 5px 3px var(--grayscale-title),
        inset 1px 5px 8px 3px var(--grayscale-subtitle),
        var(--elevation-md);
}

/* Gallery Container */
.gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
}

.intro-section {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--grayscale-title);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--grayscale-body);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Masonry Grid - Clean UI Astra Style */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: 20px;
}

.masonry-item {
    position: relative;
    background: var(--background);
    border: 1.5px solid var(--grayscale-border);
    border-radius: 1.125rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--elevation-sm);
}

.masonry-item:hover {
    transform: translateY(-4px);
    border-color: var(--uiastra-primary);
    box-shadow: var(--elevation-lg);
}

/* Size variants */
.masonry-item[data-size="regular"] { grid-row: span 15; }
.masonry-item[data-size="tall"] { grid-row: span 20; }
.masonry-item[data-size="wide"] { 
    grid-column: span 2;
    grid-row: span 18;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-in-out;
    opacity: 0;
}

.card-video.loaded {
    opacity: 1;
}

.masonry-item:hover .card-video {
    transform: scale(1.03);
}

/* ===== PROFESSIONAL LOADING OVERLAY ===== */
.video-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--grayscale-surface-subtle) 0%, 
        var(--grayscale-surface) 100%);
    z-index: 5;
    transition: opacity 0.5s ease-in-out;
}

.video-loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* Professional Spinner Animation */
.professional-spinner {
    position: relative;
    width: 56px;
    height: 56px;
}

.professional-spinner::before,
.professional-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: spinnerRotate 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.professional-spinner::before {
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--uiastra-primary);
    border-right-color: var(--uiastra-primary);
    animation-duration: 1.2s;
}

.professional-spinner::after {
    inset: 8px;
    border: 3px solid transparent;
    border-bottom-color: hsl(184, 100%, 61%);
    border-left-color: hsl(184, 100%, 61%);
    animation-direction: reverse;
    animation-duration: 1.8s;
}

@keyframes spinnerRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--grayscale-subtitle);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Professional Progress Bar */
.loading-progress-bar {
    width: 100px;
    height: 3px;
    background: var(--grayscale-border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, 
        var(--uiastra-primary), 
        hsl(184, 100%, 61%),
        var(--uiastra-primary));
    background-size: 200% 100%;
    border-radius: 2px;
    animation: progressSlide 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes progressSlide {
    0% {
        transform: translateX(-100%);
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        transform: translateX(400%);
        background-position: 0% 50%;
    }
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 50%,
        transparent 100%);
    padding: 1.5rem 1.25rem 1.25rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-item:hover .card-overlay {
    transform: translateY(0);
}

.card-content {
    position: relative;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--grayscale-title);
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.card-description {
    font-size: 0.8125rem;
    color: var(--grayscale-body);
    margin-bottom: 0.875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.625rem;
    background: var(--grayscale-surface);
    border: 1.5px solid var(--grayscale-border);
    color: var(--grayscale-title);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.action-btn:hover {
    background: var(--grayscale-title);
    color: var(--grayscale-surface-subtle);
    transform: translateY(-3px);
    box-shadow: var(--elevation-sm);
}

.like-btn.liked {
    background: var(--uiastra-primary);
    border-color: var(--uiastra-primary);
    color: white;
}

.like-btn.liked svg {
    fill: white;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.75rem;
    background: var(--primary-50);
    border: 1px solid var(--uiastra-primary);
    border-radius: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--uiastra-primary);
    letter-spacing: -0.01em;
}

/* Load More Button - UI Astra Style */
.load-more-container {
    text-align: center;
    margin: 4rem 0 3rem;
}

.load-more-btn {
    font-family: 'Inter', sans-serif;
    padding: 1rem 2.5rem;
    background: var(--grayscale-title);
    border: 1.5px solid var(--grayscale-title);
    border-radius: 1rem;
    color: var(--grayscale-surface-subtle);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    box-shadow: 
        inset 1px -3px 5px 3px var(--grayscale-title),
        inset 1px 5px 8px 3px var(--grayscale-subtitle),
        var(--elevation-md);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        inset 1px -3px 5px 3px var(--grayscale-title),
        inset 1px 5px 8px 3px var(--grayscale-title),
        0px 8px 24px -4px var(--grayscale-title);
}

/* Modal - Clean UI Astra Style */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: var(--grayscale-title);
    border: 1.5px solid var(--grayscale-title);
    border-radius: 0.75rem;
    width: 48px;
    height: 48px;
    color: var(--grayscale-surface-subtle);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 3;
    box-shadow: 
        inset 1px -3px 5px 3px var(--grayscale-title),
        inset 1px 5px 8px 3px var(--grayscale-subtitle),
        var(--elevation-md);
}

.modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 
        inset 1px -3px 5px 3px var(--grayscale-title),
        inset 1px 5px 8px 3px var(--grayscale-title),
        0px 8px 24px -4px var(--grayscale-title);
}

.modal-video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    display: block;
    object-fit: contain;
    background: #000;
    border-radius: 1rem;
}

/* Disable right-click on video */
.modal-video::-webkit-media-controls {
    display: none !important;
}

.modal-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Custom Video Player Container */
.custom-video-player {
    position: relative;
    width: 100%;
    max-width: 1400px;
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--elevation-lg);
}

.custom-video-player video {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: auto;
}

/* Disable native controls completely */
.custom-video-player video::-webkit-media-controls {
    display: none !important;
}

.custom-video-player video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Modal Video Loading State */
.modal-video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 10;
    transition: opacity 0.5s ease-in-out;
}

.modal-video-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Custom Controls Overlay */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.custom-video-player:hover .custom-controls,
.custom-controls.show {
    opacity: 1;
}

.controls-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%);
    pointer-events: none;
}

/* Progress Bar */
.progress-container {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: height 0.2s ease;
}

.progress-container:hover {
    height: 8px;
}

.progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    width: 0%;
    transition: width 0.2s ease;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--uiastra-primary);
    width: 0%;
    transition: width 0.1s linear;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--uiastra-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-container:hover .progress-bar::after {
    opacity: 1;
}

/* Control Buttons Row */
.controls-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

/* Hide inactive icons */
.pause-icon,
.volume-muted-icon,
.fullscreen-exit-icon {
    display: none;
}

/* Time Display */
.time-display {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    user-select: none;
}

.time-separator {
    opacity: 0.6;
}

.duration {
    opacity: 0.8;
}

.controls-spacer {
    flex: 1;
}

/* Prevent text selection on controls */
.custom-controls {
    user-select: none;
    -webkit-user-select: none;
}

/* Disable context menu on video */
.custom-video-player video {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Prevent download via inspect element */
video[controlslist] {
    pointer-events: auto;
}

/* Additional download protection */
video::-internal-media-controls-download-button {
    display: none !important;
}

video::-webkit-media-controls-download-button {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden !important;
}

video::-webkit-media-controls-panel {
    width: calc(100% + 30px) !important;
}

/* Watermark Protection Layer */
.custom-video-player::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--grayscale-surface-subtle);
    padding: 4rem 2rem 2rem;
    border-top: 1.5px solid var(--grayscale-border);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1.5px solid var(--grayscale-border);
}

.footer-brand h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--grayscale-title);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--grayscale-title) 0%, var(--uiastra-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--grayscale-body);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--grayscale-title);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
    color: var(--grayscale-body);
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section li::before {
    content: '▸';
    color: var(--uiastra-primary);
    font-weight: 700;
}

.footer-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-tech span {
    padding: 0.5rem 1rem;
    background: var(--grayscale-surface);
    border: 1.5px solid var(--grayscale-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--grayscale-body);
    transition: all 0.3s ease;
}

.footer-tech span:hover {
    border-color: var(--uiastra-primary);
    color: var(--uiastra-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1.5px solid var(--grayscale-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--grayscale-body);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.footer-bottom p:first-child {
    color: var(--grayscale-title);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .masonry-item[data-size="wide"] {
        grid-column: span 1;
        grid-row: span 15;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .masonry-item[data-size="wide"],
    .masonry-item[data-size="tall"] {
        grid-column: span 1;
        grid-row: span 15;
    }
    
    .gallery-container {
        padding: 2rem 1rem;
    }
    
    .intro-section {
        margin-bottom: 2rem;
    }
    
    .filter-container {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    /* Hero Stats Mobile */
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Footer Mobile */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-tech {
        justify-content: center;
    }
    
    /* Show overlay by default on mobile (touch devices) */
    .card-overlay {
        transform: translateY(0);
    }

    .modal {
        padding: 1rem;
    }

    .modal-close {
        top: -56px;
        width: 44px;
        height: 44px;
    }
    
    .modal-video {
        max-height: 70vh;
    }
    
    .custom-video-player {
        max-height: 70vh;
    }
    
    .controls-row {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
    
    .time-display {
        font-size: 0.75rem;
    }
    
    /* Always show controls on mobile */
    .custom-controls {
        opacity: 1;
    }
}

/* Scrollbar - UI Astra Style */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--grayscale-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--grayscale-border);
    border-radius: 6px;
    border: 2px solid var(--grayscale-surface);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--uiastra-primary);
}

/* Selection */
::selection {
    background: var(--uiastra-primary);
    color: white;
}

::-moz-selection {
    background: var(--uiastra-primary);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-section {
    animation: fadeInUp 1s ease;
}

.masonry-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.masonry-item:nth-child(1) { animation-delay: 0.1s; }
.masonry-item:nth-child(2) { animation-delay: 0.15s; }
.masonry-item:nth-child(3) { animation-delay: 0.2s; }
.masonry-item:nth-child(4) { animation-delay: 0.25s; }
.masonry-item:nth-child(5) { animation-delay: 0.3s; }
.masonry-item:nth-child(6) { animation-delay: 0.35s; }
.masonry-item:nth-child(7) { animation-delay: 0.4s; }
.masonry-item:nth-child(8) { animation-delay: 0.45s; }

/* Theme Switcher - UI Astra Style */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: var(--grayscale-title);
    border: 1.5px solid var(--grayscale-title);
    color: var(--grayscale-surface-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 1px -3px 5px 3px var(--grayscale-title),
        inset 1px 5px 8px 3px var(--grayscale-subtitle),
        var(--elevation-lg);
}

.theme-switcher:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        inset 1px -3px 5px 3px var(--grayscale-title),
        inset 1px 5px 8px 3px var(--grayscale-title),
        0px 12px 32px -4px var(--grayscale-title);
}

.theme-switcher:active {
    transform: translateY(-3px) scale(1.02);
}

/* Icon visibility based on theme */
.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

.dark .sun-icon {
    display: block;
}

.dark .moon-icon {
    display: none;
}

/* Dark mode specific adjustments */
.dark .hero {
    background: linear-gradient(180deg, var(--background) 0%, var(--grayscale-surface-subtle) 100%);
}

.dark .hero::before {
    background: 
        radial-gradient(circle at 30% 20%, hsla(166, 100%, 41%, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, hsla(184, 100%, 61%, 0.12) 0%, transparent 50%);
}

.dark .filter-bar {
    background: rgba(31, 31, 31, 0.95);
}

.dark .card-overlay {
    background: linear-gradient(to top, 
        rgba(31, 31, 31, 0.98) 0%, 
        rgba(31, 31, 31, 0.95) 50%,
        transparent 100%);
}

.dark .modal-backdrop {
    background: rgba(12, 12, 12, 0.98);
}

@media (max-width: 768px) {
    .theme-switcher {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
}
