/* ===== X-COGNITA DESIGN SYSTEM ===== */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0e0e18;
    --bg-tertiary: #121220;
    --bg-glass: rgba(15, 15, 30, 0.7);
    --bg-glass-light: rgba(25, 25, 50, 0.5);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --cyan: #00e5ff;
    --magenta: #ff00ff;
    --cyan-dim: rgba(0, 229, 255, 0.15);
    --magenta-dim: rgba(255, 0, 255, 0.15);
    --gradient: linear-gradient(135deg, var(--cyan), var(--magenta));
    --gradient-reverse: linear-gradient(135deg, var(--magenta), var(--cyan));
    --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.4);
    --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.4);
    --glow-mixed: 0 0 30px rgba(0, 229, 255, 0.2), 0 0 60px rgba(255, 0, 255, 0.1);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --gap: 24px;

    /* Borders */
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 36px;
    width: auto;
    transition: var(--transition-fast);
}

.nav-logo:hover img {
    filter: drop-shadow(var(--glow-cyan));
}

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

.nav-link {
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.nav-cta {
    background: var(--gradient);
    color: var(--bg-primary);
    font-weight: 600;
    padding: 8px 24px;
}

.nav-link.nav-cta:hover {
    box-shadow: var(--glow-mixed);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ===== SECTION GLOBALS ===== */
.section {
    position: relative;
    padding: var(--section-padding);
    z-index: 1;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan);
    background: var(--cyan-dim);
    border: 1px solid rgba(0, 229, 255, 0.2);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.glass-card:hover {
    border-color: rgba(0, 229, 255, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(0, 229, 255, 0.05);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    box-shadow: var(--glow-mixed);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3), 0 0 40px rgba(255, 0, 255, 0.15);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.8rem;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(255, 0, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 229, 255, 0.04) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    width: min(400px, 80vw);
    height: auto;
    margin: 0 auto 32px;
    animation: heroLogoFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.3));
}

@keyframes heroLogoFloat {

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

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-line1 {
    display: block;
    color: var(--text-primary);
}

.hero-line2 {
    display: block;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 1.2em;
}

.hero-line2::after {
    content: '|';
    -webkit-text-fill-color: var(--cyan);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--cyan);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--cyan);
    border-radius: 3px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheelAnim 2s ease-in-out infinite;
}

@keyframes scrollWheelAnim {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

@keyframes scrollBounce {

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

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

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    padding: 40px 32px;
    text-align: left;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition-base);
    z-index: -1;
    filter: blur(1px);
}

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

.service-card.featured {
    border-color: rgba(0, 229, 255, 0.2);
}

.service-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--gradient);
    border-radius: 0 0 4px 4px;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    background: var(--bg-glass-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-title strong {
    color: var(--cyan);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.service-link:hover {
    gap: 12px;
    color: var(--magenta);
}

/* ===== STATS ===== */
.stats-section {
    overflow: hidden;
}

.parallax-section {
    position: relative;
}

.parallax-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 60%);
    will-change: transform;
}

.stats-description {
    padding: 32px 40px;
    margin-bottom: 56px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.stats-description strong {
    color: var(--cyan);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition-slow);
    transform-origin: left;
}

.stat-card.counted::before {
    transform: scaleX(1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    display: inline;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    display: inline;
    background: var(--gradient-reverse);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.5;
}

/* ===== INTEGRATIONS MARQUEE ===== */
.integrations-section {
    padding-bottom: 80px;
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
    padding: 24px 0;
    margin: 40px 0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 48px;
    animation: marqueeScroll 60s linear infinite;
    width: max-content;
}

.marquee-track.reverse {
    animation: marqueeScrollReverse 65s linear infinite;
    margin-top: 16px;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track img {
    height: 75px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--transition-fast);
    flex-shrink: 0;
    border-radius: 50px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.marquee-track img:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

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

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

@keyframes marqueeScrollReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.integration-extras {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 24px 0;
    margin-top: 16px;
}

.integration-extras img {
    height: 36px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%) brightness(2);
    transition: var(--transition-fast);
}

.integration-extras img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ===== FULLSCREEN SERVICES CAROUSEL ===== */
.fullscreen-services-section {
    padding: 0 !important;
}

.fs-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.fs-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-slide {
    min-width: 100%;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}


.fs-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(10, 10, 18, 0.4) 0%, rgba(10, 10, 18, 0.1) 50%, rgba(10, 10, 18, 0.3) 100%);
}

.fs-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px clamp(24px, 8vw, 260px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.fs-content-inner {
    flex: 1;
    max-width: 580px;
}

.fs-lead-form {
    width: 100%;
    max-width: 480px;
    flex-shrink: 0;
    padding: 36px 32px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fs-lead-form h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 2px;
}

.fs-lead-form>p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 12px;
}

