
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --background-color: #0a0a1a;
    --surface-color: #1a1a3a;
    --primary-text-color: #f0f0f0;
    --secondary-text-color: #a0a0c0;
    --accent-color: #00f5c3;
    --accent-gradient: linear-gradient(90deg, #00f5c3, #00c7e5);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

nav.scrolled {
    background-color: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-text-color);
}

.logo-svg {
    width: 32px;
    height: 32px;
    margin-right: 0.75rem;
    stroke: var(--accent-color);
}

.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    color: var(--primary-text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center; /* Centers all inline and inline-block content */
    max-width: 800px;
    margin: 0 auto; /* Centers the block element itself */
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .subheadline {
    font-size: 1.3rem;
    color: var(--secondary-text-color);
    margin-bottom: 2.5rem;
    max-width: 650px;
    display: block;
    margin: 0 auto;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: var(--accent-gradient);
    color: #0a0a1a;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 245, 195, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 35px rgba(0, 245, 195, 0.5);
}

/* --- General Section Styling --- */
section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

section:last-of-type {
    border-bottom: none;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

/* --- About Section --- */
#about p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.world-map {
    text-align: center;
}

.world-map svg {
    width: 80px;
    height: 80px;
    stroke: var(--accent-color);
    opacity: 0.7;
}

.map-caption {
    font-size: 0.9rem !important;
    color: var(--secondary-text-color) !important;
    text-align: center;
    margin-top: 1rem;
}

/* --- Features (Advertisers & Publishers) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(145deg, #1c1c3a, #12122a);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 245, 195, 0.2);
}

.feature-card .icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

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

.feature-card p {
    color: var(--secondary-text-color);
}

/* --- Testimonials Section --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-text-color);
}

/* --- Stats Section --- */
#stats {
    background-color: transparent;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    background: var(--surface-color);
    padding: 3rem 1rem;
    border-radius: 15px;
}

.stat h3 {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Contact Section --- */
#contact {
    text-align: center;
}

#contact p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 2rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: var(--secondary-text-color);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 0;
    background-color: #000;
    color: var(--secondary-text-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.footer-links li {
    margin-left: 2rem;
}

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

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

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 60%;
        background-color: var(--surface-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 2rem 0;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

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

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 1rem;
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
