/* ============ GALLERY HERO SECTION ============ */
.gallery-hero {
    height: 50vh;
    background: linear-gradient(135deg, #0F172A 0%, #1a1f3a 100%);
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.gallery-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

.gallery-hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin: 0;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    line-height: 1.2;
}

.gallery-hero p {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

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

/* ============ GALLERY SHOWCASE SECTION ============ */
.gallery-showcase {
    padding: 80px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: #0F172A;
    animation: fadeInDown 0.6s ease-out;
}

.gallery-subtitle {
    font-size: 16px;
    color: #64748b;
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.filter-btn {
    padding: 10px 24px;
    background: white;
    color: #0F172A;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    border-color: #f97316;
    color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    border-color: #f97316;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 4px;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    height: 150px;
    cursor: pointer;
    animation: scaleIn 0.5s ease-out;
    box-shadow: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 1;
    transform: scale(1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item.hidden {
    display: none;
}

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

.gallery-item-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: none;
}

.gallery-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    margin-bottom: 8px;
}

.gallery-item p {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.gallery-view-btn {
    display: none;
    padding: 12px 32px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.gallery-view-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.gallery-view-btn:active {
    transform: scale(0.98);
}

/* ============ CTA SECTION ============ */
.gallery-cta {
    background: #ffffff;
    padding: 80px 20px;
    color: #0F172A;
    position: relative;
    overflow: hidden;
}

.gallery-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

.gallery-cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #0F172A;
    letter-spacing: -0.5px;
}

.gallery-cta p {
    font-size: 18px;
    color: #475569;
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    border: 2px solid transparent;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.6);
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

.cta-btn-primary:active {
    transform: translateY(-1px);
}

.cta-btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #f97316;
}

.cta-btn-secondary:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-3px);
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
    .gallery-hero {
        height: 45vh;
    }

    .gallery-hero h1 {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .gallery-hero p {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .gallery-showcase {
        padding: 60px 20px;
    }

    .gallery-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .gallery-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 3px;
        margin-bottom: 40px;
    }

    .gallery-item {
        height: 120px;
        padding: 0;
    }

    .gallery-item h3 {
        font-size: 16px;
    }

    .gallery-item p {
        font-size: 12px;
    }

    .gallery-cta {
        padding: 60px 20px;
    }

    .gallery-cta h2 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .gallery-cta p {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        height: 40vh;
    }

    .gallery-hero h1 {
        font-size: 32px;
    }

    .gallery-hero p {
        font-size: 16px;
    }

    .gallery-showcase {
        padding: 40px 15px;
    }

    .gallery-title {
        font-size: 24px;
    }

    .gallery-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }

    .gallery-filters {
        gap: 8px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 2px;
    }

    .gallery-item {
        height: 100px;
        padding: 0;
        border-radius: 0;
    }

    .gallery-item h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .gallery-item p {
        font-size: 11px;
    }

    .gallery-view-btn {
        padding: 8px 20px;
        font-size: 12px;
    }

    .gallery-cta {
        padding: 40px 15px;
    }

    .gallery-cta h2 {
        font-size: 22px;
    }

    .gallery-cta p {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* ============ IMAGE MODAL/LIGHTBOX ============ */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
    overflow: auto;
}

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

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

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

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

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 20px;
    box-sizing: border-box;
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 32px;
    padding: 15px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    pointer-events: all;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.modal-prev:active,
.modal-next:active {
    transform: scale(0.95);
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .modal-prev,
    .modal-next {
        padding: 12px 12px;
        font-size: 24px;
    }

    .modal-nav {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
    }

    .close-btn {
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.6);
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .modal-prev,
    .modal-next {
        padding: 10px 10px;
        font-size: 20px;
        background: rgba(255, 255, 255, 0.15);
    }

    .modal-nav {
        padding: 0 5px;
    }
}
