:root {
    --bg-color: #0a0a0c;
    --card-bg: #16161a;
    --accent: #ff3e81;
    --accent-gradient: linear-gradient(45deg, #ff3e81, #ff9a3e);
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius: 20px;
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader-content {
    text-align: center;
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: var(--glass-border);
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
}

/* Header & Hero */
header {
    padding: 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.heart-icon {
    color: var(--accent);
    fill: var(--accent);
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.accent {
    font-style: italic;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 400px;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img, .gallery-item:hover video {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
}

.item-caption {
    font-size: 1.1rem;
    font-weight: 600;
}

.item-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.close-lightbox {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}

.lightbox-content img, .lightbox-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 10px;
}

#lightbox-caption {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    padding: 6rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.footer-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin: 2rem 0;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-contact-link i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(255, 62, 129, 0.05);
    box-shadow: 0 0 20px rgba(255, 62, 129, 0.2);
    transform: translateY(-2px);
}

.footer-contact-link:hover i {
    transform: scale(1.15) rotate(-5deg);
    color: var(--accent);
}


.qr-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    padding: 10px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-wrapper:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 62, 129, 0.3);
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.qr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.qr-wrapper:hover .qr-overlay {
    opacity: 1;
}

.qr-zoom-icon {
    color: white;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.qr-wrapper:hover .qr-zoom-icon {
    transform: scale(1.2);
}

/* Share Modal */
.share-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(15px);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.close-share-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-share-modal:hover {
    color: white;
    transform: rotate(90deg);
}

.share-modal-content {
    max-width: 90%;
    width: 420px;
}

.share-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.share-header h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.share-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.share-qr-container {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-qr-container:hover {
    transform: scale(1.03);
}

.share-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.share-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
}

.btn-share-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.copy-btn {
    background: var(--text-primary);
    color: var(--bg-color);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

.copy-btn.success {
    background: #10b981 !important;
    color: white !important;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4) !important;
}

.download-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.05);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-text {
    line-height: 1;
}

/* Password Overlay */
.password-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.password-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.password-card h2 {
    margin: 1rem 0 0.5rem;
}

.password-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.password-card input {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.5rem;
    text-align: center;
    width: 100%;
    letter-spacing: 0.5rem;
}

.error-msg {
    color: var(--accent) !important;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .gallery-item {
        height: 250px;
    }
}
