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

:root {
    /* Colors (SOP Loan / Modern Fintech Inspired) */
    --primary-color: #1e3a8a;
    /* Navy Blue */
    --primary-dark: #0f172a;
    /* Dark Slate */
    --accent-color: #3b82f6;
    /* Bright Blue */
    --secondary-accent: #f59e0b;
    /* Amber for subtle highlights */

    --bg-body: #f8fafc;
    /* Light Gray/Blue Tint */
    --bg-white: #ffffff;

    --text-heading: #1e293b;
    /* Slate 800 */
    --text-body: #475569;
    /* Slate 600 */
    --text-light: #94a3b8;
    /* Slate 400 */

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

input,
textarea,
button {
    font-family: inherit;
}

/* =========================================
   2. GLOBAL UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    color: var(--text-heading);
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 3rem;
    font-size: 1.125rem;
    color: var(--text-body);
}

.section-badge {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-primary-nav {
    background-color: var(--primary-dark);
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary-nav:hover {
    background-color: var(--accent-color);
}

.btn-block {
    width: 100%;
}

/* =========================================
   3. HEADER / NAVBAR
   ========================================= */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-heading);
    font-size: 0.95rem;
}

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

/* Mobile Menu Checkbox Hack */
.nav-toggle,
.nav-toggle-label {
    display: none;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    /* Gradient Background */
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    padding-top: var(--header-height);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle overlay pattern */
.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    display: inline-block;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    color: #93c5fd;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 550px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Visual / Card Animation */
.hero-image {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    cursor: pointer;
}

.hero-card:hover {
    transform: rotateY(0) rotateX(0);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.green {
    background: #10b981;
}

.graph-area {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 150px;
    gap: 10px;
    margin-bottom: 2rem;
}

.bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: height 1s ease;
}

.bar.active {
    background: var(--accent-color);
}

.card-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-stat strong {
    font-size: 1.5rem;
    color: #10b981;
}

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about {
    background: var(--bg-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 2rem;
}

.mission-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    gap: 1rem;
}

.value-icon {
    font-size: 2rem;
    color: var(--accent-color);
    line-height: 1;
}

.value-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-body);
}

.feature-boxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-box {
    background: var(--bg-body);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid #e2e8f0;
}

.feature-box h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0px;
}

.feature-box p {
    font-weight: 500;
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services {
    background: var(--bg-body);
}

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

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: default;
}

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

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--accent-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-body);
}

/* =========================================
   7. BENEFITS / WHY US
   ========================================= */
.benefits {
    background: var(--bg-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.benefit-item {
    padding: 1.5rem;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: background 0.3s;
}

.benefit-item:hover .benefit-icon {
    background: #e0f2fe;
    color: var(--accent-color);
}

/* =========================================
   8. CONTACT SECTION
   ========================================= */
.contact {
    background: var(--bg-body);
}

.contact-container {
    max-width: 1000px;
}

/* Slimmer container */

.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    /* Big shadow */
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
}

.contact-info {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.contact-info h3 {
    color: white;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #bfdbfe;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-icon {
    font-size: 1.25rem;
    color: #60a5fa;
}

.detail-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.detail-item p {
    color: white;
    margin: 0;
    font-size: 0.95rem;
}

.contact-form-wrapper {
    padding: 3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    background: #f8fafc;
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    background: white;
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =========================================
   9. FOOTER EXTENDED
   ========================================= */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

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

.social-links a {
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Newsletter Form */
.footer-form {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.footer-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    color: white;
    width: 100%;
}

.footer-form input::placeholder {
    color: #64748b;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* =========================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-tagline {
        margin: 0 auto 1.5rem;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    /* Hide complicated 3D card on tablet */

    .about-container {
        grid-template-columns: 1fr;
    }

    .mission-values {
        gap: 1rem;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-heading);
        position: absolute;
        left: 0;
        transition: 0.3s;
    }

    .nav-toggle-label span {
        top: 9px;
    }

    .nav-toggle-label span::before {
        content: '';
        top: -8px;
    }

    .nav-toggle-label span::after {
        content: '';
        bottom: -8px;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        border-bottom: 1px solid #eee;
        transform: translateY(-150%);
        transition: 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    #nav-toggle:checked~.nav {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}