/* assets/css/style.css */
:root {
    --primary: #004aad;
    /* Blue */
    --secondary: #00c853;
    /* Green */
    --primary-dark: #003380;
    --secondary-dark: #009624;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 15px;
    --font-family: 'Inter', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}

p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    position: relative;
    background: white;
    overflow: hidden;
}

/* Background Blob Shape */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    /* Moved further right */
    width: 55%;
    /* Reduced width from 65% */
    height: 140%;
    background: #e3f2fd;
    border-radius: 40% 0 0 40% / 50% 0 0 50%;
    z-index: 0;
    transform: rotate(-10deg);
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 2.8rem;
    /* Reduced for better balance */
    color: #0b2239;
    line-height: 1.25;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    font-weight: 800;
    /* Bolder for impact but smaller size */
}

.hero-content h1 span {
    color: var(--primary);
    /* Blue highlight implies primary brand color */
}

.hero-content p {
    font-size: 1.05rem;
    /* Slightly clearer reading size */
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

/* New Button Styles */
.btn-success {
    background: #00c853;
    /* Green */
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
}

.btn-success:hover {
    background: #009624;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 200, 83, 0.3);
}

.btn-outline-blue {
    background: white;
    color: #0b2239;
    border: 2px solid #0b2239;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.btn-outline-blue:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #444;
    font-weight: 500;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-item i {
    color: #555;
    font-size: 1.1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Centered instead of right-aligned */
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    width: 750px;
    /* Maximize size */
    height: auto;
    /* Removed 3D transform which causes blurriness */
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
    /* Simple clean zoom on hover */
}

@media (max-width: 900px) {
    .hero-section::before {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        right: 0;
        border-radius: 50% 50% 0 0;
        transform: none;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
        margin-bottom: 40px;
    }

    .hero-image img {
        width: 100%;
        max-width: 500px;
        /* Limit on mobile */
    }
}

/* Cards & Products */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-features {
    margin: 20px 0;
    text-align: left;
}

.card-features li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    display: block;
}

/* Bank Logos */
.banks-section {
    background: var(--white);
}

.bank-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0.7;
}

.bank-logos img {
    max-height: 40px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.bank-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* EMI Calculator */
.calculator-section {
    background: #e3f2fd;
}

.calculator-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.range-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    cursor: pointer;
}

.input-value {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.result-box {
    background: var(--primary);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.emi-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 50%;
}

/* FAQ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    background: #f9f9f9;
}

.accordion-item.active .accordion-body {
    padding: 20px;
    max-height: 200px;
}

.accordion-item.active .accordion-header {
    color: var(--primary);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    color: #aaa;
}

.footer-col a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
        /* Increased from 40px */
    }

    .hero-image {
        display: flex;
        justify-content: center;
        margin-top: 30px;
        /* Increased from 20px */
        position: relative;
        z-index: 2;
        /* Ensure it sits nicely */
    }

    .hero-image img {
        width: 80%;
        /* responsive width */
        max-width: 400px;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid {
        gap: 15px;
        /* Reduced gap from 30px to 15px on mobile */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@import url('modal.css');