/* --- Custom Variables & Global Reset --- */
:root {
    --primary: #00006b;
    /* Deep Blue */
    --accent: #fc450f;
    /* Orange */
    --light-bg: #f5f6f8;
    --text-dark: #212529;
    --deep-shadow: 0 10px 30px rgba(0, 0, 107, 0.08);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    scroll-behavior: smooth;
}

img{
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary);
}

/* Custom Button Styling */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    transition: var(--transition-speed);
}

.btn-primary:hover {
    background-color: #00005a;
    border-color: #00005a;
    box-shadow: 0 4px 15px rgba(0, 0, 107, 0.4);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-speed);
    box-shadow: 0 5px 15px rgba(252, 69, 15, 0.3);
}

.btn-accent:hover {
    background-color: #e03b0c;
    border-color: #e03b0c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(252, 69, 15, 0.5);
}

section {
    padding: 80px 0;
    overflow: hidden;
}

.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.bg-grey-section {
    background-color: var(--light-bg);
}

/* --- Header & Navigation --- */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--primary) !important;
    padding: 1rem 1.2rem !important;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--accent) !important;
    border-bottom: 3px solid var(--accent);
}

/* --- Hero Section Styling --- */
#hero {
    padding-top: 80px;
    padding-bottom: 50px;
    position: relative;
    /* Subtle diagonal background */
    background: linear-gradient(135deg, #ffffff 50%, rgba(245, 246, 248, 0.8) 100%);
}

.hero-headline {
    font-size: 3.2rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero-subtext {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2.5rem;
}

.highlight-text {
    color: var(--accent);
}

/* Abstract Shape (Custom Visual Pattern) */
.hero-visual {
    position: relative;
    height: 400px;
}

.fintech-abstract {
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 20px;
    overflow: hidden;
    position: absolute;
    box-shadow: var(--deep-shadow);
}

.fintech-abstract::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -30%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at top right, rgba(252, 69, 15, 0.4) 0%, rgba(0, 0, 107, 0.8) 50%, transparent 100%);
    opacity: 0.6;
    animation: rotateShape 10s infinite linear;
}

@keyframes rotateShape {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-image-placeholder {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
}

/* --- About Section (Zig-Zag Icons) --- */
.about-feature-item {
    margin-bottom: 30px;
    padding: 20px;
    border-left: 5px solid var(--accent);
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.about-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-feature-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 15px;
}

/* --- Services Section (Staggered Blocks / Non-Card) --- */
.service-item-block {
    background-color: var(--light-bg);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
}

/* Applying staggering effect using margin only on larger screens */
@media (min-width: 992px) {
    .service-item-block:nth-child(even) {
        margin-left: 5%;
        background-color: #fcfcfc;
    }
}

.service-item-block:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-item-block i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-right: 15px;
}

.service-item-block h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

/* --- Platform & Technology (Dark BG) --- */
#platform {
    background-color: var(--primary);
    color: white;
    padding: 100px 0;
    position: relative;
    /* Custom visual separation */
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0% 100%);
    margin-top: -50px;
}

#platform h2,
#platform h3 {
    color: white;
}

/* Alignment fix for dark section title */
#platform .section-title h2::after {
    background-color: var(--accent);
    left: 0;
    transform: translateX(0);
}

.tech-icon-grid {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tech-icon-grid i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.tech-icon-grid:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* --- Why Choose Finnipe (Stats/Counters) --- */
#why-choose {
    background-color: var(--light-bg);
}

.stat-item {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--deep-shadow);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 5px;
}

.usp-list li {
    list-style: none;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.usp-list li:last-child {
    border-bottom: none;
}

.usp-list li i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* --- Partner Benefits (Horizontal Scroll/Step-based layout) --- */
.step-container {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.step-container::-webkit-scrollbar {
    display: none;
}

.benefit-card {
    min-width: 300px;
    flex: 0 0 auto;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary);
    transition: all 0.3s;
}

.benefit-card:hover {
    border-top-color: var(--accent);
    transform: translateY(-5px);
}

.benefit-card .icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 107, 0.3);
}

/* --- Process / How It Works (Timeline Flow) --- */
#process {
    background-color: var(--light-bg);
}

.process-flow {
    position: relative;
    padding-top: 40px;
}

.process-step {
    position: relative;
    margin-bottom: 50px;
    padding: 0 20px;
}

.step-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--deep-shadow);
    border-left: 4px solid var(--accent);
}

.step-icon-circle {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    border-radius: 50%;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    z-index: 10;
    position: relative;
    box-shadow: 0 0 0 8px var(--light-bg);
}

/* Desktop Timeline Adjustment */
@media (min-width: 992px) {
    .process-flow::before {
        content: '';
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: calc(100% - 100px);
        background: linear-gradient(to bottom, var(--primary), var(--accent));
        z-index: 0;
    }

    .process-step:nth-child(odd) {
        text-align: right;
        padding-right: 0;
        padding-left: 0;
    }

    .process-step:nth-child(even) {
        text-align: left;
        padding-right: 0;
        padding-left: 0;
    }

    .process-step-container {
        display: flex;
        align-items: center;
    }

    .step-icon-circle {
        margin: 0;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, 0);
    }

    .process-step:nth-child(odd) .step-content {
        margin-right: 60px;
    }

    .process-step:nth-child(even) .step-content {
        margin-left: 60px;
    }
}

/* --- CTA (Accent Color) --- */
#cta-section {
    background-color: var(--accent);
    padding: 80px 0;
    color: white;
}

#cta-section h2 {
    color: white;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.btn-cta-light {
    background-color: white;
    color: var(--accent);
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-cta-light:hover {
    background-color: #eee;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- Footer --- */
footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-logo {
    font-weight: 900;
    font-size: 1.8rem;
    color: white !important;
}

.footer-heading {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-whatsapp {
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-visual {
        margin-top: 50px;
        height: 300px;
    }

    section {
        padding: 60px 0;
    }

    .navbar-collapse {
        text-align: center;
        background-color: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        border-bottom: none !important;
    }

    .process-step {
        padding: 0;
    }
}