:root {
    --primary-purple: #663399;
    --secondary-purple: #8A2BE2;
    --light-purple: #E6E0F8;
    --dark-purple: #4B0082;
    --accent-purple: #9370DB;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-dark: #333333;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

body.page-loaded {
    opacity: 1;
}

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

/* Header Styles */
header {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.logo-icon {
    margin-right: 10px;
    font-size: 28px;
    transition: transform 0.5s ease;
}

.logo:hover .logo-icon {
    animation: rotate 1s ease;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

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

.nav-links a:hover {
    color: var(--light-purple);
}

.auth-buttons {
    display: flex;
}

.login-btn, .register-btn {
    padding: 8px 15px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s, color 0.3s;
}

.login-btn:hover, .register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.login-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.register-btn {
    background-color: var(--white);
    color: var(--primary-purple);
}

.register-btn:hover {
    background-color: var(--light-purple);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: slideDown 0.8s ease-out forwards;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Transfer Card */
.transfer-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin: -50px auto 50px;
    max-width: 800px;
    position: relative;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
    transition: transform 0.4s ease-out;
}

.transfer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Tab Navigation */
.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    background: none;
    border: none;
    outline: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-purple);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab-btn:hover::after {
    width: 80%;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-btn.active {
    color: var(--primary-purple);
    border-bottom: 3px solid var(--primary-purple);
}

.tab-btn:hover {
    color: var(--primary-purple);
}

/* Tab Content */
.tab-content {
    display: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
    opacity: 0;
}

.tab-content.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

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

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(147, 112, 219, 0.2);
}

.currency-input {
    position: relative;
}

.currency-input span {
    position: absolute;
    left: 12px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--text-light);
    pointer-events: none; /* Permite clicar "através" do símbolo */
    font-size: 14px; /* Tamanho reduzido para evitar sobreposição */
}

.currency-input input {
    padding-left: 36px; /* Aumentado para dar mais espaço após o símbolo */
}

.submit-btn {
    background-color: var(--primary-purple);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
}

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

.submit-btn:hover {
    background-color: var(--secondary-purple);
}

/* Calculator Results */
.calc-result {
    background-color: var(--light-purple);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.calc-row.total {
    font-weight: bold;
    color: var(--primary-purple);
    border-bottom: none;
    padding-top: 10px;
    font-size: 18px;
}

.destination-value {
    text-align: center;
    margin-top: 20px;
}

.destination-value h3 {
    color: var(--dark-purple);
    margin-bottom: 10px;
    font-size: 18px;
}

.value-display {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border-radius: 8px;
    padding: 20px;
    font-size: 22px;
}

.value-display .amount {
    font-size: 28px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.value-display .country {
    font-size: 16px;
    opacity: 0.9;
}

/* Tracking Form */
.tracking-input {
    max-width: 500px;
    margin: 0 auto 20px;
}

/* Features Section */
.features {
    padding: 50px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-purple);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: all 0.4s ease;
}

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

.feature-icon {
    font-size: 40px;
    color: var(--primary-purple);
    margin-bottom: 15px;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--dark-purple);
}

/* How It Works */
.how-it-works {
    padding: 50px 0;
    background-color: var(--light-purple);
}

.steps {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: var(--accent-purple);
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-purple);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(102, 51, 153, 0.5);
}

/* Testimonials */
.testimonials {
    padding: 50px 0;
    background-color: var(--white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 60px;
    color: var(--accent-purple);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-purple);
    margin-right: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-country {
    color: var(--text-light);
    font-size: 14px;
}

/* Download App */
.download-app {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-purple));
    color: var(--white);
    text-align: center;
}

.app-content {
    max-width: 600px;
    margin: 0 auto;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.app-btn {
    display: flex;
    align-items: center;
    background-color: var(--white);
    color: var(--primary-purple);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.app-btn-icon {
    font-size: 24px;
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-purple);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

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

.footer-links a {
    color: var(--light-purple);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) rotate(5deg);
    background-color: var(--accent-purple);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .steps::before {
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
        transform: translateX(-50%);
    }
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

/* Classes para animações de feedback */
.success-animation {
    animation: pulse 0.5s ease;
}

.error-animation {
    animation: shake 0.5s ease;
}

/* Classes para animações de carregamento */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: rotate 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* Estados de carregamento para botões */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: rotate 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}