/* ============================================
   MODERN 2026 DESIGN SYSTEM
   Premium, Clean, Professional
   ============================================ */

:root {
    /* Modern Color Palette - 2026 Standards */
    --color-primary: #6366F1; /* Indigo - modern, trustworthy */
    --color-primary-dark: #4F46E5;
    --color-primary-light: #818CF8;
    --color-accent: #10B981; /* Emerald - success, growth */
    --color-accent-dark: #059669;
    
    /* Neutral Grays - Professional */
    --color-text-primary: #0F172A; /* Slate 900 */
    --color-text-secondary: #475569; /* Slate 600 */
    --color-text-tertiary: #94A3B8; /* Slate 400 */
    
    /* Backgrounds */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F8FAFC; /* Slate 50 */
    --color-bg-tertiary: #F1F5F9; /* Slate 100 */
    --color-bg-elevated: #FFFFFF;
    
    /* Borders */
    --color-border: #E2E8F0; /* Slate 200 */
    --color-border-light: #F1F5F9; /* Slate 100 */
    
    /* Status Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;
    
    /* Shadows - Modern, Subtle */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Spacing Scale - 8px base */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    --space-20: 5rem;    /* 80px */
    --space-24: 6rem;    /* 96px */
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-6xl: 3.75rem;   /* 60px */
    
    /* Border Radius */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* ============================================
   MODERN SIDEBAR - 2026 STYLE
   ============================================ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-elevated);
    border-right: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), width var(--transition-base);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.closed {
    transform: translateX(-100%);
}

.sidebar.minimized {
    width: 80px;
}

.sidebar-header {
    padding: var(--space-6) var(--space-5);
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.sidebar.minimized .sidebar-header {
    justify-content: center;
    padding: var(--space-6) var(--space-3);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    transition: opacity var(--transition-base);
}

.sidebar.minimized .sidebar-logo {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-logo img {
    height: 3.5rem;
    width: auto;
    max-width: 240px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.sidebar-toggle,
.sidebar-minimize-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: var(--space-2);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    width: 36px;
    height: 36px;
}

.sidebar-toggle:hover,
.sidebar-minimize-btn:hover {
    background: var(--color-bg-tertiary);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.05);
}

.sidebar-menu {
    padding: var(--space-4) 0;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-5);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
    margin: var(--space-1) var(--space-4);
    border-radius: var(--radius-lg);
    position: relative;
    white-space: nowrap;
}

.sidebar.minimized .sidebar-link {
    padding: var(--space-3);
    justify-content: center;
    margin: var(--space-1) var(--space-2);
}

.sidebar-link span {
    transition: opacity var(--transition-base);
}

.sidebar.minimized .sidebar-link span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-link:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-primary);
    transform: translateX(4px);
}

.sidebar.minimized .sidebar-link:hover {
    transform: translateX(0);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: var(--color-primary);
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--color-primary);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.sidebar-toggle-btn {
    position: fixed;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 999;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    width: 44px;
    height: 44px;
}

.sidebar.closed ~ .sidebar-toggle-btn {
    display: flex;
}

.sidebar-toggle-btn:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   MODERN BUTTONS - 2026 STYLE
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    background: transparent;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   MODERN CARDS - 2026 STYLE
   ============================================ */

.card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.card:hover::before {
    opacity: 1;
}

/* ============================================
   MODERN HERO SECTION - 2026 STYLE
   ============================================ */

.hero-section {
    padding: var(--space-20) 0 var(--space-16);
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 50%, var(--color-bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   MODERN SECTIONS - 2026 STYLE
   ============================================ */

.section {
    padding: var(--space-20) 0;
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-12);
    line-height: 1.6;
}

/* ============================================
   MODERN GRID SYSTEM - 2026 STYLE
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

/* ============================================
   MODERN CONTAINER - 2026 STYLE
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ============================================
   RESPONSIVE DESIGN - 2026 STYLE
   ============================================ */

@media (max-width: 1024px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
}

@media (max-width: 768px) {
    body {
        margin-left: 0 !important;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.closed {
        transform: translateX(-100%);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .section {
        padding: var(--space-12) 0;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
}

/* ============================================
   UTILITY CLASSES - 2026 STYLE
   ============================================ */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.bg-primary {
    background-color: var(--color-bg-primary);
}

.bg-secondary {
    background-color: var(--color-bg-secondary);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

/* ============================================
   SMOOTH ANIMATIONS - 2026 STYLE
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   ACCESSIBILITY - 2026 STANDARDS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}



