/* ========================================
   CloudTalend - Enterprise Solutions
   Data | AI | Cloud | Automation | Digital | CRM & ERP
   ======================================== */

/* === CSS Variables === */
:root {
    /* Colors */
    --color-primary: #2563EB;
    --color-primary-dark: #1D4ED8;
    --color-primary-light: #3B82F6;
    --color-secondary: #7C3AED;
    --color-accent: #06B6D4;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    
    /* Background Colors */
    --bg-dark: #0F172A;
    --bg-dark-light: #1E293B;
    --bg-dark-lighter: #334155;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    
    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-light: #CBD5E1;
    --text-white: #FFFFFF;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    --gradient-secondary: linear-gradient(135deg, #06B6D4 0%, #2563EB 100%);
    --gradient-accent: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
    --gradient-dark: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
    
    /* Spacing */
    --container-width: 1280px;
    --container-padding: 2rem;
    --section-padding: 100px 0;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    /* clip, not hidden: stops off-screen AOS slide-ins widening the mobile layout viewport */
    overflow-x: clip;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

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

/* === Container === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

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

/* === Gradient Text === */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Section Styles === */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.logo:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.logo-img {
    height: 46px;
    width: 46px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    padding: 4px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    flex-shrink: 0;
}

.logo:hover .logo-img {
    box-shadow: 0 0 0 4px rgba(37,99,235,0.25), 0 4px 16px rgba(37,99,235,0.35);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: 'Copperplate', 'Copperplate Gothic Light', 'serif';
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 40%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

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

.mobile-menu-toggle {
    display: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Dropdown Menu === */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
}

.nav-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

.nav-dropdown:hover .nav-dropdown-toggle i,
.nav-dropdown.active .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--bg-dark-lighter);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1001;
    box-shadow: var(--shadow-xl);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: rgba(15, 23, 42, 0.98);
    border-left: 1px solid var(--bg-dark-lighter);
    border-top: 1px solid var(--bg-dark-lighter);
    transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.nav-dropdown-menu .nav-link:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--text-white);
}

.nav-dropdown-menu .nav-link::after {
    display: none;
}

.nav-dropdown-menu .nav-link.active {
    background: rgba(37, 99, 235, 0.2);
    color: var(--color-primary-light);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        var(--bg-dark);
}

