/* ===== GALLERY PAGE - PREMIUM VIP DESIGN ===== */

/* Gallery Header Section */
.gallery-header {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    position: relative;
    overflow: hidden;
}

.gallery-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.gallery-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.15), transparent);
    border-radius: 50%;
    animation: float-gallery 10s ease-in-out infinite;
}

@keyframes float-gallery {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.15;
    }
    50% { 
        transform: translate(-50px, -50px) rotate(180deg);
        opacity: 0.25;
    }
}

.header-content-gallery {
    text-align: center;
    position: relative;
    z-index: 2;
}

.header-badge-gallery {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff9f43, #ff6b35);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
    box-shadow: 0 15px 45px rgba(255, 107, 53, 0.4);
    animation: fadeInDown 0.8s ease, glow-pulse 3s ease-in-out infinite;
    position: relative;
}

.header-badge-gallery::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff9f43, #ff6b35, #ff9f43);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 0 15px 45px rgba(255, 107, 53, 0.4);
    }
    50% { 
        box-shadow: 0 20px 60px rgba(255, 107, 53, 0.6);
    }
}

@keyframes border-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

.header-badge-gallery i {
    font-size: 20px;
    animation: camera-flash 2s ease-in-out infinite;
}

@keyframes camera-flash {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.gallery-title {
    font-size: 68px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.gradient-text-gallery {
    background: linear-gradient(135deg, #27ae60, #2ecc71, #27ae60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { 
        filter: brightness(1);
    }
    50% { 
        filter: brightness(1.3);
    }
}

.sparkle-gallery {
    display: inline-block;
    animation: sparkle-rotate 2.5s ease-in-out infinite;
    margin-left: 20px;
    font-size: 55px;
    filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.5));
}

@keyframes sparkle-rotate {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% { 
        transform: scale(1.3) rotate(90deg);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
    75% { 
        transform: scale(1.3) rotate(270deg);
        opacity: 0.8;
    }
}

.gallery-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.title-underline-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.underline-dot-gallery {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    animation: pulse-dot-gallery 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.6);
}

.underline-line-gallery {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #27ae60, #2ecc71, #27ae60, transparent);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.underline-line-gallery::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine-gallery 2.5s ease-in-out infinite;
}

@keyframes pulse-dot-gallery {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 20px rgba(39, 174, 96, 0.6);
    }
    50% { 
        transform: scale(1.8);
        opacity: 0.6;
        box-shadow: 0 0 30px rgba(39, 174, 96, 0.8);
    }
}

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

/* Gallery Filter Section */
.gallery-filter {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 3px solid #e8e8e8;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 16px 35px;
    background: var(--white);
    color: var(--dark-color);
    border: 3px solid #e8e8e8;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(39, 174, 96, 0.25);
    border-color: #27ae60;
    background: linear-gradient(135deg, #f0fff4, #ffffff);
}

.filter-btn.active {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: var(--white);
    border-color: #27ae60;
    box-shadow: 0 12px 35px rgba(39, 174, 96, 0.4);
    transform: translateY(-3px);
}

.filter-btn.active:hover {
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.5);
}

.filter-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.filter-btn:hover i {
    transform: scale(1.1);
}

/* Gallery Grid Section */
.gallery-grid-section {
    padding: 100px 0 120px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #f5f7fa 100%);
    position: relative;
}

.gallery-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(39, 174, 96, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 159, 67, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    position: relative;
    z-index: 1;
}

/* Gallery Item */
.gallery-item {
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }

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

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

/* Gallery Card */
.gallery-card {
    position: relative;
    height: 380px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid transparent;
    background: var(--white);
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.3), rgba(255, 159, 67, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-card:hover::before {
    opacity: 1;
}

.gallery-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.3);
    border-color: #27ae60;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover img {
    transform: scale(1.2) rotate(2deg);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 40%, 
        rgba(0, 0, 0, 0.8) 80%,
        rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

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

/* Gallery Info */
.gallery-info {
    color: var(--white);
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-info h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.gallery-info p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 18px;
    font-weight: 300;
}

.gallery-category {
    display: inline-block;
    background: linear-gradient(135deg, #ff9f43, #ff6b35);
    color: var(--white);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

/* Gallery View Button */
.gallery-view-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 1));
    border: none;
    border-radius: 50%;
    color: #27ae60;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.gallery-card:hover .gallery-view-btn {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.gallery-view-btn:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: var(--white);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.6);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease;
}

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

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 85vh;
    margin: 5% auto;
    border-radius: 20px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 5px solid rgba(255, 255, 255, 0.1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.7) rotate(-5deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 40px;
    right: 60px;
    color: var(--white);
    font-size: 55px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 10000;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    color: #ff6b35;
    transform: rotate(90deg) scale(1.1);
    background: rgba(255, 107, 53, 0.2);
}

.modal-caption {
    text-align: center;
    color: var(--white);
    padding: 25px;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Modal Navigation */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 32px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-prev {
    left: 50px;
}

.modal-next {
    right: 50px;
}

.modal-nav:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    border-color: #27ae60;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.6);
}

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .gallery-header {
        padding: 120px 0 80px;
    }
    
    .gallery-title {
        font-size: 48px;
    }
    
    .sparkle-gallery {
        font-size: 40px;
    }
    
    .gallery-subtitle {
        font-size: 17px;
    }
    
    .gallery-filter {
        padding: 40px 0;
    }
    
    .filter-buttons {
        gap: 12px;
    }
    
    .filter-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .gallery-card {
        height: 300px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-close {
        top: 25px;
        right: 25px;
        font-size: 45px;
        width: 60px;
        height: 60px;
    }
    
    .modal-nav {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    
    .modal-prev {
        left: 25px;
    }
    
    .modal-next {
        right: 25px;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 36px;
    }
    
    .sparkle-gallery {
        font-size: 32px;
        margin-left: 10px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .gallery-card {
        height: 350px;
    }
}

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


/* ===== GALLERY PAGE MOBILE RESPONSIVE ===== */

@media (max-width: 768px) {
    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-card {
        height: 200px;
    }

    /* Gallery Info */
    .gallery-info h3 {
        font-size: 16px;
    }

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

    .gallery-category {
        font-size: 10px;
        padding: 4px 10px;
    }

    /* Gallery View Button */
    .gallery-view-btn {
        width: 40px;
        height: 40px;
    }

    .gallery-view-btn i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-card {
        height: 250px;
    }

    /* Gallery Info */
    .gallery-info h3 {
        font-size: 18px;
    }

    .gallery-info p {
        font-size: 13px;
    }

    .gallery-category {
        font-size: 11px;
        padding: 5px 12px;
    }
}
