:root {
    /* Primary Brand Colors - Royal Blue Palette */
    --primary-color: #2563EB; /* Royal Blue - Modern & Professional */
    --primary-dark: #1E40AF; /* Darker Royal Blue for depth */
    --primary-light: #3B82F6; /* Lighter Royal Blue for hover states */
    
    /* Secondary Colors - Teal Accent */
    --secondary-color: #00A8CC; /* Vibrant Teal - Innovation */
    --secondary-dark: #008299; /* Darker Teal */
    --secondary-light: #33B8D6; /* Lighter Teal */
    
    /* Accent Colors */
    --accent-color: #00D9FF; /* Bright Cyan - Call-to-action */
    --accent-success: #00C853; /* Green - Success states */
    --accent-warning: #FF9800; /* Orange - Warnings */
    --accent-danger: #F44336; /* Red - Errors */
    
    /* Neutral Colors - Professional Grays */
    --dark-bg: #0F1419; /* Almost Black - Premium feel */
    --dark-bg-secondary: #1A1F26; /* Slightly lighter dark */
    --light-bg: #F7F9FC; /* Off-white - Easy on eyes */
    --light-bg-secondary: #EDF2F7; /* Slightly darker light */
    
    /* Card & Surface Colors */
    --card-bg: #FFFFFF; /* Pure white for cards */
    --card-hover: #FAFBFC; /* Subtle hover state */
    --surface-elevated: #FFFFFF; /* Elevated surfaces */
    
    /* Text Colors - Improved Contrast */
    --text-primary: #1A202C; /* Dark gray - Main text */
    --text-secondary: #4A5568; /* Medium gray - Secondary text */
    --text-tertiary: #718096; /* Light gray - Tertiary text */
    --text-inverse: #FFFFFF; /* White text on dark backgrounds */
    
    /* Border & Divider Colors */
    --border-color: #E2E8F0; /* Light border */
    --border-color-dark: #CBD5E0; /* Darker border */
    --divider-color: #EDF2F7; /* Subtle dividers */
    
    /* Shadow Colors */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Brand Gradients */
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #00A8CC 100%);
    --gradient-primary-hover: linear-gradient(135deg, #1E40AF 0%, #008299 100%);
    --gradient-accent: linear-gradient(135deg, #00A8CC 0%, #00D9FF 100%);
    --gradient-dark: linear-gradient(135deg, #0F1419 0%, #1A1F26 100%);
    
    /* Transitions & Animations */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Spacing System */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem; /* 8px */
    --spacing-md: 1rem; /* 16px */
    --spacing-lg: 1.5rem; /* 24px */
    --spacing-xl: 2rem; /* 32px */
    --spacing-2xl: 3rem; /* 48px */
    --spacing-3xl: 4rem; /* 64px */
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Section Styles */
.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    color: var(--text-primary);
    position: relative;
    padding-bottom: var(--spacing-lg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
    line-height: 1.8;
}

/* Container Improvements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Button Base Styles */
.btn {
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
}

.btn:focus {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}


/* Force hide modals on initial load */
.modal {
    display: none !important;
}

.modal.show {
    display: block !important;
}

.modal-backdrop {
    display: none !important;
}

.modal-backdrop.show {
    display: block !important;
}

/* Prevent flash of unstyled content */
.modal.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal.fade.show {
    opacity: 1;
}

/* Ensure proper z-index */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}
