:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #39ff14;
    /* Neon Green */
    --border-color: #333333;
    --card-bg: #0a0a0a;
    --font-main: 'Space Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll from 3D elements initially */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* --- Header --- */
.main-header {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    margin: 0 1rem;
    color: #888;
}

.nav-link:hover {
    color: var(--text-color);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 10rem 0 6rem;
    /* Added top padding to account for fixed header */
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-title {
    font-size: 5rem;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #ccc;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: #ddd;
}

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

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Process Section (Fast Lean Startup) --- */
.process-section {
    padding: 6rem 0;
    /* Optional diagonal background or similar */
}

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

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

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4rem 0;
    position: relative;
}

/* Connecting line */
.process-steps::before {
    content: '';
    position: absolute;
    top: 60px;
    /* Aligns with circle center roughly, adjusted below */
    left: 5%;
    width: 90%;
    height: 1px;
    background: #333;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.step-marker {
    width: 60px;
    height: 60px;
    background: #000;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    transition: 0.3s;
}

.step-item:hover .step-marker {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

.step-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.step-content {
    max-width: 300px;
}

.step-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.step-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #a0a0a0;
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.step-label {
    font-weight: bold;
    color: #bbb;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.2rem;
}


.process-footer {
    text-align: center;
    margin-top: 5rem;
    border-top: 1px solid #222;
    padding-top: 3rem;
}

.process-slogan {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #fff;
}

/* --- Playground Linear Carousel (Coverflow) --- */
.playground-section {
    padding: 8rem 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.playground-stage {
    position: relative;
    width: 100%;
    max-width: 1400px;
    /* Wider stage to fit 4 cards */
    height: 450px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    width: 300px;
    height: 400px;
    left: 50%;
    top: 50%;
    /* Centering logic handled by JS transforms, but initial pivot is center */
    margin-left: -150px;
    margin-top: -200px;

    background: #0a0a0a;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    /* Hidden by default until JS places them */
    z-index: 0;
}

/* Active Center Card */
.card.active {
    opacity: 1;
    z-index: 20;
    border-color: var(--accent-color);
    box-shadow: 0 0 50px rgba(57, 255, 20, 0.1);
}

/* Neighbor Cards styling handled by transform in JS usually, 
   but we can add general visible state */
.card.visible {
    opacity: 0.6;
    z-index: 10;
    cursor: pointer;
}

.card.visible:hover {
    opacity: 0.9;
    border-color: #666;
}

.card-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.card.active .card-content {
    pointer-events: auto;
}

.card-image-placeholder {
    height: 150px;
    background: #111;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

/* Generative Art placeholders - Kept same */
.wave-pattern {
    background: linear-gradient(45deg, #111 25%, #222 25%, #222 50%, #111 50%, #111 75%, #222 75%, #222 100%);
    background-size: 20px 20px;
}

.gold-s {
    background: radial-gradient(circle at 30% 30%, #ffd700, #333);
}

.coffee-art {
    background: radial-gradient(circle, #d2691e 20%, #fff 21%, #111 60%);
}

.code-screen {
    background: repeating-linear-gradient(0deg, #003300, #003300 2px, #000 2px, #000 4px);
}

.card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.card-desc {
    font-size: 0.8rem;
    color: #999;
    flex-grow: 1;
}

.btn-card {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--text-color);
    padding-top: 1rem;
    border-top: 1px solid #222;
    display: inline-block;
    margin-top: auto;
    pointer-events: auto;
}

.btn-card:hover {
    color: var(--accent-color);
}

/* --- Clients Section --- */
.clients-section {
    padding: 6rem 0;
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    opacity: 0.5;
}

.client-logo {
    height: 60px;
    background: #000;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #555;
    font-weight: bold;
    letter-spacing: 1px;
}

/* --- Footer --- */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.copyright-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-btn {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid #444;
    padding: 0.5rem 1rem;
}

.footer-btn:hover {
    border-color: var(--text-color);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    /* Services grid was here, now replaced by process flex logic mostly handled by default or the 600px break. */

    .hero-title {
        font-size: 3rem;
    }

    /* .cards-container managed by JS */
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-container {
        position: static;
        transform: none;
    }

    .nav-left,
    .nav-right {
        display: flex;
        gap: 1rem;
    }

    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .process-steps::before {
        display: none;
        /* Hide connector locally */
        /* Or make it vertical if desired */
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Chatbot Widget --- */
.chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: var(--font-body);
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #000;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(57, 255, 20, 0.6);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chatbot-header {
    background-color: #111;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-color);
}

.chatbot-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.chatbot-close:hover {
    color: var(--text-color);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    align-self: flex-start;
    background-color: #222;
    color: #eee;
    border-bottom-left-radius: 2px;
}

.user-message {
    align-self: flex-end;
    background-color: var(--accent-color);
    color: #000;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.loading-dots {
    display: flex;
    gap: 4px;
    padding: 0.8rem 1rem;
    background-color: #222;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    width: fit-content;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #888;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

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

    40% {
        transform: scale(1);
    }
}

.chatbot-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

#chatbot-input {
    flex: 1;
    background-color: #222;
    border: 1px solid #333;
    padding: 0.8rem;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
}

#chatbot-input:focus {
    border-color: var(--accent-color);
}

#chatbot-send {
    background-color: transparent;
    border: 1px solid #333;
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

#chatbot-send:hover {
    background-color: var(--accent-color);
    color: #000;
}

@media (max-width: 480px) {
    .chatbot-window {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 10000;
    }

    .chatbot-toggle {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}