/* ========================================
   DASTAFE - Brand Style Guide CSS
   Colors from Brand Book:
   - Electric Blue: #3D30ED
   - Cloud White: #FBFBFB
   - Midnight Navy: #0A1729
   - Crimson Rose: #F4435B
   - Mango Orange: #FFA726
   - Lime Green: #8BC34A
   - Silver Mist: #9DA2A9
   - Steel Grey: #6C747F
   - Slate Blue: #3B4554
   ======================================== */

:root {
    /* Primary Colors */
    --electric-blue: #3D30ED;
    --cloud-white: #FBFBFB;
    --midnight-navy: #0A1729;

    /* Accent Colors */
    --crimson-rose: #F4435B;
    --mango-orange: #FFA726;
    --lime-green: #8BC34A;

    /* Tint Palette */
    --silver-mist: #9DA2A9;
    --steel-grey: #6C747F;
    --slate-blue: #3B4554;

    /* Semantic Colors */
    --bg-primary: var(--midnight-navy);
    --bg-secondary: #0D1D33;
    --bg-light: var(--cloud-white);
    --text-primary: var(--cloud-white);
    --text-secondary: var(--silver-mist);
    --accent: #00D4FF;

    /* Typography - Brand Fonts */
    --font-primary: 'Hubot Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-georgian: 'TBC Contractica', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

/* ========================================
   CONTAINER
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background: rgba(10, 23, 41, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 48, 237, 0.1);
    transition: all var(--transition-normal);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo svg {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--electric-blue);
    transition: width var(--transition-fast);
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: var(--radius-full);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--electric-blue);
    color: white;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--electric-blue) 0%, #5B4FFF 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(61, 48, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(61, 48, 237, 0.5);
}

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

.btn-outline:hover {
    border-color: var(--electric-blue);
    background: rgba(61, 48, 237, 0.1);
}

.btn-full {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(61, 48, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 67, 91, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(139, 195, 74, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-content h1 span {
    display: block;
}

.hero-content h1 .text-accent,
.text-accent {
    color: #00D4FF;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Hero Visual / Dashboard Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.dashboard-mockup {
    background: linear-gradient(145deg, #0D1D33 0%, #0A1729 100%);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(61, 48, 237, 0.2);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(61, 48, 237, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: rotateX(5deg) rotateY(-5deg);
    transform-style: preserve-3d;
    animation: floatDashboard 6s ease-in-out infinite;
    width: 100%;
    max-width: 520px;
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes floatDashboard {
    0%, 100% { transform: rotateX(5deg) rotateY(-5deg) translateY(0); }
    50% { transform: rotateX(3deg) rotateY(-3deg) translateY(-10px); }
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-title {
    color: var(--cloud-white);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--lime-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.dashboard-date {
    color: var(--silver-mist);
    font-size: 11px;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.kpi-card:nth-child(1) { animation-delay: 0.2s; }
.kpi-card:nth-child(2) { animation-delay: 0.4s; }
.kpi-card:nth-child(3) { animation-delay: 0.6s; }

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

.kpi-label {
    color: var(--silver-mist);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.kpi-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--cloud-white);
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.kpi-value .counter {
    display: inline-block;
    min-width: 2.5em;
    text-align: right;
}

.kpi-trend {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
}

.kpi-trend.up {
    color: var(--lime-green);
    background: rgba(139, 195, 74, 0.15);
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.8s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.chart-title {
    color: var(--silver-mist);
    font-size: 11px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-title span:first-child {
    color: var(--cloud-white);
    font-weight: 600;
}

.chart-growth {
    color: var(--lime-green);
    font-size: 10px;
}

/* Line Chart */
.line-chart {
    height: 80px;
    position: relative;
}

.line-chart-svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    fill: none;
    stroke: var(--electric-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawLine 2s ease forwards;
    animation-delay: 1s;
}

.chart-area {
    fill: url(#areaGradient);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 2s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.chart-dots {
    fill: var(--electric-blue);
}

.chart-dot {
    opacity: 0;
    animation: popIn 0.3s ease forwards;
}

.chart-dot:nth-child(1) { animation-delay: 1.2s; }
.chart-dot:nth-child(2) { animation-delay: 1.4s; }
.chart-dot:nth-child(3) { animation-delay: 1.6s; }
.chart-dot:nth-child(4) { animation-delay: 1.8s; }
.chart-dot:nth-child(5) { animation-delay: 2.0s; }
.chart-dot:nth-child(6) { animation-delay: 2.2s; }
.chart-dot:nth-child(7) { animation-delay: 2.4s; }

@keyframes popIn {
    0% { opacity: 0; transform: scale(0); }
    50% { transform: scale(1.5); }
    100% { opacity: 1; transform: scale(1); }
}

/* Mini Bars */
.mini-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 50px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.mini-bar {
    width: 14px;
    background: var(--electric-blue);
    border-radius: 3px 3px 0 0;
    transform-origin: bottom;
    transform: scaleY(0);
    animation: growBar 0.5s ease forwards;
}

@keyframes growBar {
    to { transform: scaleY(1); }
}

.mini-bar-group:nth-child(1) .mini-bar { animation-delay: 2.5s; }
.mini-bar-group:nth-child(2) .mini-bar { animation-delay: 2.6s; }
.mini-bar-group:nth-child(3) .mini-bar { animation-delay: 2.7s; }
.mini-bar-group:nth-child(4) .mini-bar { animation-delay: 2.8s; }
.mini-bar-group:nth-child(5) .mini-bar { animation-delay: 2.9s; }
.mini-bar-group:nth-child(6) .mini-bar { animation-delay: 3.0s; }
.mini-bar-group:nth-child(7) .mini-bar { animation-delay: 3.1s; }

.mini-bar-group span {
    font-size: 8px;
    color: var(--silver-mist);
}

/* Donut Chart */
.donut-card {
    display: flex;
    flex-direction: column;
}

.donut-chart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.donut-svg {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.donut-segment {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 0 100;
    animation: fillDonut 1.5s ease forwards;
}

.donut-segment.blue { stroke: var(--electric-blue); animation-delay: 1s; }
.donut-segment.orange { stroke: var(--mango-orange); animation-delay: 1.3s; }
.donut-segment.green { stroke: var(--lime-green); animation-delay: 1.6s; }
.donut-segment.red { stroke: var(--crimson-rose); animation-delay: 1.9s; }

@keyframes fillDonut {
    to { stroke-dasharray: var(--segment-length) 100; }
}

.donut-center {
    position: absolute;
    text-align: center;
}

.donut-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--cloud-white);
}

.donut-label {
    font-size: 9px;
    color: var(--silver-mist);
}

/* Screens Container */
.screens-container {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    will-change: opacity;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* Interactive Cursor */
.cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: transform 0.1s ease;
}

.cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor.clicking {
    transform: scale(0.8);
    background: rgba(61, 48, 237, 0.3);
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--silver-mist);
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.back-btn.visible {
    opacity: 1;
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

/* Highlight State for Cards */
.kpi-card,
.chart-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.kpi-card:hover,
.kpi-card.highlight,
.chart-card:hover,
.chart-card.highlight {
    background: rgba(61, 48, 237, 0.15);
    border-color: rgba(61, 48, 237, 0.3);
}

/* Detail Screen Styles */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--cloud-white);
}

