/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pinterest-red: #E60023;
    --pinterest-dark-red: #AD081B;
    --color-white: #ffffff;
    --color-black: #111111;
    --color-gray-100: #f7f7f7;
    --color-gray-200: #efefef;
    --color-gray-300: #e1e1e1;
    --color-gray-400: #767676;
    --color-gray-500: #5f5f5f;
    --color-gray-600: #333333;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f7;
    --bg-tertiary: #efefef;
    
    --text-primary: #111111;
    --text-secondary: #5f5f5f;
    --text-tertiary: #767676;

    background-color: #fff;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --color-white: #1a1a1a;
    --color-black: #ffffff;
    --color-gray-100: #2a2a2a;
    --color-gray-200: #333333;
    --color-gray-300: #404040;
    --color-gray-400: #a0a0a0;
    --color-gray-500: #b0b0b0;
    --color-gray-600: #e0e0e0;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #333333;
    
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #a0a0a0;

    background-color: #1a1a1a;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
}

.hidden {
    display: none !important;
}

/* ===== MAINTENANCE MODE ===== */
.maintenance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
    padding: 20px;
}

.maintenance-content {
    text-align: center;
    max-width: 600px;
}

.maintenance-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

.maintenance-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.maintenance-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.maintenance-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--pinterest-red);
    color: #ffffff;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 600;
    transition: var(--transition);
}

.maintenance-contact:hover {
    background: var(--pinterest-dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--color-gray-300);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-lg);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon {
    display: block;
    color: var(--text-primary);
}

.theme-toggle .moon-icon {
    display: none;
    color: var(--text-primary);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-300) var(--bg-secondary);
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    margin-bottom: 30px;
}

.loading-brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pinterest-red);
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading-bar-container {
    width: 200px;
    height: 3px;
    background: var(--color-gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar {
    height: 100%;
    background: var(--pinterest-red);
    width: 0%;
    animation: loadingProgress 1.5s ease-in-out forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===== LANDING PAGE - PINTEREST STYLE ===== */
#landing-page {
    min-height: 100vh;
    background: var(--bg-primary);
    overflow-y: auto;
}

.landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-primary) 100%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.landing-hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: 2;
}

.hero-content {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 1s ease-out;
}

.brand-name-large {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--pinterest-red);
    letter-spacing: 4px;
    margin-bottom: 24px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.tagline-large {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.subtitle-large {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--pinterest-red);
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-primary);
}

.cta-button-large:hover {
    background: var(--pinterest-dark-red);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(230, 0, 35, 0.3);
}

/* Preview Section - Pinterest Style */
.preview-section {
    position: relative;
    padding: 80px 0 120px;
    background: var(--bg-primary);
    z-index: 2;
}

.preview-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease;
}

.preview-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    grid-auto-flow: dense;
}

.preview-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--bg-secondary);
    aspect-ratio: 3/4;
    opacity: 0;
    animation: fadeInItem 0.6s ease forwards;
}

.preview-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.preview-item img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: var(--border-radius);
    transition: var(--transition);
    object-fit: cover;
}

.preview-item:hover img {
    filter: brightness(0.85);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border-radius: var(--border-radius);
}

.preview-item:hover .preview-overlay {
    opacity: 1;
}

.preview-overlay-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.preview-overlay-meta {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Old Landing Page Styles (Fallback) */
.landing-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-name {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--pinterest-red);
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 400;
}

.subtitle {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-tertiary);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--pinterest-red);
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    font-family: var(--font-primary);
}

.cta-button:hover {
    background: var(--pinterest-dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    padding: 12px 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 1px solid var(--color-gray-200);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pinterest-red);
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-brand:hover {
    transform: scale(1.05);
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--color-gray-200);
    border-radius: 24px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: var(--transition);
    color: var(--text-primary);
}

.search-input:focus {
    outline: none;
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 4px rgba(230, 0, 35, 0.1);
    border-color: var(--pinterest-red);
}

.nav-links {
    display: flex;
    gap: 24px;
    white-space: nowrap;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 24px;
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg-secondary);
    color: var(--pinterest-red);
}

/* Mobile Search Toggle Button */
.mobile-search-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--color-gray-300);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.mobile-search-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.mobile-search-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-search-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-search-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    padding: 20px;
    z-index: 1101;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--color-gray-200);
}

.mobile-search-container.active {
    display: block;
    transform: translateY(0);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-search-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-search-close:hover {
    background: var(--bg-tertiary);
}

.mobile-search-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.mobile-search-input-wrapper {
    position: relative;
    flex: 1;
}

.mobile-search-input-wrapper .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--color-gray-200);
    border-radius: 24px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    color: var(--text-primary);
}

