/* Home Page Specific Styles */

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.7) 0%, rgba(26, 48, 9, 0.8) 100%);
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

.hero-image-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-left img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--gold);
}

.hero-content {
    text-align: left;
    color: var(--white);
}

.hero-title {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    font-weight: bold;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-promo {
    background: rgba(212, 175, 55, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--gold);
    margin-top: 2rem;
}

.promo-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--gold-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.ornament-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--green-primary), transparent);
    opacity: 0.5;
    z-index: 1;
}

/* Game Section */
.game-section {
    padding: 4rem 0;
    background: var(--cream);
}

.section-title {
    font-size: 2.5rem;
    color: var(--green-primary);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold);
}

.section-subtitle {
    text-align: center;
    color: var(--green-dark);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.ritual-game {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--gold);
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--green-primary);
    color: var(--white);
    border-radius: 5px;
    flex-wrap: wrap;
    gap: 1rem;
}

.game-stats div {
    font-weight: bold;
    font-size: 1.1rem;
}

.game-area {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--papyrus);
    border: 3px solid var(--green-primary);
    border-radius: 10px;
    overflow: hidden;
    cursor: crosshair;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 80, 22, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.game-start-btn {
    font-size: 1.3rem;
    padding: 15px 40px;
}

.game-mummy {
    position: absolute;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    z-index: 5;
    animation: fallDown linear;
    user-select: none;
    pointer-events: auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-mummy:hover {
    transform: scale(1.2);
}

@keyframes fallDown {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(440px) rotate(360deg);
        opacity: 1;
    }
}

.game-over-message {
    text-align: center;
    color: var(--white);
}

.game-over-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.game-over-message p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.game-restart-btn {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    padding: 12px 30px;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--gold);
}

.about-text h2 {
    color: var(--green-primary);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.about-description p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-description strong {
    color: var(--green-primary);
    font-weight: bold;
}

/* Legends Section */
.legends-section {
    padding: 4rem 0;
    background: var(--cream);
}

.legends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.legend-card {
    background: var(--white);
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--gold);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.legend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.legend-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--cream);
}

.legend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.legend-card:hover .legend-image img {
    transform: scale(1.1);
}

.legend-card h3 {
    color: var(--green-primary);
    font-size: 1.8rem;
    margin: 1.5rem 1.5rem 1rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.legend-card p {
    line-height: 1.8;
    text-align: justify;
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: var(--white);
}

.accordion {
    max-width: 800px;
    margin: 2rem auto 0;
}

.accordion-item {
    background: var(--white);
    border: 2px solid var(--green-primary);
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--green-primary);
    color: var(--white);
    transition: background 0.3s;
}

.accordion-header:hover {
    background: var(--green-light);
}

.accordion-header h3 {
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
}

.accordion-icon {
    font-size: 1rem;
    transition: transform 0.3s;
    margin-left: 1rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-content p {
    padding: 1.5rem 0;
    line-height: 1.8;
    text-align: justify;
}

.accordion-image {
    margin: 1rem 0;
    text-align: center;
}

.accordion-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image-left {
        order: 1;
    }

    .hero-content {
        order: 2;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .legends-grid {
        grid-template-columns: 1fr;
    }

    .game-area {
        height: 300px;
    }

    .game-mummy {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }

    @keyframes fallDown {
        from {
            transform: translateY(0) rotate(0deg);
            opacity: 1;
        }
        to {
            transform: translateY(335px) rotate(360deg);
            opacity: 1;
        }
    }

    .accordion-header h3 {
        font-size: 1.1rem;
    }
}

