@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0a2540;
    --primary-light: #163c61;
    --accent: #00d084;
    --accent-hover: #00b371;
    --text: #425466;
    --text-dark: #0a2540;
    --bg-light: #f6f9fc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Header */
header {
    /* height: 80px; */
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 100px;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--accent);
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(10, 37, 64, 0.2);
    background: var(--primary-light);
    color: var(--white);
}

/* Hero Section (Simple) */
.hero {
    padding: 140px 0 80px;
    /* Restored padding */
    background: #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Partners Section (Dynamic Marquee) */
.partners {
    padding: 80px 0;
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.overflow-hidden {
    overflow: hidden;
}

.partners-title {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 3rem;
    opacity: 0.6;
}

.logo-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logo-track {
    display: flex;
    width: calc(350px * 28);
    /* 14 logos * 2 sets * 350px */
    animation: scroll 40s linear infinite;
}

.logo img,
.footer-logo img {
    height: 100px;
    width: auto;
}


.logo-item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    background-color: #fff;
    padding: 10px;
}

.logo-item img {
    width: 150px;
    height: auto;
    transition: var(--transition);
}

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

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-350px * 14));
    }
}

/* Pause animation on hover */
.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-180px * 8));
        }
    }
}

/* Sections General */
section {
    padding: 100px 0;
}

/* About Section */
#about {
    background-color: #fafbfc;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text);
}

/* Our Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    border: 5px solid rgba(0, 208, 132, 0.2);
}

.process-step h3 {
    margin-bottom: 1rem;
}

/* Testimonials */
.stars {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial {
    text-align: center;
    height: 100%;
}

.testimonial-swiper {
    padding: 20px 20px 60px !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent) !important;
}

.card-slide {
    height: auto;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: var(--transition);
}

.faq-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.faq-header i {
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    background: #fdfdfd;
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.faq-item.active .faq-header {
    background: rgba(0, 208, 132, 0.02);
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

.faq-item.active .faq-body {
    max-height: 200px;
    /* Adjust based on content */
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(0, 208, 132, 0.1);
}

.faq-header:hover {
    background: rgba(0, 208, 132, 0.05);
}

/* EMI Calculator */
.emi-calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: #fdfdfd;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.emi-inputs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.result-breakdown {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.input-slide .label-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.input-slide .label-box span {
    font-weight: 600;
    color: var(--primary);
}

.input-slide .value-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 208, 132, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-slide .value-display input {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    width: auto;
    max-width: 130px;
    padding: 0;
    text-align: right;
    outline: none;
    font-family: inherit;
}

/* Remove arrows from numeric inputs */
.input-slide .value-display input::-webkit-outer-spin-button,
.input-slide .value-display input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-slide .value-display input[type=number] {
    -moz-appearance: textfield;
}

.emi-inputs input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.emi-chart-box {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
}

.result-breakdown {
    text-align: center;
}

.emi-box {
    background: #f6f9fc;
    padding: 1.25rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.emi-box .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.emi-box .emi-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-grid {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
    margin-top: 1.5rem;
}

.stat-col {
    flex: 1;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.stat-col span {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
    opacity: 0.8;
}

.stat-col strong {
    font-size: 0.85rem;
    color: var(--primary);
}

@media (max-width: 600px) {
    .stat-grid {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.chart-container {
    position: relative;
    height: 320px;
    /* Increased height for better centering */
    width: 100%;
}

.emi-center-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through to chart if needed */
    width: 100%;
}

.emi-center-box .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.emi-center-box .emi-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

@media (max-width: 992px) {
    .emi-calc-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        /* Reduced gap */
        padding: 1.5rem;
    }

    .chart-container {
        height: 280px;
    }
}

@media (max-width: 600px) {
    .chart-container {
        height: 240px;
        /* Smaller chart for mobile */
    }

    .emi-center-box .label {
        font-size: 0.7rem;
    }

    .emi-center-box .emi-val {
        font-size: 1.25rem;
    }

    .stat-grid {
        gap: 0.5rem;
    }
}

.emi-chart-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* EMI Advanced Actions */
.emi-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.action-btn-outline {
    flex: 1;
    padding: 0.8rem 1rem;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.action-btn-accent {
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    border: none;
    color: var(--primary);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.2);
}

.amortization-wrapper {
    margin-top: 4rem;
    background: #f8fbff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(10, 37, 64, 0.05);
}

.amortization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.amortization-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
    max-height: 500px;
}

#amortization-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

#amortization-table th {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    position: sticky;
    top: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

#amortization-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

#amortization-table tr:nth-child(even) {
    background: rgba(10, 37, 64, 0.02);
}

@media (max-width: 600px) {
    .emi-actions {
        flex-direction: column;
    }
    .amortization-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .action-btn-accent {
        width: 100%;
        justify-content: center;
    }
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 208, 132, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    padding: 4rem;
    background: var(--primary);
    color: var(--white);
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

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

.info-item .icon {
    font-size: 1.25rem;
    color: var(--accent);
}

.info-item h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-item p,
.info-item a {
    color: var(--white);
    font-size: 1rem;
}

.contact-form {
    padding: 4rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.1);
}

.form-grid-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: inherit;
    background-color: var(--white);
    color: var(--text);
    cursor: pointer;
}

.contact-form select:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 600px) {
    .form-grid-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.success-message {
    background: rgba(0, 208, 132, 0.1);
    color: var(--accent-hover);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

/* Footer */
footer {
    padding: 4rem 0;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.footer-logo img {
    height: 100px;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.copyright {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }
}

/* Mobile Floating Actions */
.mobile-actions {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    gap: 10px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.action-btn.call {
    background: var(--primary);
}

.action-btn.whatsapp {
    background: #25D366;
}

@media (max-width: 768px) {
    .mobile-actions {
        display: flex;
    }

    body {
        padding-bottom: 70px;
        /* Space for the floating bar */
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* Active Nav Highlighting */
nav ul li a.active {
    color: var(--accent);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px;
        /* Move up to avoid mobile-actions bar */
        right: 20px;
    }
}