﻿:root {
    --g-primary: #28a745;
    --g-secondary: #20c997;
    --g-accent: #17a2b8;
    --g-white: #ffffff;
    --g-dark: #0a0d14;
    --g-gray: #6e7673;
    --g-light-gray: #f8f9fa;
    --g-border: rgba(255, 255, 255, 0.1);
    --g-shadow: rgba(0, 0, 0, 0.15);
}

/*body {
    font-family: "Cairo", "Tajawal", sans-serif;
    background: linear-gradient( 135deg, #0a0d14 0%, #1a1a2e 50%, #0a0d14 100% );
    color: var(--g-white);
    overflow-x: hidden;
    line-height: 1.6;
}*/

/* Gallery Section */
.g-section {
    padding: 120px 0;
    position: relative;
}

 

@keyframes g-background-float {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.1) rotate(2deg);
    }
}

/* Container */
.g-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Section Title */
.g-section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
}

    .g-section-title::before {
        content: "";
        width: 120px;
        height: 8px;
        background: linear-gradient( 135deg, var(--g-primary), var(--g-secondary) );
        margin: 0 auto 40px;
        border-radius: 4px;
        display: block;
        box-shadow: 0 0 30px rgba(40, 167, 69, 0.3);
        animation: g-title-glow 3s ease-in-out infinite alternate;
    }

@keyframes g-title-glow {
    0% {
        box-shadow: 0 0 30px rgba(40, 167, 69, 0.3);
    }

    100% {
        box-shadow: 0 0 50px rgba(40, 167, 69, 0.3), 0 0 80px rgba(40, 167, 69, 0.2);
    }
}

.g-section-title h2 {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 25px 0;
    background: linear-gradient( 135deg, var(--g-white) 0%, var(--g-primary) 50%, var(--g-secondary) 100% );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/*.g-section-title p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}*/

/* Gallery Filters */
.g-filters-section {
    background: radial-gradient(circle at 25% 25%, rgba(40, 167, 69, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(32, 201, 151, 0.08) 0%, transparent 0%), linear-gradient(142deg, #007bff 30%, #20c997 50%, #255946 84%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--g-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px var(--g-shadow);
}

.g-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

    .g-filters-header h3 {
        font-size: 24px;
        font-weight: 700;
        color: var(--g-white);
        margin: 0;
    }

.g-view-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.g-view-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--g-border);
    border-radius: 50px;
    color: var(--g-white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .g-view-btn:hover {
        background: rgba(40, 167, 69, 0.1);
        border-color: var(--g-primary);
        color: var(--g-primary);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2);
    }

    .g-view-btn.active {
        background: linear-gradient( 135deg, var(--g-primary), var(--g-secondary) );
        border-color: var(--g-primary);
        color: var(--g-white);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    }

    .g-view-btn i {
        font-size: 18px;
    }

/* Gallery Grid */
.g-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.g-gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid var(--g-border);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    height: 350px;
    box-shadow: 0 15px 35px var(--g-shadow);
    animation: g-fade-in 0.8s ease-out;
}

    .g-gallery-item:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 3px var(--g-primary), 0 0 40px rgba(40, 167, 69, 0.2);
        border-color: var(--g-primary);
    }

        .g-gallery-item:hover .g-gallery-overlay {
            opacity: 1;
            transform: translateY(0);
        }

@keyframes g-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Image */
.g-gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

    .g-gallery-image::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient( 180deg, transparent 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.7) 100% );
        transition: opacity 0.3s ease;
    }

.g-gallery-item:hover .g-gallery-image::before {
    opacity: 0.8;
}

/* Type Indicators */
.g-type-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .g-type-indicator.image {
        background: rgba(32, 201, 151, 0.9);
        color: var(--g-white);
    }

    .g-type-indicator.video {
        background: rgba(255, 107, 107, 0.9);
        color: var(--g-white);
    }

/* Video Elements */
.g-video-container {
    position: relative;
}



.gallery-thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    pointer-events: none;
}

.g-gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.g-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

    .g-video-overlay i {
        font-size: 48px;
        color: var(--g-white);
        opacity: 0.9;
        transition: all 0.3s ease;
    }

.g-gallery-item:hover .g-video-overlay i {
    font-size: 56px;
    opacity: 1;
    color: var(--g-primary);
}

.g-video-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--g-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
}

/* Gallery Overlay */
.g-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient( 180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100% );
    padding: 30px 25px 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 4;
}

.g-gallery-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--g-white);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.g-gallery-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.g-view-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient( 135deg, var(--g-primary), var(--g-secondary) );
    color: var(--g-white);
    border: none;
    border-radius: 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .g-view-btn-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    }

/* Load More Button */
.g-load-more-container {
    text-align: center;
    margin-top: 60px;
}

.g-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: #28a745;
    backdrop-filter: blur(20px);
    border: 2px solid #49a760;
    border-radius: 50px;
    color: #ffffff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .g-load-more-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.1), transparent );
        transition: left 0.5s ease;
    }

    .g-load-more-btn:hover::before {
        left: 100%;
    }

    .g-load-more-btn:hover {
        background: linear-gradient(115deg, #28a745 11%, #007bff 138%);
        border-color: var(--g-primary);
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgb(40 167 69 / 24%);
    }

    .g-load-more-btn i {
        font-size: 20px;
        transition: transform 0.3s ease;
    }

    .g-load-more-btn:hover i {
        transform: rotate(180deg);
    }

/* Loading Spinner */
.g-loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

    .g-loading.active {
        display: flex;
    }

.g-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(40, 167, 69, 0.3);
    border-top: 3px solid var(--g-primary);
    border-radius: 50%;
    animation: g-spin 1s linear infinite;
}

@keyframes g-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hidden Items */
.g-gallery-item.hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .g-section {
        padding: 80px 0;
    }

    .g-section-title h2 {
        font-size: 36px;
    }

/*    .g-section-title p {
        font-size: 18px;
    }*/

    .g-filters-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .g-view-controls {
        justify-content: center;
    }

    .g-view-btn {
        flex: 1;
        min-width: 120px;
    }

    .g-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .g-gallery-item {
        height: 300px;
    }

    .g-gallery-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Delays */
.g-gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.g-gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.g-gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.g-gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

.g-gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}

.g-gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

