/* Base Styles */
:root {
    --primary-color: #7423b7;    /* Purple */
    --secondary-color: #ff3852;  /* Red */
    --accent-color: #32e0c4;     /* Cyan */
    --background-dark: #0a0a12;
    --background-medium: #151525;
    --background-light: #22223a;
    --text-light: #ffffff;
    --text-muted: #b8b8d0;
    --border-radius: 12px;
    --small-radius: 6px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Rubik', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: 0.015em;
}

/* Icon Styles */
.logo-icon, .footer-logo-icon {
    margin-right: 10px;
    font-size: 1.8rem;
    vertical-align: middle;
    color: var(--accent-color);
}

.nav-icon {
    margin-right: 6px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.section-icon {
    margin-right: 10px;
    color: var(--accent-color);
    opacity: 0.9;
}

.step-icon, .faq-icon {
    margin-right: 8px;
    color: var(--accent-color);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.workflow-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.game-card-icon {
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--background-medium);
}

.social-icon:hover {
    color: var(--text-light);
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 5px 15px rgba(116, 35, 183, 0.3);
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(50, 224, 196, 0.6);
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--text-light) 30%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.4rem;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 40px;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: translateX(-50%);
    border-radius: 2px;
}

h3 {
    font-size: 1.6rem;
    color: var(--accent-color);
}

p {
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.8;
}

section {
    padding: 100px 0;
    position: relative;
}

section:nth-child(odd)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(116, 35, 183, 0.1), transparent 60%);
    pointer-events: none;
}

/* Header Styles */
header {
    background-color: rgba(10, 10, 18, 0.85);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    text-shadow: 0 0 15px rgba(50, 224, 196, 0.4);
    display: flex;
    align-items: center;
}

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

nav ul li {
    margin-left: 36px;
}

nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 18, 0.8), rgba(21, 21, 37, 0.9)), 
                radial-gradient(circle at center, rgba(116, 35, 183, 0.6) 0%, rgba(10, 10, 18, 0.9) 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, var(--primary-color), transparent),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%237423b7' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.7;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.tagline {
    font-size: 1.6rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    color: var(--text-muted);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #ff6852);
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 48px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(255, 56, 82, 0.4);
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover {
    background: linear-gradient(135deg, var(--accent-color), #32f0d4);
    color: var(--background-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(50, 224, 196, 0.6);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button i {
    margin-right: 10px;
}

/* Game Section */
.game-section {
    background-color: var(--background-medium);
    padding: 80px 0 60px 0;
    margin-top: 80px;
}

.iframe-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background-color: var(--background-light);
}

.iframe-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: -1;
    border-radius: calc(var(--border-radius) + 3px);
    background-size: 400% 400%;
    animation: gradient-border 3s ease infinite;
}

@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#game-iframe[src] {
    opacity: 1;
}

/* Loading Indicator */
#loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background-medium);
    color: var(--text-light);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#loading-indicator.loading-active {
    opacity: 1;
    pointer-events: all;
}

#loading-indicator p {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(50, 224, 196, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Game Controls */
.game-controls {
    text-align: center;
    margin-top: 30px;
}

.control-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(116, 35, 183, 0.3);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

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

.control-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(116, 35, 183, 0.5);
}

.control-button:hover::before {
    left: 100%;
}

.control-button:disabled {
    opacity: 0.7;
    cursor: wait;
    background: linear-gradient(135deg, var(--background-light), var(--background-medium));
}

/* How to Play Section */
.how-to-play {
    background-color: var(--background-light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step {
    background-color: var(--background-medium);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(50, 224, 196, 0.3);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), #ff6852);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(255, 56, 82, 0.3);
}

/* Advantages Section */
.advantages {
    background-color: var(--background-medium);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.card {
    background-color: var(--background-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(50, 224, 196, 0.3);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    background-color: var(--background-light);
}

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

.feature {
    background-color: var(--background-medium);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--accent-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--accent-color);
    display: flex;
    flex-direction: column;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--secondary-color);
}

/* How it Works Section */
.how-it-works {
    background-color: var(--background-medium);
}

.workflow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
}

.workflow-item {
    background-color: var(--background-light);
    padding: 40px 35px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.workflow-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background-color: rgba(116, 35, 183, 0.08);
    border-color: rgba(116, 35, 183, 0.3);
}

/* FAQ Section */
.faq {
    background-color: var(--background-light);
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.faq-item {
    background-color: var(--background-medium);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(50, 224, 196, 0.3);
}

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

/* More Games Section */
.more-games {
    background-color: var(--background-medium);
}

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

.game-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(50, 224, 196, 0.3);
}

.game-image {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.game-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, var(--background-light) 100%);
    z-index: 1;
}

.game-card h3, .game-card p {
    padding: 0 25px;
    position: relative;
    z-index: 2;
}

.game-card h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

.game-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 300;
}

/* Footer */
footer {
    background-color: var(--background-dark);
    padding: 80px 0 25px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.footer-links ul {
    display: flex;
    list-style: none;
}

.footer-links ul li {
    margin-left: 40px;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: all var(--transition-speed) ease;
    font-weight: 400;
}

.footer-links ul li a i {
    margin-right: 6px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.9rem;
}

.legal-links {
    margin-top: 15px;
    font-size: 0.85rem;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 30px;
    }
    
    .footer-links ul li {
        margin: 10px 20px;
    }
    
    .faq-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 8px 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .cards, .steps, .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
} 