/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    color: #1f2937;
    position: relative;
    padding-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #2563eb;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #6b7280;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #6b7280;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.btn-special {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: white;
    border: 2px solid #e91e63;
    animation: pulse-special 2s infinite, blink-special 1.5s infinite;
    position: relative;
    overflow: hidden;
}

.btn-special:hover {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.4);
    animation: pulse-special 2s infinite, blink-special 0.8s infinite;
}

@keyframes pulse-special {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(233, 30, 99, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
    }
}

@keyframes blink-special {
    0%, 50% {
        opacity: 1;
        transform: scale(1);
    }
    25%, 75% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Thêm hiệu ứng sparkle cho nút */
.btn-special::before {
    content: '✨';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 14px;
    animation: sparkle-float 2s infinite;
    pointer-events: none;
    z-index: 10;
}

.btn-special::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shine-effect 3s infinite;
}

@keyframes sparkle-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-5px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes shine-effect {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Challenge Section */
.challenge-section {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 2px solid #e91e63;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.2);
    animation: challenge-pulse 3s infinite;
}

.challenge-start {
    margin: 1.5rem 0;
}

.btn-challenge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid #28a745;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: challenge-btn-pulse 2s infinite;
}

.btn-challenge:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

@keyframes challenge-btn-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
}

@keyframes challenge-pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(233, 30, 99, 0.2);
    }
    50% {
        box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4);
    }
}

.challenge-container {
    text-align: center;
}

