/* Modern Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Warm Peach Theme */
    --primary-color: #ffb5a7;
    /* Main Brand Color - Soft Peach */
    --primary-light: #ffd4c8;
    /* Lighter shade for hover/accents - Light Peach */
    --primary-dark: #d4806f;
    /* Darker shade for contrast - Deep Coral */
    --accent-color: #fff5f0;
    /* Very pale peach for backgrounds */
    --secondary-color: #3d2e2e;
    /* Dark brown for footer contrast */
    --text-light: #F3F3F3;
    --text-dark: #3d2e2e;
    --background-light: #fffbf8;
    --background-dark: #3d2e2e;
    --gradient-primary: #ffb5a7;
    /* Solid Peach */

    /* Typography */
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 181, 167, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 181, 167, 0.6);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Fix for Outline Button on Primary Background (Hero) - Now matching Primary */
.hero .btn-outline {
    background: var(--text-light);
    /* White background */
    color: var(--primary-color);
    /* Blue text */
    border: none;
    /* Remove border since it's filled */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #e6e6e6;
    /* Slight darken on hover */
}

/* Fix for Primary Button on Primary Background (Hero) - Inverted Style */
.hero .btn-primary {
    background: var(--text-light);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Header & Navigation */
header {
    background-color: var(--background-light);
    height: var(--header-height);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-speed);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
}

.dropdown-menu li a:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* Hero Section (Common) */
.hero {
    margin-top: var(--header-height);
    padding: 60px 0;
    background: linear-gradient(rgba(0, 56, 147, 0.85), rgba(0, 124, 255, 0.85)), url('../images/fintech-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    text-align: center;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Footer UI */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        /* Full width for cleaner look on small phones */
        max-width: 300px;
        /* Limit width on larger mobile */
        height: auto;
        /* Allow content to dictate height */
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        background-color: var(--background-light);
        flex-direction: column;
        padding: 20px;
        transition: var(--transition-speed);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    /* Mobile Dropdown Styling */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        /* Hidden by default */
        background-color: rgba(0, 0, 0, 0.02);
        /* Slight contrast */
        border-left: 2px solid var(--primary-color);
        margin-top: 10px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .hero {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Client Logos Section */
.clients-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.clients-section .section-title {
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: #555;
    font-weight: 500;
}

.client-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.client-logo {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.05);
}