:root {
    --bg-color: #050505;
    --card-bg: #111;
    --text-primary: #fff;
    --text-secondary: #aaa;
    --accent: #00ff88;
    /* Neon Green */
    --accent-glow: rgba(0, 255, 136, 0.4);
    --secondary-accent: #00d4ff;
    /* Neon Blue */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animations */
@keyframes glow {
    0% {
        text-shadow: 0 0 5px var(--accent-glow);
    }

    50% {
        text-shadow: 0 0 20px var(--accent), 0 0 10px var(--secondary-accent);
    }

    100% {
        text-shadow: 0 0 5px var(--accent-glow);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight {
    color: var(--accent);
}

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

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    height: auto;
    padding: 6rem 5%;
    /* Increased padding for top/bottom */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    /* overflow: hidden; Removed to allow scrolling if content overflows */
}

.hero-content {
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 0 auto 3rem auto;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 0 10px var(--accent-glow);
}

.cta-button:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.05);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-lotto {
    /* Default accents are already correct for Lotto */
}

.btn-monopoly {
    --accent: #ff4d4d;
    --accent-glow: rgba(255, 77, 77, 0.4);
}

.btn-sorare {
    --accent: #00d4ff;
    --accent-glow: rgba(0, 212, 255, 0.4);
}

.btn-kameleon {
    --accent: #bd00ff;
    --accent-glow: rgba(189, 0, 255, 0.4);
}

.btn-targetlock {
    --accent: #ffd700;
    --accent-glow: rgba(255, 215, 0, 0.4);
}

.hero-background-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, rgba(5, 5, 5, 0) 70%);
    z-index: 1;
    pointer-events: none;
    animation: glow 5s infinite alternate;
}

.hero-video-frame {
    margin: 3rem auto 0 auto;
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards 0.5s;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
    /* Slightly dimmed to blend better */
    filter: contrast(1.1) saturate(1.1);
    /* Pop a bit */
}

.video-overlay-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, var(--bg-color) 130%);
    box-shadow: inset 0 0 60px 20px var(--bg-color);
    pointer-events: none;
    border-radius: 20px;
}

/* Sections */
section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-primary);
}

.subtitle {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Lotto Predictor Tool */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tool-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.tool-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.media-container {
    background: #000;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

video {
    width: 100%;
    height: auto;
    display: block;
}

audio {
    width: 90%;
    filter: invert(1) hue-rotate(180deg);
}

.gallery-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    overflow: hidden;
    height: auto;
}

.gallery-img {
    width: 45%;
    height: auto;
    max-height: 100px;
    /* Limit height to enforce small thumbnail feel */
    object-fit: cover;
    /* Crop to fit if needed, or contain. Cover is better for thumbnails usually, but let's stick to contain/cover to avoid cutting info. actually contain is safer for app screenshots. */
    object-fit: contain;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    /* background for contain */
}

.gallery-img:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
}

.audio-visualizer-placeholder {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
    position: absolute;
    bottom: 50px;
}

.bar {
    width: 5px;
    height: 20px;
    background: var(--accent);
    animation: float 1s infinite ease-in-out alternate;
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 30px;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 15px;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
    height: 25px;
}

.bar:nth-child(5) {
    animation-delay: 0.4s;
    height: 10px;
}


.icon-container {
    flex-direction: column;
    padding: 2rem;
}

.pdf-icon {
    width: 64px;
    height: 64px;
    color: var(--secondary-accent);
    margin-bottom: 1rem;
}

.download-link {
    color: var(--text-primary);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: var(--transition);
}

.download-link:hover {
    color: var(--accent);
}

.info {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.info h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-video-frame {
    margin-top: 1rem;
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.card-video {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
    filter: contrast(1.1);
}

.card-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 30%, var(--card-bg) 140%);
    box-shadow: inset 0 0 20px 5px var(--card-bg);
    pointer-events: none;
    border-radius: 10px;
}

/* More Tools - Placeholders */
/* More Tools - Preview */
.upcoming-preview-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 3px;
    /* Space for the gradient border */
    background: linear-gradient(45deg, var(--accent), var(--secondary-accent), var(--accent));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(0, 212, 255, 0.2);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.upcoming-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 17px;
    /* SLightly less than container to fit inside */
    background: var(--card-bg);
    /* Fallback */
    position: relative;
    z-index: 1;
}

/* Retaining placeholder styles just in case, or I can remove them if I want to clean up. 
   The user said "remplace", so I will technically leave the old class definitions if they are used elsewhere, 
   but since they were specific to this section, I can replace the block.
   However, safe practice is to append new styles or replace the specific block. 
   I will replace the grid-4 and placeholder-card styles with the new styles since they are being replaced.
*/

/* Logo Styles */
.logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--accent-glow));
    transition: var(--transition);
}

.logo-img:hover {
    filter: drop-shadow(0 0 15px var(--accent));
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    background: #000;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 1;
    transform: rotate(360deg);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

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

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