/* Gallery Hero Section */
.gallery-hero {
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.gallery-hero .hero-content {
    height: 60vh;
}

.gallery-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.gallery-hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    max-width: 600px;
    opacity: 0.9;
}

/* Gallery Container */
.gallery-container {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent-color);
    color: var(--background-color);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(30px);
    opacity: 0;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 51, 0.8));
    padding: 2rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-item-category {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Upload Container */
.upload-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 4rem;
}

.upload-area {
    border: 2px dashed var(--accent-color);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: rgba(0, 204, 255, 0.05);
}

.upload-area.drag-over {
    background: rgba(0, 204, 255, 0.1);
    border-color: var(--text-color);
}

.upload-area i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: rgba(255, 255, 255, 0.7);
}

.file-input {
    display: none;
}

/* Preview Grid */
.upload-preview {
    margin-top: 2rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.preview-item .remove-btn:hover {
    background: rgba(255, 0, 0, 0.7);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 51, 0.95);
    z-index: 1000;
    padding: 2rem;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.2);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.image-info {
    margin-top: 1rem;
    color: white;
}

.image-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.image-metadata {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-container {
        padding: 2rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .floating-home {
        top: 1rem;
        left: 1rem;
        width: 50px;
        height: 50px;
    }

    .floating-home i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating Home Button */
.floating-home {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.floating-home:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.floating-home i {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.bubble-container {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.bubble-shine {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 45%,
        transparent 70%
    );
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ===== Coming Soon placeholder ===== */
.gallery-soon {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 10vw, 8rem) 1.5rem;
    background:
      radial-gradient(ellipse at top, rgba(0, 51, 102, 0.45), transparent 60%),
      var(--background-color);
    text-align: center;
}

.gallery-soon__inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.gallery-soon__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.42em;
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
}

.gallery-soon__title {
    font-family: var(--font-sans, Inter, system-ui, sans-serif);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--text-color);
    margin: 0;
}

.gallery-soon__copy {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.65;
    max-width: 52ch;
    margin: 0 auto;
}

.gallery-soon__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.95rem 1.75rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--background-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.gallery-soon__cta i { font-size: 1.25rem; }
.gallery-soon__cta:hover,
.gallery-soon__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 204, 255, 0.3);
    outline: none;
}
.gallery-soon__cta:active { transform: translateY(0); }

.gallery-soon__handle {
    color: var(--text-dim, rgba(235, 244, 255, 0.5));
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin: 0.25rem 0 0;
}
