/*
Theme Name: LetFlow AI
Theme URI: https://letflow.io
Author: Ayan
Description: A high-performance, animation-rich theme for LetFlow AI.
Version: 1.0.0
*/

:root {
    --bg-color: #0a0a0a;
    --primary-text: #F5E6D3;
    --accent-color: #C9B896;
    --secondary-text: #D4C5B0;
    --font-main: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --transition-speed: 0.5s;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Global Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-text);
    font-family: var(--font-main);
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
    font-weight: 300;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-text);
    letter-spacing: -0.02em;
}

p {
    color: var(--secondary-text);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.text-accent {
    color: var(--accent-color);
}

.text-bold {
    font-weight: 600;
}

/* --- Layout --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 0;
    z-index: 1000;
    transition: all var(--transition-speed) var(--ease);
}

.nav--scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(201, 184, 150, 0.1);
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary-text);
    z-index: 1002;
}

.nav__list {
    display: flex;
    gap: 3rem;
    align-items: center;
    list-style: none;
}

/* WP Nav Menu Adaptation */
.nav__list>li>a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s;
}

.nav__list>li>a:hover {
    color: var(--accent-color);
}

.nav__cta,
.menu-item-cta a {
    background: var(--accent-color) !important;
    color: var(--bg-color) !important;
    padding: 0.9rem 2.22rem !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.4s var(--ease) !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.nav__cta:hover,
.menu-item-cta a:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(201, 184, 150, 0.25);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 10rem 0;
    position: relative;
}

.hero__title {
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    margin-bottom: 2.5rem;
    max-width: 1100px;
    position: relative;
    z-index: 2;
}

.hero__subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    max-width: 850px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
}

/* --- Shapes --- */
.parallax-shape {
    position: absolute;
    z-index: -1;
    filter: blur(60px);
    background: rgba(201, 184, 150, 0.04);
    pointer-events: none;
    will-change: transform;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: 10%;
    left: -5%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 20s infinite alternate;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: 5%;
    right: -5%;
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    animation: morph 15s infinite alternate-reverse;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 70% 30% 50% 50% / 70% 50% 50% 30%;
    }
}

/* --- Sections --- */
.section-header {
    margin-bottom: 6rem;
    text-align: center;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

/* --- Services --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(201, 184, 150, 0.08);
    padding: 4.5rem 3.5rem;
    border-radius: 30px;
    transition: all 0.6s var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-color);
    background: rgba(201, 184, 150, 0.04);
}

.service-card__title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.service-card__text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--secondary-text);
}

.service-card__cta {
    color: var(--primary-text);
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.service-card__cta:hover {
    color: var(--accent-color);
}

/* --- Process --- */
.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

@media (min-width: 1200px) {
    .process__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(201, 184, 150, 0.08);
    padding: 3.5rem 2.5rem;
    border-radius: 25px;
    transition: all 0.6s var(--ease);
    position: relative;
    overflow: hidden;
}

.process-card:hover {
    border-color: var(--accent-color);
    background: rgba(201, 184, 150, 0.04);
    transform: translateY(-10px);
}

.process-card__number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: rgba(201, 184, 150, 0.05);
    -webkit-text-stroke: 1px rgba(201, 184, 150, 0.1);
}

.process-card__title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
}

.process-card__text {
    font-size: 1rem;
    color: var(--secondary-text);
}

/* --- Connect Section --- */
.connect__container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.connect__content {
    margin-top: 4rem;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(201, 184, 150, 0.1);
    border-radius: 40px;
}

.connect__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
}

.connect__item {
    font-size: 1.5rem;
    color: var(--primary-text);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.connect__item:hover {
    color: var(--accent-color);
}

.connect__label {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* --- Footer --- */
.footer {
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid rgba(201, 184, 150, 0.05);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease);
}

.fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mouse Effects --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10001;
}

.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 184, 150, 0.08) 0%, rgba(10, 10, 10, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    will-change: transform;
    transition: opacity 0.3s;
}

/* --- Mobile --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-text);
    transition: 0.3s;
}

@media (max-width: 1023px) {
    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.6s var(--ease);
    }

    .nav__list--active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    section {
        padding: 4rem 0;
    }

    .hero {
        padding: 6rem 0;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .connect__content {
        padding: 2.5rem 1.5rem;
    }

    .connect__item {
        font-size: 1.2rem;
    }
}