/* ===== CUSTOM PROPERTIES ===== */
:root {
    --primary-color: #1e2a4a;
    --secondary-color: #c41e3a;
    --accent-color: #2c3e50;
    --accent-light: #34495e;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --border-radius: 0.75rem;
    --border-radius-sm: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-secondary);
    font-weight: 700;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
}

/* ===== CUSTOM BOOTSTRAP OVERRIDES ===== */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.875rem;
}

.bg-primary-soft {
    background-color: rgba(30, 42, 74, 0.08) !important;
}

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

/* ===== TEXT GRADIENT ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ===== NAVIGATION ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: var(--gray-100);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-item small {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== HERO IMAGE ===== */
.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.25rem;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

.hero-graphic {
    width: 300px;
    height: 300px;
    position: relative;
}

.graphic-element {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== FEATURE ITEMS ===== */
.feature-item {
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

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

.service-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(30, 42, 74, 0.03) 0%, rgba(44, 62, 80, 0.03) 100%);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

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

/* ===== PORTFOLIO ===== */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 42, 74, 0.9) 0%, rgba(44, 62, 80, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

.portfolio-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.portfolio-content h5 {
    color: white;
    margin-bottom: 0.5rem;
}

/* ===== CONTACT ===== */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-info-wrapper {
    padding: 2rem;
}

.contact-info-wrapper h3 {
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon-inline {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-details h5 {
    margin-bottom: 0.25rem;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 1rem;
}

.contact-details p {
    margin-bottom: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-content h6 {
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    height: 100%;
}

.form-control, .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 42, 74, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
}

footer .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

footer .social-link:hover {
    background: var(--primary-color);
    color: white !important;
}

footer * {
    color: white !important;
}

footer a {
    color: white !important;
}

footer a:hover {
    color: var(--accent-color) !important;
}



/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-image {
        height: auto;
        margin-top: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .floating-card {
        position: relative;
        margin: 0;
        animation: none;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .card-1, .card-2, .card-3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    .hero-graphic {
        display: none;
    }
    
    .hero-image {
        padding-bottom: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-image {
        margin-top: 2rem;
        gap: 0.75rem;
    }
    
    .floating-card {
        max-width: 250px;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .floating-card i {
        font-size: 1.1rem;
    }
    
    .hero-graphic {
        display: none;
    }
    
    .floating-card i.fab.fa-whatsapp {
        color: white !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-info, .contact-form {
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .hero-content .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .hero-image {
        margin-top: 1.5rem;
        gap: 0.5rem;
    }
    
    .floating-card {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        max-width: 220px;
        gap: 0.5rem;
    }
    
    .floating-card i {
        font-size: 1rem;
    }
    
    .hero-graphic {
        display: none;
    }
    
    .hero-image {
        padding-bottom: 1.5rem;
    }
}

/* ===== CTA SECTION STYLES ===== */
section[style*="#1A2537"] h2,
section[style*="#1A2537"] p,
section[style*="#1A2537"] i {
    color: white !important;
}

/* About Section Icons */
.feature-icon i {
    color: white !important;
}

/* Modal Close Button */
.modal-header .btn-close {
    background-color: #1A2537 !important;
    border: 2px solid #1A2537 !important;
    opacity: 1 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(26, 37, 55, 0.3) !important;
}

.modal-header .btn-close::before {
    content: "×" !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.modal-header .btn-close:hover {
    background-color: #0f1419 !important;
    border-color: #0f1419 !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
    transition: all 0.2s ease !important;
}

.modal-header .btn-close:focus {
    box-shadow: 0 0 0 3px rgba(26, 37, 55, 0.25) !important;
}

/* ===== UTILITIES ===== */
.bg-light {
    background-color: var(--light-color) !important;
}

.text-muted {
    color: var(--gray-600) !important;
}

/* Melhorias de contraste */
.hero-section .text-muted {
    color: var(--gray-700) !important;
}

.service-card .text-muted {
    color: var(--gray-600) !important;
}

.contact-content p {
    color: var(--gray-700) !important;
}

.border-radius-lg {
    border-radius: var(--border-radius-lg) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ===== LOADING ANIMATION ===== */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SCROLL ANIMATIONS ===== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== VIDEO MODAL STYLES ===== */
#videoModal .modal-dialog {
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
}

#videoModal .modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
}

#videoModal .modal-header {
    background: #1A2537;
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#videoModal .modal-title {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
}

#videoModal .modal-header h5 {
    color: #ffffff !important;
    font-weight: 600;
}

#videoModal .btn-close {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    opacity: 1 !important;
    width: 32px !important;
    height: 32px !important;
}

#videoModal .btn-close::before {
    color: white !important;
    font-size: 18px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

#videoModal .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.05) !important;
}

#videoModal .modal-body {
    padding: 0;
    background: #000;
}

#videoModal .ratio {
    background: #000;
    aspect-ratio: 16/9;
    max-height: 450px;
}

#videoModal iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* Responsividade do modal de vídeo */
@media (max-width: 992px) {
    #videoModal .modal-dialog {
        max-width: 90%;
        margin: 1.5rem auto;
    }
    
    #videoModal .ratio {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    #videoModal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    #videoModal .modal-header {
        padding: 0.75rem 1rem;
    }
    
    #videoModal .modal-title {
        font-size: 1.1rem;
    }
    
    #videoModal .ratio {
        max-height: 300px;
    }
    
    #videoModal .btn-close {
        width: 28px !important;
        height: 28px !important;
    }
    
    #videoModal .btn-close::before {
        font-size: 16px !important;
    }
}

@media (max-width: 576px) {
    #videoModal .modal-dialog {
        margin: 0.5rem auto;
    }
    
    #videoModal .modal-title {
        font-size: 1rem;
    }
    
    #videoModal .ratio {
        max-height: 250px;
    }
}

/* ===== CTA BUTTON ICON STYLES ===== */
.btn-light .fas.fa-rocket {
    color: #000000 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}

.btn-light:hover .fas.fa-rocket {
    color: #1A2537 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.btn-light:focus .fas.fa-rocket,
.btn-light:active .fas.fa-rocket {
    color: #000000 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}

/* ===== RECAPTCHA STYLES ===== */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ===== PRINT STYLES ===== */
@media print {
    .whatsapp-float,
    .navbar,
    footer,
    .grecaptcha-badge {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
    }
    
    * {
        box-shadow: none !important;
    }
}