.mobile-search-input:focus {
    outline: none;
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 4px rgba(230, 0, 35, 0.1);
    border-color: var(--pinterest-red);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-top: none;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 8px;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-item.active {
    color: var(--pinterest-red);
    background: var(--bg-secondary);
}

.mobile-nav-item:hover {
    color: var(--pinterest-red);
}

/* ===== GALLERY PAGE ===== */
.gallery-page {
    background: var(--bg-primary);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.gallery-section {
    padding: 24px 0 40px;
    flex: 1;
}

/* Filter Section - Enhanced */
.filter-section {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.filter-header {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-clear-btn {
    padding: 8px 16px;
    background: var(--pinterest-red);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: none;
}

.filter-clear-btn.active {
    display: block;
}

.filter-clear-btn:hover {
    background: var(--pinterest-dark-red);
    transform: translateY(-2px);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    position: relative;
}

.filter-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-gray-200);
}

.filter-tab {
    padding: 10px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-family: var(--font-primary);
    position: relative;
    z-index: 1;
}

.filter-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.filter-tab.active {
    color: var(--pinterest-red);
    background: var(--bg-primary);
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pinterest-red);
    z-index: 2;
}

.filter-chips-container {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-chips-container::-webkit-scrollbar {
    display: none;
}

.filter-chips {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    min-width: min-content;
    padding-bottom: 8px;
}

.filter-chip {
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--color-gray-300);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    border-radius: 24px;
    font-weight: 600;
    white-space: nowrap;
    font-family: var(--font-primary);
}

.filter-chip:hover {
    border-color: var(--color-gray-400);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--pinterest-red);
    color: #ffffff;
    border-color: var(--pinterest-red);
}

/* Pinterest Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    grid-auto-flow: dense;
    transition: opacity 0.3s ease;
}

.masonry-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--bg-secondary);
    aspect-ratio: 3/4;
    opacity: 0;
    animation: fadeInItem 0.5s ease forwards;
}

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: var(--border-radius);
    transition: var(--transition);
    object-fit: cover;
}

.masonry-item:hover img {
    filter: brightness(0.85);
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border-radius: var(--border-radius);
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.overlay-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.overlay-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Loading More */
.loading-more {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-gray-200);
    border-top-color: var(--pinterest-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-more p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== PHOTO MODAL WITH SLIDER ===== */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.photo-modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1400px;
    height: 90vh;
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.modal-close-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.1) rotate(90deg);
}

.modal-close-btn svg {
    color: var(--text-primary);
}

.modal-content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    height: 100%;
    gap: 0;
}

/* Image Slider Section */
.modal-image-section {
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-right: none;
}

[data-theme="dark"] .modal-image-section {
    background: #000000;
}

.image-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 90vh;
    transition: opacity 0.3s ease;
    cursor: zoom-in;
}

/* Slider Controls */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slide-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.slide-btn.prev { 
    left: 20px; 
}

.slide-btn.next { 
    right: 20px; 
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===== FULLSCREEN IMAGE VIEW ===== */
.fullscreen-image-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.95);
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

.fullscreen-image-view.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image-view img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Details Section */
.modal-details-section {
    padding: 0;
    overflow-y: auto;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    border-left: none;
}

.modal-details-section::-webkit-scrollbar {
    width: 8px;
}

.modal-details-section::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.modal-details-section::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 4px;
}

.modal-details-section::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
}

.modal-header {
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 1px solid var(--color-gray-200);
    background: var(--bg-primary);
}

.modal-header-content {
    flex: 1;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--pinterest-red);
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 24px;
    white-space: nowrap;
    font-family: var(--font-primary);
    flex-shrink: 0;
}

.download-btn:hover {
    background: var(--pinterest-dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modal-body-content {
    padding: 24px 32px 32px 32px;
}

.modal-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.meta-badge {
    padding: 8px 16px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-date {
    padding: 8px 16px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-cosplayer {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
}

.modal-cosplayer a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pinterest-red);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.modal-cosplayer a:hover {
    text-decoration: underline;
    transform: translateX(5px);
}

.modal-cosplayer svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* More Photos Section */
.more-photos-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--color-gray-200);
}

.more-photos-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.more-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.more-photo-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-secondary);
    aspect-ratio: 3/4;
}

.more-photo-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.more-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

html.dark-mode, body.dark-mode {
    background-color: #0b0b0b;
    color: #fff;
}

