/* Custom CSS for Conversion Template */

:root {
    --primary-color: #28a745;
    --secondary-color: #20c997;
    --success-color: #28a745;
    --accent-color: #34ce57;
    --light-green: #e8f5e8;
    --dark-green: #1e7e34;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    line-height: 1.1;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Utility Classes */
.hover-lift {
    transition: var(--transition);
}

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

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.bg-gradient-green {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

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

.text-green-light {
    color: var(--accent-color) !important;
}

.shadow-custom {
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.15);
}

/* Header Styles */
.navbar {
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--light-green);
}

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: var(--box-shadow);
    }

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    color: #666 !important;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color) !important;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
        transform: translateX(-50%);
    }

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

/* Melhorar dropdown */
.dropdown-menu {
    border: 1px solid var(--light-green);
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.1);
}

.dropdown-item {
    color: #666;
    transition: var(--transition);
}

    .dropdown-item:hover {
        background-color: var(--light-green);
        color: var(--primary-color);
    }

    .dropdown-item.active {
        background-color: var(--primary-color);
        color: white;
    }

/* Melhorar botão do idioma */
.btn-outline-success {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline-success:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }

/* Melhorar navbar toggler */
.navbar-toggler {
    border-color: var(--primary-color);
    padding: 4px 8px;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
        border-color: var(--primary-color);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2840, 167, 69, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    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 1000 100" preserveAspectRatio="none"><polygon fill="%23ffffff" points="1000,100 1000,0 0,100"/></svg>') no-repeat bottom;
        background-size: 100% 100px;
        pointer-events: none;
    }

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero-features .fas {
    color: var(--accent-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Feature Cards */
.feature-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }

.feature-icon {
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Conversion Form */
.conversion-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.conversion-section {
    background: linear-gradient(135deg, var(--light-green) 0%, #f8f9fa 100%);
}

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

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

.form-control-lg {
    font-size: 1.2rem;
    padding: 1rem 1.25rem;
}

.btn {
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
        background: linear-gradient(135deg, var(--dark-green), var(--primary-color));
    }

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

/* Loading States */
.btn-loading .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Security Badge */
.security-badges {
    opacity: 0.8;
}

    .security-badges i {
        color: var(--success-color);
    }

/* Benefits Side */
.benefits-content {
    position: relative;
}

.benefit-list .fas {
    font-size: 1.2rem;
}

.stars {
    font-size: 0.9rem;
}

/* Testimonials */
.testimonial-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

    .testimonial-card blockquote {
        font-style: italic;
        position: relative;
    }

        .testimonial-card blockquote::before {
            content: '"';
            font-size: 3rem;
            color: var(--primary-color);
            position: absolute;
            top: -1rem;
            left: -1rem;
            opacity: 0.3;
        }

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

    .cta-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 1000 100" preserveAspectRatio="none"><polygon fill="%23ffffff" points="0,0 0,100 1000,0"/></svg>') no-repeat top;
        background-size: 100% 100px;
        pointer-events: none;
    }

/* Countdown Timer */
.countdown-timer {
    font-family: 'Courier New', monospace;
}

.countdown-number {
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--box-shadow);
}

/* Footer */
.footer {
    background: var(--dark-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

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

/* Modals */
.modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.modal-header {
    background: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Success Modal */
.success-icon {
    color: var(--success-color);
    animation: pulse 2s infinite;
}

/* Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Scroll to Top Button */
#scrollToTop {
    transition: var(--transition);
    box-shadow: var(--box-shadow-lg);
}

    #scrollToTop:hover {
        transform: translateY(-3px) scale(1.1);
    }

/* Language Switcher */
.dropdown-item.active {
    background: var(--primary-color);
    color: white;
}

/* Form Validation */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--success-color);
}

    .was-validated .form-control:valid:focus,
    .was-validated .form-select:valid:focus {
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    }

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--danger-color);
}

    .was-validated .form-control:invalid:focus,
    .was-validated .form-select:invalid:focus {
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }

.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: var(--success-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .conversion-form-wrapper .row {
        flex-direction: column-reverse;
    }

    .countdown-number {
        min-width: 50px;
        min-height: 50px;
        font-size: 1.2rem;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .countdown-timer .d-flex {
        gap: 1rem !important;
    }

    .countdown-number {
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    #scrollToTop,
    .scroll-progress,
    .cta-section,
    footer {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    * {
        box-shadow: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000080;
        --border-radius: 0;
    }

    .btn,
    .form-control,
    .form-select,
    .card {
        border: 2px solid #000;
    }
}

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

    .animate-bounce,
    .animate-pulse {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #ffffff;
        --light-color: #1a1a1a;
    }

    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .bg-white {
        background-color: #2a2a2a !important;
        color: #ffffff;
    }

    .bg-light {
        background-color: #2a2a2a !important;
    }

    .text-dark {
        color: #ffffff !important;
    }

    .text-muted {
        color: #cccccc !important;
    }

    .form-control,
    .form-select {
        background-color: #2a2a2a;
        border-color: #404040;
        color: #ffffff;
    }

        .form-control:focus,
        .form-select:focus {
            background-color: #2a2a2a;
            border-color: var(--primary-color);
            color: #ffffff;
        }

    .modal-content {
        background-color: #2a2a2a;
        color: #ffffff;
    }

    .dropdown-menu {
        background-color: #2a2a2a;
        border-color: #404040;
    }

    .dropdown-item {
        color: #ffffff;
    }

        .dropdown-item:hover {
            background-color: #404040;
        }
}
