/*
Theme Name: Rodrigo RPS Tema
Theme URI: https://www.rodrigorps.com.br
Author: Rodrigo RPS
Author URI: https://www.rodrigorps.com.br
Description: Tema vibrante e dinâmico inspirado na marca Rodrigo RPS. Com animações de abertura, links que mudam de cor e design moderno gaming-style.
Version: 1.0.0
Tested up to: 6.9.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rodrigosilvarpstema
Tags: custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, portfolio, gaming, vibrant
*/

/* ============================================
   PALETA DE CORES - BASEADA NA LOGO
   ============================================ */
:root {
    /* Cores Principais da Logo */
    --color-orange: #FF6B35;
    --color-yellow: #FFD23F;
    --color-magenta: #E91E8C;
    --color-pink: #FF1493;
    --color-cyan: #00D4FF;
    --color-turquoise: #00CED1;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--color-orange) 0%, var(--color-magenta) 50%, var(--color-cyan) 100%);
    --gradient-secondary: linear-gradient(90deg, var(--color-yellow) 0%, var(--color-pink) 50%, var(--color-turquoise) 100%);
    --gradient-hero: linear-gradient(45deg, #FF6B35, #FF1493, #00D4FF, #FFD23F);
    
    /* Cores de Fundo */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #111111;
    --bg-overlay: rgba(0, 0, 0, 0.85);
    
    /* Cores de Texto */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    
    /* Cores de Links Dinâmicos */
    --link-color: var(--color-cyan);
    --link-hover: var(--color-magenta);
    --link-active: var(--color-orange);
    
    /* Sombras e Efeitos */
    --shadow-glow-orange: 0 0 20px rgba(255, 107, 53, 0.6);
    --shadow-glow-magenta: 0 0 20px rgba(233, 30, 140, 0.6);
    --shadow-glow-cyan: 0 0 20px rgba(0, 212, 255, 0.6);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
    
    /* Tipografia */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Orbitron', 'Poppins', sans-serif;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Bordas */
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* ============================================
   RESET E BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ============================================
   ANIMAÇÃO DE ABERTURA - PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    position: relative;
    width: 300px;
    height: auto;
    animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.8))
            drop-shadow(0 0 60px rgba(233, 30, 140, 0.6))
            drop-shadow(0 0 90px rgba(0, 212, 255, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-1deg); }
}

.preloader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: particleFloat 4s linear infinite;
}

.particle:nth-child(1) { background: var(--color-orange); left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { background: var(--color-magenta); left: 20%; animation-delay: 0.5s; }
.particle:nth-child(3) { background: var(--color-cyan); left: 30%; animation-delay: 1s; }
.particle:nth-child(4) { background: var(--color-yellow); left: 40%; animation-delay: 1.5s; }
.particle:nth-child(5) { background: var(--color-pink); left: 50%; animation-delay: 2s; }
.particle:nth-child(6) { background: var(--color-turquoise); left: 60%; animation-delay: 2.5s; }
.particle:nth-child(7) { background: var(--color-orange); left: 70%; animation-delay: 3s; }
.particle:nth-child(8) { background: var(--color-magenta); left: 80%; animation-delay: 3.5s; }
.particle:nth-child(9) { background: var(--color-cyan); left: 90%; animation-delay: 0.3s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

.preloader-text {
    margin-top: 40px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

.preloader-bar {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 2px;
    width: 0%;
    animation: loadingProgress 2.5s ease-out forwards;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.site-logo img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-normal);
}

.site-logo:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navegação Principal */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 12px 24px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
}

/* Links Dinâmicos - Mudam de Cor */
.nav-menu li:nth-child(1) a { --link-accent: var(--color-orange); }
.nav-menu li:nth-child(2) a { --link-accent: var(--color-magenta); }
.nav-menu li:nth-child(3) a { --link-accent: var(--color-cyan); }
.nav-menu li:nth-child(4) a { --link-accent: var(--color-yellow); }
.nav-menu li:nth-child(5) a { --link-accent: var(--color-pink); }

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--link-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
    box-shadow: 0 0 10px var(--link-accent);
}

