/* ========================================
   DataZync - Main Stylesheet
   Light Blue & White Premium Theme
   ======================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Light Blue Theme */
    --primary: #1E9BD7;
    --primary-light: #4BB8E8;
    --primary-dark: #1680B8;
    --primary-gradient: linear-gradient(135deg, #1E9BD7 0%, #4BB8E8 50%, #1680B8 100%);

    /* Secondary Colors */
    --secondary: #0A1628;
    --secondary-light: #152238;

    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Accent Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1280px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(30, 155, 215, 0.3);

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--white);
    color: var(--gray-700);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Preloader
   ======================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo img {
    width: 200px;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.preloader-progress {
    width: 0;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   Particles Background
   ======================================== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    transition: var(--transition);
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 12px 20px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(30, 155, 215, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle i {
    font-size: 10px;
    margin-left: 6px;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu {
    width: 700px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 30px;
    border: 1px solid var(--gray-100);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mega-menu-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-column h4 i {
    color: var(--primary);
}

.mega-menu-column a {
    display: block;
    font-size: 14px;
    color: var(--gray-600);
    padding: 8px 0;
    transition: var(--transition);
}

.mega-menu-column a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.mega-menu-column a.view-all {
    color: var(--primary);
    font-weight: 600;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.mega-menu-column a.view-all:hover {
    padding-left: 15px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 155, 215, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 155, 215, 0.45);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(30, 155, 215, 0.05);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(30, 155, 215, 0.15);
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(75, 184, 232, 0.1);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(30, 155, 215, 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(30, 155, 215, 0.1);
    border: 1px solid rgba(30, 155, 215, 0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 25px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

/* Hero Clients */
.hero-clients {
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-avatars {
    display: flex;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.avatar:first-child {
    margin-left: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-more {
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--gray-600);
}

.client-rating {
    color: #FFC107;
}

/* Hero Visual - 3D Animated */
.hero-visual {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-visual {
    position: relative;
    width: 500px;
    height: 500px;
}

/* Central Sphere */
.central-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
}

.sphere-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(30, 155, 215, 0.4) 0%, rgba(30, 155, 215, 0) 70%);
    border-radius: 50%;
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }
}

.sphere-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(30, 155, 215, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.sphere-core i {
    font-size: 40px;
    color: var(--white);
    animation: rotate-icon 8s linear infinite;
}

@keyframes rotate-icon {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* Sphere Rings */
.sphere-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin-ring 4s linear infinite;
}

.ring-1 {
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
    animation-duration: 6s;
    opacity: 0.6;
}

.ring-2 {
    width: 240px;
    height: 240px;
    margin: -120px 0 0 -120px;
    animation-duration: 8s;
    animation-direction: reverse;
    border-top-color: var(--primary-light);
    opacity: 0.4;
}

.ring-3 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    animation-duration: 10s;
    border-top-color: rgba(30, 155, 215, 0.3);
    opacity: 0.3;
}

@keyframes spin-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Orbits */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(30, 155, 215, 0.2);
    border-radius: 50%;
    animation: orbit-rotate 15s linear infinite;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
}

.orbit-2 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    animation-duration: 20s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 400px;
    height: 400px;
    margin: -200px 0 0 -200px;
    animation-duration: 25s;
}

@keyframes orbit-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Orbit Items */
.orbit-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(30, 155, 215, 0.2);
    animation: counter-rotate 15s linear infinite;
}

.orbit-item i {
    font-size: 20px;
    color: var(--primary);
}

.orbit-item-1 {
    top: -25px;
    left: 50%;
    margin-left: -25px;
}

.orbit-item-2 {
    top: 50%;
    right: -25px;
    margin-top: -25px;
    animation-duration: 20s;
    animation-direction: reverse;
}

.orbit-item-3 {
    bottom: -25px;
    left: 50%;
    margin-left: -25px;
    animation-duration: 25s;
}

@keyframes counter-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

/* Floating Cards */
.float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 40px rgba(30, 155, 215, 0.15);
    border: 1px solid var(--gray-100);
    animation: float-card 4s ease-in-out infinite;
    z-index: 20;
}

.float-card-1 {
    top: 10%;
    right: 0;
    animation-delay: 0s;
}

.float-card-2 {
    top: 60%;
    left: -30px;
    animation-delay: 1.3s;
}

.float-card-3 {
    bottom: 5%;
    right: 10%;
    animation-delay: 2.6s;
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.float-card-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
}

.float-card-text {
    display: flex;
    flex-direction: column;
}

.float-card-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    font-family: var(--font-display);
}

.float-card-label {
    font-size: 12px;
    color: var(--gray-500);
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.conn-line {
    stroke: var(--primary);
    stroke-width: 1;
    stroke-dasharray: 5, 5;
    opacity: 0.2;
    animation: dash-animation 2s linear infinite;
}

@keyframes dash-animation {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -20;
    }
}

/* Data Particles */
.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.data-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
}

.p1 {
    top: 15%;
    left: 20%;
    animation: particle-float 5s ease-in-out infinite;
}

.p2 {
    top: 25%;
    right: 15%;
    animation: particle-float 6s ease-in-out infinite 0.5s;
}

.p3 {
    top: 70%;
    left: 10%;
    animation: particle-float 4s ease-in-out infinite 1s;
}

.p4 {
    bottom: 20%;
    right: 25%;
    animation: particle-float 5.5s ease-in-out infinite 1.5s;
}

.p5 {
    top: 40%;
    left: 5%;
    animation: particle-float 7s ease-in-out infinite 2s;
}

.p6 {
    top: 60%;
    right: 5%;
    animation: particle-float 4.5s ease-in-out infinite 0.8s;
}

.p7 {
    bottom: 35%;
    left: 30%;
    animation: particle-float 6.5s ease-in-out infinite 1.2s;
}

.p8 {
    top: 10%;
    left: 60%;
    animation: particle-float 5s ease-in-out infinite 1.8s;
}

@keyframes particle-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translate(10px, -15px) scale(1.2);
        opacity: 0.8;
    }

    50% {
        transform: translate(-5px, -25px) scale(0.8);
        opacity: 0.4;
    }

    75% {
        transform: translate(15px, -10px) scale(1.1);
        opacity: 0.7;
    }
}

/* Hero Floating Stats */
.hero-floating-stats {
    position: absolute;
}

.stat-bubble {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: float 3s infinite ease-in-out;
}

.stat-bubble-1 {
    top: 5%;
    right: 20%;
}

.stat-bubble-2 {
    bottom: 10%;
    right: 5%;
    animation-delay: 1.5s;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 12px;
    color: var(--gray-500);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gray-300);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

.arrow i {
    animation: bounce-arrow 2s infinite;
}

@keyframes bounce-arrow {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(5px);
    }

    60% {
        transform: translateY(3px);
    }
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(30, 155, 215, 0.1);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: var(--gray-600);
}