/* ===== PASSWORD MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.password-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .password-modal-content {
    opacity: 1;
    transform: scale(1);
}

.password-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--color-gray-200);
}

.password-modal-header h2 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    padding-right: 40px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    border: none;
    font-size: 1.8rem;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.password-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--color-gray-200);
    color: var(--text-primary);
    font-size: 1rem;
    border-radius: 12px;
    margin-bottom: 12px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.password-input:focus {
    outline: none;
    border-color: var(--pinterest-red);
    background: var(--bg-primary);
}

.password-hint {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel,
.btn-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.btn-cancel {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: var(--bg-tertiary);
}

.btn-submit {
    background: var(--pinterest-red);
    color: #ffffff;
}

.btn-submit:hover {
    background: var(--pinterest-dark-red);
}

.btn-submit:disabled {
    background: var(--color-gray-300);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.password-error,
.password-success {
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 12px;
    display: none;
    font-size: 0.9rem;
}

.password-error {
    background: rgb(37, 42, 37);
    border: 1px solid #fcc;
    color: #c00;
}

.password-success {
    background: rgb(37, 42, 37);
    border: 1px solid #cfc;
    color: #0a0;
}

.password-error.show,
.password-success.show {
    display: block;
}

/* ===== MEDIA PARTNERS & COLLABORATION PAGES ===== */
.page-content {
    background: var(--bg-primary);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-section {
    padding: 60px 0;
    flex: 1;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    animation: fadeInUp 0.8s ease;
}

.partner-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    overflow: hidden;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.partner-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.partner-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pinterest-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.partner-instagram:hover {
    transform: translateY(-2px);
    text-decoration: underline;
}

.partner-instagram svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Collaboration Page */
.collab-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease;
}

.collab-profile-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--color-gray-200);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.collab-profile-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--pinterest-red);
}

.collab-profile-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.collab-profile-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.collab-profile-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: var(--pinterest-red);
    color: #fff;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.collab-profile-card a:hover {
    background: var(--pinterest-dark-red);
    transform: translateY(-2px);
}

.collab-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--color-gray-200);
}

.collab-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--pinterest-red);
}

.collab-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pinterest-red);
    border-radius: 50%;
    color: #ffffff;
}

.collab-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.collab-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.collab-benefits {
    margin-bottom: 80px;
    animation: fadeInUp 1s ease;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 48px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.benefit-item {
    text-align: center;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.benefit-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.collab-cta {
    text-align: center;
    padding: 60px 32px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    animation: fadeInUp 1.2s ease;
}

.collab-cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.collab-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--pinterest-red);
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.collab-btn:hover {
    background: var(--pinterest-dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.collab-btn svg {
    width: 24px;
    height: 24px;
}

/* ===== NOTIFICATION TOAST ===== */
.notification-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 16px 24px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px;
    text-align: center;
    font-weight: 500;
}

.notification-toast.show {
    bottom: 100px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid var(--color-gray-200);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    color: var(--pinterest-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link:hover {
    text-decoration: underline;
    transform: scale(1.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .masonry-grid,
    .preview-masonry {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .modal-content-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 0;
    }
    
    .modal-image-section {
        max-height: 45vh;
        position: sticky;
        top: 0;
        z-index: 1;
        border-right: none;
        border-bottom: none;
    }
    
    .modal-details-section {
        position: relative;
        z-index: 2;
        border-left: none;
        border-top: none;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    /* Hide desktop nav, show mobile nav */
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    /* Show mobile search toggle */
    .mobile-search-toggle {
        display: flex;
    }
    
    .gallery-page,
    .page-content {
        padding-top: 20px;
        padding-bottom: 80px;
    }
    
    .masonry-grid,
    .preview-masonry {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .filter-section {
        margin-bottom: 24px;
        padding: 16px;
    }
    
    .modal-header {
        padding: 24px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        border-bottom: 1px solid var(--color-gray-200);
        box-shadow: none;
    }
    
    .modal-body-content {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    
    .theme-toggle {
        bottom: 90px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .modal-image-section {
        max-height: 40vh;
        border-bottom: none;
    }
    
    .modal-container {
        width: 95%;
        height: 95vh;
    }
    
    .modal-close-btn {
        top: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
    }
    
    .notification-toast.show {
        bottom: 90px;
    }
    
    .slide-btn {
        width: 40px;
        height: 40px;
    }
    
    .slide-btn.prev {
        left: 10px;
    }
    
    .slide-btn.next {
        right: 10px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .modal-close {
        top: 16px;
        right: 16px;
    }
    
    .password-modal-content {
        margin: 0 10px;
    }
    
    .preview-section {
        padding: 60px 0 100px;
    }
    
    .preview-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .masonry-grid,
    .preview-masonry {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .more-photos-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 98%;
        height: 98vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 20px 16px;
    }
    
    .modal-body-content {
        padding: 16px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-image-section {
        max-height: 35vh;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .theme-toggle {
        bottom: 90px;
        right: 12px;
        width: 38px;
        height: 38px;
    }
    
    .modal-close-btn {
        top: 12px;
        left: 12px;
        width: 40px;
        height: 40px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .collab-intro {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .password-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
    
    .brand-name-large {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .tagline-large {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    
    .preview-title {
        font-size: 1.8rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions for all interactive elements */
a, button, .masonry-item, .partner-card, .collab-card, .benefit-item, .preview-item {
    transition: var(--transition);
}