.nav-menu a:hover::before,
.nav-menu a:focus::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-menu a:hover {
    color: var(--link-accent);
    text-shadow: 0 0 10px var(--link-accent);
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu .current-menu-item a {
    color: var(--link-accent);
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu .current-menu-item a::before {
    transform: scaleX(1);
}

/* Submenu */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 220px;
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    list-style: none;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    padding: 10px 15px;
    font-size: 0.9rem;
}

/* Menu Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 30px 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(233, 30, 140, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
    animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
}

.hero-badge .pulse {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-title .gradient-text {
    background: var(--gradient-hero);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.6), 0 0 30px rgba(233, 30, 140, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-3px);
}

.btn-glow {
    animation: btnGlow 2s ease-in-out infinite alternate;
}

@keyframes btnGlow {
    from { box-shadow: 0 0 20px rgba(255, 107, 53, 0.4); }
    to { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

/* ============================================
   SEÇÕES DE CONTEÚDO
   ============================================ */
.section {
    padding: 100px 30px;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    color: var(--color-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card), 0 0 30px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.2);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: all var(--transition-normal);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.card-link:hover {
    color: var(--color-magenta);
    gap: 15px;
}

/* Cards com cores dinâmicas */
.card:nth-child(1) { --card-accent: var(--color-orange); }
.card:nth-child(2) { --card-accent: var(--color-magenta); }
.card:nth-child(3) { --card-accent: var(--color-cyan); }
.card:nth-child(4) { --card-accent: var(--color-yellow); }
.card:nth-child(5) { --card-accent: var(--color-pink); }
.card:nth-child(6) { --card-accent: var(--color-turquoise); }

.card:nth-child(n) .card-icon {
    background: linear-gradient(135deg, var(--card-accent), rgba(255, 255, 255, 0.2));
}

.card:nth-child(n):hover {
    box-shadow: var(--shadow-card), 0 0 30px var(--card-accent);
}

/* ============================================
   PORTFOLIO / GALERIA
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    width: fit-content;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================
   BLOG / POSTS
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.blog-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.blog-title a:hover {
    color: var(--color-cyan);
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ============================================
   ESTATÍSTICAS / CONTADORES
   ============================================ */
.stats-section {
    background: var(--bg-card);
    padding: 80px 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   DEPOIMENTOS
   ============================================ */
.testimonials-section {
    padding: 100px 30px;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-card::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 8rem;
    color: var(--color-cyan);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: 30px;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: var(--gradient-primary);
    padding: 3px;
}

.testimonial-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   NEWSLETTER / CTA
   ============================================ */
.cta-section {
    padding: 100px 30px;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 16px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-darker);
    padding: 80px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.4);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-normal);
    color: var(--color-cyan);
}

.footer-links a:hover {
    color: var(--color-cyan);
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-copyright a {
    color: var(--color-cyan);
    text-decoration: none;
}

/* ============================================
   ANIMAÇÕES DE SCROLL
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   EFEITOS ESPECIAIS
   ============================================ */
.glow-text {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 40px currentColor;
}

.gradient-border {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: calc(var(--border-radius-lg) + 2px);
    z-index: -1;
}

/* Partículas de fundo */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: bgParticleFloat 15s infinite linear;
}

@keyframes bgParticleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-darker);
        padding: 100px 30px 30px;
        transition: right var(--transition-normal);
        z-index: 999;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-menu a {
        padding: 15px 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }
    
    .cards-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .preloader-logo {
        width: 200px;
    }
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    margin: 0;
}

.gallery-icon img {
    border-radius: var(--border-radius);
    transition: transform var(--transition-normal);
}

.gallery-icon img:hover {
    transform: scale(1.05);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-3px);
}

.pagination .current {
    background: var(--gradient-primary);
    border-color: transparent;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 30px;
    background: var(--bg-card);
    margin-bottom: 30px;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.breadcrumbs a:hover {
    color: var(--color-cyan);
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: var(--text-muted);
}

.breadcrumbs .current {
    color: var(--color-cyan);
}

/* Comments */
.comments-area {
    max-width: 800px;
    margin: 50px auto 0;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-cyan);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: color var(--transition-normal);
}

.comment-reply-link:hover {
    color: var(--color-magenta);
}

/* Formulários */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    font-size: 1rem;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group {
    margin-bottom: 25px;
}

/* Widgets */
.widget {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.widget a:hover {
    color: var(--color-cyan);
}

.widget_calendar table {
    width: 100%;
}

.widget_calendar th,
.widget_calendar td {
    padding: 10px;
    text-align: center;
}

.widget_calendar caption {
    margin-bottom: 15px;
    font-weight: 700;
}

/* ============================================
   CUSTOMIZAÇÃO DO WORDPRESS CUSTOMIZER
   ============================================ */
.customize-support .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .customize-support .site-header {
        top: 46px;
    }
}
