@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Grounded Next-Gen Palette */
    --bg-dark: #070b1d;
    /* Slightly deeper, more weighted blue-black */
    --bg-card: #0c1427;
    --bg-section-alt: #0a0f26;
    --primary: #3b82f6;
    --primary-glow: #60a5fa;
    --cyan: #22d3ee;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-bento: 24px;
    --shadow-ground: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: #fff;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
}

body.page-transitioning {
    opacity: 0;
    pointer-events: none;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Background Mesh Animation */
.mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(34, 211, 238, 0.1) 0, transparent 50%);
    filter: blur(100px);
    animation: mesh-move 20s infinite alternate ease-in-out;
}

@keyframes mesh-move {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1) translate(2% 2%);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo img {
    height: 36px;
    width: 36px;
    object-fit: cover;
    border-radius: 50%;
    /* Fully Rounded */
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.logo i {
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

@media (max-width: 1024px) {
    nav {
        display: none;
    }

    .btn-client {
        padding: 8px 15px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    .nav-wrapper {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .logo {
        font-size: 1.1rem;
    }

    .btn-client {
        width: 100%;
        justify-content: center;
    }
}

nav a {
    text-decoration: none;
    color: var(--slate-400);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: #fff;
}

.btn-client {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-client:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: url('./assets/hero.png') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    filter: blur(8px) saturate(0) contrast(1.2);
    mix-blend-mode: overlay;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-glow);
    margin-bottom: 32px;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .btn-cta {
        width: 100%;
        text-align: center;
    }
}

.hero p {
    font-size: 1.4rem;
    color: var(--slate-400);
    margin-bottom: 20px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero p {
        font-size: 1.1rem;
    }
}

.hero-benefits {
    display: flex;
    gap: 30px;
    justify-content: center;
    opacity: 0.8;
    font-size: 0.9rem;
    font-weight: 500;
    flex-wrap: wrap;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-400);
}

.benefit-item i {
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero-benefits {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

.btn-cta {
    background: #fff;
    color: #000;
    padding: 20px 40px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

/* Bento Grid */
.bento-section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 64px;
}

.section-header span {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.section-header h2 {
    font-size: 3.5rem;
    letter-spacing: -2px;
    margin-top: 12px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

.bento-card {
    background: var(--bg-card);
    border-radius: var(--radius-bento);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    box-shadow: var(--shadow-ground);
}

.bento-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    transition: var(--transition);
    z-index: 0;
}

.bento-card:hover .bento-card-bg {
    opacity: 0.4;
    transform: scale(1.05);
}

.bento-card-content {
    position: relative;
    z-index: 1;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.bento-card i {
    position: absolute;
    top: 40px;
    left: 40px;
    color: var(--primary);
    z-index: 1;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.bento-card p {
    color: var(--slate-400);
    font-size: 0.95rem;
}

/* Bento Spans */
.span-2 {
    grid-column: span 2;
}

.row-2 {
    grid-row: span 2;
}

/* Spotlight Effect */
.spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--x) var(--y), rgba(255, 255, 255, 0.06), transparent 40%);
    pointer-events: none;
}

/* Logos Slider Section */
.partners-section {
    padding: 0;
    margin-top: 120px;
    position: relative;
    z-index: 10;
}

.logos-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-bento);
}

.logos-container::before,
.logos-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logos-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-card) 0%, transparent 100%);
    border-radius: var(--radius-bento) 0 0 var(--radius-bento);
}

.logos-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-card) 0%, transparent 100%);
    border-radius: 0 var(--radius-bento) var(--radius-bento) 0;
}

.logo-slider {
    display: flex;
    width: calc(250px * 14);
    /* Accommodate duplicates */
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 7));
    }

    /* Slide half for infinite feel */
}

.client-logo-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    margin: 0 25px;
    background: #fff;
    /* Solid white to handle all logo types */
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.client-logo-wrapper:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px -10px var(--primary);
}

.client-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.4rem !important;
        letter-spacing: -1px !important;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .span-2,
    .span-4,
    .row-2 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .bento-card {
        height: auto;
        min-height: 250px;
        padding: 30px 20px !important;
    }

    .contact-final {
        padding: 40px 0 !important;
    }

    .contact-final .bento-card {
        padding: 35px 20px !important;
    }

    h2 {
        font-size: 2.1rem !important;
        letter-spacing: -1px !important;
    }

    .section-header h2 {
        font-size: 2.1rem !important;
    }
}

/* Scroll Down Animation */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-down:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

.arrow-scroll span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -4px auto;
    animation: scroll-arrow 2s infinite;
}

.arrow-scroll span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow-scroll span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 24px;
    }
}

@keyframes scroll-arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Reveal for Grid */
.bento-grid .bento-card:nth-child(1) {
    transition-delay: 0.1s;
}

.bento-grid .bento-card:nth-child(2) {
    transition-delay: 0.15s;
}

.bento-grid .bento-card:nth-child(3) {
    transition-delay: 0.2s;
}

.bento-grid .bento-card:nth-child(4) {
    transition-delay: 0.25s;
}

.bento-grid .bento-card:nth-child(5) {
    transition-delay: 0.3s;
}

.bento-grid .bento-card:nth-child(6) {
    transition-delay: 0.35s;
}

.bento-grid .bento-card:nth-child(7) {
    transition-delay: 0.4s;
}


/* Final Form & Mobile Polish */
.premium-form-container {
    max-width: 600px;
    margin: 40px auto 0;
}

.form-title {
    font-size: 4rem;
    margin-bottom: 40px;
    letter-spacing: -3px;
    line-height: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    white-space: normal;
    line-height: 1.2;
    padding: 18px 30px;
}

@media (max-width: 768px) {
    .form-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .premium-form-container {
        margin-top: 30px;
    }

    .btn-submit {
        font-size: 0.95rem;
        padding: 16px 20px;
    }
}