/* ============================================
   MEDIAPOINT.RO - 2026 Modern Design System
   ============================================ */

:root {
    color-scheme: light dark;
    
    /* Modern Color Palette - Warm Red for elegance */
    --gradient-start: #f87171;  /* Red 400 - light & warm */
    --gradient-mid: #ef4444;    /* Red 500 - vibrant */
    --gradient-end: #dc2626;    /* Red 600 - deeper */
    
    --accent-start: #f97316;    /* Coral red accent */
    --accent-end: #ea580c;      /* Coral red accent deep */
    
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;    /* Slate 50 */
    --bg-tertiary: #f1f5f9;     /* Slate 100 */
    
    --text-primary: #0f172a;    /* Slate 900 */
    --text-secondary: #475569;  /* Slate 600 */
    --text-tertiary: #94a3b8;   /* Slate 400 */
    
    --border-color: #e2e8f0;    /* Slate 200 */
    --border-hover: #cbd5e1;    /* Slate 300 */
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Multi-layer Shadows (depth) - Enhanced for luxury */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.06);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 25px rgba(248, 113, 113, 0.4), 0 0 50px rgba(239, 68, 68, 0.2);
    
    /* Spacing System with clamp() - Increased for elegance */
    --space-xs: clamp(0.25rem, 0.6vw, 0.625rem);
    --space-sm: clamp(0.625rem, 1.2vw, 1.25rem);
    --space-md: clamp(1.25rem, 2.5vw, 1.875rem);
    --space-lg: clamp(1.875rem, 3.5vw, 3rem);
    --space-xl: clamp(2.5rem, 5vw, 4.5rem);
    --space-2xl: clamp(3.5rem, 7vw, 7rem);
    
    /* Typography Scale */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-display: 'Inter', sans-serif;
    
    --text-xs: clamp(0.75rem, 1vw, 0.875rem);
    --text-sm: clamp(0.875rem, 1.2vw, 1rem);
    --text-base: clamp(1rem, 1.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 2vw, 1.25rem);
    --text-xl: clamp(1.25rem, 2.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 3vw, 2rem);
    --text-3xl: clamp(2rem, 4vw, 3rem);
    --text-4xl: clamp(2.5rem, 5vw, 4rem);
    --text-5xl: clamp(3rem, 7vw, 5rem);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Backdrop Blur */
    --blur-sm: blur(8px);
    --blur-md: blur(12px);
    --blur-lg: blur(20px);
    --blur-xl: blur(32px);
}

/* Dark Mode Variables - True Black */
[data-theme="dark"] {
    --bg-primary: #000000;      /* Pure Black */
    --bg-secondary: #0a0a0a;    /* Almost Black */
    --bg-tertiary: #1a1a1a;     /* Dark Gray */
    
    --text-primary: #ffffff;    /* Pure White */
    --text-secondary: #d1d5db;  /* Gray 300 */
    --text-tertiary: #6b7280;   /* Gray 500 */
    
    --border-color: #1a1a1a;    /* Dark Gray */
    --border-hover: #2a2a2a;    /* Lighter Gray */
    
    --glass-bg: rgba(0, 0, 0, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    
    --shadow-glow: 0 0 30px rgba(248, 113, 113, 0.4), 0 0 60px rgba(239, 68, 68, 0.25);
}

/* Prefer dark mode system detection - True Black */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #000000;
        --bg-secondary: #0a0a0a;
        --bg-tertiary: #1a1a1a;
        --text-primary: #ffffff;
        --text-secondary: #d1d5db;
        --text-tertiary: #6b7280;
        --border-color: #1a1a1a;
        --border-hover: #2a2a2a;
        --glass-bg: rgba(0, 0, 0, 0.8);
        --glass-border: rgba(255, 255, 255, 0.1);
        --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
        --shadow-glow: 0 0 30px rgba(248, 113, 113, 0.4), 0 0 60px rgba(239, 68, 68, 0.25);
    }
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    /* scroll-behavior removed - using faster custom JavaScript animation */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   HEADER & NAVIGATION - Glassmorphism
   ============================================ */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
}