.hero-particle {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-10px, -10px); }
    50% { transform: translate(10px, -5px); }
    75% { transform: translate(-5px, 10px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-primary-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 525px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* === Services Overview === */
.services-overview {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link:hover {
    gap: 0.75rem;
}

/* === Service Sections === */
.service-section {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.service-section:nth-child(even) {
    background: var(--bg-light);
}

.service-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-content.reverse {
    direction: rtl;
}

.service-content.reverse > * {
    direction: ltr;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    color: var(--text-white);
    font-size: 1.25rem;
}

.feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === Data Visualization === */
.data-visualization {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.viz-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-dark-light);
    border-bottom: 1px solid var(--bg-dark-lighter);
}

.viz-dots {
    display: flex;
    gap: 0.5rem;
}

.viz-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-dark-lighter);
}

.viz-dots span:nth-child(1) { background: #EF4444; }
.viz-dots span:nth-child(2) { background: #F59E0B; }
.viz-dots span:nth-child(3) { background: #10B981; }

.viz-title {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.viz-body {
    padding: 1.5rem;
}

.viz-chart {
    margin-bottom: 1.5rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    height: 200px;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-dark-lighter);
}

.bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 20px;
    animation: barGrow 1s ease-out forwards;
    transform-origin: bottom;
}

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.chart-labels span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.viz-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: var(--bg-dark-light);
    border-radius: var(--radius-md);
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-light);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* === AI Visual === */
.ai-visual {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.ai-brain {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    z-index: 2;
}

.ai-brain i {
    font-size: 3rem;
    color: var(--text-white);
}

.ai-orbits {
    position: absolute;
    inset: 0;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation: orbitRotate 10s linear infinite;
}

.orbit-2 {
    width: 280px;
    height: 280px;
    animation: orbitRotate 15s linear infinite reverse;
}

.orbit-3 {
    width: 360px;
    height: 360px;
    animation: orbitRotate 20s linear infinite;
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.orbit-1 .orbit-dot { top: -6px; left: 50%; transform: translateX(-50%); }
.orbit-2 .orbit-dot { top: 50%; right: -6px; transform: translateY(-50%); }
.orbit-3 .orbit-dot { bottom: -6px; left: 50%; transform: translateX(-50%); }

@keyframes orbitRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.ai-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: particleFloat2 3s ease-in-out infinite;
}

.ai-particles span:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.ai-particles span:nth-child(2) { top: 30%; right: 20%; animation-delay: 0.5s; }
.ai-particles span:nth-child(3) { bottom: 30%; left: 25%; animation-delay: 1s; }
.ai-particles span:nth-child(4) { bottom: 20%; right: 25%; animation-delay: 1.5s; }
.ai-particles span:nth-child(5) { top: 50%; left: 10%; animation-delay: 2s; }

/* === Cloud Visual === */
.cloud-visual {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.cloud-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    z-index: 2;
}

.cloud-main i {
    font-size: 4rem;
    color: var(--text-white);
}

.cloud-services {
    position: absolute;
    inset: 0;
}

.cloud-service {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: cloudOrbit 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

.cloud-service i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.cloud-service:nth-child(1) { top: 10%; left: 50%; transform: translateX(-50%); }
.cloud-service:nth-child(2) { top: 25%; right: 10%; }
.cloud-service:nth-child(3) { bottom: 25%; right: 10%; }
.cloud-service:nth-child(4) { bottom: 10%; left: 50%; transform: translateX(-50%); }
.cloud-service:nth-child(5) { bottom: 25%; left: 10%; }
.cloud-service:nth-child(6) { top: 25%; left: 10%; }

@keyframes cloudOrbit {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

/* === Automation Visual === */
.automation-visual {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.automation-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    z-index: 2;
    animation: hubPulse 2s ease-in-out infinite;
}

.automation-hub i {
    font-size: 2.5rem;
    color: var(--text-white);
}

@keyframes hubPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.automation-flows {
    position: absolute;
    inset: 0;
}

.flow {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flow-1 { top: 20%; left: 10%; }
.flow-2 { top: 50%; right: 5%; transform: translateY(-50%); }
.flow-3 { bottom: 20%; left: 10%; }

.flow-node {
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.flow-node i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.flow-line {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    position: relative;
    animation: flowLine 2s ease-in-out infinite;
}

.flow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--color-primary);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

@keyframes flowLine {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* === Digital Visual === */
.digital-visual {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.digital-device {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 340px;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
}

.device-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-dark-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.screen-content {
    padding: 1rem;
}

.screen-header {
    height: 20px;
    background: var(--bg-dark-lighter);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.screen-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.screen-chart {
    height: 120px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    opacity: 0.8;
}

.screen-stats {
    display: flex;
    gap: 1rem;
}

.screen-stat {
    flex: 1;
    height: 60px;
    background: var(--bg-dark-lighter);
    border-radius: var(--radius-sm);
}

.digital-float {
    position: absolute;
    inset: 0;
}

.float-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: floatItem 3s ease-in-out infinite;
}

.float-item:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.float-item:nth-child(2) { top: 20%; right: 10%; animation-delay: 0.5s; }
.float-item:nth-child(3) { bottom: 20%; left: 5%; animation-delay: 1s; }

.float-item i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

@keyframes floatItem {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* === CRM Visual === */
.crm-visual {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.crm-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    z-index: 2;
}

.crm-center i {
    font-size: 2.5rem;
    color: var(--text-white);
}

.crm-modules {
    position: absolute;
    inset: 0;
}

.crm-module {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: moduleFloat 3s ease-in-out infinite;
}

.crm-module:nth-child(1) { top: 10%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.crm-module:nth-child(2) { top: 30%; right: 5%; animation-delay: 0.5s; }
.crm-module:nth-child(3) { bottom: 30%; right: 5%; animation-delay: 1s; }
.crm-module:nth-child(4) { bottom: 10%; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.crm-module:nth-child(5) { bottom: 30%; left: 5%; animation-delay: 2s; }
.crm-module:nth-child(6) { top: 30%; left: 5%; animation-delay: 2.5s; }

.crm-module i {
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.crm-module span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

@keyframes moduleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === Why Choose Us === */
.why-choose-us {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage-card {
    position: relative;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.advantage-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.advantage-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.1);
    line-height: 1;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.advantage-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.advantage-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Testimonials === */
.testimonials {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    transition: transform var(--transition-slow);
}

.testimonial-card {
    min-width: calc(33.333% - 1.33rem);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: var(--text-white);
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.testimonial-metric {
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-light);
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark-lighter);
    background: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.nav-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--text-white);
}

/* === Contact Section === */
.contact {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .section-label {
    margin-bottom: 1rem;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    color: var(--text-white);
    font-size: 1.25rem;
}

.contact-text h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === Contact Form === */
.contact-form-wrapper {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--bg-dark-lighter);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

/* === Footer === */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo-img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    flex-shrink: 0;
    transition: opacity var(--transition-base);
}

.footer-logo:hover .footer-logo-img {
    opacity: 1;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.footer-logo-name {
    font-family: 'Copperplate', 'Copperplate Gothic Light', 'serif';
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 40%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.footer-logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 2px;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--bg-dark-lighter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

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

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

/* === Responsive Design === */
@media (max-width: 1024px) {
    .services-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right var(--transition-base);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
        min-width: auto;
        display: none;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown-menu::before {
        display: none;
    }
    
    .nav-dropdown-toggle {
        padding: 0.5rem 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-dropdown-menu .nav-link {
        padding: 0.6rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-content.reverse {
        direction: ltr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .ai-visual,
    .cloud-visual,
    .automation-visual,
    .digital-visual,
    .crm-visual {
        width: 300px;
        height: 300px;
    }
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* === Typewriter Effect === */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--color-primary);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* === Smooth Scroll === */
html {
    /* clip, not hidden: stops off-screen AOS slide-ins widening the mobile layout viewport */
    overflow-x: clip;
    scroll-behavior: smooth;
}

/* === Selection === */
::selection {
    background: rgba(37, 99, 235, 0.3);
    color: var(--text-primary);
}
