/* --- RESET & CORE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: #555;
    margin-bottom: 15px;
    font-size: 15px;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* --- BACKGROUND ANIMATION (AI/Network Theme) --- */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #607D8B;
    border-radius: 50%;
    animation: floatNetwork 20s infinite linear;
    opacity: 0.3;
}

.bg-line {
    position: absolute;
    height: 1px;
    background: #607D8B;
    opacity: 0.1;
    transform-origin: left center;
    animation: floatLine 15s infinite ease-in-out;
}

/* Randomly positioning nodes for effect */
.bg-node:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

.bg-node:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-duration: 30s;
}

.bg-node:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-duration: 22s;
}

.bg-node:nth-child(4) {
    top: 60%;
    left: 90%;
    animation-duration: 28s;
}

@keyframes floatNetwork {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* --- HEADER STYLES --- */
.header {
    background: #F8EBD6;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 72px;
    animation: slideDown 0.8s ease forwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    display: block;
}


.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-buttons .btn-login {
    padding: 8px 24px;
    border: 1px solid #ccc;
    background: transparent;
    border-radius: 30px;
    color: #333;
    font-weight: 500;
}

.auth-buttons .btn-login:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #bbb;
}

.auth-buttons .btn-signup {
    background: #FF6A00;
    color: white;
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(255, 106, 0, 0.2);
}

.auth-buttons .btn-signup:hover {
    background: #e05c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 106, 0, 0.3);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
    margin-left: 10px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* --- AI HERO SECTION --- */
.ai-hero {
    position: relative;
    padding: 120px 0;
    background-color: #263238;
    /* Blue Grey Dark */
    color: white;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.ai-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, #37474F, #263238);
    z-index: 0;
}

/* Matrix effect simulation */
.ai-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

.ai-hero-content {
    position: relative;
    z-index: 5;
    max-width: 600px;
}

.ai-hero h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.ai-hero h1 span {
    background: linear-gradient(90deg, #4DB6AC, #80CBC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-hero p {
    font-size: 18px;
    color: #B0BEC5;
    max-width: 550px;
    margin-bottom: 35px;
}

.btn-ai {
    background: #009688;
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 150, 136, 0.4);
}

.btn-ai:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 150, 136, 0.6);
    background: #26A69A;
}

/* Brain/Network Visual */
.brain-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-center {
    width: 20px;
    height: 20px;
    background: #4DB6AC;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 20px #4DB6AC;
    animation: pulseCore 2s infinite;
}

.orbit-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.on-1 {
    top: 0;
    left: 50%;
    animation: orbit1 4s linear infinite;
}

.on-2 {
    top: 50%;
    right: 0;
    animation: orbit2 6s linear infinite;
}

.on-3 {
    bottom: 0;
    left: 50%;
    animation: orbit3 5s linear infinite;
}

.connection-line {
    position: absolute;
    border: 1px dashed rgba(77, 182, 172, 0.3);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: spinReverse 20s linear infinite;
}

@keyframes pulseCore {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spinReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

/* --- CAPABILITIES SECTION --- */
.ai-services {
    padding: 100px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #263238;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.ai-card {
    padding: 40px;
    border-radius: 16px;
    background: #f4f6f7;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid transparent;
}

.ai-card:hover {
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #009688;
    transform: translateY(-5px);
}

.ai-icon-box {
    width: 60px;
    height: 60px;
    background: #E0F2F1;
    color: #009688;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.ai-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #37474F;
}

.ai-card p {
    color: #546E7A;
    font-size: 15px;
    line-height: 1.7;
}

.ai-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-tag {
    font-size: 12px;
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #CFD8DC;
    color: #455A64;
}

/* --- PIPELINE SECTION --- */
.pipeline-section {
    padding: 100px 0;
    background: #ECEFF1;
    position: relative;
    overflow: hidden;
}

.pipe-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* Connecting Line */
.pipe-line-bg {
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: #CFD8DC;
    z-index: 1;
}

.pipe-step {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 180px;
}

.pipe-circle {
    width: 100px;
    height: 100px;
    background: white;
    border: 4px solid #009688;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #009688;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.pipe-step:hover .pipe-circle {
    transform: scale(1.1);
    background: #009688;
    color: white;
}

.pipe-step h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #37474F;
}

.pipe-step p {
    font-size: 13px;
    color: #78909C;
}

/* --- TECH STACK (Code Block) --- */
.code-section {
    padding: 80px 0;
    background: #263238;
    color: white;
    font-family: monospace;
}

.code-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #1b2327;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #37474F;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.code-line {
    margin-bottom: 10px;
    display: block;
}

.cl-1 {
    color: #C792EA;
}

/* Import/Def */
.cl-2 {
    color: #82B1FF;
}

/* Variables */
.cl-3 {
    color: #C3E88D;
}

/* Strings */
.cl-4 {
    color: #F06292;
}

/* Keywords */

/* --- CTA SECTION --- */
.ai-cta {
    padding: 80px 0;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
}

.ai-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #263238;
}

.btn-outline-dark {
    border: 2px solid #263238;
    color: #263238;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn-outline-dark:hover {
    background: #263238;
    color: white;
}

/* --- FOOTER STYLES (Identical) --- */
.footer {
    background: #f9f9f9;
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid #eee;
    position: relative;
    z-index: 2;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.footer-logo h3 span {
    display: block;
    font-size: 14px;
    color: #FF6A00;
    font-weight: 500;
}

.footer-logo p {
    color: #777;
    margin: 10px 0;
}

.tagline {
    font-weight: 600;
    color: #FF6A00 !important;
    font-size: 18px;
    margin: 15px 0 30px;
}

.footer-links a {
    margin: 0 15px;
    color: #666;
    font-size: 14px;
}

.footer-links a:hover {
    color: #FF6A00;
}

.footer-copyright {
    margin-top: 30px;
    color: #999;
    font-size: 13px;
}

/* --- ANIMATIONS --- */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-hidden {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.animate-hidden {
    transform: translateY(40px);
}

.fade-right.animate-hidden {
    transform: translateX(-40px);
}

.fade-left.animate-hidden {
    transform: translateX(40px);
}

.animate-active {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.stagger-children.animate-active>* {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.animate-active>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children.animate-active>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-children.animate-active>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-children.animate-active>*:nth-child(4) {
    transition-delay: 0.4s;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .header-container {
        padding: 0 20px;
    }


    .brain-visual {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 50px;
        width: 300px;
        height: 300px;
    }

    .ai-grid {
        grid-template-columns: 1fr;
    }

    .pipe-container {
        flex-direction: column;
        gap: 40px;
    }

    .pipe-line-bg {
        width: 4px;
        height: 100%;
        left: 50%;
        top: 0;
        margin-left: -2px;
    }

    .code-wrapper {
        margin: 0 20px;
        padding: 20px;
        font-size: 12px;
    }
}