/* Unified Styles for All Pages - Consistent Fonts and Colors */

/* CSS Variables for Consistent Branding */
:root {
    /* Primary Brand Colors */
    --primary: #37B7FE;
    --secondary: #004AAC;
    --accent: #00D4FF;
    --tertiary: #8BC34A;
    
    /* Gradients */
    --gradient: linear-gradient(135deg, #37B7FE 0%, #004AAC 100%);
    --gradient-light: linear-gradient(135deg, #37B7FE 0%, #00D4FF 100%);
    --gradient-dark: linear-gradient(135deg, #004AAC 0%, #1a1a2e 100%);
    
    /* Shadows */
    --shadow: 0 10px 30px rgba(55, 183, 254, 0.15);
    --shadow-hover: 0 20px 40px rgba(55, 183, 254, 0.25);
    --shadow-strong: 0 15px 35px rgba(55, 183, 254, 0.3);
    
    /* Text Colors */
    --text-primary: #2E2E2E;
    --text-secondary: #666666;
    --text-light: #999999;
    --text-white: #FFFFFF;
    
    /* Background Colors */
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-dark: #1a1a2e;
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Libre Baskerville', serif;
    
    /* Font Sizes */
    --font-xs: 0.75rem;      /* 12px */
    --font-sm: 0.875rem;     /* 14px */
    --font-base: 1rem;       /* 16px */
    --font-lg: 1.125rem;     /* 18px */
    --font-xl: 1.25rem;      /* 20px */
    --font-2xl: 1.5rem;      /* 24px */
    --font-3xl: 1.875rem;    /* 30px */
    --font-4xl: 2.25rem;     /* 36px */
    --font-5xl: 3rem;        /* 48px */
    --font-6xl: 3.75rem;     /* 60px */
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing */
    --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: 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: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Global Typography Reset */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography Scale */
h1, .h1 {
    font-size: var(--font-5xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

h2, .h2 {
    font-size: var(--font-4xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

h3, .h3 {
    font-size: var(--font-3xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h4, .h4 {
    font-size: var(--font-2xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h5, .h5 {
    font-size: var(--font-xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

h6, .h6 {
    font-size: var(--font-lg);
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

p, .p {
    font-size: var(--font-base);
    line-height: var(--line-height-normal);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* Display Classes */
.display-1 {
    font-size: var(--font-6xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

.display-2 {
    font-size: var(--font-5xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

.display-3 {
    font-size: var(--font-4xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

.display-4 {
    font-size: var(--font-3xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

.display-5 {
    font-size: var(--font-2xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

/* Text Utilities */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-white {
    color: var(--text-white) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

/* Font Weight Utilities */
.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-bolder { font-weight: 800; }

/* Font Size Utilities */
.fs-xs { font-size: var(--font-xs); }
.fs-sm { font-size: var(--font-sm); }
.fs-base { font-size: var(--font-base); }
.fs-lg { font-size: var(--font-lg); }
.fs-xl { font-size: var(--font-xl); }
.fs-2xl { font-size: var(--font-2xl); }
.fs-3xl { font-size: var(--font-3xl); }
.fs-4xl { font-size: var(--font-4xl); }
.fs-5xl { font-size: var(--font-5xl); }
.fs-6xl { font-size: var(--font-6xl); }

/* Line Height Utilities */
.lh-tight { line-height: var(--line-height-tight); }
.lh-normal { line-height: var(--line-height-normal); }
.lh-relaxed { line-height: var(--line-height-relaxed); }

/* Section Titles */
.section-title {
    background: var(--gradient) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: var(--font-lg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--font-base);
    line-height: var(--line-height-tight);
    border-radius: var(--radius-full);
    padding: var(--spacing-sm) var(--spacing-xl);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-primary {
    background: var(--gradient);
    border: none;
    color: var(--text-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--secondary);
    border: none;
    color: var(--text-white);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--text-white);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid rgba(55, 183, 254, 0.1);
    transition: all var(--transition-normal);
}

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

.card-title {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.card-text {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
}

/* Forms */
.form-control {
    font-family: var(--font-primary);
    font-size: var(--font-base);
    border-radius: var(--radius-lg);
    border: 2px solid #e9ecef;
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(55, 183, 254, 0.25);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: var(--font-xl);
    color: var(--text-primary);
}

.nav-link {
    font-weight: 500;
    font-size: var(--font-base);
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary);
}

/* Footer */
.footer-section-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--spacing-lg);
}

.footer-menu a {
    font-size: var(--font-base);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer-menu a:hover {
    color: var(--text-white);
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --font-5xl: 2.5rem;     /* 40px */
        --font-4xl: 2rem;       /* 32px */
        --font-3xl: 1.5rem;     /* 24px */
        --font-2xl: 1.25rem;    /* 20px */
    }
    
    h1, .h1 { font-size: var(--font-4xl); }
    h2, .h2 { font-size: var(--font-3xl); }
    h3, .h3 { font-size: var(--font-2xl); }
    
    .display-1 { font-size: var(--font-5xl); }
    .display-2 { font-size: var(--font-4xl); }
    .display-3 { font-size: var(--font-3xl); }
}

@media (max-width: 480px) {
    :root {
        --font-5xl: 2rem;       /* 32px */
        --font-4xl: 1.75rem;     /* 28px */
        --font-3xl: 1.25rem;     /* 20px */
    }
    
    h1, .h1 { font-size: var(--font-3xl); }
    h2, .h2 { font-size: var(--font-2xl); }
    
    .display-1 { font-size: var(--font-4xl); }
    .display-2 { font-size: var(--font-3xl); }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.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); }

.mt-0 { margin-top: 0; }
.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); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }
