/* Sierra EduTech Solutions Limited - Modern Responsive Styles */

/* Modern CSS Reset and Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0057B8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0040a3;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.dark ::-webkit-scrollbar-thumb {
    background: #00C2FF;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #00a8e6;
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(18, 18, 18, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #0057B8 0%, #00C2FF 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #00C2FF 0%, #FFD700 100%);
}

.gradient-hero {
    background: linear-gradient(135deg, #0057B8 0%, #00C2FF 50%, #FFD700 100%);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Button styles */
.btn-primary {
    @apply bg-primary text-white px-6 py-3 rounded-lg font-medium transition-all duration-300 hover:bg-blue-700 hover:shadow-lg;
}

.btn-secondary {
    @apply bg-secondary text-white px-6 py-3 rounded-lg font-medium transition-all duration-300 hover:bg-cyan-600 hover:shadow-lg;
}

.btn-outline {
    @apply border-2 border-primary text-primary px-6 py-3 rounded-lg font-medium transition-all duration-300 hover:bg-primary hover:text-white;
}

/* Modern Design System - Clean & Functional */
:root {
    --primary: #0057B8;
    --secondary: #00C2FF;
    --accent: #FFD700;
    --dark: #0f172a;
    --light: #f8fafc;
    --surface: #ffffff;
    --surface-dark: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-dark: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

.dark {
    --surface: #1e293b;
    --surface-dark: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --border-dark: #475569;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Enhanced Team Section Styles */
.team-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 87, 184, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.team-card::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.6s ease;
}

.team-card:hover::before {
    left: 100%;
}

.team-card:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    border-color: rgba(0, 87, 184, 0.2);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-large), 0 0 0 1px rgba(0, 87, 184, 0.1);
}

.dark .team-card {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-color: rgba(0, 194, 255, 0.1);
}

