/* Main Stylesheet for FortuneDreamQuest */
@import url('https://fonts.googleapis.com/css2?family=Macondo&family=MedievalSharp&display=swap');

:root {
    --primary-dark: #0a0a1a;
    --secondary-dark: #1a1a3a;
    --accent-purple: #5a3a8a;
    --accent-blue: #3a5a8a;
    --accent-gold: #d4af37;
    --text-light: #f0f0f0;
    --text-muted: #b0b0b0;
}

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 26, 0.85);
    z-index: -1;
}

body {
    font-family: 'MedievalSharp', cursive;
    background-size: cover;
    color: var(--text-light);
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background-color: rgba(10, 10, 26, 0.85);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(90, 58, 138, 0.3);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 10%;
    width: 80px;
    height: 80px;
    background: rgba(58, 90, 138, 0.3);
    border-radius: 50%;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(90, 58, 138, 0.4);
}

header::after {
    content: '';
    position: absolute;
    top: -20px;
    right: 15%;
    width: 120px;
    height: 120px;
    background: rgba(90, 58, 138, 0.2);
    border-radius: 50%;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(90, 58, 138, 0.3);
}

header .cloud-1 {
    position: absolute;
    top: 10px;
    left: 5%;
    width: 40px;
    height: 40px;
    background: rgba(58, 90, 138, 0.25);
    border-radius: 50%;
    z-index: 0;
    box-shadow: 0 0 15px rgba(90, 58, 138, 0.3);
}

header .cloud-2 {
    position: absolute;
    bottom: 5px;
    right: 8%;
    width: 60px;
    height: 60px;
    background: rgba(90, 58, 138, 0.2);
    border-radius: 50%;
    z-index: 0;
    box-shadow: 0 0 15px rgba(90, 58, 138, 0.2);
}

header .cloud-3 {
    position: absolute;
    top: -5px;
    right: 40%;
    width: 50px;
    height: 50px;
    background: rgba(58, 90, 138, 0.15);
    border-radius: 50%;
    z-index: 0;
    animation: float 12s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(90, 58, 138, 0.2);
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 a {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 1.6rem;
    letter-spacing: 1px;
    font-family: 'Macondo', cursive;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 10, 26, 0.7), rgba(26, 26, 58, 0.7)), 
                url('../assets/img/hero-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 100px rgba(90, 58, 138, 0.3);
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    font-family: 'Macondo', cursive;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    box-shadow: 0 0 10px rgba(58, 90, 138, 0.5);
}

.scroll-down span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    transform: rotate(45deg);
    filter: drop-shadow(0 0 5px rgba(58, 90, 138, 0.7));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-15px) translateX(5px);
    }
    100% {
        transform: translateY(0px) translateX(0px);
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--accent-gold);
    font-family: 'Macondo', cursive;
}

/* About Section */
.about {
    background-color: var(--secondary-dark);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    border: 3px solid var(--accent-gold);
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Why Choose Us */
.why-choose {
    background: linear-gradient(to bottom, var(--primary-dark), var(--secondary-dark));
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    background-color: rgba(26, 26, 58, 0.5);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--accent-purple);
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(90, 58, 138, 0.3);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: 'Macondo', cursive;
}

/* Game Description */
.game-description {
    background: linear-gradient(rgba(10, 10, 26, 0.7), rgba(26, 26, 58, 0.7)), 
                url('../assets/img/game-bg.jpg') center/cover no-repeat;
    padding: 80px 0;
}

.game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.game-text {
    flex: 1;
    max-width: 800px;
}

.game-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c0a020;
    transform: scale(1.05);
}

/* FAQ Section */
.faq {
    background: linear-gradient(to bottom, var(--secondary-dark), var(--primary-dark));
}

.faq-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: rgba(26, 26, 58, 0.5);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--accent-purple);
    box-shadow: 0 0 15px rgba(90, 58, 138, 0.2);
}

.faq-item h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: 'Macondo', cursive;
}

/* Game Section */
.game-section {
    padding: 160px 0;
    background: linear-gradient(rgba(10, 10, 26, 0.7), rgba(26, 26, 58, 0.7)), 
                url('../assets/img/game-bg.jpg') center/cover no-repeat;
}

.game-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--accent-gold);
    font-family: 'Macondo', cursive;
}

.game-container {
    width: 100%;
    height: 600px;
    margin: 30px 0;
    border: 3px solid var(--accent-gold);
    border-radius: 10px;
    overflow: hidden;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.game-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    padding: 160px 0;
}

.contact-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--accent-gold);
    font-family: 'Macondo', cursive;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-family: 'Macondo', cursive;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-form {
    flex: 1;
}

.contact-form h2 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-family: 'Macondo', cursive;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--accent-purple);
    border-radius: 5px;
    background-color: rgba(10, 10, 26, 0.7);
    color: var(--text-light);
    font-family: 'Chango', cursive;
    font-size: 1rem;
    box-shadow: inset 0 0 10px rgba(90, 58, 138, 0.3);
}

.form-group textarea {
    resize: vertical;
}

/* Policy Pages */
.policy-section {
    padding: 160px 0;
}

.policy-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--accent-gold);
    font-family: 'Macondo', cursive;
}

.policy-section h2 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin: 30px 0 15px;
    text-align: left;
    font-family: 'Macondo', cursive;
}

.policy-section h3 {
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin: 25px 0 10px;
    font-family: 'Macondo', cursive;
}

.policy-section p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.policy-section ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.policy-section li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: var(--secondary-dark);
    margin: 15% auto;
    padding: 30px;
    border: 3px solid var(--accent-purple);
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(90, 58, 138, 0.5);
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.close:hover {
    color: var(--accent-gold);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    padding: 50px 0 20px;
    border-top: 2px solid var(--accent-purple);
}

.disclaimer {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border: 2px dashed var(--accent-gold);
    border-radius: 10px;
}

.disclaimer p {
    font-size: 1.1rem;
    color: var(--accent-gold);
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.partner-logos img {
    height: 60px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
}

.footer-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-links {
        flex-direction: row;
    }
    
    /* Desktop Header Floating Animation */
    header::before {
        animation: float 8s ease-in-out infinite;
    }
    
    header::after {
        animation: float 10s ease-in-out infinite;
    }
    
    header .cloud-3 {
        animation: float 12s ease-in-out infinite;
    }
}

.footer-column h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-family: 'Macondo', cursive;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-gold);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--accent-purple);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .game-content,
    .contact-content {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        font-family: 'Macondo', cursive;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul li {
        margin: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        font-family: 'Macondo', cursive;
    }
    
    section h2 {
        font-size: 2rem;
        font-family: 'Macondo', cursive;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .partner-logos {
        gap: 20px;
    }
    
    .partner-logos img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        font-family: 'Macondo', cursive;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    section h2 {
        font-size: 1.6rem;
        font-family: 'Macondo', cursive;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav ul li {
        margin: 5px 10px;
    }
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--secondary-dark);
    border: 1px solid var(--accent-purple);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.cookie-content a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-purple);
}

.btn-outline:hover {
    background-color: var(--accent-purple);
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}
