/* Equipe 360 RJ - Design System */
:root {
    /* Colors */
    --bg-dark: #0a0a12;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #8a2be2;
    /* Blue Violet */
    --primary-glow: rgba(138, 43, 226, 0.6);
    --accent: #00ffff;
    /* Cyan */
    --accent-glow: rgba(0, 255, 255, 0.6);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--primary), var(--accent));

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow), 0 0 20px var(--accent-glow);
}


/* Section Spacing */
section {
    padding: 20px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(138, 43, 226, 0.1);
}

/* Hero Section */
.hero {
    height: auto;
    display: flex;
    align-items: flex-start;
    padding-top: 140px;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
    /* Fallback Gradient Background since Image Generation failed */
    background: radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 255, 0.2) 0%, transparent 40%),
        var(--bg-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1516280440614-6697288d5d38?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    opacity: 0.15;
    /* Subtle texture */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    position: relative;
}

.hero h1 span::before {
    content: 'Outro Nível';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: var(--accent);
    border-right: 4px solid var(--accent);
    overflow: hidden;
    animation: type 4s steps(12) infinite alternate;
}

@keyframes type {

    0%,
    20% {
        width: 0;
    }

    50%,
    100% {
        width: 100%;
    }
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-hero {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-hero a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    color: #fff;
    transition: 0.3s;
}

.social-hero a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

@media screen and (max-width: 768px) {
    .hero {
        height: auto;
        padding-top: 100px;
        padding-bottom: 20px;
        /* Compensa a altura da navbar fixa e posiciona mais ao topo */
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 3rem;
        /* Reduz um pouco o tamanho da fonte para ajudar no espaço */
    }
}

/* Glassmorphism Cards (Preparation) */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Titles */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title span {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
    }
}

.section-subtitle {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Services */


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
}

.icon-box {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.game-card {
    height: 350px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px var(--primary-glow);
    border-color: var(--primary);
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transform: translateY(0);
    transition: 0.3s;
}

.game-card:hover .game-info {
    transform: translateY(0);
}

.game-info h3 {
    color: var(--accent);
    margin-bottom: 5px;
}

.game-info p {
    font-size: 0.9rem;
}

.cta-center {
    text-align: center;
}

/* Footer */
.footer {
    background: #050508;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo p {
    color: var(--text-muted);
    margin-top: 20px;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations Trigger Class */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

/* Stagger Children */
.services-grid .glass-card:nth-child(2) {
    transition-delay: 200ms;
}


/* Mobile Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 2000;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: 0.3s;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 18, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s ease-in-out;
        gap: 30px;
        z-index: 1500;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0;
    }

    /* Hamburger Animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Clients Grid Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.client-logo {
    width: 100%;
    max-width: 200px;
    height: 120px;
    object-fit: contain;
    filter: none;
    transition: 0.3s;
    /* Removed frame styles (background, padding, border-radius) */
}

.client-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

@media screen and (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        /* Reduz um pouco o gap no mobile para aproveitar o espaço */
    }
}

.services-grid .glass-card:nth-child(3) {
    transition-delay: 400ms;
}