/* ====== PAYROT-INSPIRED DESIGN SYSTEM ====== */
/* Modern, clean design with light gradients and dark sections */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Color System */
    --color-primary: #0066FF;
    --color-primary-light: #3385FF;
    --color-primary-dark: #0052CC;
    --color-navy: #0B2540;
    --color-navy-light: #1A3A5C;
    --color-light-bg: #F0F7FF;
    --color-white: #FFFFFF;
    --color-text-dark: #0B2540;
    --color-text-medium: #4A5568;
    --color-text-light: #718096;
    --color-border: #E2E8F0;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;

    /* Gradients */
    --gradient-light: linear-gradient(135deg, #E6F4FF 0%, #FFFFFF 100%);
    --gradient-blue: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);

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

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 4rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(11, 37, 64, 0.06);
    --shadow-md: 0 4px 16px rgba(11, 37, 64, 0.08);
    --shadow-lg: 0 8px 32px rgba(11, 37, 64, 0.12);
    --shadow-xl: 0 16px 48px rgba(11, 37, 64, 0.16);

    /* 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 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-medium);
    background: var(--color-white);
    overflow-x: hidden;
}

/* ====== LOADING SCREEN ====== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    gap: 12px;
}

.loader span {
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader span:nth-child(1) { animation-delay: -0.32s; }
.loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ====== NAVIGATION ====== */
.nav-glass {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

.nav-link {
    position: relative;
    padding: 0.75rem 1rem;
    color: var(--color-text-medium);
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(0, 102, 255, 0.06);
}

/* ====== BUTTONS ====== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--gradient-blue);
    color: var(--color-white);
    font-weight: 600;
    font-size: var(--font-size-base);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--font-size-base);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

/* ====== CARDS ====== */
.glass-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    padding: var(--spacing-lg);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.glass-card-subtle {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

/* ====== SECTION STYLES ====== */
.section-padding {
    padding: var(--spacing-3xl) 0;
}

.section-light {
    background: var(--gradient-light);
    position: relative;
}

.section-navy {
    background: var(--color-navy);
    color: var(--color-white);
    position: relative;
}

.section-white {
    background: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 102, 255, 0.08);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

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

/* ====== HERO SECTION ====== */
#home {
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
}

#home::before {
    content: 'DATA STATIC';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(80px, 15vw, 200px);
    font-weight: 900;
    color: rgba(0, 102, 255, 0.03);
    letter-spacing: -0.02em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

/* ====== STATS ====== */
.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

/* ====== SERVICE CARDS ====== */
.service-card {
    padding: var(--spacing-xl);
    height: 100%;
    transition: all var(--transition-base);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: 24px;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ====== PROGRESS BARS ====== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

/* ====== TIMELINE ====== */
.timeline-item {
    position: relative;
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-blue);
    color: var(--color-white);
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* ====== TESTIMONIALS ====== */
.testimonial-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ====== ACCORDION ====== */
.accordion-item {
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: var(--spacing-sm);
    transition: all var(--transition-fast);
}

.accordion-header:hover {
    background: rgba(0, 102, 255, 0.04);
    border-radius: var(--radius-sm);
}

.accordion-icon {
    transition: transform var(--transition-base);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 var(--spacing-sm);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: var(--spacing-md) var(--spacing-sm);
}

/* ====== FORMS ====== */
.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-error {
    display: none;
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

/* ====== BACK TO TOP ====== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--gradient-blue);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ====== DARK SECTIONS ====== */
.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy h4,
.section-navy h5,
.section-navy h6 {
    color: var(--color-white);
}

.section-navy .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.section-navy .glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====== UTILITY CLASSES ====== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.uppercase { text-transform: uppercase; }

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --spacing-3xl: 4rem;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
    }

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

    #home::before {
        font-size: 60px;
    }
}

@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: var(--font-size-sm);
    }
}

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

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

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

/* ====== HIDE CANVAS (NOT NEEDED IN THIS DESIGN) ====== */
#canvas-container,
.gradient-orb,
.grid-pattern {
    display: none !important;
}

/* ====== SCROLL INDICATOR ====== */
.scroll-indicator {
    animation: float 2s ease-in-out infinite;
}