/* Raise header above mobile menu overlay so the toggle button stays clickable */
header.menu-open {
    z-index: 1003;
}

nav {
    padding: var(--space-md) 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.logo h1 {
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-base);
}

.logo h1 a {
    text-decoration: none;
    color: inherit;
}

.logo .tagline {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    position: relative;
    transition: color var(--transition-base);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.25rem;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
}

/* ============================================
   HERO SECTION - Mesh Gradient
   ============================================ */

.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    overflow: hidden;
    background-image: url('../images/cover.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(248, 113, 113, 0.2) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

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

.hero-content h2 {
    font-size: var(--text-5xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: white;
    letter-spacing: -0.03em;
    text-wrap: balance;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: var(--text-xl);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-lg);
    transition: all var(--transition-base);
    box-shadow: 0 10px 30px -10px rgba(248, 113, 113, 0.5);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gradient-mid), var(--gradient-start));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.6), var(--shadow-glow);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    box-shadow: none;
}

.cta-button--outline::before {
    background: rgba(255, 255, 255, 0.15);
}

.cta-button--outline:hover {
    border-color: white;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: var(--space-2xl) var(--space-lg);
    position: relative;
}

section h2 {
    font-size: var(--text-4xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* ============================================
   FILTER & SEARCH
   ============================================ */

.filter-search-container {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--glass-bg);
    backdrop-filter: var(--blur-sm);
    transition: all var(--transition-base);
}

.search-box input:focus {
    outline: none;
    border-color: var(--gradient-mid);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
}

.search-box input:not(:placeholder-shown) {
    padding-right: 3rem;
}

.search-clear {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.25rem 0.4rem;
    border-radius: 50%;
    transition: color var(--transition-base), background var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.filter-tag {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
}

.filter-tag:hover {
    border-color: var(--gradient-mid);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-tag.active {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: white;
    border-color: transparent;
}

/* ============================================
   GALLERIES GRID - Masonry/Bento Layout
   ============================================ */

.galleries-section {
    background: var(--bg-primary);
}

.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    grid-auto-flow: dense;
}

/* Featured galleries (larger cards) */
.gallery-card.featured {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-md);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 1;
    transform: scale(1);
}

/* Hidden state for filtering */
.gallery-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

/* Stagger animation classes for scroll reveal */
.gallery-card.reveal {
    animation: revealCard 0.6s ease-out forwards;
}

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

.gallery-card:hover {
    transform: translateY(-12px) scale(1.008);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    border-color: rgba(248, 113, 113, 0.5);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.08), rgba(239, 68, 68, 0.04)), var(--glass-bg);
}

.gallery-card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-card.featured .gallery-card-image {
    height: 350px;
}

.gallery-card:hover .gallery-card-image {
    transform: scale(1.08);
}

.gallery-card-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.gallery-card-content h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.gallery-card-content p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    flex: 1;
}

.gallery-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: 500;
}

.gallery-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.gallery-tag {
    padding: 0.25rem 0.625rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-tertiary);
}

/* ============================================
   GALLERY DETAIL PAGE
   ============================================ */

.gallery-detail {
    min-height: 60vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-xl);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.back-link::before {
    content: '←';
    font-size: 1.2em;
    transition: transform var(--transition-base);
}

.back-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.back-link:hover::before {
    transform: translateX(-4px);
}

.gallery-detail h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.gallery-detail p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.gallery-photo {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.gallery-photo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    opacity: 0;
}

.gallery-photo img.loaded {
    opacity: 1;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-photo:hover img {
    transform: scale(1.1);
}

/* Loading placeholder for images */
.gallery-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    z-index: 1;
}

.gallery-photo.image-loaded::before {
    display: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Zoom icon on hover */
.gallery-photo::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    opacity: 0;
    transition: all var(--transition-base);
    background: rgba(0, 0, 0, 0.6);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    backdrop-filter: var(--blur-sm);
}

.gallery-photo:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ============================================
   LIGHTBOX - Enhanced
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: var(--blur-md);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    animation: zoomIn 0.3s ease-out;
    user-select: none;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-md);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

