/* Hero Section */
.gallery-hero {
    position: relative;
    min-height: 50vh;
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5f 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 0;
    padding: 120px 0 60px;
}

.gallery-hero::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" opacity="0.1"><path d="M10 10 L90 10 L90 90 L10 90 Z" fill="none" stroke="%23FF6A00" stroke-width="2"/><circle cx="50" cy="50" r="40" fill="none" stroke="%23FFFFFF" stroke-width="2"/><path d="M20 20 L80 20 L80 80 L20 80 Z" fill="none" stroke="%23FF6A00" stroke-width="1.5"/></svg>');
    background-size: 60px 60px;
}

.gallery-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,106,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-title span {
    color: var(--accent);
    display: block;
    font-size: 0.5em;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-breadcrumb a:hover {
    color: var(--accent);
}

.hero-breadcrumb i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* Gallery Stats */
.gallery-stats {
    background: white;
    padding: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--accent);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Filter Section */
.gallery-filter-section {
    background: var(--light);
    padding: 10px 0;
    /* position: sticky; */
    top: 86px;
    z-index: 90;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,106,0,0.2);
}

.filter-btn i {
    margin-right: 8px;
}

.filter-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
}

.filter-info span {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Gallery Grid */
.gallery-grid-section {
    padding: 60px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Gallery Card */
.gallery-card-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    height: 280px;
}

.gallery-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 50px rgba(255,106,0,0.25);
}

.gallery-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11,37,69,0) 0%, rgba(11,37,69,0.8) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-image-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card-modern:hover .gallery-image-modern {
    transform: scale(1.1);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: white;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-card-modern:hover .gallery-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-card-category {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.gallery-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.gallery-card-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-meta {
        display: flex;
        gap: 15px;
        font-size: 0.8rem;
        opacity: 0.8;
    }

.gallery-card-meta i {
    margin-right: 5px;
    color: var(--accent);
}

.gallery-zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 3;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    border: 2px solid white;
}

.gallery-card-modern:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

.gallery-zoom-icon:hover {
    background: var(--accent);
    transform: scale(1.1) rotate(90deg);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(255,215,0,0.3);
}

/* Masonry Layout for Featured */
.gallery-grid.masonry {
    display: block;
    columns: 4 300px;
    column-gap: 20px;
}

.gallery-grid.masonry .gallery-card-modern {
    break-inside: avoid;
    margin-bottom: 20px;
    height: auto;
}

.gallery-grid.masonry .gallery-image-modern {
    height: auto;
    min-height: 200px;
}

/* Featured Section */
.featured-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5f 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,106,0,0.6) 40%, transparent 80%);
    border-radius: 50%;
}

.featured-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.featured-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1px;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.featured-carousel {
    position: relative;
    z-index: 2;
}

.featured-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    margin: 10px;
}

.featured-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.featured-card-content {
    padding: 20px;
}

.featured-card-content h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.featured-card-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: white;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.video-card {
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px rgba(255,106,0,0.15);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid white;
    z-index: 2;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

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

/* Modal Enhancements */
.gallery-modal .modal-content {
    background: transparent;
    border: none;
}

.gallery-modal .modal-body {
    padding: 0;
}

.modal-image-container {
    position: relative;
}

.modal-image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.modal-image-caption {
    background: rgba(11,37,69,0.95);
    color: white;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    margin-top: -5px;
}

.modal-image-caption h3 {
    color: var(--accent);
    margin-bottom: 5px;
}

.modal-image-caption p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.modal-image-caption .meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

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

/* Responsive */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap:30px;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        min-height: 40vh;
        padding: 100px 0 40px;
    }
    .hero-title {
        font-size: 2rem;
    }

    .featured-title {
        font-size: 2rem;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .filter-container {
        gap: 5px;
        margin-bottom: 10px;
    }

    .filter-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .gallery-card-modern {
        height: 220px;
    }

    .gallery-card-title {
        font-size: 1.1rem;
    }

    .gallery-card-description {
        font-size: 0.8rem;
    }

    .gallery-grid.masonry {
        columns: 2 200px;
    }
}

@media (max-width: 576px) {
    .filter-container {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 250px;
    }

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

    .gallery-card-modern {
        height: 250px;
    }

    .gallery-grid.masonry {
        columns: 1 100%;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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