.challenge-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e91e63;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.challenge-description {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.challenge-progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

.challenge-hint {
    background: rgba(233, 30, 99, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #e91e63;
}

.challenge-hint p {
    margin: 0;
    font-size: 0.9rem;
    color: #495057;
    font-style: italic;
}

/* Hidden Letters */
.hidden-letter {
    display: inline-block;
    color: #e91e63;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(233, 30, 99, 0.3);
    animation: letter-glow 2s infinite;
    margin: 0 2px;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(233, 30, 99, 0.1);
}

.hidden-letter:hover {
    transform: scale(1.2);
    color: #c2185b;
    background: rgba(233, 30, 99, 0.2);
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

.hidden-letter.found {
    color: #28a745;
    background: rgba(40, 167, 69, 0.2);
    animation: letter-found 0.6s ease;
    transform: scale(1.1);
}

@keyframes letter-glow {
    0%, 100% {
        text-shadow: 2px 2px 4px rgba(233, 30, 99, 0.3);
    }
    50% {
        text-shadow: 2px 2px 8px rgba(233, 30, 99, 0.6);
    }
}

@keyframes letter-found {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Challenge completion animation */
.challenge-completed {
    animation: celebration 1s ease;
}

@keyframes celebration {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Shake animation for wrong clicks */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Feedback animation */
@keyframes feedbackSlide {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f8fafc;
    position: relative;
    z-index: 1;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #6b7280;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: white;
    position: relative;
    z-index: 1;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
    position: relative;
    z-index: 1;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f1f5f9;
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
    width: 40px;
    text-align: center;
}

.contact-item h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #6b7280;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fbbf24;
}

.special-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.special-link, .anniversary-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.anniversary-link {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.special-link:hover, .anniversary-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.anniversary-link:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fbbf24;
    color: #1f2937;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        margin: 20px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .profile-image {
        width: 300px;
        height: 300px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-content {
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .container {
        padding: 0 15px;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.hero-content,
.about-content,
.services-grid,
.contact-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Gallery Section */
.gallery {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e91e63" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23e91e63" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23e91e63" opacity="0.1"/><circle cx="10" cy="50" r="0.5" fill="%23e91e63" opacity="0.1"/><circle cx="90" cy="30" r="0.5" fill="%23e91e63" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.gallery .container {
    position: relative;
    z-index: 1;
}

.gallery-header h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-style: italic;
}

/* Gallery Tabs */
.gallery-tabs {
    margin-bottom: 3rem;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: white;
    padding: 1rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #f8f9fa;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #6c757d;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    transition: all 0.3s ease;
    z-index: -1;
}

.tab-btn:hover::before,
.tab-btn.active::before {
    left: 0;
}

.tab-btn:hover,
.tab-btn.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.tab-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.tab-btn:hover i,
.tab-btn.active i {
    transform: scale(1.1);
}

/* Gallery Grid */
.gallery-grid {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.gallery-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    justify-items: start;
}

/* Single image layout */
.gallery-content:has(.gallery-item:only-child) {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0;
    justify-items: start;
}

/* Two images layout */
.gallery-content:has(.gallery-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

/* Fallback for browsers that don't support :has() */
.gallery-content.single-item {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0;
    justify-items: start;
}

.gallery-content.two-items {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0;
    justify-items: start;
}

.gallery-content.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: all 0.3s ease;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(0);
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border: 1px solid rgba(233, 30, 99, 0.1);
    width: 100%;
    max-width: 400px;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(233, 30, 99, 0.2);
}

.gallery-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4/3;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1) saturate(1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.2);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.95) 0%, rgba(156, 39, 176, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

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

.gallery-info {
    text-align: center;
    color: white;
    padding: 1.5rem;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h4 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.5;
}

.gallery-link {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-link {
    transform: translateY(0);
    opacity: 1;
}

.gallery-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-link i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.gallery-link:hover i {
    transform: scale(1.2);
}

/* Gallery Placeholders */
.gallery-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px dashed #dee2e6;
    border-radius: 20px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.1), transparent);
    transition: all 0.6s ease;
}

.gallery-placeholder:hover::before {
    left: 100%;
}

.gallery-placeholder:hover {
    border-color: #e91e63;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(233, 30, 99, 0.1);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-align: center;
    padding: 2rem;
    z-index: 1;
    position: relative;
}

.placeholder-content i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    color: #e91e63;
    transition: all 0.3s ease;
}

.gallery-placeholder:hover .placeholder-content i {
    transform: scale(1.1);
    opacity: 0.8;
}

.placeholder-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.placeholder-content p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
}

/* Fancybox Custom Styles */
.fancybox-custom {
    --fancybox-bg: rgba(0, 0, 0, 0.95);
    --fancybox-accent-color: #e91e63;
    --fancybox-thumbs-width: 120px;
    --fancybox-thumbs-height: 80px;
    --fancybox-animation-duration: 500ms;
    --fancybox-transition-duration: 600ms;
}

/* Ultra smooth transitions for all elements */
.fancybox-custom * {
    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Ultra smooth slide transitions */
.fancybox-custom .fancybox__slide {
    transition: all 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform, opacity;
}

/* Ultra smooth image transitions */
.fancybox-custom .fancybox__image {
    transition: all 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform, opacity;
}

/* Ultra smooth toolbar transitions */
.fancybox-custom .fancybox__toolbar {
    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Ultra smooth caption transitions */
.fancybox-custom .fancybox__caption {
    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.fancybox-custom .fancybox__backdrop {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.fancybox-custom .fancybox__toolbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px 15px;
    margin: 20px;
}

.fancybox-custom .fancybox__button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

.fancybox-custom .fancybox__button:hover {
    background: rgba(233, 30, 99, 0.8);
    border-color: rgba(233, 30, 99, 0.9);
    transform: scale(1.1);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Ultra smooth navigation buttons */
.fancybox-custom .fancybox__button--prev,
.fancybox-custom .fancybox__button--next {
    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transform: translateY(-50%);
    will-change: transform, background, border-color;
}

.fancybox-custom .fancybox__button--prev:hover,
.fancybox-custom .fancybox__button--next:hover {
    transform: translateY(-50%) scale(1.15);
    background: rgba(233, 30, 99, 0.9);
    border-color: rgba(233, 30, 99, 1);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

/* Ultra smooth loading animation */
.fancybox-custom .fancybox__slide.is-loading {
    opacity: 0.6;
    transform: scale(0.9);
    filter: blur(3px);
    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.fancybox-custom .fancybox__slide.is-loaded {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
    transition: all 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}


.fancybox-custom .fancybox__button--close {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    font-weight: bold;
    transition: all 150ms ease !important;
    cursor: pointer !important;
    z-index: 9999 !important;
}

.fancybox-custom .fancybox__button--close:hover {
    background: rgba(233, 30, 99, 0.9);
    border-color: rgba(233, 30, 99, 0.9);
    transform: scale(1.1);
    transition: all 150ms ease !important;
}

.fancybox-custom .fancybox__button--close:active {
    transform: scale(0.95);
    transition: all 50ms ease !important;
}

.fancybox-custom .fancybox__caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    backdrop-filter: blur(10px);
}

.fancybox-custom .fancybox__infobar {
    background: rgba(233, 30, 99, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.fancybox-custom .fancybox__slide {
    padding: 20px;
}

.fancybox-custom .fancybox__image {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center;
}

/* Ultra smooth slide animation */
.fancybox-custom .fancybox__slide.is-next {
    transform: translateX(100%) scale(0.95);
    opacity: 0;
    filter: blur(2px);
}

.fancybox-custom .fancybox__slide.is-prev {
    transform: translateX(-100%) scale(0.95);
    opacity: 0;
    filter: blur(2px);
}

.fancybox-custom .fancybox__slide.is-current {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: blur(0px);
}

/* Ultra smooth fade transition */
.fancybox-custom .fancybox__slide.is-transitioning {
    transition: all 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform, opacity, filter;
}

/* Smooth slide container */
.fancybox-custom .fancybox__container {
    transition: all 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Smooth backdrop */
.fancybox-custom .fancybox__backdrop {
    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Fancybox Thumbs */
.fancybox-custom .fancybox__thumbs {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    margin: 20px;
}

.fancybox-custom .fancybox__thumb {
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.fancybox-custom .fancybox__thumb:hover,
.fancybox-custom .fancybox__thumb.is-nav-selected {
    border-color: #e91e63;
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fancybox-custom .fancybox__toolbar {
        margin: 10px;
        padding: 8px 12px;
    }
    
    .fancybox-custom .fancybox__button--close {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .fancybox-custom .fancybox__caption {
        margin: 10px;
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .fancybox-custom .fancybox__toolbar {
        margin: 5px;
        padding: 6px 10px;
    }
    
    .fancybox-custom .fancybox__button--close {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .fancybox-custom .fancybox__caption {
        margin: 5px;
        padding: 10px 12px;
        font-size: 12px;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery {
        padding: 2rem 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .gallery-grid {
        width: 100%;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    
    .gallery-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .gallery-header h2 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .gallery-subtitle {
        font-size: 1.1rem;
    }
    
    .gallery-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
    }
    
    .gallery-item {
        max-width: 100%;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Force single column layout on tablet */
    .gallery-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .gallery-item {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .gallery-image {
        width: 100% !important;
        height: 250px !important;
        aspect-ratio: 4/3 !important;
    }
    
    .gallery-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    
    .gallery-placeholder {
        height: 250px;
        aspect-ratio: 4/3;
    }
    
    .tab-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .gallery-info h4 {
        font-size: 1.4rem;
    }
    
    .gallery-info p {
        font-size: 0.9rem;
    }
    
    /* Lightbox mobile styles */
    .lb-data .lb-close,
    .lb-dataContainer .lb-close,
    .lb-wrapper .lb-close {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
        line-height: 36px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 9999 !important;
    }
    
    .lb-data .lb-close:before,
    .lb-dataContainer .lb-close:before,
    .lb-wrapper .lb-close:before {
        font-size: 24px !important;
        content: "×" !important;
    }
}

@media (max-width: 480px) {
    .gallery {
        padding: 1.5rem 0.2rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .gallery-grid {
        width: 100%;
        padding: 0 0.2rem;
        box-sizing: border-box;
    }
    
    .gallery-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .gallery-subtitle {
        font-size: 0.9rem;
    }
    
    .gallery-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
    }
    
    .gallery-item {
        max-width: 100%;
        width: 100%;
        margin-bottom: 0.8rem;
        display: block;
    }
    
    .gallery-image {
        height: 220px;
        aspect-ratio: 4/3;
        width: 100%;
    }
    
    .gallery-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .gallery-placeholder {
        height: 220px;
        aspect-ratio: 4/3;
    }
    
    .tab-nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .gallery-info h4 {
        font-size: 1.2rem;
    }
    
    .gallery-info p {
        font-size: 0.8rem;
    }
    
    .gallery-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .gallery-link i {
        font-size: 1rem;
    }
    
    /* Force single column layout on mobile */
    .gallery-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .gallery-item {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .gallery-image {
        width: 100% !important;
        height: 220px !important;
        aspect-ratio: 4/3 !important;
    }
    
    .gallery-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* Lightbox mobile styles */
    .lb-data .lb-close {
        top: 5px !important;
        right: 5px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 18px !important;
    }
    
    .lb-data .lb-close:before {
        font-size: 20px !important;
    }
    
    .lb-data .lb-caption {
        font-size: 14px !important;
        padding: 10px 15px !important;
        margin: 10px !important;
    }
    
    .lb-data .lb-number {
        font-size: 12px !important;
        padding: 6px 12px !important;
        margin: 10px !important;
    }
}

/* Gallery Instructions */
.gallery-instructions {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #dee2e6;
}

.gallery-instructions h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.instruction-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.instruction-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.instruction-item i {
    font-size: 2.5rem;
    color: #e91e63;
    margin-bottom: 1rem;
}

.instruction-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.instruction-item p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

.instruction-item code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e91e63;
    font-weight: 600;
}

/* Responsive Instructions */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .instruction-item {
        padding: 1rem;
    }
    
    .instruction-item i {
        font-size: 2rem;
    }
}