/* ===== MODERN EYE-SOOTHING THEME ===== */

/* Optimized Fonts - Removed duplicate import, using HTML link instead */

/* CSS Custom Properties - Soft & Modern Color Palette */
:root {
    /* Primary Colors - Soft Blues & Purples */
    --primary-color: #667eea;
    --primary-light: #764ba2;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Secondary Colors - Warm Accents */
    --secondary-color: #f093fb;
    --secondary-light: #f5576c;
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    /* Neutral Colors - Soft & Clean with Subtle Gradients (Slightly Darker) */
    --background-primary: linear-gradient(135deg, #eaedf0 0%, #e6eaed 25%, #e0e4e8 50%, #dae0e5 75%, #d4dae0 100%);
    --background-secondary: linear-gradient(135deg, #f0f2f4 0%, #eceef1 25%, #e6e9ec 50%, #e0e4e8 75%, #dadfe4 100%);
    --background-tertiary: linear-gradient(135deg, #e8ebee 0%, #e4e8eb 25%, #dee2e6 50%, #d8dde2 75%, #d2d8de 100%);
    --surface-color: rgba(240, 242, 244, 0.85);
    
    /* Text Colors - Enhanced Contrast for Better Readability */
    --text-primary: #111827;
    --text-secondary: #1f2937;
    --text-muted: #374151;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --text-white-muted: rgba(255, 255, 255, 0.9);
    --text-white-light: rgba(255, 255, 255, 0.7);
    
    /* Accent Colors - Soft Highlights */
    --accent-blue: #4299e1;
    --accent-teal: #38b2ac;
    --accent-purple: #9f7aea;
    --accent-pink: #ed64a6;
    --accent-orange: #ed8936;
    
    /* Shadow Colors - Subtle Depth */
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    
    /* Gradients - Soft & Modern */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-cool: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    
    /* Distinct Section Background Gradients for Better Visual Separation */
    --gradient-subtle-1: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    --gradient-subtle-2: linear-gradient(145deg, #fefefe 0%, #f9fafb 40%, #f3f4f6 100%);
    --gradient-subtle-3: linear-gradient(125deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    --gradient-radial-1: radial-gradient(ellipse at top, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    --gradient-radial-2: radial-gradient(ellipse at bottom, #ffffff 0%, #f1f5f9 40%, #e2e8f0 100%);
    
    /* New alternating section backgrounds */
    --section-white: #ffffff;
    --section-light-blue: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --section-blue-tint: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --section-purple-tint: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    --section-gray-tint: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    
    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Modern Typography */
    --font-family-primary: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-family-heading: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-family-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Mobile optimizations */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px); /* Account for navbar and footer */
    width: 100%;
}

/* Ensure proper footer positioning */
.footer {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

/* ===== MODERN TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.025em;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    max-width: 100%;
    padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text Color Utilities */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-light { color: var(--text-light) !important; }
.text-white { color: var(--text-white) !important; }
.text-white-muted { color: var(--text-white-muted) !important; }
.text-white-light { color: var(--text-white-light) !important; }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    /* Fallback for browsers that don't support background-clip */
    color: var(--primary-color);
}

/* Enhanced gradient with better contrast for dark backgrounds */
.text-gradient-light {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* For gradient text on light backgrounds with enhanced visibility */
.text-gradient-enhanced {
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    color: var(--text-primary);
}

/* High Contrast Text for Dark Backgrounds */
.text-high-contrast {
    color: var(--text-white) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.text-medium-contrast {
    color: var(--text-white-muted) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-md);
    font-family: var(--font-family-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: var(--text-white);
}

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

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

.btn-outline {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--text-light);
    box-shadow: 0 2px 10px var(--shadow-light);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--shadow-medium);
}

/* ===== CARD STYLES ===== */
.card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: var(--transition-normal);
    border: 1px solid rgba(226, 230, 234, 0.3);
}

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

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

.section-lg {
    padding: 5rem 0;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== BACKGROUND ELEMENTS ===== */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-soft {
    background: var(--gradient-subtle-1);
}

.bg-soft-alt {
    background: var(--gradient-subtle-2);
}

.bg-soft-warm {
    background: var(--gradient-subtle-3);
}

.bg-radial-top {
    background: var(--gradient-radial-1);
}

.bg-radial-bottom {
    background: var(--gradient-radial-2);
}

.bg-pattern {
    background-image: radial-gradient(circle at 25px 25px, rgba(102, 126, 234, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
}

/* Additional gradient texture patterns */
.bg-pattern-subtle {
    background: var(--gradient-subtle-1);
    background-image: radial-gradient(circle at 20px 20px, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-gradient-texture {
    background: var(--gradient-subtle-2);
    background-image: 
        linear-gradient(45deg, rgba(240, 242, 244, 0.6) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(240, 242, 244, 0.6) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(240, 242, 244, 0.6) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(240, 242, 244, 0.6) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE-FIRST RESPONSIVE DESIGN ===== */

/* Mobile devices (max-width: 575px) */
@media (max-width: 575px) {
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.5rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
        
        /* Mobile optimized font sizes */
        --font-size-xs: 0.75rem;
        --font-size-sm: 0.875rem;
        --font-size-base: 0.875rem;
        --font-size-lg: 1rem;
        --font-size-xl: 1.125rem;
    }
    
    body {
        font-size: var(--font-size-base);
        line-height: 1.5;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* container-fluid responsive rules moved to responsive.css */
    
    /* Mobile typography improvements */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.2;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    p {
        font-size: var(--font-size-base);
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    /* Button improvements for mobile */
    .btn {
        padding: 12px 20px;
        font-size: var(--font-size-base);
        min-height: 44px;
        border-radius: 8px;
        font-weight: 600;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-primary {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    .btn-primary:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    }
    
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
        line-height: 1.5;
        max-width: 95%;
    }
}

/* Small tablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
        --font-size-base: 0.9rem;
    }
    
    .container {
        padding: 0 1.5rem;
        max-width: 540px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Medium tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
        --font-size-base: 1rem;
    }
    
    .container {
        padding: 0 2rem;
        max-width: 720px;
    }
    
    .btn {
        padding: 16px 28px;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Improve touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover,
    .card:hover,
    .nav-link:hover {
        transform: none;
    }
    
    /* Better feedback for touch interactions */
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}
