:root {
    --bg-light: #F1F5F9;
    --blue-primary: #60A5FA;
    --blue-dark: #1E3A8A;
    --accent-teal: #14B8A6;
    --text-dark: #0F172A;
    --white: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.header-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.header-description strong {
    color: var(--accent-teal);
    font-weight: 600;
}

.carousel-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 58, 138, 0.8);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.question-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.question-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-light), var(--white));
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--blue-primary);
}

.question-text {
    font-size: 1.3rem;
    color: var(--blue-dark);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.5;
}

.answer-input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--blue-primary);
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
}

.answer-input:focus {
    border-color: var(--blue-dark);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.3);
}

.special-message {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, var(--accent-teal), var(--blue-primary));
    color: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(20, 184, 166, 0.3);
    animation: fadeIn 1s ease-in-out;
}

.special-message.hidden {
    display: none;
}

.special-message h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.special-message p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.message-en {
    font-style: italic;
}

.message-ar {
    font-size: 1.2rem;
    direction: rtl;
    text-align: right;
}

.message-ja {
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.submit-btn.error {
    animation: shake 0.5s ease-in-out;
}

.origins-section {
    padding: 80px 0;
    background-color: var(--white);
}

.origins-section h2 {
    font-size: 2.2rem;
    color: var(--blue-dark);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.origins-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.origins-section ul {
    max-width: 600px;
    margin: 30px auto;
    list-style: none;
}

.origins-section li {
    padding: 15px 0;
    font-size: 1.1rem;
    border-left: 4px solid var(--blue-primary);
    padding-left: 20px;
    margin-bottom: 15px;
    background-color: var(--bg-light);
    border-radius: 0 10px 10px 0;
}

.origins-section strong {
    color: var(--blue-dark);
    font-weight: 600;
}

.concept-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.concept-section h2 {
    font-size: 2.2rem;
    color: var(--blue-dark);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--blue-primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 1.4rem;
    color: var(--blue-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    color: var(--text-dark);
    line-height: 1.7;
}

.ritual-section {
    padding: 80px 0;
    background-color: var(--white);
}

.ritual-section h2 {
    font-size: 2.2rem;
    color: var(--blue-dark);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.ritual-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--accent-teal), var(--blue-primary));
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(20, 184, 166, 0.2);
}

.ritual-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 500;
}

.faq-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.faq-section h2 {
    font-size: 2.2rem;
    color: var(--blue-dark);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--accent-teal);
}

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--blue-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-dark);
    line-height: 1.7;
}

.footer {
    background-color: var(--blue-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header-description {
        font-size: 1rem;
    }
    
    .carousel {
        margin: 0 20px;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    .question-card {
        margin: 0 20px;
        padding: 30px 25px;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .answer-input {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .special-message {
        padding: 25px 20px;
    }
    
    .special-message h3 {
        font-size: 1.5rem;
    }
    
    .special-message p {
        font-size: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ritual-card {
        margin: 0 20px;
        padding: 30px 25px;
    }
    
    .ritual-card p {
        font-size: 1.1rem;
    }
    
    .origins-section li {
        font-size: 1rem;
    }
}