.lightbox-close {
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 2rem;
    line-height: 1;
}

.lightbox-prev {
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-close:hover {
    transform: scale(1.05);
}

.lightbox-caption {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: var(--text-lg);
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: var(--blur-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    max-width: 90%;
}

/* Loading spinner for lightbox images */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   ABOUT & CONTACT SECTIONS
   ============================================ */

.about-section {
    background: var(--bg-tertiary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p:first-of-type {
    font-size: var(--text-xl);
    color: var(--text-primary);
}

.about-extras {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.about-extra-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: var(--blur-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.about-extra-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(248, 113, 113, 0.4);
}

.about-extra-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.about-extra-item strong {
    display: block;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-extra-item p {
    margin-bottom: 0;
    font-size: var(--text-base);
}

.contact-section {
    background: var(--bg-primary);
}

.contact-intro {
    text-align: center;
    max-width: 620px;
    margin: 0 auto var(--space-2xl);
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-intro strong {
    color: var(--text-primary);
    font-weight: 700;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.contact-item {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-md);
    border: 1px solid var(--glass-border);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.contact-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(248, 113, 113, 0.4);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.07), rgba(239, 68, 68, 0.03)), var(--glass-bg);
}

.contact-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15), rgba(239, 68, 68, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gradient-start);
    stroke: var(--gradient-start);
}

.contact-item h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-item a {
    color: var(--gradient-mid);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
    position: relative;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
    transition: width var(--transition-base);
}

.contact-item a:hover {
    color: var(--gradient-start);
}

.contact-item a:hover::after {
    width: 100%;
}

/* Social buttons */
.contact-social {
    text-align: center;
}

.contact-social-label {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.contact-social-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-btn--facebook {
    background: #1877f2;
    color: #fff;
}

.social-btn--facebook:hover {
    background: #0d65d9;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.4);
}

.social-btn--instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.social-btn--instagram:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(220, 39, 67, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
}

footer p {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

/* ============================================
   LOADING STATES & SKELETONS
   ============================================ */

.skeleton-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 400px;
    position: relative;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--gradient-mid);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-md);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
}

/* ============================================
   ADVANCED EFFECTS - Elegance & Polish
   ============================================ */

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".9" numOctaves="4" seed="2"/><feDisplacementMap in="SourceGraphic" scale="0.0000001"/></filter><rect width="100%" height="100%" fill="%23000" filter="url(%23n)"/></svg>');
    background-size: 300px 300px;
    opacity: 0.02;
    z-index: -1;
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    box-shadow: var(--shadow-glow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s ease-out;
    z-index: 9999;
}

/* Custom cursor styles */
* {
    cursor: auto;
}

a, button, [role="button"], .cursor-pointer {
    cursor: pointer;
}

button:hover, a:hover, [role="button"]:hover {
    cursor: pointer;
}

/* Magnetic button effect - moves toward cursor on hover */
.magnetic-btn {
    position: relative;
    transition: transform var(--transition-base);
}

.magnetic-btn:hover {
    transform: translate(var(--tx, 0), var(--ty, 0));
}

/* Enhanced lightbox fade effect */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced image loading with subtle scale */
@keyframes imageFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lightbox image enhanced entrance */
.lightbox.active .lightbox-image {
    animation: imageFadeInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESPONSIVE DESIGN - Modern Breakpoints
   ============================================ */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
    
    .galleries-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
}

/* Desktop / Tablet Landscape (1024px - 1439px) */
@media (max-width: 1439px) {
    :root {
        --space-2xl: clamp(2.5rem, 5vw, 5rem);
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .nav-links {
        gap: var(--space-md);
    }
    
    .galleries-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .gallery-card.featured {
        grid-column: span 1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Mobile / Tablet Portrait (max-width: 900px) */
@media (max-width: 900px) {
    /* Hide desktop nav, show mobile menu */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Solid opaque background — must sit above the sticky header */
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        /* Above header (1000) and toggle (1001) */
        z-index: 1002;
        /* Ensure no leftover glass effect */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .nav-links.mobile-menu-active {
        display: flex;
        animation: menuFadeIn 0.25s ease;
    }

    @keyframes menuFadeIn {
        from { opacity: 0; transform: translateX(40px); }
        to   { opacity: 1; transform: translateX(0); }
    }
    
    .nav-links a {
        font-size: var(--text-2xl);
        font-weight: 700;
        color: var(--text-primary);
    }

    .nav-links a:hover {
        color: var(--gradient-mid);
    }
    
    .mobile-menu-toggle {
        display: flex;
        /* Above the menu overlay so it stays tappable */
        z-index: 1003;
        position: relative;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Load more button */
    .load-more-container {
        display: flex;
        justify-content: center;
        padding: var(--space-lg) 0 var(--space-md);
    }

    .load-more-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.875rem 2.5rem;
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
        color: #ffffff;
        font-size: var(--text-base);
        font-weight: 600;
        border: none;
        border-radius: var(--radius-full);
        cursor: pointer;
        box-shadow: var(--shadow-md);
        transition: all var(--transition-base);
    }

    .load-more-btn:hover {
        background: linear-gradient(135deg, var(--gradient-mid), var(--gradient-end));
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }

    .load-more-btn:active {
        transform: translateY(0);
    }

    /* Hero adjustments */
    .hero {
        min-height: 60vh;
        padding: var(--space-xl) var(--space-md);
    }
    
    .hero-content h2 {
        font-size: var(--text-3xl);
    }
    
    .hero-content p {
        font-size: var(--text-base);
    }
    
    /* Sections */
    section {
        padding: var(--space-xl) var(--space-md);
    }
    
    section h2 {
        font-size: var(--text-3xl);
    }
    
    /* Galleries */
    .galleries-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .gallery-card.featured {
        grid-column: span 1;
    }
    
    .gallery-card-image {
        height: 240px;
    }
    
    /* Gallery detail */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--space-sm);
    }
    
    /* Filter/Search */
    .filter-search-container {
        gap: var(--space-sm);
    }
    
    .filter-tags {
        gap: var(--space-xs);
    }
    
    .filter-tag {
        font-size: var(--text-xs);
        padding: 0.4rem 1rem;
    }
    
    /* Lightbox */
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.2rem;
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .lightbox-close {
        top: var(--space-md);
        right: var(--space-md);
    }
    
    .lightbox-prev {
        left: var(--space-md);
    }
    
    .lightbox-next {
        right: var(--space-md);
    }
    
    .lightbox-caption {
        font-size: var(--text-base);
        bottom: var(--space-lg);
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Contact */
    .contact-info {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .contact-social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Scroll to top */
    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: var(--space-md);
        right: var(--space-md);
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --space-xl: clamp(1.5rem, 3vw, 2rem);
        --space-2xl: clamp(2rem, 4vw, 3rem);
    }
    
    .hero {
        min-height: 50vh;
        padding: var(--space-xl) var(--space-sm);
    }
    
    .hero-content h2 {
        font-size: var(--text-2xl);
    }
    
    section {
        padding: var(--space-xl) var(--space-sm);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: var(--text-base);
    }
    
    .gallery-card-content {
        padding: var(--space-md);
    }
}

/* iOS Safe Area Support */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    header {
        top: env(safe-area-inset-top);
    }
    
    .scroll-to-top {
        bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
        right: calc(var(--space-lg) + env(safe-area-inset-right));
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .theme-toggle,
    .mobile-menu-toggle,
    .scroll-to-top,
    .lightbox,
    .filter-search-container {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .gallery-card,
    .gallery-photo {
        break-inside: avoid;
    }
}

/* ============================================
   FOOTER POLICY LINKS
   ============================================ */

.footer-policy-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: color var(--transition-fast);
}

.footer-policy-link:hover {
    color: var(--gradient-start);
}

/* ============================================
   GDPR BANNER - Responsive
   ============================================ */

@media (min-width: 768px) {
    #gdpr-banner {
        left: auto !important;
        right: 1.5rem !important;
    }
}
