/* Galaxy Gallery Styles */

:root {
    --primary-color: #00d4ff;
    --secondary-color: #7b2ff7;
    --background-dark: #0a0a0a;
    --surface-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --border-radius: 12px;
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #00d4ff, #7b2ff7);
}

/* Navigation for Galaxy */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-brand .logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Galaxy Hero Section */
.galaxy-hero {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 247, 0.1));
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.galaxy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 47, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-title i {
    color: var(--primary-color);
    animation: twinkle 2s infinite alternate;
}

.hero-title i:last-child {
    animation-delay: 0.5s;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.stat i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Gallery Categories */
.gallery-categories {
    padding: 2rem 0;
    background: var(--surface-dark);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-gray);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.category-tab:hover,
.category-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

/* Gallery Grid */
.galaxy-gallery {
    padding: 4rem 0;
    background: var(--background-dark);
    min-height: 70vh;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.image-container {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.logo-image {
    object-fit: contain;
    background: white;
    padding: 2rem;
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.gallery-card:hover .image-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.view-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.5);
}

.gallery-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-info .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-info .description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.image-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--surface-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 212, 255, 0.8);
    transform: scale(1.1);
}

.modal-image-container {
    position: relative;
    max-height: 70vh;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-info {
    padding: 2rem;
    background: var(--surface-dark);
}

.modal-info h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-info p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.modal-info p:last-of-type {
    color: var(--text-gray);
    line-height: 1.6;
}

.modal-navigation {
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.nav-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Animations */
@keyframes twinkle {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

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

.gallery-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat {
        padding: 1.5rem 1rem;
        min-width: 120px;
    }
    
    .category-tabs {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-info h3 {
        font-size: 1.3rem;
    }
    
    .modal-navigation {
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .galaxy-hero {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .image-container {
        height: 200px;
    }
    
    .gallery-info {
        padding: 1rem;
    }
    
    .tags {
        justify-content: center;
    }
}

/* High-resolution displays */
@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-stats {
        gap: 4rem;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .gallery-card {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(0, 212, 255, 0.15);
    }
    
    .modal-content {
        background: var(--surface-dark);
        border-color: rgba(0, 212, 255, 0.4);
    }
}

/* Remove all fade animations from gallery */
.gallery-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

.gallery-card:hover {
    transform: scale(1.02) !important;
    transition: transform 0.3s ease !important;
}

.image-overlay {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    transition: none !important;
}

.image-overlay:hover {
    background: rgba(0, 0, 0, 0.5) !important;
    transition: background 0.3s ease !important;
}

/* Ensure no animation delays anywhere */
* {
    transition-delay: 0s !important;
    animation-delay: 0s !important;
}

/* Remove any fade-in animations from the entire page */
body * {
    animation: none !important;
    transition: none !important;
}

/* Only allow hover transformations */
.gallery-card:hover,
.image-container:hover,
.gallery-info:hover {
    transition: transform 0.3s ease !important;
}

.gallery-card:hover {
    transform: scale(1.02) !important;
}

.image-container:hover {
    transform: none !important;
}

.gallery-info:hover {
    transform: none !important;
}