/*
Theme Name: COSOLVIX
Theme URI: https://cosolvix.com
Author: Replit
Author URI: https://replit.com
Description: A premium, dark-themed SaaS landing page for COSOLVIX.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cosolvix
*/

/* Base Styles & Custom CSS */
:root {
    --primary: #B4F000;
    --dark: #111111;
    --dark-grey: #1C1C1C;
    --light: #F5F5F5;
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

::selection {
    background-color: var(--primary);
    color: var(--dark);
}

/* Nav & Glassmorphism */
.glass-nav {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(to right, var(--primary), #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--dark);
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #a3d900;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(180, 240, 0, 0.3);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Background Effects */
.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: rgba(180, 240, 0, 0.05);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

/* Cards */
.glass-card {
    background: rgba(28, 28, 28, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(248, 113, 113, 0.3);
}

.service-card {
    background: var(--dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, rgba(180, 240, 0, 0.2), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: rgba(180, 240, 0, 0.5);
    transform: translateY(-5px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-box {
    width: 56px;
    height: 56px;
    background: rgba(180, 240, 0, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background 0.3s ease;
}

.service-card:hover .service-icon-box {
    background: rgba(180, 240, 0, 0.2);
}

.service-icon-box i {
    color: var(--primary);
}

/* Process Step */
.process-step {
    position: relative;
    transition: all 0.3s ease;
}

.process-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover .process-icon-wrapper {
    border-color: var(--primary);
}

.process-step:hover .process-icon-wrapper i {
    color: var(--primary);
}

.process-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--dark);
    padding: 4px 8px;
    border: 1px solid rgba(180, 240, 0, 0.3);
}

.connecting-line {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(180, 240, 0, 0.3), transparent);
    z-index: 0;
}

/* Result Blocks */
.result-block {
    background: var(--dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.result-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(180, 240, 0, 0.05);
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
    z-index: 0;
}

.result-block:hover::after {
    transform: translateY(0);
}

/* Scroll Animations (Vanilla JS 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);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Trust Avatars */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--dark);
    background: var(--dark-grey);
    margin-left: -12px;
    opacity: 0.8;
    mix-blend-mode: luminosity;
    object-fit: cover;
}
.avatar:first-child { margin-left: 0; }
