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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    min-height: 70px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    min-width: 150px;
}

.logo i {
    font-size: 2rem;
    flex-shrink: 0;
}

.logo span {
    font-size: 2rem;
}

.logo img.logo-icon {
    height: 3rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo img.logo-title {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-align: center;
    min-width: 120px; /* Based on longest text: "Perkhidmatan" */
    display: inline-block;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: var(--shadow-md);
    min-width: 140px; /* Based on "Mohon Sekarang" */
    text-align: center;
    justify-content: center;
}

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

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

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

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

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

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

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #2563eb 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0;
    color: white;
}

.highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stats-section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.stats-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #374151;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.stat-card:hover i {
    transform: scale(1.1);
    color: #1f2937;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #374151;
    transition: all 0.3s ease;
}

.hero-card:hover i {
    transform: scale(1.1);
    color: #1f2937;
}

.hero-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Story Section (Dear Friend Letter) */
.story-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(37,99,235,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.story-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.letter-wrapper {
    background: white;
    padding: 3.5rem 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
    position: relative;
}

.letter-wrapper::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 120px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.letter-greeting {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.letter-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.letter-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.letter-body p:last-child {
    margin-bottom: 0;
}

.letter-closing {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    font-style: italic;
}

@media (max-width: 768px) {
    .story-section {
        padding: 60px 0;
    }
    
    .story-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .letter-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .letter-body {
        font-size: 1rem;
    }
}

/* Problem Section (Traditional Loan Frustrations) */
.problem-section {
    padding: 80px 0;
    background: white;
}

.problem-section .section-header {
    text-align: center;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.problem-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.problem-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    transform: translateY(-5px);
}

.problem-card:hover::before {
    transform: scaleY(1);
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.problem-card:hover .problem-icon {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transform: scale(1.1);
}

.problem-icon i {
    font-size: 2rem;
    color: #dc2626;
    transition: color 0.3s ease;
}

.problem-card:hover .problem-icon i {
    color: white;
}

.problem-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.problem-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.problem-cta {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .problem-section {
        padding: 60px 0;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .problem-card {
        padding: 2rem 1.5rem;
    }
    
    /* Allow button text to wrap on mobile */
    .problem-cta .btn,
    .problem-cta .btn-primary,
    .problem-cta .btn-large {
        white-space: normal !important;
        word-wrap: break-word;
        word-break: break-word;
        max-width: 90%;
        margin: 0 auto;
        line-height: 1.5;
        padding: 14px 20px;
        min-width: auto;
        width: auto;
        display: inline-block;
        text-align: center;
    }
    
    .problem-cta {
        padding: 0 1rem;
        overflow-x: hidden;
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

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

.service-card.featured {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border-color: transparent;
}

.service-card.featured::before {
    background: rgba(255, 255, 255, 0.3);
    transform: scaleX(1);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured .service-features li {
    color: white;
}

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    z-index: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card.featured .service-icon i {
    color: white;
}

.service-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
    text-align: center;
    letter-spacing: -0.01em;
}

.service-card.featured h3 {
    color: white;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #64748b;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
    width: 100%;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #475569;
}

.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.95);
}

.service-features i {
    color: #10b981;
    font-size: 0.875rem;
}

.service-card.featured .service-features i {
    color: rgba(255, 255, 255, 0.9);
}

.service-action {
    width: 100%;
    margin-top: auto;
    text-align: center;
}

.service-action .btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card.featured .service-action .btn-outline {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.service-card.featured .service-action .btn-outline:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-arrow {
    display: none;
}

.step-arrow {
    display: none;
}

.how-it-works .step-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.how-it-works .step-card.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.how-it-works .step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.how-it-works .step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 10;
}

.how-it-works .step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.how-it-works .step-card:hover .step-icon {
    transform: scale(1.1);
    background: var(--primary-color);
}

.how-it-works .step-card:hover .step-icon i {
    color: white;
}

.how-it-works .step-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.how-it-works .step-card h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
}

.how-it-works .step-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    text-align: center;
}

.step-arrow {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: var(--light-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 968px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.benefit-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Calculator Section - Minimalist Design with Color */
.calculator {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    position: relative;
}

.calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    padding: 60px 50px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
}

.calculator-header {
    text-align: center;
    margin-bottom: 50px;
}

.calculator-header h2 {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.calculator-header p {
    font-size: 1rem;
    color: #64748b;
    font-weight: 400;
}

.calculator-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: start;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.calc-input-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-label-row label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2563eb;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider-wrapper {
    position: relative;
    padding: 12px 0;
}

.slider-wrapper input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #e2e8f0 0%, #e2e8f0 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    margin: 0;
}

.slider-wrapper input[type="range"]:hover {
    background: linear-gradient(to right, #cbd5e1 0%, #cbd5e1 100%);
}

.slider-wrapper input[type="range"]:active {
    background: linear-gradient(to right, #93c5fd 0%, #60a5fa 100%);
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: 3px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4), 0 0 0 2px rgba(37, 99, 235, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -8px;
    position: relative;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5), 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.6), 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.slider-wrapper input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: 3px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4), 0 0 0 2px rgba(37, 99, 235, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -8px;
}

.slider-wrapper input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5), 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

.slider-wrapper input[type="range"]::-moz-range-track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

.calculator-result {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid rgba(37, 99, 235, 0.2);
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.result-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.result-amount {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.result-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.result-note {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 400;
    line-height: 1.5;
}

/* Responsive Calculator */
@media (max-width: 968px) {
    .calculator-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .calculator-result {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .calculator {
        padding: 60px 0;
    }
    
    .calculator-wrapper {
        padding: 40px 28px;
        border-radius: 20px;
    }
    
    .calculator-header {
        margin-bottom: 40px;
    }
    
    .calculator-header h2 {
        font-size: 1.75rem;
    }
    
    .calculator-inputs {
        gap: 32px;
    }
    
    .result-amount {
        font-size: 2.5rem;
    }
    
    .calculator-result {
        padding: 32px 24px;
    }
}

/* Application Form Section */
.application-form {
    padding: 80px 0;
    background: var(--light-color);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Multi-Step Form Styles */
.form-steps {
    margin-bottom: 3rem;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 3rem;
    gap: 1.5rem;
    width: 100%;
}

.step-indicator .step-card {
    flex: 1;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 120px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.step-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.step-card.active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
    transform: translateY(-4px);
}

.step-card.completed {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #10b981;
}

/* Step number styling for form steps */
.step-indicator .step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 10;
}

.step-indicator .step-card.active .step-number {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.step-indicator .step-card.completed .step-number {
    background: #10b981;
}

.step-indicator .step-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.step-indicator .step-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.step-indicator .step-card.active .step-icon {
    background: var(--primary-color);
}

.step-indicator .step-card.active .step-icon i {
    color: white;
}

.step-indicator .step-card.completed .step-icon {
    background: #10b981;
}

.step-indicator .step-card.completed .step-icon i {
    color: white;
}

.step-indicator .step-label {
    display: none;
}

.step-indicator .step-card.active .step-label {
    display: none;
}

.step-indicator .step-card.completed .step-label {
    display: none;
}

.step-arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    font-size: 1.5rem;
    padding: 0 0.5rem;
    transition: all 0.3s ease;
}

.step-card.active ~ .step-arrow,
.step-card.completed ~ .step-arrow {
    color: var(--primary-color);
}

.step-card.completed ~ .step-arrow {
    color: #10b981;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

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

.step-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
}

.btn-prev,
.btn-next {
    min-width: 120px;
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.file-upload-label i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.file-upload-label span {
    color: var(--text-color);
    font-weight: 500;
}

.file-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    position: relative;
}

.file-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.file-preview #fileName {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.file-preview #fileSize {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
}

.btn-remove-file {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-remove-file:hover {
    background: #dc2626;
    transform: scale(1.1);
}

@media (max-width: 968px) {
    .step-arrow {
        display: none;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .step-card {
        flex: 0 0 calc(50% - 0.375rem);
        min-height: 100px;
        padding: 1rem 0.75rem;
    }
    
    .step-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .form-steps {
        margin-bottom: 2rem;
    }
    
    .step-indicator {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: space-between;
        flex-wrap: nowrap;
        margin-bottom: 2rem;
    }
    
    .step-indicator .step-card {
        flex: 1;
        min-width: 0;
        min-height: auto;
        padding: 1rem 0.75rem;
        gap: 0;
        height: auto;
        justify-content: center;
    }
    
    .step-arrow {
        display: none;
    }
    
    .step-indicator .step-label {
        display: none;
    }
    
    .step-indicator .step-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .step-indicator .step-icon i {
        font-size: 1rem;
    }
    
    .step-indicator .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
        top: -15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-prev,
    .btn-next {
        width: 100%;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    perspective: 1200px;
    width: fit-content;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2.5rem;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 360px;
    flex-shrink: 0;
    margin: 0 1rem;
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.testimonial-card.active {
    width: 432px; /* 20% wider (360px * 1.2) */
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.testimonial-card.active::before {
    opacity: 1;
}

/* Left card (previous) */
.testimonial-card.prev {
    opacity: 0.6;
    transform: scale(0.85) translateX(40px) rotateY(15deg);
    z-index: 1;
    filter: blur(2px);
}

/* Right card (next) */
.testimonial-card.next {
    opacity: 0.6;
    transform: scale(0.85) translateX(-40px) rotateY(-15deg);
    z-index: 1;
    filter: blur(2px);
}

/* Active card (center) */
.testimonial-card.active {
    opacity: 1;
    transform: scale(1) translateX(0) rotateY(0deg);
    z-index: 10;
    filter: blur(0);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
    width: 432px; /* 20% wider (360px * 1.2) */
}

/* Circular animation for side cards - recursive */
.testimonial-card.prev {
    animation: rotateLeft 3s ease-in-out infinite;
}

.testimonial-card.next {
    animation: rotateRight 3s ease-in-out infinite;
}

@keyframes rotateLeft {
    0%, 100% {
        transform: scale(0.85) translateX(40px) rotateY(15deg);
    }
    25% {
        transform: scale(0.88) translateX(30px) rotateY(25deg) translateZ(-30px);
    }
    50% {
        transform: scale(0.9) translateX(20px) rotateY(35deg) translateZ(-50px);
    }
    75% {
        transform: scale(0.88) translateX(30px) rotateY(25deg) translateZ(-30px);
    }
}

@keyframes rotateRight {
    0%, 100% {
        transform: scale(0.85) translateX(-40px) rotateY(-15deg);
    }
    25% {
        transform: scale(0.88) translateX(-30px) rotateY(-25deg) translateZ(-30px);
    }
    50% {
        transform: scale(0.9) translateX(-20px) rotateY(-35deg) translateZ(-50px);
    }
    75% {
        transform: scale(0.88) translateX(-30px) rotateY(-25deg) translateZ(-30px);
    }
}

.testimonial-card.active:hover {
    transform: scale(1.02) translateY(-5px) rotateY(0deg);
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.3);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.stars .far {
    color: #e5e7eb;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Testimonials Navigation */
.testimonials-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.testimonials-arrow:hover {
    background: var(--gradient-2);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.testimonials-arrow-prev {
    left: 0;
}

.testimonials-arrow-next {
    right: 0;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.testimonials-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.testimonials-dots .dot:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

@media (max-width: 1200px) {
    .testimonials-slider-wrapper {
        padding: 60px 40px;
    }
    
    .testimonial-card {
        width: 300px;
    }
    
    .testimonial-card.active {
        width: 360px; /* 20% wider (300px * 1.2) */
    }
}

@media (max-width: 768px) {
    .testimonials-slider-wrapper {
        padding: 60px 20px;
    }
    
    .testimonials-slider {
        width: 100%;
    }
    
    .testimonial-card {
        width: 280px;
        padding: 2rem;
        margin: 0 0.5rem;
    }
    
    .testimonial-card.active {
        width: 336px; /* 20% wider (280px * 1.2) */
    }
    
    .testimonials-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonials-arrow-prev {
        left: 5px;
    }
    
    .testimonials-arrow-next {
        right: 5px;
    }
    
    .testimonial-card.prev,
    .testimonial-card.next {
        display: none;
    }
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--gradient-1);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

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

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.footer-logo img.footer-logo-icon {
    height: 3rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo img.footer-logo-title {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

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

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary-color);
}

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

.footer-bottom a {
    color: white;
    text-decoration: none;
}

/* Language Selector */
.language-selector {
    position: relative;
    flex-shrink: 0;
}

/* Hide mobile language selector on desktop */
.language-selector-mobile {
    display: none;
}

/* Show desktop language selector on desktop */
.language-selector-desktop {
    display: block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    min-width: 85px;
    justify-content: center;
}

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

.lang-btn i.fa-globe {
    color: var(--primary-color);
}

.lang-btn i.fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.lang-btn.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.lang-option.active {
    background: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
}

.lang-option .flag {
    font-size: 1.25rem;
}

.lang-option .flag-code {
    display: inline-block;
    min-width: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 968px) {
    .logo {
        min-width: 120px;
        gap: 8px;
    }
    
    .logo img.logo-icon {
        height: 2.5rem;
    }
    
    .logo img.logo-title {
        height: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        gap: 1rem;
        padding: 0.75rem 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Hamburger menu - left */
    .hamburger {
        display: flex;
        order: 1;
        flex-shrink: 0;
    }
    
    /* Logo - center */
    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex-shrink: 0;
    }
    
    /* Show mobile language selector in main bar - right */
    .language-selector-mobile {
        display: block;
        order: 3;
        margin-left: auto;
        margin-right: 0;
        flex-shrink: 0;
    }
    
    /* Hide desktop language selector in mobile menu */
    .language-selector-desktop {
        display: none;
    }
    
    .logo {
        min-width: 100px;
        gap: 6px;
    }
    
    .logo span {
        font-size: 1.5rem;
    }
    
    .logo img.logo-icon {
        height: 2rem;
    }
    
    .logo img.logo-title {
        height: 1.75rem;
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Style mobile language button */
    .language-selector-mobile .lang-btn {
        padding: 6px 12px;
        min-width: 70px;
        font-size: 0.85rem;
    }
    
    .language-selector-mobile .lang-btn span {
        font-size: 0.85rem;
    }
    
    /* Adjust dropdown position for mobile */
    .language-selector-mobile .lang-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
    }
    
    @media (max-width: 640px) {
        .hero-cards {
            grid-template-columns: 1fr;
        }
        
        .logo {
            min-width: auto;
            gap: 5px;
        }
        
        .logo img.logo-icon {
            height: 1.75rem;
        }
        
        .logo img.logo-title {
            height: 1.5rem;
            display: block;
        }
        
        .step-indicator .step-icon {
            width: 35px;
            height: 35px;
        }
        
        .step-indicator .step-icon i {
            font-size: 0.9rem;
        }
    }
    
    @media (max-width: 480px) {
        .logo {
            gap: 4px;
        }
        
        .logo img.logo-icon {
            height: 1.5rem;
        }
        
        .logo img.logo-title {
            height: 1.25rem;
            display: block;
        }
        
        .step-indicator {
            gap: 1rem;
        }
        
        .step-indicator .step-card {
            padding: 0.75rem 0.5rem;
        }
        
        .step-indicator .step-icon {
            width: 30px;
            height: 30px;
        }
        
        .step-indicator .step-icon i {
            font-size: 0.8rem;
        }
        
        .step-indicator .step-number {
            width: 25px;
            height: 25px;
            font-size: 0.65rem;
            top: -12px;
        }
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card i {
        font-size: 2.5rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-card p {
        font-size: 0.85rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card i {
        font-size: 2.5rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-card p {
        font-size: 0.85rem;
    }
    
    .hero-card {
        padding: 1.5rem;
    }
    
    .hero-card i {
        font-size: 2.5rem;
    }
    
    .hero-card h3 {
        font-size: 1.1rem;
    }
    
    .hero-card p {
        font-size: 0.85rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll to top animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.modal-close:hover {
    background-color: #f1f5f9;
    color: var(--dark-color);
}

.modal-body {
    padding: 30px;
}

.modal-body .form-wrapper {
    padding: 0;
}

.modal-body .form-steps {
    margin-bottom: 20px;
}

.modal-body .form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-body .form-step.active {
    display: block;
    opacity: 1;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        max-width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-body .form-steps {
        margin-bottom: 15px;
    }
}
