/* Photo Gallery Styles - Modern Redesign */

/* Hero Section */
.gallery-hero {
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    color: white;
    padding: 140px 20px 80px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.gallery-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.title-divider-top {
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    margin: 20px auto 0;
    border-radius: 2px;
    position: relative;
}

.title-divider-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.gallery-hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 4px;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.title-main {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.title-accent {
    display: block;
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(255,255,255,0.5),
        3px 3px 15px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    font-weight: 400;
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

/* Category Navigation */
.category-navigation {
    background: #ffffff;
    border-bottom: 2px solid #f0f0f0;
    padding: 25px 20px;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-btn i {
    font-size: 1rem;
}

.category-btn:hover {
    background: #ff6600;
    border-color: #ff6600;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.category-btn.active {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    border-color: #ff6600;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

/* Gallery Content */
.gallery-content {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #fafafa;
}

.gallery-category {
    margin-bottom: 100px;
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    scroll-margin-top: 150px;
}

.gallery-category:last-child {
    margin-bottom: 0;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
}

.category-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.category-title i {
    color: #ff6600;
    font-size: 2.5rem;
}

.category-divider {
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, transparent, #ff6600, transparent);
    margin: 0 auto;
    border-radius: 3px;
    position: relative;
}

.category-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 2px;
    background: #ff6600;
    border-radius: 2px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: #fff;
    aspect-ratio: 1;
    border: 2px solid transparent;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1), rgba(255, 140, 0, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 102, 0, 0.25);
    border-color: #ff6600;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Featured Items */
.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1;
}

.gallery-item.featured:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 45px rgba(255, 102, 0, 0.3);
}

.gallery-item.featured:hover img {
    transform: scale(1.12);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.96);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    gap: 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    padding: 20px 25px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 102, 0, 0.9);
    border-color: #ff6600;
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.5);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 10001;
    border: 2px solid rgba(255,255,255,0.2);
}

.close:hover {
    color: #ff6600;
    background: rgba(0,0,0,0.9);
    border-color: #ff6600;
    transform: rotate(90deg) scale(1.1);
}

.image-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.75);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    backdrop-filter: blur(15px);
    z-index: 10002;
    border: 1px solid rgba(255,255,255,0.2);
    font-family: 'Poppins', sans-serif;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .gallery-hero {
        padding: 120px 20px 60px;
        min-height: 350px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 7px 18px;
    }

    .gallery-hero h1 {
        font-size: 4rem;
    }

    .title-main {
        font-size: 4rem;
    }

    .title-accent {
        font-size: 4.5rem;
    }

    .title-divider-top {
        width: 120px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .category-navigation {
        padding: 20px 15px;
        top: 70px;
    }

    .category-nav-container {
        gap: 12px;
    }

    .category-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .gallery-content {
        padding: 60px 20px;
    }

    .gallery-category {
        padding: 50px 30px;
        margin-bottom: 80px;
    }

    .category-title {
        font-size: 2.5rem;
    }

    .category-title i {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .gallery-item.featured {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 100px 20px 50px;
        margin-top: 60px;
        min-height: 300px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .gallery-hero h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }

    .title-main {
        font-size: 2.8rem;
        letter-spacing: 3px;
    }

    .title-accent {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .title-divider-top {
        width: 100px;
        height: 3px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .category-navigation {
        padding: 15px 10px;
        top: 60px;
        position: relative;
    }

    .category-nav-container {
        gap: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .category-nav-container::-webkit-scrollbar {
        height: 4px;
    }

    .category-nav-container::-webkit-scrollbar-thumb {
        background: #ff6600;
        border-radius: 2px;
    }

    .category-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .category-btn i {
        font-size: 0.9rem;
    }

    .gallery-content {
        padding: 40px 15px;
    }

    .gallery-category {
        padding: 40px 20px;
        margin-bottom: 60px;
        border-radius: 15px;
    }

    .category-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .category-title i {
        font-size: 1.8rem;
    }

    .category-divider {
        width: 100px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        margin-top: 30px;
    }

    .gallery-item.featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-icon {
        font-size: 2rem;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .close {
        top: 20px;
        right: 20px;
        font-size: 35px;
        width: 50px;
        height: 50px;
    }

    .nav-btn {
        font-size: 1.5rem;
        padding: 15px 20px;
    }

    .image-counter {
        bottom: 20px;
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .gallery-hero {
        padding: 90px 15px 40px;
        min-height: 280px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 14px;
    }

    .gallery-hero h1 {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
    }

    .title-main {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .title-accent {
        font-size: 2.4rem;
        letter-spacing: 3px;
    }

    .title-divider-top {
        width: 80px;
        height: 2.5px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .category-navigation {
        padding: 12px 8px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .category-btn i {
        font-size: 0.8rem;
    }

    .gallery-content {
        padding: 30px 10px;
    }

    .gallery-category {
        padding: 30px 15px;
        margin-bottom: 50px;
        border-radius: 12px;
    }

    .category-title {
        font-size: 1.7rem;
    }

    .category-title i {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item.featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-icon {
        font-size: 1.8rem;
    }

    .nav-btn {
        display: none;
    }

    .close {
        top: 15px;
        right: 15px;
        font-size: 30px;
        width: 45px;
        height: 45px;
    }

    .image-counter {
        bottom: 15px;
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}