.dark .team-card:hover {
    background: linear-gradient(145deg, #1f2937 0%, #0f172a 100%);
    border-color: rgba(0, 194, 255, 0.2);
}

/* Team Photo Enhancements */
.team-photo {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-photo:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.team-photo img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-photo:hover img {
    transform: scale(1.1);
}

/* Status Indicator Animation */
.status-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Decorative Ring Animation */
.decorative-ring {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Social Buttons */
.social-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn::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;
}

.social-btn:hover::before {
    left: 100%;
}

/* Line Clamp for Bio Text */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Hover Effects */
.team-card:hover .decorative-line {
    width: 100%;
    background: linear-gradient(90deg, #0057B8, #00C2FF, #FFD700);
}

.decorative-line {
    height: 2px;
    background: linear-gradient(90deg, #0057B8, #00C2FF);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Position Badge Enhancement */
.position-badge {
    background: linear-gradient(135deg, rgba(0, 87, 184, 0.1) 0%, rgba(0, 194, 255, 0.1) 100%);
    border: 1px solid rgba(0, 87, 184, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .team-card:hover .position-badge {
        background: linear-gradient(135deg, rgba(0, 87, 184, 0.15) 0%, rgba(0, 194, 255, 0.15) 100%);
        border-color: rgba(0, 87, 184, 0.3);
        transform: scale(1.02);
    }

/* Modern UI Components - Clean & Functional */
.modern-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.dark .modern-card {
    background: var(--surface);
    border-color: var(--border);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

/* Modern Buttons - Clean & Accessible */
.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    min-height: 2.5rem;
}

.btn-primary:hover {
    background: #004494;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    min-height: 2.5rem;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.dark .btn-secondary {
    color: var(--text-primary);
    border-color: var(--border);
}

.dark .btn-secondary:hover {
    color: white;
}

/* Modern Card Hover Effects */
.modern-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.dark .modern-card {
    background: #1f2937;
    color: white;
}

/* Modern Navigation - Clean & Functional */
.nav-link {
    position: relative;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(0, 87, 184, 0.05);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(0, 87, 184, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.dark .nav-link {
    color: var(--text-secondary);
}

.dark .nav-link:hover {
    color: var(--secondary);
    background: rgba(0, 194, 255, 0.1);
}

.dark .nav-link.active {
    color: var(--secondary);
    background: rgba(0, 194, 255, 0.1);
}

.dark .nav-link::after {
    background: var(--secondary);
}

/* Modern Form Elements - Clean & Accessible */
.form-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.1);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.dark .form-input {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: var(--spacing-xs);
}

.form-success {
    color: #059669;
    font-size: 0.75rem;
    margin-top: var(--spacing-xs);
}

/* Modern Content Overlay */
.content-overlay {
    position: relative;
    z-index: 1;
}

.content-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 87, 184, 0.02), rgba(0, 194, 255, 0.02));
    pointer-events: none;
    z-index: -1;
}

/* Modern Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 87, 184, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 87, 184, 0.4);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Dark Mode Enhancements */
.dark .glass-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .modern-card {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .gradient-btn {
    background: linear-gradient(135deg, #00C2FF, #FFD700);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(10px);
    }
    
    .modern-card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .gradient-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* Modern Typography - Clean & Readable */
.heading-1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.heading-2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.heading-3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.text-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.text-large {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.modern-heading {
    color: var(--primary);
    font-weight: 700;
}

.dark .modern-heading {
    color: var(--secondary);
}

/* Modern Spacing System */
.section-padding {
    padding: var(--spacing-2xl) 0;
}

.container-padding {
    padding: 0 var(--spacing-lg);
}

.card-padding {
    padding: var(--spacing-lg);
}

/* Focus States for Accessibility */
.focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Form styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-800 text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent transition-all duration-300;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-800 text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent transition-all duration-300 resize-none;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2;
}

/* Loading spinner */
.spinner {
    @apply animate-spin rounded-full h-8 w-8 border-b-2 border-primary;
}

/* Toast notifications */
.toast {
    @apply fixed top-4 right-4 z-50 p-4 rounded-lg shadow-lg transform transition-all duration-300;
}

.toast-success {
    @apply bg-green-500 text-white;
}

.toast-error {
    @apply bg-red-500 text-white;
}

.toast-info {
    @apply bg-blue-500 text-white;
}

/* Swiper customizations */
.swiper-pagination-bullet {
    @apply bg-primary;
}

.swiper-pagination-bullet-active {
    @apply bg-secondary;
}

.swiper-button-next,
.swiper-button-prev {
    @apply text-primary;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.slide-left {
    animation: slideLeft 0.6s ease-out;
}

.slide-right {
    animation: slideRight 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive utilities */
@media (max-width: 640px) {
    .container {
        @apply px-4;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        @apply text-black bg-white;
    }
}

/* Accessibility improvements */
.focus-visible:focus {
    @apply outline-none ring-2 ring-primary ring-offset-2;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-hover:hover {
        @apply border-2 border-primary;
    }
}

/* Custom utilities */
.text-gradient {
    background: linear-gradient(135deg, #0057B8 0%, #00C2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #0057B8 0%, #00C2FF 100%) border-box;
}

.dark .border-gradient {
    background: linear-gradient(#121212, #121212) padding-box,
                linear-gradient(135deg, #0057B8 0%, #00C2FF 100%) border-box;
}

/* Loading states */
.skeleton {
    @apply animate-pulse bg-gray-200 dark:bg-gray-700 rounded;
}

/* Error states */
.error {
    @apply border-red-500 text-red-500;
}

.error-message {
    @apply text-red-500 text-sm mt-1;
}

/* Success states */
.success {
    @apply border-green-500 text-green-500;
}

.success-message {
    @apply text-green-500 text-sm mt-1;
}

/* Modern Responsive Design Enhancements */

/* Mobile-first responsive design */
@media (max-width: 768px) {
    /* Mobile navigation improvements */
    .mobile-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
    
    /* Touch-friendly buttons */
    .btn-primary, .btn-secondary, .btn-outline {
        min-height: 44px;
        padding: 12px 24px;
        font-size: 16px;
        touch-action: manipulation;
    }
    
    /* Improved spacing for mobile */
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Mobile typography */
    .text-4xl {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .text-3xl {
        font-size: 1.875rem;
        line-height: 1.3;
    }
    
    /* Mobile grid improvements */
    .grid {
        gap: 1rem;
    }
    
    /* Mobile card improvements */
    .card-hover {
        margin-bottom: 1rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-1.lg\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tablet spacing */
    .py-20 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1025px) {
    .container {
        max-width: 1280px;
    }
    
    /* Enhanced hover effects for desktop */
    .card-hover:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    /* Desktop navigation improvements */
    .nav-link {
        position: relative;
        transition: color 0.3s ease;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(135deg, #0057B8 0%, #00C2FF 100%);
        transition: width 0.3s ease;
    }
    
    .nav-link:hover::after {
        width: 100%;
    }
}

/* Ultra-wide screen support */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    /* Enhanced spacing for large screens */
    .py-20 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo, .icon, img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card-hover:hover {
        transform: none;
    }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .dark .card-hover:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
}

/* Focus improvements for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.btn-outline:focus {
    outline: 2px solid #0057B8;
    outline-offset: 2px;
}

/* Loading states with better UX */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    .bg-dark, .bg-gray-900 {
        background: #fff !important;
        color: #000 !important;
    }
}
