/* Root Variables */
:root {
    --primary-green: #1a4d3a;
    --secondary-green: #2d7a57;
    --accent-gold: #d4af37;
    --dark-brown: #3d2914;
    --light-gold: #f4e4a1;
    --stone-gray: #6b7280;
    --jungle-dark: #0f2419;
    --firefly-glow: #b8ff00;
    --mask-emerald: #50c878;
    --text-light: #f9fafb;
    --text-dark: #1f2937;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--jungle-dark);
    overflow-x: hidden;
}

/* Animated Background */
.jungle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--jungle-dark) 0%, var(--primary-green) 50%, var(--dark-brown) 100%);
}

.fireflies {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--firefly-glow), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--firefly-glow), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--firefly-glow), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--firefly-glow), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--firefly-glow), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: fireflies 10s linear infinite;
    opacity: 0.6;
}

@keyframes fireflies {
    from { transform: translateX(0); }
    to { transform: translateX(100px); }
}

.vines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23234d3a' fill-opacity='0.1'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: vines-sway 15s ease-in-out infinite;
}

@keyframes vines-sway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(5px) rotate(1deg); }
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 77, 58, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-gold);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--mask-emerald), var(--accent-gold));
    box-shadow: 0 0 20px var(--mask-emerald);
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--accent-gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-gold);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 0 20px var(--accent-gold);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-gold);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cta-btn {
    background: linear-gradient(45deg, var(--accent-gold), var(--light-gold));
    color: var(--dark-brown);
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.totem-mask {
    width: 200px;
    height: 300px;
    background: linear-gradient(145deg, var(--dark-brown), var(--stone-gray));
    border-radius: 20px 20px 40px 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: totem-glow 3s ease-in-out infinite alternate;
}

.mask-eyes {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 30px;
    background: var(--mask-emerald);
    border-radius: 50%;
    box-shadow: 
        0 0 20px var(--mask-emerald),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    animation: eyes-glow 2s ease-in-out infinite alternate;
}

@keyframes totem-glow {
    from { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
    to { box-shadow: 0 20px 60px rgba(80, 200, 120, 0.3); }
}

@keyframes eyes-glow {
    from { box-shadow: 0 0 20px var(--mask-emerald), inset 0 0 10px rgba(0, 0, 0, 0.5); }
    to { box-shadow: 0 0 40px var(--mask-emerald), inset 0 0 20px rgba(0, 0, 0, 0.3); }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--accent-gold);
    text-shadow: 0 0 20px var(--accent-gold);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--light-gold);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Games Section */
.games-section {
    padding: 80px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background: linear-gradient(145deg, var(--dark-brown), var(--stone-gray));
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

.game-image {
    position: relative;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-overlay h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.game-overlay p {
    color: var(--light-gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.play-btn {
    background: linear-gradient(45deg, var(--accent-gold), var(--light-gold));
    color: var(--dark-brown);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    text-align: center;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: rgba(26, 77, 58, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(61, 41, 20, 0.8);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--light-gold);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-gold);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 60px 0;
    background: rgba(61, 41, 20, 0.5);
}

.disclaimer-scroll {
    background: linear-gradient(145deg, var(--dark-brown), var(--stone-gray));
    padding: 2rem;
    border-radius: 15px;
    border: 3px solid var(--accent-gold);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.disclaimer-scroll::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.disclaimer-scroll h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.disclaimer-scroll p {
    color: var(--light-gold);
    line-height: 1.6;
    text-align: center;
}

/* Game Page Styles */
.game-page {
    min-height: 100vh;
    padding: 120px 0 80px;
}

.game-header {
    text-align: center;
    margin-bottom: 3rem;
}

.game-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 0 20px var(--accent-gold);
    margin-bottom: 1rem;
}

.game-description {
    font-size: 1.2rem;
    color: var(--light-gold);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.game-container {
    margin: 3rem 0;
}

.game-frame {
    background: linear-gradient(145deg, var(--dark-brown), var(--stone-gray));
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.game-frame iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
}

.game-info {
    margin: 3rem 0;
    text-align: center;
}

.game-info h2 {
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.game-info p {
    color: var(--light-gold);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: rgba(61, 41, 20, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--accent-gold);
}

.feature h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--light-gold);
    font-size: 1rem;
    line-height: 1.5;
}

.other-games {
    margin: 3rem 0;
    text-align: center;
}

.other-games h2 {
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.games-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.game-link {
    background: linear-gradient(45deg, var(--secondary-green), var(--primary-green));
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.game-link:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

/* Contact Page Styles */
.contact-section {
    min-height: 100vh;
    padding: 120px 0 80px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h2 {
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(61, 41, 20, 0.8);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--accent-gold);
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
}

.contact-details h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details span {
    color: var(--light-gold);
    font-size: 0.9rem;
}

.contact-form-container {
    background: rgba(61, 41, 20, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--accent-gold);
}

.contact-form h2 {
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--stone-gray);
    border-radius: 8px;
    background: rgba(26, 77, 58, 0.5);
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.submit-btn {
    background: linear-gradient(45deg, var(--accent-gold), var(--light-gold));
    color: var(--dark-brown);
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup.show {
    display: flex;
}

.popup-content {
    background: linear-gradient(145deg, var(--dark-brown), var(--stone-gray));
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    border: 3px solid var(--accent-gold);
    animation: popup-appear 0.3s ease-out;
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--accent-gold);
}

.popup-header h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: 700;
}

.popup-close {
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.popup-close:hover {
    color: var(--light-gold);
    transform: scale(1.1);
}

.popup-body {
    padding: 1.5rem;
}

.popup-body p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.popup-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 2px solid var(--accent-gold);
}

.popup-btn {
    background: linear-gradient(45deg, var(--accent-gold), var(--light-gold));
    color: var(--dark-brown);
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Legal Pages */
.legal-section {
    min-height: 100vh;
    padding: 120px 0 80px;
}

.legal-content {
    background: rgba(61, 41, 20, 0.8);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid var(--accent-gold);
    max-width: 1000px;
    margin: 0 auto;
}

.last-updated {
    color: var(--stone-gray);
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    color: var(--accent-gold);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.legal-content h3 {
    color: var(--light-gold);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.legal-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--text-light);
    line-height: 1.6;
    margin: 1rem 0 1rem 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--jungle-dark);
    border-top: 2px solid var(--accent-gold);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-text {
    color: var(--stone-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-green);
        flex-direction: column;
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
    
    .totem-mask {
        width: 150px;
        height: 200px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .game-frame iframe {
        height: 400px;
    }
    
    .game-features {
        grid-template-columns: 1fr;
    }
    
    .games-list {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .legal-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .popup-content {
        width: 95%;
    }
}

/* Print Styles */
@media print {
    .jungle-bg,
    .header,
    .footer,
    .popup {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .legal-content {
        background: white;
        border: 1px solid black;
    }
}