/* Custom CSS for LoanLogic. Inspired by a professional financial tech aesthetic. */

:root {
    --primary-bg: #0e0e0e;
    --secondary-bg: #1a1a1a;
    --accent-color: #dc143c; /* Crimson Red */
    --text-color: #f0f0f0;
    --sub-text-color: #a0a0a0;
    --border-color: #333;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 800;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    font-size: 1.1rem;
    color: var(--sub-text-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff3366; /* Lighter red on hover */
}

/* Header & Navigation */
.header {
    background-color: rgba(14, 14, 14, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-bg);
        flex-direction: column;
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.5s ease-in-out;
    }
    .nav-links.open {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .nav-links li {
        text-align: center;
        padding: 0.75rem 0;
    }
    .menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(14, 14, 14, 0.85), rgba(14, 14, 14, 0.85)), url('https://images.unsplash.com/photo-1549414902-6c382f643e93?q=80&w=1920&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    position: relative;
}

.hero h1 {
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #ff3366;
    transform: translateY(-3px);
}

/* Metrics Section */
.metrics-section {
    background-color: var(--accent-color);
    padding: 4rem 0;
}

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

.metric-card h3 {
    font-size: 3.5rem;
    color: var(--primary-bg);
    font-weight: 900;
}

.metric-card p {
    font-size: 1.25rem;
    color: var(--primary-bg);
    font-weight: 500;
}

/* Sections */
section {
    padding: 6rem 0;
}

.services-section, .about-section, .testimonials-section {
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
}

.services-grid, .testimonials-grid, .footer-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

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

.service-card {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

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

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}
.about-image img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.ceo-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 4rem;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.ceo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.ceo-card:hover::before {
    transform: scaleX(1);
}

.ceo-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.ceo-info {
    flex: 1;
}

.ceo-info .ceo-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Testimonials */
.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--sub-text-color);
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--primary-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer ul {
    list-style: none;
}

.footer ul li a {
    color: var(--sub-text-color);
    transition: color 0.3s ease;
    padding: 0.25rem 0;
    display: inline-block;
}

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

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

.social-links a {
    color: var(--sub-text-color);
    width: 24px;
    height: 24px;
    transition: color 0.3s ease;
}

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

.copyright {
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    color: var(--sub-text-color);
}
