* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    background-color: #f0f0f0;
    min-height: 100vh;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px 10px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    background-color: transparent;
}

.language-switch {
    cursor: pointer;
    padding: 7px;
    border-radius: 14px; 
    filter: brightness(80%); 
    filter: opacity(80%); 
    color: white;
    background-color: black; 
    font-family: "noto-mono", mono;
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
}

.email-link {
    text-decoration: none; 
    padding: 7px;
    border-radius: 14px;
    filter: brightness(80%); 
    filter: opacity(80%); 
    color: white;
    background-color: black; 
    font-family: "noto-mono", mono;
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    cursor: grab;
}

.container:active {
    cursor: grabbing;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(90%); 
    opacity: 0;
    z-index: 0;
}

.card.active {
    opacity: 1;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Video background styles */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.card h2 {  
    font-size: 4em;
    margin-bottom: 20px; 
    font-family: "orbitron", sans-serif;
    font-weight: 700;
    font-style: normal; 
    text-shadow:
      1px 5px 5px black,
      0 0 1em white,
      0 0 0.2em black;
}

.card p { 
    font-size: 1.7em;
    line-height: 1.6; 
    font-family: "gloria-hallelujah", sans-serif;
    font-weight: 900;
    font-style: normal;  
    border-radius: 4px;  
    transition: background-color 0.3s;
    text-shadow: 1px 5px 5px black;
    margin-bottom: 20px;
}

/* Indicators container */
.indicators-container {
    position: fixed;
    top: 50px; /* Below the top bar */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    z-index: 100;
}

.indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    overflow: hidden;
    /* Gray tint effect */
    filter: grayscale(80%) brightness(70%);
    /* Sphere effect with shadows */
    box-shadow: 
        inset 0 3px 8px rgba(255, 255, 255, 0.5),
        inset 0 -3px 8px rgba(0, 0, 0, 0.5),
        0 3px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    pointer-events: none;
}

.indicator.active {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.2);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        inset 0 4px 10px rgba(255, 255, 255, 0.6),
        inset 0 -4px 10px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(255, 255, 255, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 101;
}

.card-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    pointer-events: none;
}

.card-indicator.active {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.2);
    border: 3px solid rgba(255, 255, 255, 0.9);
    /* Enhanced shadow for active state */
    box-shadow: 
        inset 0 8px 20px rgba(255, 255, 255, 0.6),
        inset 0 -8px 20px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(255, 255, 255, 0.8),
        0 8px 15px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Create highlight reflection on indicators */
.card-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.view-gallery-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    font-family: "noto-mono", mono;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-gallery-btn:hover {
    background-color: white;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* App Gallery Styles */
.app-galleries-wrapper {
    width: 100%;
    padding: 120px 20px 60px;
}

.app-gallery {
    display: none;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.app-gallery.active {
    display: block;
}

.gallery-title {
    font-family: "orbitron", sans-serif;
    font-weight: 700;
    font-size: 3em;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.gallery-subtitle {
    font-family: "gloria-hallelujah", sans-serif;
    font-weight: 400;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Zoom Modal Styles */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    overflow: hidden;
}

.zoom-modal.active {
    display: block;
}

.zoom-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.zoom-image {
    position: absolute;
    transform-origin: center;
    max-width: 100%;
    cursor: move;
    touch-action: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
}

.zoom-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.zoom-instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 20px;
    font-family: "noto-mono", mono;
    z-index: 2001;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card h2 {
        font-size: 3em;
    }
    
    .card p {
        font-size: 1.3em;
    }
    
    .view-gallery-btn {
        font-size: 1em;
        padding: 10px 25px;
    }
    
    .gallery-title {
        font-size: 2.5em;
    }
    
    .gallery-subtitle {
        font-size: 1.3em;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .indicator {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .card h2 {
        font-size: 2.5em;
    }
    
    .card p {
        font-size: 1.1em;
    }
    
    .view-gallery-btn {
        font-size: 0.9em;
        padding: 8px 20px;
    }
    
    .gallery-title {
        font-size: 2em;
    }
    
    .gallery-subtitle {
        font-size: 1.1em;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    
    .indicator {
        width: 50px;
        height: 50px;
        margin: 0 5px;
    }
    
    .zoom-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .zoom-instructions {
        font-size: 0.9em;
        padding: 8px 15px;
    }
}