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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Chemical Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 159, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(138, 43, 226, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* Navigation Styles */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 159, 0.2);
    padding: 0.5rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff9f;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px #00ff9f);
}

.logo-text {
    background: linear-gradient(45deg, #00ff9f, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link:hover,
.nav-link.active {
    color: #00ff9f;
    background: rgba(0, 255, 159, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff9f, #ffa500);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #00ff9f;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff9f, #00cc7f);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 159, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 159, 0.5);
}

.btn-secondary {
    background: rgba(255, 165, 0, 0.1);
    color: #ffa500;
    border: 2px solid #ffa500;
}

.btn-secondary:hover {
    background: #ffa500;
    color: #000;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #00ff9f, #ffa500, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

/* Chemical Flask Animation */
.chemical-flask {
    position: relative;
    width: 200px;
    height: 300px;
}

.flask-body {
    width: 120px;
    height: 180px;
    background: linear-gradient(180deg, rgba(0, 255, 159, 0.3) 0%, rgba(138, 43, 226, 0.4) 100%);
    border-radius: 0 0 60px 60px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid #00ff9f;
    animation: flaskGlow 2s ease-in-out infinite alternate;
}

.flask-neck {
    width: 40px;
    height: 80px;
    background: rgba(0, 255, 159, 0.2);
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #00ff9f;
    border-radius: 20px 20px 0 0;
}

.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubbles::before,
.bubbles::after {
    content: '●';
    position: absolute;
    color: rgba(0, 255, 159, 0.6);
    animation: bubble 3s infinite;
}

.bubbles::before {
    left: 30%;
    animation-delay: 0.5s;
}

.bubbles::after {
    right: 30%;
    animation-delay: 1.5s;
}

@keyframes flaskGlow {
    from { box-shadow: 0 0 20px rgba(0, 255, 159, 0.5); }
    to { box-shadow: 0 0 40px rgba(0, 255, 159, 0.8); }
}

@keyframes bubble {
    0% { bottom: 20%; opacity: 0.8; }
    50% { bottom: 50%; opacity: 0.5; }
    100% { bottom: 80%; opacity: 0; }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ff9f, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: rgba(20, 20, 20, 0.5);
}

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

.about-card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 159, 0.1), transparent);
    transition: left 0.5s;
}

.about-card:hover::before {
    left: 100%;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: #00ff9f;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.2);
}

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

.about-card h3 {
    color: #00ff9f;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
}

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

.feature-item {
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: #ffa500;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.2);
}

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

.feature-item h3 {
    color: #ffa500;
    margin-bottom: 0.5rem;
}

/* Reviews Section */
.reviews {
    padding: 5rem 0;
    background: rgba(15, 15, 15, 0.7);
}

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

.review-card {
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: #8a2be2;
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.2);
}

.review-stars {
    color: #ffa500;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.reviewer {
    color: #8a2be2;
    font-weight: 600;
    margin-top: 1rem;
}

/* Game Section */
.game-section {
    padding: 5rem 0;
}

.game-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.game-frame {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    border: 2px solid #00ff9f;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 159, 0.3);
}

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

.game-info h3 {
    font-size: 2rem;
    color: #00ff9f;
    margin-bottom: 1rem;
}

.game-info p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Play Page Styles */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: rgba(20, 20, 20, 0.5);
}

.page-header h1 {
    font-size: 3rem;
    background: linear-gradient(45deg, #00ff9f, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.last-updated {
    color: #888;
    font-style: italic;
    margin-top: 1rem;
}

.play-header {
    padding: 8rem 0 3rem;
    text-align: center;
}

.main-game-section {
    padding: 3rem 0;
}

.game-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.game-frame-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.main-game-frame {
    width: 100%;
    aspect-ratio: 16/9;
    border: 3px solid #00ff9f;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 255, 159, 0.4);
}

.game-details {
    background: rgba(25, 25, 25, 0.8);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 159, 0.2);
}

.game-features {
    list-style: none;
    margin: 1rem 0;
}

.game-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.game-features li::before {
    content: '⚗️';
    position: absolute;
    left: 0;
    color: #00ff9f;
}

.game-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
}

.info-card h4 {
    color: #ffa500;
    margin-bottom: 0.5rem;
}

/* More Games Section */
.more-games {
    padding: 4rem 0;
    background: rgba(15, 15, 15, 0.5);
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.coming-soon-card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    opacity: 0.7;
}

.card-placeholder {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Contact Form Styles */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-cards {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: #00ff9f;
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    color: #00ff9f;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: #ffa500;
    text-decoration: none;
}

.contact-form {
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Terms, Disclaimer, Privacy Styles */
.terms-content,
.disclaimer-content,
.privacy-content {
    padding: 4rem 0;
}

.terms-document,
.disclaimer-document,
.privacy-document {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(25, 25, 25, 0.8);
    border-radius: 15px;
    padding: 3rem;
    border: 1px solid rgba(0, 255, 159, 0.2);
}

.terms-section,
.disclaimer-section,
.privacy-section {
    margin-bottom: 2rem;
}

.terms-section h2,
.disclaimer-section h2,
.privacy-section h2 {
    color: #00ff9f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.terms-section h3,
.disclaimer-section h3,
.privacy-section h3 {
    color: #ffa500;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.terms-section ul,
.disclaimer-section ul,
.privacy-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.disclaimer-notice {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid #ffa500;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.disclaimer-acknowledgment,
.terms-summary,
.privacy-summary {
    background: rgba(0, 255, 159, 0.05);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: rgba(15, 15, 15, 0.5);
}

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

.faq-item {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #8a2be2;
    transform: translateY(-3px);
}

.faq-item h3 {
    color: #8a2be2;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Footer Styles */
.footer {
    background: rgba(5, 5, 5, 0.95);
    border-top: 2px solid rgba(0, 255, 159, 0.3);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #00ff9f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00ff9f;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.disclaimer-card {
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
}

.disclaimer-card h4 {
    color: #ffa500;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.disclaimer-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #b0b0b0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: #888;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: rgba(25, 25, 25, 0.95);
    border: 2px solid #00ff9f;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-header h3 {
    color: #00ff9f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.popup-body {
    margin: 1.5rem 0;
    line-height: 1.6;
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .game-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-info-cards {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .popup-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .popup-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .chemical-flask {
        width: 150px;
        height: 225px;
    }

    .flask-body {
        width: 90px;
        height: 135px;
    }

    .flask-neck {
        width: 30px;
        height: 60px;
    }
}