/* ===== Gallery Page Styles ===== */

/* --- Hero --- */
.gallery-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    text-align: center;
    padding: 5rem 20px 4rem;
}

.gallery-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99,102,241,0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(236,72,153,0.2) 0%, transparent 50%);
    pointer-events: none;
}

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

.gallery-hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 30px rgba(99,102,241,0.4);
    animation: pulseIcon 2.5s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { box-shadow: 0 8px 30px rgba(99,102,241,0.4); transform: scale(1); }
    50%       { box-shadow: 0 8px 50px rgba(99,102,241,0.7); transform: scale(1.05); }
}

.gallery-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

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

.gstat span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #a5b4fc;
}

.gstat p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* --- Filter Bar --- */
.filter-bar {
    background: white;
    border-bottom: 2px solid #f1f5f9;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.filter-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.75rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.ftab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.3rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ftab:hover {
    background: #ede9fe;
    color: #6366f1;
}

.ftab.active {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    box-shadow: 0 4px 15px rgba(99,102,241,0.35);
}

.ftab i { font-size: 0.85rem; }

/* --- Quick Jump Bar --- */
.quickjump-bar {
    background: white;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.6rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.quickjump-bar .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.qj-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.qj-label i { color: #6366f1; }

.qj-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.qj-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
}

.qj-btn.hidden { display: none; }

.qj-work   { background: #ede9fe; color: #6366f1; border-color: #c4b5fd; }
.qj-college{ background: #fef3c7; color: #d97706; border-color: #fde68a; }
.qj-travel { background: #d1fae5; color: #059669; border-color: #6ee7b7; }
.qj-social { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

.qj-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.qj-work:hover   { background: #6366f1; color: white; }
.qj-college:hover{ background: #d97706; color: white; }
.qj-travel:hover { background: #059669; color: white; }
.qj-social:hover { background: #dc2626; color: white; }

/* --- Gallery Section --- */
.gallery-section {
    padding: 3rem 0 5rem;
    min-height: 60vh;
    background: #f8fafc;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: #6366f1;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.empty-state h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.empty-dots {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}

.empty-dots span {
    width: 10px;
    height: 10px;
    background: #6366f1;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.empty-dots span:nth-child(2) { animation-delay: 0.2s; background: #818cf8; }
.empty-dots span:nth-child(3) { animation-delay: 0.4s; background: #ec4899; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40%           { transform: scale(1.2); opacity: 1; }
}

/* --- Company Section --- */
.company-section {
    margin-bottom: 4rem;
}

.company-section.hidden { display: none; }

.company-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border-left: 5px solid var(--primary-color);
}

.company-header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.company-logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.iam-logo        { background: linear-gradient(135deg, #6366f1, #ec4899); }
.innovixus-logo  { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }

.company-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.company-header p {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.company-header p i { color: var(--primary-color); font-size: 0.8rem; }

.company-photo-count {
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* --- Photo Grid --- */
.photo-grid {
    columns: 3;
    column-gap: 1.25rem;
    display: none;
}

.photo-grid.has-photos { display: block; }

.photo-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.photo-item.hidden { display: none; }

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

.photo-wrap { position: relative; overflow: hidden; }

.photo-wrap img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay { opacity: 1; }
.photo-item:hover .photo-wrap img { transform: scale(1.06); }

.photo-info h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.photo-info p {
    color: rgba(255,255,255,0.65);
    font-size: 0.78rem;
}

.photo-zoom {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-zoom:hover {
    background: #6366f1;
    border-color: #6366f1;
    transform: scale(1.1);
}

/* --- Category Badge on cards --- */
.photo-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(99,102,241,0.85);
    backdrop-filter: blur(6px);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.innovixus-badge  { background: rgba(14,165,233,0.85); }
.college-badge    { background: rgba(234,179,8,0.9); color: #1a1a1a; }
.travel-badge     { background: rgba(16,185,129,0.85); }
.social-badge     { background: rgba(239,68,68,0.85); }

/* --- Category Section wrapper --- */
.category-section { margin-bottom: 1rem; }

/* --- Extra logo colors --- */
.college-project-logo { background: linear-gradient(135deg, #f59e0b, #d97706); }
.college-gather-logo  { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.travel-logo          { background: linear-gradient(135deg, #10b981, #059669); }
.temple-logo          { background: linear-gradient(135deg, #f97316, #ea580c); }
.social-logo          { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* --- Header accent colors --- */
.college-header { border-left-color: #8b5cf6; }
.travel-header  { border-left-color: #10b981; }
.social-header  { border-left-color: #ef4444; }

.college-count  { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.travel-count   { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.social-count   { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.93);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lb-image-wrap {
    max-width: 85vw;
    max-height: 75vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

.lb-image-wrap img {
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.lb-caption {
    text-align: center;
    color: white;
}

.lb-caption h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.lb-caption p  { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.lb-caption span { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 0.3rem; display: block; }

.lb-close, .lb-prev, .lb-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-close {
    top: -3rem;
    right: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.lb-prev {
    left: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 1rem;
}

.lb-next {
    right: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 1rem;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
    background: #6366f1;
    border-color: #6366f1;
    transform: scale(1.1);
}

.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.1); }

/* --- Responsive --- */
@media (max-width: 900px) {
    .photo-grid { columns: 2; }
    .gallery-hero h1 { font-size: 2.4rem; }
    .lb-prev { left: -2.5rem; }
    .lb-next { right: -2.5rem; }
}

@media (max-width: 600px) {
    .photo-grid { columns: 1; }
    .gallery-hero h1 { font-size: 2rem; }
    .gallery-stats { gap: 2rem; }
    .lb-prev, .lb-next { display: none; }
}
