/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-gold: #50C878;
    /* Emerald Green */
    --primary-gold-hover: #42a865;
    --accent-red: #FFD700;
    /* Gold */
    --accent-red-hover: #e6c200;
    --dark-bg: #0b1a0b;
    --card-bg: #123012;
    --text-light: #f5f5f5;
    --text-gray: #c0c0c0;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--primary-gold);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--primary-gold);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-gold);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-accent {
    background-color: var(--accent-red);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- HEADER --- */
.top-notice {
    background-color: var(--accent-red);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

header {
    background-color: rgba(15, 15, 15, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('../img/hero.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-gray);
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.highlight-item {
    font-size: 0.9rem;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- ABOUT US --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.values-list {
    margin-top: 20px;
}

.values-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.values-list i {
    color: var(--primary-gold);
}

/* --- GAMES SECTION --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.game-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-img {
    transform: scale(1.1);
}

.game-info {
    padding: 20px;
    position: relative;
    background: var(--card-bg);
    z-index: 1;
}

.game-info h3 {
    font-size: 1.4rem;
    color: var(--primary-gold);
}

/* --- WHY CHOOSE US --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-box:hover {
    background-color: #252525;
    border-color: var(--primary-gold);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.feature-box h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* --- LATEST BETTING --- */
.betting-section {
    background: linear-gradient(to right, #1a1a1a, #252525);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.betting-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.bet-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.bet-item h4 {
    color: var(--primary-gold);
    margin-bottom: 10px;
}

/* --- TESTIMONIALS --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    position: relative;
}

.stars {
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.author {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-light);
}

/* --- CONTACT & NEWSLETTER --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.checkbox-group input {
    margin-top: 4px;
}

.newsletter-section {
    background: linear-gradient(rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* --- POLICIES --- */
.policy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.policy-box {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    height: 100%;
}

.policy-box ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 15px;
}

.policy-box li {
    margin-bottom: 10px;
    color: var(--text-gray);
}

/* --- FOOTER --- */
footer {
    background-color: #050505;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    color: #666;
}

.responsible-gaming {
    margin-bottom: 15px;
    color: var(--accent-red);
    font-weight: 600;
}

/* --- TOAST NOTIFICATION --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--primary-gold);
    animation: slideIn 0.3s ease-out forwards, fadeOut 0.5s ease-in 4.5s forwards;
    min-width: 300px;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #4CAF50;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {

    .about-grid,
    .contact-grid,
    .policy-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #111;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--primary-gold);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}