/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

/* Hero Section */
.gallery-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

.hero-title {
    font-size: 4.5em;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-word {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 0.8s ease forwards;
}

.title-word:nth-child(1) { animation-delay: 0.2s; }
.title-word:nth-child(2) { animation-delay: 0.4s; }
.title-word:nth-child(3) { animation-delay: 0.6s; }

.hero-subtitle {
    font-size: 1.3em;
    color: #b0b0b0;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-stats {
    display: flex;
    gap: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-1 {
    width: 250px;
    height: 300px;
    top: 50px;
    left: 0;
    transform: rotate(-5deg);
    animation: floatCard 4s ease-in-out infinite;
}

.card-2 {
    width: 280px;
    height: 200px;
    top: 150px;
    left: 200px;
    transform: rotate(3deg);
    animation: floatCard 4s ease-in-out 1s infinite;
}

.card-3 {
    width: 220px;
    height: 250px;
    top: 50px;
    left: 350px;
    transform: rotate(-2deg);
    animation: floatCard 4s ease-in-out 2s infinite;
}

.card:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
}

/* Modern Gallery */
.modern-gallery {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    border: 2px solid #333;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Modern Grid */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.gallery-card {
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 20px;
}

.gallery-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.card-front {
    background: #1a1a2e;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 30px 20px 20px;
    text-align: left;
}

.card-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-badge.leadership {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.card-badge.team {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.card-badge.office {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.card-overlay h3 {
    font-size: 1.3em;
    margin-bottom: 5px;
    color: white;
}

.card-overlay p {
    color: #b0b0b0;
    font-size: 0.9em;
}

.card-back {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.back-content {
    text-align: center;
}

.back-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: white;
}

.role {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
}

.description {
    color: #b0b0b0;
    margin-bottom: 25px;
    line-height: 1.5;
}

.card-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.card-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.card-stats .stat i {
    color: #667eea;
    font-size: 1.2em;
}

.card-stats .stat span {
    font-size: 0.8em;
    color: #888;
}

/* Gallery Stats */
.gallery-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-card i {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 15px;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #1a1a2e;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

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

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.2em;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-body {
    display: flex;
    max-height: 80vh;
}

#lightboxImage {
    max-width: 60%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lightbox-info h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: white;
}

.lightbox-info p {
    color: #b0b0b0;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotation, 0deg));
    }
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .modern-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3em;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .category-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    
    .lightbox-body {
        flex-direction: column;
    }
    
    #lightboxImage {
        max-width: 100%;
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .container, .hero-container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5em;
    }
    
    .modern-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}