/* Custom CSS for Deputada Rosangela Website */

:root {
    --primary-color: #c1121f;
    --primary-color-dark: #8a0d16;
    --secondary-color: #e01e37;
    --accent-color: #ff4d6d;
    --dark-color: #1a2430;
    --light-color: #f8f9fa;
    --text-color: #2f3542;
    --text-light: #6c757d;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
    --font-heading: 'Montserrat', var(--font-body);
}

/* Global Styles */
body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
.site-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar.bg-primary {
    background-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
}

.navbar.bg-primary {
    background-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 0;
    margin-right: 1.5rem;
}

.navbar-logo {
    height: 65px;
    width: auto;
    max-width: 240px;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 3px;
    padding: 0.4rem 0.8rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.15);
    color: #fff !important;
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.25);
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

@media (max-width: 991px) {
    .navbar-logo {
        height: 50px;
        max-width: 180px;
    }
    
    .navbar-brand {
        margin-right: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem !important;
        margin: 2px 0;
        font-size: 0.85rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a4161a 45%, var(--primary-color-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section .particles-js-canvas-el {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 5;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.35;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: 
        url('data:image/svg+xml,<svg width="120" height="120" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="mesh" width="120" height="120" patternUnits="userSpaceOnUse"><circle cx="60" cy="60" r="2.5" fill="rgba(255,255,255,0.4)"/><line x1="0" y1="60" x2="120" y2="60" stroke="rgba(255,255,255,0.2)" stroke-width="1"/><line x1="60" y1="0" x2="60" y2="120" stroke="rgba(255,255,255,0.2)" stroke-width="1"/><circle cx="0" cy="0" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="120" cy="0" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="0" cy="120" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="120" cy="120" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.25)"/><circle cx="90" cy="30" r="1.5" fill="rgba(255,255,255,0.25)"/><circle cx="30" cy="90" r="1.5" fill="rgba(255,255,255,0.25)"/><circle cx="90" cy="90" r="1.5" fill="rgba(255,255,255,0.25)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23mesh)"/></svg>');
    background-size: 120px 120px;
    opacity: 0.6;
    animation: meshMove 15s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
    opacity: 0.7;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes meshMove {
    0% {
        background-position: 0 0;
        transform: translate(0, 0);
    }
    25% {
        background-position: 60px 30px;
        transform: translate(5px, -5px);
    }
    50% {
        background-position: 120px 60px;
        transform: translate(0, 0);
    }
    75% {
        background-position: 60px 90px;
        transform: translate(-5px, 5px);
    }
    100% {
        background-position: 0 0;
        transform: translate(0, 0);
    }
}

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

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

.hero-image {
    position: relative;
    z-index: 10;
}

.hero-section h1,
.hero-section p,
.hero-section .lead,
.hero-section .btn {
    position: relative;
    z-index: 10;
}

.hero-section h1.text-warning {
    color: #ffd700 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-section p,
.hero-section .lead {
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-section .btn {
    text-shadow: none;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-buttons .btn-outline-light:hover {
    background-color: white;
    color: #000 !important;
    border-color: white;
}

.hero-buttons .btn-outline-light:hover i {
    color: #000 !important;
}

/* Card Styles */
.card {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 20px;
}

/* Button Styles */
.btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

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

.btn-warning:hover {
    background-color: #e6850e;
    color: white;
}

.btn-pink {
    background-color: #ff6b9d;
    color: white;
    border: none;
}

.btn-pink:hover {
    background-color: #ff4d7a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-white {
    background-color: white;
    color: #000;
    border: 2px solid white;
}

.btn-white:hover {
    background-color: #f8f9fa;
    color: #000;
    border-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-white i {
    color: #000;
}

/* Section Styles */
section {
    padding: 80px 0;
}

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

/* Quick Actions */
.quick-actions .card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.quick-actions .card:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
    z-index: 0;
    pointer-events: none;
}

.contact-cta .container {
    position: relative;
    z-index: 1;
}

.contact-cta .btn {
    position: relative;
    z-index: 2;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a252f 100%);
}

.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
}

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

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #c8102e;
}

/* Carousel Styles */
#carouselHero {
    margin-bottom: 0;
}

#carouselHero .carousel-item {
    height: 500px;
}

#carouselHero.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
    transition-duration: 1.5s;
    transition-timing-function: ease-in-out;
}

#carouselHero.carousel-fade .carousel-item.active,
#carouselHero.carousel-fade .carousel-item-next.carousel-item-start,
#carouselHero.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

#carouselHero.carousel-fade .active.carousel-item-start,
#carouselHero.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

#carouselHero .carousel-image-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

#carouselHero .carousel-image-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
}

#carouselHero .carousel-item.active .carousel-image-wrapper img {
    transform: scale(1);
}

#carouselHero .carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 800px;
    width: 90%;
    transition: opacity 0.8s ease-in-out;
}

#carouselHero .carousel-indicators {
    margin-bottom: 1rem;
    z-index: 15;
}

#carouselHero .carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 5px;
    padding: 0;
}

#carouselHero .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
}

#carouselHero .carousel-indicators button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.4);
    width: 16px;
    height: 16px;
}

/* Navegação personalizada do carousel */
#carouselHero {
    position: relative;
}

#carouselHero .carousel-nav-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;
}

#carouselHero .carousel-control-custom {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 0 10px;
    padding: 0;
    pointer-events: all;
}

#carouselHero .carousel-control-custom:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

#carouselHero .carousel-control-custom .carousel-control-icon i {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    #carouselHero .carousel-nav-buttons {
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    #carouselHero .carousel-item {
        height: 300px;
    }
    
    #carouselHero .carousel-caption {
        padding: 1rem;
        bottom: 1rem;
    }
    
    #carouselHero .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    #carouselHero .carousel-caption p {
        font-size: 0.9rem;
    }
}
