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

body {
    font-family: 'Arial', sans-serif;
    /*background: linear-gradient(135deg, #e3e0de 0%, #dbd9d8 25%, #dbd9d8 50%, #dbd9d8 75%, #dbd9d8 100%);*/
    background: linear-gradient(135deg,
            rgba(250, 250, 250, 0.9),
            rgba(100, 250, 250, 0.9)) !important;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.header {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    margin-top: 0;
    /* Navbar spacing handled by body padding */
}

.header h1 {
    color: rgba(10, 50, 90, 1.0) !important;
    font-size: 3.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.5rem;
    animation: fadeInDown 1.2s ease-out;
    font-weight: bold;
    letter-spacing: 2px;
}

.header p {
    color: rgba(10, 50, 90, 1.0) !important;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.5s ease-out;
}

.language-switcher {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.language-switcher select {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 1.0);
    color: #333;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.language-switcher select:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.card {
    position: relative;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: fadeInUp 0.8s ease-out;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.card.unlocked {
    background: rgba(255, 255, 255, 0.15);
}

.card.locked {
    background: rgba(0, 0, 0, 0.4);
    filter: blur(1px) grayscale(0.8);
    opacity: 0.7;
}

.card.unlocked:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    z-index: 2;
}

.card-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.card-tagline {
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.card.unlocked:hover .card-tagline {
    opacity: 1;
    transform: translateY(0);
}

.lock-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.8rem;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #dbd9d8 0%, #ecebea 100%);
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    color: white;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.modal-content p {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.modal-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.modal-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-signup {
    background: #ff9933;
    color: white;
    border: 2px solid transparent;
}

.btn-login {
    background: #ff9933;
    color: white;
    border: 2px solid transparent;
}

.modal-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 153, 51, 0.3);
}

.btn-signup:hover {
    background: #ffcc00;
    color: black;
}

.btn-login:hover {
    background: #ffcc00;
    color: black;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: white;
    transform: scale(1.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Footer Styles */
#footer {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 4rem 0 0;
    position: relative;
}

.footer-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ff9933;
    font-family: "Cinzel", serif;
    position: relative;
    padding-bottom: 10px;
}

.footer-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ff9933;
}

.footer-logo {
    font-family: "Cinzel", serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff9933;
    margin-top: 1rem;
}

.footer-section p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #ff9933;
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: #bbb;
}

.footer-contact-item i {
    color: #ff9933;
    width: 20px;
    text-align: center;
}

.social-icons-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #ff9933;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 153, 51, 0.3);
}

.newsletter {
    margin-top: 1.5rem;
}

.newsletter h4 {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.newsletter-form input::placeholder {
    color: #ccc;
}

.newsletter-form button {
    background: #ff9933;
    color: white;
    border: none;
    padding: 0 1.2rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #e67e00;
}

.copyright-section {
    text-align: center;
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.3);
    color: #bbb;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .header p {
        font-size: 1rem;
    }

    .language-switcher {
        position: static;
        margin-top: 1.5rem;
        text-align: center;
    }

    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .card {
        height: 180px;
    }

    .modal-content {
        padding: 2rem;
        max-width: 350px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-btn {
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .card {
        height: 160px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-content {
        padding: 1.5rem;
    }
}

/* Card entrance animations with staggered delay */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(n+5) {
    animation-delay: 0.5s;
}

#audioToggle {
    position: sticky;
    top: 0;
    z-index: 999;
}