.slide-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slide-form input[type="text"],
.slide-form input[type="email"],
.slide-form input[type="tel"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.slide-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.slide-form button {
    margin-top: 8px;
    width: 100%;
    padding: 18px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
}

.fs-form-note {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.fs-slide-tag {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--magenta);
    background: rgba(255, 0, 255, 0.08);
    border: 1px solid rgba(255, 0, 255, 0.25);
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.fs-slide-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.15;
}

.fs-slide-desc {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 28px;
    max-width: 580px;
}

.fs-slide-desc strong {
    color: var(--text-primary);
}

.fs-slide-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.fs-slide-features li {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    backdrop-filter: blur(4px);
}

.fs-slide-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.fs-slide-buttons .btn {
    font-size: 0.95rem;
    padding: 14px 32px;
}

.fs-carousel-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fs-slide-counter {
    position: absolute;
    bottom: 44px;
    right: clamp(24px, 6vw, 80px);
    z-index: 10;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 3px;
}

.fs-prev,
.fs-next {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.fs-prev:hover,
.fs-next:hover {
    background: rgba(0, 229, 255, 0.15) !important;
    border-color: var(--cyan) !important;
}

/* Keep old carousel base for reuse */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px 0;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: var(--border-glass);
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    color: var(--cyan);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    width: 28px;
    border-radius: 5px;
}

/* ===== TEAM CAROUSEL ===== */
.team-section {
    background: var(--bg-secondary);
}

.team-carousel {
    position: relative;
    overflow: hidden;
}

.team-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-carousel-slide {
    min-width: calc(100% / 4);
    padding: 0 14px;
    flex-shrink: 0;
    height: auto;
    display: flex;
}

.team-carousel-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0 0 24px 0;
    text-align: left;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.team-carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    opacity: 0.8;
    z-index: 0;
}

.team-carousel-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.team-avatar-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 30px 20px 16px 20px;
    z-index: 1;
}

.team-avatar-ring {
    display: none;
}

.team-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 3px solid #111;
    transition: var(--transition-base);
}

.team-carousel-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 20px 6px 20px;
    color: var(--text-primary);
}

.team-carousel-role {
    display: block;
    font-size: 0.75rem;
    color: #ccc;
    font-weight: 500;
    margin: 0 20px 24px 20px;
}

.team-carousel-skills {
    display: block;
    margin: 0 20px 28px 40px;
    padding: 0;
    color: #888;
    font-size: 0.8rem;
    list-style-type: decimal;
}

.team-carousel-skills li {
    padding: 3px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #888;
}

.team-carousel-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin: auto 20px 0 20px;
    width: calc(100% - 40px);
}

.team-teamup-btn {
    background: linear-gradient(135deg, var(--cyan), var(--blue)) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.team-connect-btn {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.team-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px 0 8px;
}

/* ===== CLIENTS SLIDER ===== */
.clients-slider {
    position: relative;
    overflow: hidden;
}

.clients-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.clients-slide {
    min-width: 100%;
    padding: 0 24px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.clients-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px 0 8px;
}

.client-testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.client-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition-slow);
    transform-origin: left;
}

.client-testimonial-card:hover::before {
    transform: scaleX(1);
}

.client-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.client-logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.client-logo-circle svg {
    width: 40px;
    height: 40px;
}

.client-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    filter: brightness(1.2);
}

.client-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.client-industry {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.client-quote {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.client-quote strong {
    color: var(--cyan);
    font-weight: 600;
    font-style: normal;
}

.client-result {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.client-metric {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.client-metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.client-stars {
    color: #ffd700;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* ===== CONTACT ===== */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-particles-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(0, 229, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 40%, rgba(255, 0, 255, 0.04) 0%, transparent 50%);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px;
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    margin-bottom: 24px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: var(--border-glass);
    padding: 60px 0 32px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    border-top: var(--border-glass);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== SCROLL REVEAL ===== */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll-reveal]:nth-child(2) {
    transition-delay: 0.1s;
}

[data-scroll-reveal]:nth-child(3) {
    transition-delay: 0.2s;
}

[data-scroll-reveal]:nth-child(4) {
    transition-delay: 0.3s;
}

[data-scroll-reveal]:nth-child(5) {
    transition-delay: 0.4s;
}

[data-scroll-reveal]:nth-child(6) {
    transition-delay: 0.5s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-carousel-slide {
        min-width: 50%;
    }

    .fs-lead-form {
        width: 300px;
    }


    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .fs-slide-content {
        flex-direction: column;
    }

    .fs-lead-form {
        width: 100%;
        max-width: 400px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: var(--transition-base);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-link {
        padding: 12px 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .nav-link.nav-cta {
        width: fit-content;
        margin-top: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-carousel-slide {
        min-width: 100%;
    }


    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .slide-content {
        padding: 32px 24px;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-scroll-indicator {
        display: none;
    }
}