/* Design: PS5 + Apple - Blue & Deep Black */

:root {
    --deep-black: #050505;
    --ps5-blue: #0072ce;
    --ps5-blue-glow: rgba(0, 114, 206, 0.4);
    --apple-gray: #1d1d1f;
    --apple-light-gray: #f5f5f7;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

::selection {
    background: var(--ps5-blue);
    color: white;
}

h1, h2, h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
}

body {
    background-color: var(--deep-black);
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--deep-black);
}
::-webkit-scrollbar-thumb {
    background: var(--ps5-blue);
    border-radius: 10px;
}

/* Glassmorphism Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
    nav {
        padding: 0 10px;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
    }

    .logo {
        font-size: 0.75rem;
        gap: 5px;
        white-space: nowrap;
        flex: 0 1 auto;
    }

    .logo img {
        height: 22px;
    }

    nav .btn-primary, 
    nav .btn-secondary,
    #user-actions {
        display: none !important; /* Esconde botões de ação na nav mobile */
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 4000; /* Garante que fique acima de tudo */
        padding: 0;
        margin-left: auto; /* Joga para a direita */
    }

    /* Estilização dos traços do hambúrguer */
    .menu-toggle span,
    .menu-toggle::before,
    .menu-toggle::after {
        content: "";
        display: block;
        width: 100%;
        height: 2px;
        background-color: white;
        border-radius: 2px;
        transition: 0.3s;
    }

    /* Posicionamento manual para os traços */
    .menu-toggle {
        position: relative;
    }
    
    .menu-toggle span {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .menu-toggle::before {
        position: absolute;
        top: 0;
    }
    
    .menu-toggle::after {
        position: absolute;
        bottom: 0;
    }

    /* Animação para transformar em X */
    .menu-toggle.active span {
        opacity: 0;
    }

    .menu-toggle.active::before {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .menu-toggle.active::after {
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    /* Fix Hero and Sections */
    .hero {
        padding: 80px 15px 40px;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    h1 {
        font-size: 2.2rem !important; /* Tamanho fixo para todos os títulos principais no mobile */
        line-height: 1.1;
        width: 100%;
        text-align: center;
    }

    .hero h1 { 
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 1rem;
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }

    .cta-group {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .cta-group .btn {
        width: 100%;
        margin: 0;
    }

    .features-grid {
        padding: 3rem 15px;
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100%;
    }

    .card {
        width: 100%;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .section-title h2 {
        font-size: 1.8rem !important;
        padding: 0 15px;
        line-height: 1.2;
    }

    /* Fix Menu Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        z-index: 3000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Footer Fix */
    footer {
        padding: 3rem 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .ebook-hero, .site-hero, .about-section {
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ps5-blue);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
    box-shadow: 0 0 10px var(--ps5-blue);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 114, 206, 0.15) 0%, transparent 70%);
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(0,114,206,0.05)" stroke-width="0.5"/></svg>');
    transform: translate(-50%, -50%);
    animation: rotate 60s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero h1 {
    margin-bottom: 1rem;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

/* Buttons style */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--ps5-blue);
    color: white;
    box-shadow: 0 10px 30px var(--ps5-blue-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 114, 206, 0.6);
}

.btn-secondary {
    background: var(--glass);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Feature Cards (Apple Style) */
.section-title {
    text-align: center;
    margin: 5rem 0 3rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 10%;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--ps5-blue);
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.card i {
    font-size: 2rem;
    color: var(--ps5-blue);
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .nav-links.active {
        right: 0;
    }

    .hero p { font-size: 1rem; }
    .cta-group { flex-direction: column; width: 100%; padding: 0 10%; }
    .btn { width: 100%; text-align: center; }
}

/* Form Styles */
.contact-section {
    padding: 10rem 10% 5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-form-container {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    backdrop-filter: blur(20px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    transition: var(--transition-smooth);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Custom Arrow for Select */
.form-group select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    cursor: pointer;
}

.form-group option {
    background-color: #0a0a0a;
    color: white;
    padding: 1rem;
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ps5-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px var(--ps5-blue-glow);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

@media (max-width: 900px) {
    .contact-section {
        grid-template-columns: 1fr;
        padding: 8rem 5% 5rem;
        text-align: center;
    }
    
    .contact-info h1 {
        font-size: 2.5rem;
    }
}

footer {
    padding: 4rem 10%;
    border-top: 1px solid var(--glass-border);
    background: #000;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}
