/* ===== CSS Variables ===== */
:root {
    --primary-color: #3D9297;
    --secondary-color: #83CCC7;
    --accent-color: #CFCAAC;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #f0f4f5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    overflow-x: hidden;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: #2a6b6f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #6ab5b0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-play {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 10px 25px;
    font-size: 0.9rem;
}

.btn-play:hover {
    background: #b8b399;
    transform: scale(1.05);
}

/* ===== Header ===== */
.header {
    background: var(--text-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #e8f4f5 0%, #d4e8e9 100%);
    padding: 5rem 0;
}

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

.hero-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #5a6c7d;
}

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

.slot-machine {
    background: var(--primary-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(61, 146, 151, 0.3);
    text-align: center;
}

.slot-display {
    background: var(--text-light);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.reel {
    font-size: 3rem;
    background: var(--accent-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ===== About Section ===== */
.about {
    padding: 5rem 0;
    background: var(--text-light);
}

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

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

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

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===== Games Section ===== */
.games {
    padding: 5rem 0;
    background: var(--bg-section);
}

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

.game-card {
    background: var(--text-light);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

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

.game-card:hover .game-image {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(61, 146, 151, 0.3);
}

.game-image {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    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.3) 70%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.game-label {
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--secondary-color);
}

.game-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    color: var(--primary-color);
}

.game-card p {
    padding: 0 1.5rem 1rem;
    color: #5a6c7d;
}

.game-card .btn-play {
    margin: 0 1.5rem 1.5rem;
    width: calc(100% - 3rem);
    display: block;
    text-align: center;
}

a.btn-play {
    text-decoration: none;
}



/* ===== Platform Rules & Disclaimer Section ===== */
.disclaimer-section {
    padding: 5rem 0;
    background: var(--bg-section);
}

.disclaimer-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #5a6c7d;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.rule-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.rule-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.rule-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.rule-card ul {
    list-style: none;
    padding: 0;
}

.rule-card li {
    padding: 0.5rem 0;
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.rule-card li:before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.disclaimer-footer {
    background: var(--text-light);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary-color);
}

.disclaimer-footer h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.disclaimer-footer p {
    color: #5a6c7d;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.disclaimer-footer strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== How It Works Section ===== */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-section);
}

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

.step-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.step-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    padding: 0.5rem 0;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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



.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .nav-menu {
        display: flex;
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        margin-top: 0.5rem;
        order: 3;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
        text-align: center;
        flex: 1;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    /* Hero Section Mobile Fixes */
    .hero {
        padding: 3rem 0;
        overflow: hidden;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        width: 100%;
        max-width: 250px;
    }
    
    /* Slot Machine Mobile */
    .slot-machine {
        padding: 20px;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .slot-display {
        padding: 20px;
        gap: 10px;
    }
    
    .reel {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    /* Other sections */
    
    /* Disclaimer section mobile */
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rule-card {
        padding: 1.5rem;
    }
    
    .disclaimer-footer {
        padding: 2rem;
    }
    
    .disclaimer-footer h3 {
        font-size: 1.5rem;
    }
    
    .disclaimer-intro {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .nav-menu {
        gap: 0.2rem;
    }
    
    .nav-menu a {
        font-size: 0.75rem;
        padding: 0.2rem 0.3rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo img {
        width: 30px;
        height: 30px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .slot-machine {
        padding: 15px;
    }
    
    .reel {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* ===== Tablet Design ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero .container {
        gap: 3rem;
    }
    
    .games-grid,
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .game-image {
        border-width: 2px;
    }
}

/* ===== Max Width for All Content ===== */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

section {
    overflow: hidden;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: var(--text-light);
    padding: 1rem 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    min-width: 80px;
}

.cookie-accept {
    background: var(--secondary-color);
    color: var(--text-dark);
    border-color: var(--secondary-color);
}

.cookie-accept:hover {
    background: #6ab5b0;
    transform: translateY(-1px);
}

.cookie-decline {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 120px;
    }
}

/* ===== Loading Animation ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-light);
    animation: spin 1s ease-in-out infinite;
}
