/* Variáveis de Cores e Fontes */
:root {
    --color-blue: #004aad;
    --color-blue-dark: #00337a;
    --color-yellow: #fdbf10;
    --color-green: #289038;
    --color-white: #ffffff;
    --color-light-bg: #f4f7f6;
    --color-text: #333333;
    --color-text-muted: #666666;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section-bg {
    background-color: var(--color-light-bg);
}

section {
    padding: 100px 0;
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

.center {
    text-align: center;
}

/* Header & Navbar */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.header-scrolled .nav-container {
    height: 65px;
}

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

.logo-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-number {
    background-color: var(--color-yellow);
    color: var(--color-blue-dark);
    font-size: 22px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--color-blue-dark);
    font-size: 15px;
    transition: var(--transition);
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-green);
}

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--color-blue);
    transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    color: var(--color-white);
    padding: 120px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg opacity="0.05" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23fff"/></svg>') repeat;
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
}

.hero .subtitle {
    font-size: 18px;
    color: var(--color-yellow);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero .title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.2);
}

.hero .title span {
    color: var(--color-yellow);
    display: inline-block;
}

.hero .description {
    font-size: 1.15rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-blue-dark);
    border: 2px solid var(--color-yellow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-yellow);
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-blue-dark);
    transform: translateY(-3px);
}

.shadow-hover:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.candidate-img {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    border: 6px solid var(--color-yellow);
    object-fit: cover;
}

.number-badge {
    position: absolute;
    bottom: -25px;
    right: 30px;
    background-color: var(--color-green);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 45px;
    font-weight: 800;
    padding: 12px 35px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    z-index: 3;
}

/* Classes Genéricas */
.section-title {
    font-size: 2.5rem;
    color: var(--color-blue-dark);
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    color: var(--color-text);
}

.signature {
    font-family: 'Brush Script MT', 'Caveat', cursive, sans-serif;
    font-size: 40px;
    color: var(--color-blue);
    margin-top: 40px;
    transform: rotate(-3deg);
    display: inline-block;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.post-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: var(--transition);
    border-bottom: 5px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--color-blue);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.post-card:hover .icon-bounce {
    animation: bounce 0.5s ease;
}

.post-icon {
    font-size: 35px;
    color: var(--color-yellow);
    margin-bottom: 25px;
    display: inline-block;
}

.post-card h3 {
    color: var(--color-blue-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.post-card p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.post-tag {
    align-self: flex-start;
    background-color: var(--color-light-bg);
    color: var(--color-green);
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Social Section */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-white);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-btn i {
    font-size: 24px;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.tiktok { background: #000000; }
.twitter { background: #14171a; }
.threads { background: #000000; }
.youtube { background: #ff0000; }
.custom { background: var(--color-blue); }

/* Footer e Texto do TSE */
footer {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    padding: 80px 0 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-info h3 {
    color: var(--color-yellow);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-info p {
    opacity: 0.85;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.footer-contact h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--color-yellow);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    opacity: 0.85;
    font-size: 1.05rem;
}

.tse-info {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.tse-info p {
    margin-bottom: 5px;
}

/* =========================================
   ANIMAÇÕES CSS
   ========================================= */

.float-anim {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 144, 56, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(40, 144, 56, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 144, 56, 0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.reveal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0) scale(1);
}

.fade-up { transform: translateY(60px); }
.fade-left { transform: translateX(-60px); }
.fade-right { transform: translateX(60px); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }


/* =========================================
   RESPONSIVIDADE 
   ========================================= */

@media (max-width: 1024px) {
    .hero .title { font-size: 3.5rem; }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 30px;
    }
    
    .hero .title { font-size: 3.5rem; }
    
    .hero .description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .number-badge {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
    }
    
    .pulse-anim {
        animation: pulseMobile 2s infinite;
    }
    
    @keyframes pulseMobile {
        0% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 0 rgba(40, 144, 56, 0.7); }
        70% { transform: translateX(-50%) scale(1.05); box-shadow: 0 0 0 15px rgba(40, 144, 56, 0); }
        100% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 0 rgba(40, 144, 56, 0); }
    }
}

@media (max-width: 768px) {
    section { padding: 70px 0; }
    .hero { padding: 100px 0 80px; }
    
    .hamburger { display: block; }
    .hamburger.active { transform: rotate(90deg); }
    
    .nav-menu {
        position: absolute;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        text-align: center;
        transition: 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active { left: 0; }
    .nav-item { margin: 15px 0; }
    
    .nav-link {
        display: block;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn { width: 100%; }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-contact p { justify-content: center; }
    
    .delay-1, .delay-2, .delay-3, .delay-4, .delay-5, .delay-6 {
        transition-delay: 0s;
    }
}

@media (max-width: 480px) {
    .hero .title { font-size: 2.8rem; }
    .section-title { font-size: 1.8rem; }
    .candidate-img { border-width: 4px; }
    .number-badge { font-size: 32px; padding: 10px 25px; }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
}