/* ============================================
   ROBO LABS — AI Solutions Agency
   Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --accent-primary: #ffffff;
    --accent-glow: rgba(120, 80, 255, 0.15);
    --accent-purple: #7c5cff;
    --accent-blue: #4ea8ff;
    --accent-cyan: #00e5ff;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --nav-height: 72px;
    --section-padding: 80px;
    --container-max: 1440px;
    --gutter: 40px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    cursor: default;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-out);
}

::selection {
    background: var(--accent-purple);
    color: #fff;
}

/* --- Ambient Glow Effects --- */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: glowFloat1 12s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(78, 168, 255, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: -150px;
    animation: glowFloat2 15s ease-in-out infinite;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
    top: 50%;
    right: 20%;
    animation: glowFloat3 18s ease-in-out infinite;
}

@keyframes glowFloat1 {

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

    33% {
        transform: translate(-40px, 30px) scale(1.1);
    }

    66% {
        transform: translate(20px, -20px) scale(0.95);
    }
}

@keyframes glowFloat2 {

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

    50% {
        transform: translate(60px, -40px) scale(1.15);
    }
}

@keyframes glowFloat3 {

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

    33% {
        transform: translate(-30px, -50px) scale(1.05);
    }

    66% {
        transform: translate(40px, 30px) scale(0.9);
    }
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gutter);
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-left .logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.logo-icon {
    font-size: 0.7rem;
    color: var(--accent-purple);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.logo:hover {
    opacity: 0.7;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width var(--duration-normal) var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color var(--duration-fast) var(--ease-out);
}

.nav-cta:hover {
    color: var(--text-primary);
}

.cta-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-hover);
    transition: all var(--duration-normal) var(--ease-out);
}

.nav-cta:hover .cta-circle {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    transform: rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--nav-height) var(--gutter) 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}

/* --- Hero Headline --- */
.hero-headline {
    margin-bottom: 40px;
}

.headline-row {
    overflow: hidden;
}

.hero-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(5rem, 13vw, 14rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--text-primary);
    transform: translateY(100%);
    animation: revealUp 1.2s var(--ease-out) forwards;
}

.row-2 .hero-text {
    animation-delay: 0.15s;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
    transition: all var(--duration-slow) var(--ease-out);
}

.text-outline:hover {
    color: var(--text-primary);
    -webkit-text-stroke: 0px;
}

@keyframes revealUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Spline 3D Background (full viewport) --- */
.spline-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

#spline-canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#spline-canvas.loaded {
    opacity: 1;
}

/* Loading spinner overlay */
.spline-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.spline-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spline-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(124, 92, 255, 0.15);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

/* --- Hero Info --- */
.hero-info {
    display: flex;
    justify-content: flex-start;
    margin-top: 60px;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 0.6s forwards;
}

.hero-description {
    max-width: 420px;
}

.tagline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--accent-purple);
    margin-bottom: 16px;
}

.description-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SERVICES TICKER
   ============================================ */
.ticker-section {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    overflow: hidden;
    background: var(--bg-primary);
    pointer-events: auto;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 30s linear infinite;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
    flex-shrink: 0;
}

.ticker-item {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color var(--duration-fast) var(--ease-out);
}

.ticker-item:hover {
    color: var(--text-primary);
}

.ticker-dot {
    font-size: 0.45rem;
    color: var(--accent-purple);
    opacity: 0.6;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-section:hover .ticker-track {
    animation-play-state: paused;
}

/* ============================================
   TRUSTED BY SECTION
   ============================================ */
#trusted-by {
    position: relative;
    z-index: 10;
    padding: 80px var(--gutter);
    background: var(--bg-primary);
    pointer-events: auto;
}

.trusted-content {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.trusted-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.logo-slot {
    width: 120px;
    height: 40px;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    opacity: 0.4;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.logo-slot:hover {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
#testimonials {
    position: relative;
    z-index: 10;
    padding: 100px var(--gutter) 60px;
    background: var(--bg-primary);
    overflow: hidden;
    pointer-events: auto;
}

.testimonials-content {
    max-width: var(--container-max);
    margin: 0 auto 50px;
    text-align: center;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--accent-purple);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1;
}

/* --- Testimonial Stage --- */
.testimonials-stage {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

/* --- Testimonial Card --- */
.testimonial-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 365px;
    height: 365px;
    padding: 32px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    clip-path: polygon(50px 0%, calc(100% - 50px) 0%, 100% 50px, 100% 100%, calc(100% - 50px) 100%, 50px 100%, 0 100%, 0 0);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    right: -1px;
    top: 48px;
    width: 71px;
    height: 2px;
    background: var(--border-color);
    transform-origin: top right;
    transform: rotate(45deg);
    transition: background 0.5s ease;
}

.testimonial-card.is-center {
    z-index: 10;
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0px 8px 0px 4px rgba(124, 92, 255, 0.3);
}

.testimonial-card.is-center::before {
    background: rgba(255, 255, 255, 0.2);
}

.testimonial-card:not(.is-center) {
    z-index: 1;
}

.testimonial-card:not(.is-center):hover {
    border-color: rgba(124, 92, 255, 0.4);
}

/* --- Card Content --- */
.testimonial-avatar {
    width: 48px;
    height: 56px;
    object-fit: cover;
    object-position: top;
    margin-bottom: 16px;
    box-shadow: 3px 3px 0px var(--bg-primary);
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
}

.testimonial-card.is-center .testimonial-quote {
    color: #ffffff;
}

.testimonial-card:not(.is-center) .testimonial-quote {
    color: var(--text-secondary);
}

.testimonial-author {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
}

.testimonial-card.is-center .testimonial-author {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Navigation Buttons --- */
.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.testimonial-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.testimonial-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #ffffff;
}

.testimonial-btn:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .testimonial-card {
        width: 290px;
        height: 290px;
        padding: 24px;
    }

    .testimonial-quote {
        font-size: 0.95rem;
    }

    .testimonial-author {
        bottom: 24px;
        left: 24px;
        right: 24px;
        font-size: 0.7rem;
    }

    .testimonials-stage {
        height: 420px;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    /* Spline bg stays full viewport — no changes needed */
}

@media (max-width: 768px) {
    :root {
        --gutter: 24px;
        --nav-height: 60px;
    }

    .nav-center {
        display: none;
    }

    .hero-text {
        font-size: clamp(3.5rem, 15vw, 6rem);
    }

    .hero-info {
        margin-top: 30px;
    }

    .trusted-logos {
        gap: 30px;
    }

    .logo-slot {
        width: 90px;
        height: 30px;
    }

    .ticker-item {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: clamp(2.8rem, 16vw, 4.5rem);
    }

    .text-outline {
        -webkit-text-stroke: 1.5px var(--text-primary);
    }

    .nav-cta {
        font-size: 0.65rem;
    }

    .trusted-label {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }
}