/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utility Classes */
.text-green {
    color: #10b981;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-outline {
    background-color: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.logo-img {
    height: 2.5rem;
    width: auto;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    text-decoration: none;
    padding: 0.5rem 0;
    font-weight: 300;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #000;
}

.nav-link i {
    font-size: 1rem;
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 14rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 300;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: #000;
}

.dropdown-item i {
    font-size: 0.625rem;
    color: #6b7280;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 300;
    transition: background-color 0.3s ease;
}

.language-btn:hover {
    background-color: #f9fafb;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 0.25rem 0;
    min-width: 10rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 300;
    transition: background-color 0.3s ease;
}

.language-option:hover {
    background-color: #f9fafb;
}

.language-option.active {
    background-color: #eff6ff;
    color: #2563eb;
}

.flag {
    font-size: 1rem;
}

.login-btn {
    background-color: #ffc107;
    color: #000;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 300;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.login-btn:hover {
    background-color: #ffb300;
}

.contact-info {
    position: relative;
}

.contact-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #f3f4f6;
}

.contact-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1rem;
    width: 16rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.contact-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-icon {
    background-color: #f3f4f6;
    padding: 0.5rem;
    border-radius: 9999px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.contact-note {
    color: #6b7280;
    font-size: 0.75rem;
    text-align: center;
    font-weight: 300;
    margin-top: 0.75rem;
}

/* Hero Section */
.hero-section {
    background-color: #f9fafb;
    overflow: hidden;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    max-width: 80rem;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    padding-right: 1rem;
}

.hero-subtitle {
    color: #6b7280;
    font-size: 1.25rem;
    font-weight: 300;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    margin-top: 0.5rem;
}

.hero-title-accent {
    color: #dc2626;
    font-weight: 300;
}

.hero-features {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    color: #a855f7;
    font-size: 0.75rem;
}

.hero-cta {
    margin-top: 1.25rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.hero-img {
    max-height: 20rem;
    width: 100%;
    object-fit: contain;
}

.hero-pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.pagination-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    border: none;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-dot.active {
    background-color: #2563eb;
}

.stats-section {
    background-color: #e5e7eb;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0.75rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.125rem;
    font-weight: 300;
}

.stat-label {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 300;
}

/* Trending Loans Section */
.trending-loans {
    padding: 4rem 0;
    background-color: white;
}

.loans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.loan-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.loan-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eff6ff;
    border-radius: 50%;
}

.loan-icon img {
    width: 2rem;
    height: 2rem;
}

.loan-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.loan-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Calculators Section */
.calculators-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.calculator-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.calculator-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eff6ff;
    border-radius: 50%;
    color: #2563eb;
    font-size: 1.5rem;
}

.calculator-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.calculator-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #d1d5db;
    font-weight: 300;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #d1d5db;
    font-weight: 300;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
    font-weight: 300;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav.show {
        display: flex;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
        padding: 0.5rem 0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        justify-content: space-between;
        width: 100%;
        padding: 0.5rem 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
        border-left: 2px solid #e5e7eb;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu.hide {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-image {
        margin-top: 1rem;
    }

    .hero-img {
        max-height: 16rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .loans-grid,
    .calculators-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .loan-card,
    .calculator-card {
        padding: 1.5rem;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: white;
    font-size: 28px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile responsiveness for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
