/* General Setup & Variables */
:root {
    --bg-dark: #040b14;
    --bg-card: rgba(16, 26, 43, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);

    --text-main: #f0f4f8;
    --text-muted: #9baac4;

    --color-cyan: #00b0f0;
    --color-cyan-glow: rgba(0, 176, 240, 0.3);

    --color-navy: #0c2b4e;
    --color-navy-glow: rgba(12, 43, 78, 0.5);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.dark-section {
    background: linear-gradient(180deg, rgba(4, 11, 20, 0) 0%, rgba(12, 43, 78, 0.2) 50%, rgba(4, 11, 20, 0) 100%);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-cyan);
    color: #fff;
    box-shadow: 0 4px 15px var(--color-cyan-glow);
}

.btn-primary:hover {
    background-color: #0096cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-cyan-glow);
}

.btn-secondary {
    background-color: var(--color-navy);
    color: #fff;
    border: 1px solid rgba(0, 176, 240, 0.3);
}

.btn-secondary:hover {
    background-color: #123e6e;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
}

.badge-cyan {
    color: var(--color-cyan);
    border-color: rgba(0, 176, 240, 0.3);
}

.badge-navy {
    color: #8baad1;
    border-color: rgba(12, 43, 78, 0.8);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    padding: 1.5rem 0;
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(4, 11, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    width: 48px;
    height: 48px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.lender {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
    /* Updated to white for contrast on dark bg */
    letter-spacing: 1px;
}

.industries {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: #9baac4;
    /* Grayish */
    letter-spacing: 2px;
}

.dot {
    color: var(--color-cyan);
    font-weight: 800;
}

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

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-cyan);
}

.nav-cta-mobile {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: var(--transition);
}

/* Background Gradients */
.gradient-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    border-radius: 50%;
    opacity: 0.4;
    animation: float 10s ease-in-out infinite;
}

.blob-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-cyan-glow) 0%, transparent 70%);
}

.blob-2 {
    bottom: 20%;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-navy-glow) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {

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

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Visual Code Card in Hero */
.visual-card {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.visual-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
}

.card-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

code {
    color: #e2e8f0;
}

.comment {
    color: #64748b;
    font-style: italic;
}

.keyword {
    color: #c678dd;
}

.function {
    color: #61afef;
}

.string {
    color: #98c379;
}

/* Trusted Partners Section */
.trusted-section {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    background: rgba(4, 11, 20, 0.4);
    position: relative;
    z-index: 2;
}

.trusted-label {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem 5rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--transition);
    cursor: default;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.partner-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Grid Sections */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 176, 240, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 176, 240, 0.1);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper svg {
    width: 30px;
    height: 30px;
}

/* Split Sections */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.split-container.reverse .split-content {
    order: 2;
}

.split-container.reverse .split-visual {
    order: 1;
}

.check-list {
    list-style: none;
    margin-bottom: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #e0e6ed;
}

.check-icon {
    width: 24px;
    height: 24px;
    color: var(--color-cyan);
    background: rgba(0, 176, 240, 0.1);
    border-radius: 50%;
    padding: 4px;
}

.rounded-image {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.shadow-cyan {
    box-shadow: 20px 20px 0 -10px var(--color-navy), 40px 40px 0 -20px rgba(0, 176, 240, 0.3);
}

/* Profiles Grid */
.profile-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.profile-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass);
    transform: translateX(10px);
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--color-cyan);
}

.p-info h4 {
    margin-bottom: 0.25rem;
}

.p-info span {
    color: var(--color-cyan);
    font-size: 0.9rem;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
}

.cta-card {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(12, 43, 78, 0.8) 0%, rgba(4, 11, 20, 0.8) 100%);
    border: 1px solid rgba(0, 176, 240, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Footer */
footer {
    background: #02060b;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-glass);
}

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

.footer-brand p {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--color-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations & Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-right {
    transform: translateX(30px);
}

.fade-left {
    transform: translateX(-30px);
}

.fade-right.active,
.fade-left.active {
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-container,
    .split-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-container.reverse .split-content {
        order: 1;
    }

    .split-container.reverse .split-visual {
        order: 2;
    }

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

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

    .partners-grid {
        gap: 2rem 3rem;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    /* Mobile Menu specific setup */
    .header-actions {
        display: flex;
        align-items: center;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 999;
    }

    nav#nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(4, 11, 20, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border-glass);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    nav#nav-menu.nav-active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        margin-bottom: 3rem;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .nav-cta-mobile {
        display: inline-block;
    }

    .hero {
        padding-top: 6rem;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* Contact Page Specifics */
.contact-page-bg {
    background: radial-gradient(circle at top right, rgba(12, 43, 78, 0.4) 0%, rgba(4, 11, 20, 1) 50%);
}

.contact-main {
    padding-top: 8rem;
    min-height: calc(100vh - 300px);
    /* rough footer calc */
}

.contact-split {
    align-items: flex-start;
}

.contact-info {
    padding-right: 2rem;
}

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

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

.detail-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 176, 240, 0.1);
    border: 1px solid rgba(0, 176, 240, 0.3);
    border-radius: 12px;
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 24px;
    height: 24px;
}

.detail-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.detail-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

.text-link {
    color: var(--color-cyan);
    text-decoration: none;
    transition: var(--transition);
}

.text-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Form Styling */
.contact-form-wrapper {
    padding: 3rem;
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-group select option {
    background-color: var(--bg-dark);
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 176, 240, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-block {
    width: 100%;
}

/* Success State */
.hidden {
    display: none !important;
}

.form-success {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.form-success h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Portfolio Page Specifics */
.portfolio-page-bg {
    background: radial-gradient(circle at bottom left, rgba(12, 43, 78, 0.4) 0%, rgba(4, 11, 20, 1) 50%);
}

.portfolio-main {
    padding-top: 8rem;
    min-height: calc(100vh - 300px);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: var(--color-cyan);
    color: #fff;
    border-color: var(--color-cyan);
    box-shadow: 0 4px 15px var(--color-cyan-glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-color: rgba(0, 176, 240, 0.1);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 176, 240, 0.4);
}

.pf-thumbnail {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}

.pf-thumbnail.no-image {
    background: linear-gradient(135deg, rgba(4, 11, 20, 1) 0%, rgba(12, 43, 78, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-logo {
    opacity: 0.2;
    /* Subtle watermark effect */
    transition: var(--transition);
}

.portfolio-card:hover .no-image-logo {
    opacity: 0.5;
    /* Brighten slightly on hover */
    transform: scale(1.1);
}

.pf-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(4, 11, 20, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-glass);
    color: var(--color-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pf-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pf-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: #fff;
}

.pf-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pf-tech {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.text-cyan {
    color: var(--color-cyan);
    font-weight: 500;
}