/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 0;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.7) 0%, rgba(106, 27, 154, 0.7) 50%, rgba(255, 111, 0, 0.7) 100%);
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.1);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    color: var(--white);
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    color: var(--primary-gold);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-bonus {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.15);
    border-left: 4px solid var(--primary-gold);
    border-radius: 5px;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-bonus strong {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

/* Labyrinth Game Section */
.labyrinth-section {
    padding: 4rem 0;
    background: var(--light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--primary-orange) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.5);
}

.labyrinth-game {
    position: relative;
    min-height: 450px;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.1) 0%, rgba(106, 27, 154, 0.1) 100%);
    border-radius: 15px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.light-node {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-orange) 100%);
    color: var(--primary-blue);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 3px solid transparent;
}

.light-node::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.light-node:hover::before {
    opacity: 1;
}

.light-node:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    border-color: var(--primary-gold);
}

.light-node.selected {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    color: var(--white);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
    transform: scale(1.1);
    border-color: var(--primary-gold);
    animation: pulse 1s ease-in-out infinite;
}

.light-node.completed {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: var(--white);
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.8);
    animation: successPulse 0.6s ease-out;
}

.light-node.correct {
    animation: correctAnimation 0.6s ease-out;
}

.light-node.error {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    animation: shake 0.5s ease-in-out;
}

.node-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.node-number {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 700;
}

.sparkle-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.9) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: sparkle 1s ease-out;
    pointer-events: none;
}

@keyframes sparkle {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 1);
    }
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes correctAnimation {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Game Message */
.game-message {
    display: none;
    text-align: center;
    padding: 1rem 2rem;
    margin: 1.5rem 0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    animation: slideDown 0.3s ease-out;
}

.game-message.success {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.game-message.error {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.game-message.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.game-message.info {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.4);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-controls {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Story Section */
.story-section {
    padding: 4rem 0;
    background: var(--white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.story-text p {
    margin-bottom: 1.5rem;
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Accordion Section */
.accordion-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05) 0%, rgba(106, 27, 154, 0.05) 100%);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: block;
}

.feature-card h3 {
    color: var(--primary-purple);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Additional Info Section */
.additional-info-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05) 0%, rgba(106, 27, 154, 0.05) 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-gold);
}

.info-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
        margin-top: 0;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-bonus {
        font-size: 1rem;
        padding: 1rem;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-image {
        max-width: 100%;
    }

    .game-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        width: 100%;
    }

    .progress-bar {
        width: 100%;
    }

    .labyrinth-game {
        grid-template-columns: repeat(2, 1fr);
        min-height: 350px;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .light-node {
        padding: 1.5rem 1rem;
    }

    .node-icon {
        font-size: 2rem;
    }

    .story-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-bonus {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .game-stats {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .labyrinth-game {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .light-node {
        padding: 1.5rem 1rem;
    }

    .node-icon {
        font-size: 1.8rem;
    }

    .game-message {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
}