.detail-subtitle {
    font-size: 11px;
    color: var(--silver-mist);
    margin-top: 4px;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.detail-stat {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-stat-label {
    font-size: 10px;
    color: var(--silver-mist);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--cloud-white);
}

.detail-stat-change {
    font-size: 11px;
    color: var(--lime-green);
    margin-top: 4px;
}

.detail-chart {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-chart-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--cloud-white);
    margin-bottom: 16px;
}

.detail-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    gap: 8px;
}

.detail-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.detail-bar {
    width: 100%;
    max-width: 30px;
    border-radius: 4px 4px 0 0;
}

.detail-bar.blue { background: var(--electric-blue); }
.detail-bar.green { background: var(--lime-green); }
.detail-bar.orange { background: var(--mango-orange); }

.detail-bar-label {
    font-size: 9px;
    color: var(--silver-mist);
}

.detail-bar-group span {
    font-size: 9px;
    color: var(--silver-mist);
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

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

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    width: calc(33.333% - 22px);
    min-width: 280px;
    max-width: 380px;
}

@media (max-width: 1100px) {
    .service-card {
        width: calc(50% - 16px);
    }
}

@media (max-width: 720px) {
    .service-card {
        width: 100%;
        max-width: 100%;
    }
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(61, 48, 237, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* ========================================
   SERVICE CARD HOVER ANIMATIONS
   ======================================== */

/* Hover Animation Container */
.hover-animation {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

/* 1. Analytics Animation - Line Chart */
.analytics-animation {
    padding: 20px;
}

.analytics-chart {
    width: 140px;
    height: 100px;
}

.analytics-line {
    fill: none;
    stroke: var(--electric-blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    filter: drop-shadow(0 0 8px rgba(61, 48, 237, 0.5));
}

.service-card:hover .analytics-line {
    animation: drawAnalyticsLine 1.5s ease forwards;
}

@keyframes drawAnalyticsLine {
    to { stroke-dashoffset: 0; }
}

.analytics-dot {
    fill: var(--electric-blue);
    opacity: 0;
    filter: drop-shadow(0 0 6px rgba(61, 48, 237, 0.8));
}

.service-card:hover .analytics-dot {
    animation: popAnalyticsDot 0.3s ease forwards;
}

.service-card:hover .analytics-dot:nth-child(2) { animation-delay: 0.3s; }
.service-card:hover .analytics-dot:nth-child(3) { animation-delay: 0.6s; }
.service-card:hover .analytics-dot:nth-child(4) { animation-delay: 0.9s; }
.service-card:hover .analytics-dot:nth-child(5) { animation-delay: 1.2s; }

@keyframes popAnalyticsDot {
    0% { opacity: 0; transform: scale(0); }
    50% { transform: scale(1.5); }
    100% { opacity: 1; transform: scale(1); }
}

.analytics-area {
    fill: url(#analyticsGradient);
    opacity: 0;
}

.service-card:hover .analytics-area {
    animation: fadeInAnalyticsArea 0.5s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeInAnalyticsArea {
    to { opacity: 0.3; }
}

/* 2. Finance Animation - Coins */
.finance-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.coin {
    width: 50px;
    height: 12px;
    background: linear-gradient(180deg, var(--mango-orange) 0%, #E89620 100%);
    border-radius: 50%;
    box-shadow: 0 3px 0 #CC8400, 0 6px 15px rgba(255, 167, 38, 0.3);
    opacity: 0;
    transform: translateY(-30px);
}

.service-card:hover .coin {
    animation: dropCoin 0.4s ease forwards;
}

.service-card:hover .coin:nth-child(2) { animation-delay: 0.1s; }
.service-card:hover .coin:nth-child(3) { animation-delay: 0.25s; }
.service-card:hover .coin:nth-child(4) { animation-delay: 0.4s; }
.service-card:hover .coin:nth-child(5) { animation-delay: 0.55s; }
.service-card:hover .coin:nth-child(6) { animation-delay: 0.7s; }

@keyframes dropCoin {
    0% { opacity: 0; transform: translateY(-30px) rotateX(45deg); }
    60% { transform: translateY(5px) rotateX(0deg); }
    80% { transform: translateY(-3px); }
    100% { opacity: 1; transform: translateY(0); }
}

.dollar-sign {
    position: absolute;
    font-size: 60px;
    font-weight: 700;
    color: rgba(255, 167, 38, 0.1);
    top: 20px;
    right: 30px;
    opacity: 0;
}

.service-card:hover .dollar-sign {
    animation: floatDollar 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes floatDollar {
    0%, 100% { opacity: 0.15; transform: translateY(0); }
    50% { opacity: 0.25; transform: translateY(-10px); }
}

/* 3. Power BI Animation - Dashboard Elements */
.powerbi-animation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 20px;
}

.dashboard-element {
    background: rgba(244, 67, 91, 0.15);
    border: 1px solid rgba(244, 67, 91, 0.3);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
}

.dashboard-element.bar-chart {
    height: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 8px;
}

.pbi-bar {
    width: 8px;
    background: var(--crimson-rose);
    border-radius: 2px 2px 0 0;
    transform-origin: bottom;
    transform: scaleY(0);
}

.dashboard-element.pie-chart {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-svg {
    width: 35px;
    height: 35px;
    transform: rotate(-90deg);
}

.pie-segment {
    fill: none;
    stroke-width: 8;
    stroke-dasharray: 0 100;
}

.dashboard-element.number-card {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--crimson-rose);
}

.dashboard-element.line-mini {
    height: 35px;
    display: flex;
    align-items: center;
    padding: 8px;
}

.dashboard-element.line-mini svg {
    width: 100%;
    height: 100%;
}

.spark-line {
    fill: none;
    stroke: var(--crimson-rose);
    stroke-width: 2;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.service-card:hover .dashboard-element {
    animation: popDashElement 0.4s ease forwards;
}

.service-card:hover .dashboard-element:nth-child(1) { animation-delay: 0.1s; }
.service-card:hover .dashboard-element:nth-child(2) { animation-delay: 0.2s; }
.service-card:hover .dashboard-element:nth-child(3) { animation-delay: 0.3s; }
.service-card:hover .dashboard-element:nth-child(4) { animation-delay: 0.4s; }

@keyframes popDashElement {
    to { opacity: 1; transform: scale(1); }
}

.service-card:hover .pbi-bar {
    animation: growPbiBar 0.5s ease forwards;
}

.service-card:hover .pbi-bar:nth-child(1) { animation-delay: 0.3s; --bar-height: 0.4; }
.service-card:hover .pbi-bar:nth-child(2) { animation-delay: 0.4s; --bar-height: 0.7; }
.service-card:hover .pbi-bar:nth-child(3) { animation-delay: 0.5s; --bar-height: 0.5; }
.service-card:hover .pbi-bar:nth-child(4) { animation-delay: 0.6s; --bar-height: 0.9; }

@keyframes growPbiBar {
    to { transform: scaleY(var(--bar-height, 1)); }
}

.service-card:hover .pie-segment {
    animation: fillPieSegment 0.8s ease forwards;
    animation-delay: 0.4s;
}

@keyframes fillPieSegment {
    to { stroke-dasharray: var(--segment-size) 100; }
}

.service-card:hover .spark-line {
    animation: drawSparkLine 0.8s ease forwards;
    animation-delay: 0.5s;
}

@keyframes drawSparkLine {
    to { stroke-dashoffset: 0; }
}

/* 4. AI Animation - Chat Bubbles */
.ai-animation {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 11px;
    max-width: 120px;
    opacity: 0;
    transform: translateY(20px);
}

.chat-bubble.user {
    background: rgba(139, 195, 74, 0.2);
    border: 1px solid rgba(139, 195, 74, 0.3);
    color: var(--lime-green);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
    background: rgba(61, 48, 237, 0.2);
    border: 1px solid rgba(61, 48, 237, 0.3);
    color: #8B83FF;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(61, 48, 237, 0.2);
    border: 1px solid rgba(61, 48, 237, 0.3);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    opacity: 0;
    align-self: flex-start;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #8B83FF;
    border-radius: 50%;
}

.service-card:hover .chat-bubble,
.service-card:hover .typing-indicator {
    animation: slideUpChatBubble 0.4s ease forwards;
}

.service-card:hover .chat-bubble:nth-child(1) { animation-delay: 0.1s; }
.service-card:hover .chat-bubble:nth-child(2) { animation-delay: 0.6s; }
.service-card:hover .typing-indicator { animation-delay: 1.1s; }

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

.service-card:hover .typing-dot {
    animation: typingBounce 1s ease-in-out infinite;
}

.service-card:hover .typing-dot:nth-child(1) { animation-delay: 1.2s; }
.service-card:hover .typing-dot:nth-child(2) { animation-delay: 1.35s; }
.service-card:hover .typing-dot:nth-child(3) { animation-delay: 1.5s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* 5. KPI Animation - Pulse & Gauge */
.kpi-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.pulse-line-container {
    width: 120px;
    height: 40px;
}

.pulse-svg {
    width: 100%;
    height: 100%;
}

.pulse-line {
    fill: none;
    stroke: var(--electric-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    filter: drop-shadow(0 0 6px rgba(61, 48, 237, 0.6));
}

.service-card:hover .pulse-line {
    animation: drawPulseLine 2s linear infinite;
}

@keyframes drawPulseLine {
    0% { stroke-dashoffset: 300; }
    100% { stroke-dashoffset: 0; }
}

.gauge-container {
    position: relative;
    width: 80px;
    height: 45px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
    stroke-linecap: round;
}

.gauge-fill {
    fill: none;
    stroke: url(#gaugeGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    filter: drop-shadow(0 0 8px rgba(139, 195, 74, 0.5));
}

.service-card:hover .gauge-fill {
    animation: fillGauge 1.5s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fillGauge {
    to { stroke-dashoffset: 30; }
}

.gauge-value {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--lime-green);
    opacity: 0;
}

.service-card:hover .gauge-value {
    animation: fadeInGaugeValue 0.5s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeInGaugeValue {
    to { opacity: 1; }
}

.kpi-indicators {
    display: flex;
    gap: 8px;
}

.kpi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
}

.kpi-dot.green { background: var(--lime-green); box-shadow: 0 0 10px var(--lime-green); }
.kpi-dot.orange { background: var(--mango-orange); box-shadow: 0 0 10px var(--mango-orange); }
.kpi-dot.blue { background: var(--electric-blue); box-shadow: 0 0 10px var(--electric-blue); }

.service-card:hover .kpi-dot {
    animation: blinkKpiDot 1s ease-in-out infinite;
}

.service-card:hover .kpi-dot:nth-child(1) { animation-delay: 0.5s; }
.service-card:hover .kpi-dot:nth-child(2) { animation-delay: 0.7s; }
.service-card:hover .kpi-dot:nth-child(3) { animation-delay: 0.9s; }

@keyframes blinkKpiDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits {
    background: var(--bg-secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(61, 48, 237, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(61, 48, 237, 0.1);
    transition: all var(--transition-normal);
}

.benefit-card:hover {
    border-color: rgba(61, 48, 237, 0.3);
    transform: scale(1.02);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--electric-blue), #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

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

/* ========================================
   DASHBOARDS SECTION
   ======================================== */
.dashboards {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.dashboard-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.dashboard-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.dashboard-item:hover {
    background: rgba(61, 48, 237, 0.1);
    border-color: rgba(61, 48, 237, 0.2);
}

.dashboard-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--electric-blue) 0%, #5B4FFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(61, 48, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--electric-blue);
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.contact-item a {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--electric-blue);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--electric-blue);
    background: rgba(61, 48, 237, 0.1);
}

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

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--steel-grey);
    margin-top: -0.5rem;
    font-style: italic;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--crimson-rose);
    background: rgba(244, 67, 91, 0.1);
}

.form-error-message {
    color: var(--crimson-rose);
    font-size: 0.8rem;
    margin-top: 4px;
}

@media (max-width: 576px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--midnight-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-xl) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
}

.footer-logo svg {
    height: 36px;
    width: auto;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.copyright {
    color: var(--steel-grey);
    font-size: 0.85rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 span {
        display: inline;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .chart-animation {
        height: 200px;
    }

    .bar {
        width: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info .section-title {
        text-align: center;
    }

    .contact-info > p {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .navbar.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--midnight-navy);
        padding: var(--spacing-md);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    section {
        padding: var(--spacing-xl) 0;
    }

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

    .dashboard-list {
        grid-template-columns: 1fr;
    }

    /* Mobile dashboard optimizations */
    .dashboard-mockup {
        transform: none;
        animation: none;
    }

    .screens-container {
        height: 280px;
    }

    .kpi-value .counter {
        min-width: 2em;
    }
}

@media (max-width: 480px) {
    .lang-switcher {
        padding: 2px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .chart-animation {
        height: 150px;
        gap: 10px;
    }

    .bar {
        width: 30px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.benefit-card,
.dashboard-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }

/* Georgian Font Support */
body[lang="ka"] {
    font-family: var(--font-georgian);
}

/* Russian uses same font as English */
body[lang="ru"] {
    font-family: var(--font-primary);
}

/* RTL Support for future if needed */
[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}
