/* style.css - Site completo benites.me - VERSÃO CORRIGIDA */

:root {
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background var(--transition-normal), color var(--transition-normal);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    width: 100%;
}

.logo a {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: all var(--transition-fast);
    color: var(--text-color);
    white-space: nowrap;
}

.logo-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

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

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

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 2rem;
}

.theme-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.theme-btn:hover {
    background: rgba(var(--primary-rgb), 0.2);
    transform: scale(1.1);
}

.theme-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Botão do Menu Mobile */
.mobile-menu-btn {
    display: none;
    background: rgba(var(--primary-rgb), 0.1);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(var(--primary-rgb), 0.2);
    transform: scale(1.05);
}

/* Menu Mobile Overlay - Fundo escuro */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Menu Mobile - agora com fundo sólido */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--card-bg);
    z-index: 999;
    padding: 0;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-color);
    color: white;
}

.mobile-menu-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-links {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s;
}

.mobile-nav-links a:hover {
    background: rgba(var(--primary-rgb), 0.1);
    padding-left: 2rem;
    color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 0;
    align-items: center;
}

.hero-badge {
    margin-bottom: 1rem;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; transform: scale(0.98); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.8;
}

.badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.badge {
    background: var(--skill-bg);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Profile Card */
.profile-card {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.profile-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   SECTION TITLES
   ============================================ */
section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--primary-color);
    border-radius: 4px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.about-content p {
    margin-bottom: 1rem;
}

.skills {
    margin-top: 1.5rem;
}

.skills h3 {
    margin-bottom: 0.75rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skill-tags span {
    padding: 0.3rem 0.8rem;
    background: var(--skill-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
}

/* ============================================
   CARDS GRID
   ============================================ */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-icon {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
}

.timeline-place {
    opacity: 0.7;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ============================================
   E-BOOK SECTION
   ============================================ */
.ebook-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 32px;
    padding: 3rem;
    text-align: center;
    color: white;
}

.ebook-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.ebook-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.ebook-features {
    list-style: none;
    margin: 2rem 0;
    display: inline-block;
    text-align: left;
}

.ebook-features li {
    margin: 0.5rem 0;
}

.ebook-features i {
    margin-right: 0.5rem;
}

.ebook-card .btn-primary {
    background: white;
    color: var(--primary-color);
}

.ebook-card .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.info-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.info-card p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Form Styles */
.contact-form {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

/* Captcha */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--captcha-bg);
    padding: 0.8rem 1rem;
    border-radius: 60px;
}

.captcha-code {
    font-family: monospace;
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--captcha-code-bg);
    color: var(--captcha-code-color);
    padding: 0.2rem 1rem;
    border-radius: 36px;
    letter-spacing: 4px;
    user-select: none;
}

.refresh-captcha {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--primary-color);
}

.captcha-input {
    flex: 1;
    min-width: 150px;
}

button[type="submit"] {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Alerts */
.alert {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 20px;
    text-align: center;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: all var(--transition-fast);
    color: var(--text-color);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.scale-in {
    animation: scaleIn 0.5s ease forwards;
    opacity: 0;
}

.slide-in {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ============================================
   RESPONSIVIDADE - CORRIGIDA
   ============================================ */

/* Tablets e desktop menor */
@media (max-width: 1024px) {
    .hero {
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

/* Mobile e tablets pequenos */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Esconde menu desktop */
    .nav-links {
        display: none;
    }
    
    /* Mostra botão mobile */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hero em coluna */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 0;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    /* About em coluna */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Contact em coluna */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Section titles centralizados */
    .section-title {
        display: block;
        text-align: center;
    }
    
    .section-title:after {
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
    }
    
    /* Cards em coluna */
    .grid-cards {
        grid-template-columns: 1fr;
    }
    
    /* Contact info 2 colunas */
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Timeline ajustes */
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-icon {
        width: 32px;
        height: 32px;
        left: -1.8rem;
        font-size: 0.8rem;
    }
    
    /* E-book ajustes */
    .ebook-card {
        padding: 2rem;
    }
    
    .ebook-content h3 {
        font-size: 1.5rem;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .badges {
        justify-content: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
}

/* Ajuste para garantir que o container não quebre em telas muito pequenas */
@media (max-width: 320px) {
    .logo a {
        font-size: 1.3rem;
    }
    
    .theme-switcher {
        gap: 0.25rem;
        padding: 0.2rem 0.3rem;
    }
    
    .theme-btn {
        padding: 0.3rem;
    }
}

/* ============================================
   LOGO COM IMAGEM - RESPONSIVO
   ============================================ */

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
    white-space: nowrap;
    color: var(--text-color);
}

.logo-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Responsivo */
@media (max-width: 1024px) {
    .logo-img { height: 36px; }
    .logo a { font-size: 1.1rem; }
    .logo { gap: 6px; }
}

@media (max-width: 768px) {
    .logo-img { height: 32px; }
    .logo a { font-size: 1rem; }
    .logo { gap: 5px; }
}

@media (max-width: 480px) {
    .logo-img { height: 28px; }
    .logo a { font-size: 0.9rem; }
    .logo { gap: 4px; }
}

/* E-book gratuito com fundo verde */
.free-ebook {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
}

/* E-book padrão */
.ebook-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ebook-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Espaço em branco entre os e-books */
.ebook-spacer {
    height: 30px; /* Ajuste este valor para aumentar/diminuir o espaço */
}

/* Linha branca após o título */
.title-divider {
    width: 60px;
    height: 3px;
    background-color: white;
    margin: 15px auto 20px auto;
    border-radius: 2px;
}

/* Ajustes para o texto do e-book gratuito */
.free-ebook .ebook-content h3,
.free-ebook .ebook-content p,
.free-ebook .ebook-features li {
    color: #1b5e20;
}

.free-ebook .ebook-icon {
    color: #4caf50;
}

.free-ebook .title-divider {
    background-color: #2e7d32; /* Linha mais escura para o fundo verde */
}

/* Estilos gerais do conteúdo */
.ebook-content {
    text-align: center;
}

.ebook-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.ebook-features {
    text-align: left;
    display: inline-block;
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.ebook-features li {
    margin: 10px 0;
}

.ebook-features i {
    margin-right: 10px;
}

/* ESTILOS PARA E-BOOKS - Adicione no final do style.css */

/* Espaço entre os e-books */
.ebook-spacer {
    height: 40px !important;
    display: block !important;
    clear: both !important;
}

/* Linha branca após o título */
.title-divider {
    width: 80px !important;
    height: 3px !important;
    background-color: #ffffff !important;
    margin: 15px auto 25px auto !important;
    border-radius: 2px !important;
    display: block !important;
}

/* Fundo verde para o e-book gratuito */
.free-ebook {
    background: #4caf50 !important;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
    border-radius: 20px !important;
}

/* Ajuste a cor da linha no e-book gratuito para contraste */
.free-ebook .title-divider {
    background-color: #ffffff !important;
}

/* Mantém o estilo do e-book pago */
.ebook-card:not(.free-ebook) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Cor do texto no e-book gratuito */
.free-ebook h3,
.free-ebook p,
.free-ebook .ebook-features li {
    color: #ffffff !important;
}

.free-ebook .ebook-features i {
    color: #ffffff !important;
}