/* Navigation Styles */
nav {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: #e5e7eb;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    color: #fa6027;
    background: rgba(255, 102, 0, 0.1);
}

.nav-link.active {
    color: #fa6027;
    background: rgba(255, 60, 0, 0.15);
    border-bottom: 2px solid #fa6027;
}


/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Gallery Item */
.gallery-item {
    opacity: 1;
    transition: all 0.5s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Gallery Card */
.gallery-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 23, 42, 0.9), rgba(11, 12, 16, 0.9));
    border: 2px solid rgba(255, 115, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    aspect-ratio: 5/7;
}

.gallery-card:hover {
    border-color: #fa6027;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(255, 145, 0, 0.4),
        0 0 80px rgba(255, 115, 0, 0.3);
}

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

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


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 2rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 
        0 0 60px rgba(255, 94, 0, 0.5),
        0 0 120px rgba(255, 136, 0, 0.3);
    animation: zoomIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #fa6027;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    text-shadow: 0 0 20px rgba(255, 94, 0, 0.8);
}

.modal-close:hover {
    color: #fa6027;
    transform: rotate(90deg) scale(1.2);
}


/* Modal Navigation */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 136, 0, 0.2);
    border: 2px solid #fa6027;
    color: #fa6027;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: linear-gradient(135deg, #fa6027, #fa6027);
    color: #0B0C10;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 136, 0, 0.6);
}

.modal-prev {
    left: 2rem;
}

.modal-next {
    right: 2rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
    }
    
    .modal-nav {
        font-size: 1.5rem;
        padding: 0.75rem 1rem;
    }
    
    .modal-prev {
        left: 1rem;
    }
    
    .modal-next {
        right: 1rem;
    }
    
    .modal-caption {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
        bottom: 1rem;
    }
}

/* Loading Animation */
.gallery-item {
    animation: slideUp 0.5s ease forwards;
}

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

/* Responsive Navigation */
@media (max-width: 768px) {
    nav .flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav .flex > div {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Hover Effects */
.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 123, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

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

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.gallery-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.1),
        transparent
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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