/* Global Styles for Future Mech */

/* ============================================
   TASK 1: SMOOTH SCROLLING - Global Settings
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}
.page-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

main {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure navbar doesn't create gaps */
.navbar {
    margin-bottom: 0 !important;
}

/* Remove any section gaps */
section {
    margin: 0 !important;
}

/* Remove container gaps */
.container, .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Remove row gaps */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove column gaps */
[class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
}
/* Enable smooth scrolling globally */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Smooth scroll with offset for sticky navbar */
html:focus-within {
    scroll-behavior: smooth;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --muted-color: #6b7280;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
}

h5 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 500;
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 500;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted-color);
}

/* Code and Monospace */
code, pre, .font-mono {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-weight: 500;
}

/* ============================================
   TASK 3: OPTIMIZED VIEWPORT HEIGHTS
   ============================================ */

/* Body - Prevent overflow */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: scroll-behavior 0.3s ease;
}

/* Page wrapper for consistent spacing */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content area */
main {
    flex: 1;
}

/* Section spacing optimization */
section {
    scroll-margin-top: 60px; /* Offset for sticky navbar */
}

/* Container optimization for single screen view */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Custom Bootstrap Override */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.4);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
    color: white;
}

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

.btn-outline-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.btn-outline-primary:hover::after {
    width: 100%;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

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

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

/* ============================================
   TASK 2: STICKY NAVBAR - Always Visible
   ============================================ */

/* Navigation Styles */
.navbar {
    backdrop-filter: blur(20px);
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.98) 0%, rgba(74, 85, 104, 0.98) 100%) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
}

.navbar.navbar-scrolled {
    background: rgba(30, 64, 175, 0.98) !important;
    backdrop-filter: blur(25px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Scrolled state enhancement */
.navbar.scrolled {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(74, 85, 104, 0.95) 100%) !important;
    backdrop-filter: blur(25px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Ensure navbar is always visible */
.navbar-nav {
    align-items: center;
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    color: rgba(255, 255, 255, 0.95) !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-radius: 0.5rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0.25rem;
    left: 50%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.nav-link:hover {
    color: #ffd700 !important;
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    left: 10%;
}

.nav-link.active {
    color: var(--accent-light) !important;
    font-weight: 600;
}

/* Dropdown Enhancements */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    transform: translateX(4px);
    color: var(--primary-color);
}

/* Card Styles */
.card {
    border: none;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    overflow: hidden;
}

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

.card-hover {
    transition: var(--transition-medium);
}

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

/* Form Styles */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Button Animations */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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-glow:hover::before {
    left: 100%;
}

/* Loading Animations */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-large);
}
.body-padding-top {
    padding-top: 0px;
    padding-bottom: 0px; /* Adjust this value based on the height of your navbar */
}
.body-padding-bottom {
    padding-top: 0px;
    padding-bottom: 0px; /* Adjust this value based on the height of your navbar */
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
}

.hover-lift {
    transition: var(--transition-medium);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Alert Customization */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-light);
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

/* Modal Customization */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-large);
}

.modal-header {
    border-bottom: 2px solid var(--border-color);
}

.modal-footer {
    border-top: 2px solid var(--border-color);
}

/* Table Customization */
.table {
    box-shadow: var(--shadow-light);
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(30, 64, 175, 0.05);
}

/* Badge Customization */
.badge {
    border-radius: 0.375rem;
    font-weight: 600;
}

/* Progress Bar */
.progress {
    border-radius: 0.5rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: var(--gradient-primary);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    z-index: 1000;
    transition: var(--transition-fast);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Footer Link Hover Effects */
.hover-link {
    transition: all 0.3s ease;
    position: relative;
}

.hover-link:hover {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.hover-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.hover-link:hover::after {
    width: 100%;
}

/* ============================================
   SCROLL BEHAVIOR ENHANCEMENTS
   ============================================ */

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #f1f1f1;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU acceleration for animations */
.navbar,
.btn,
.nav-link,
.feature-card,
.hero-content {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Prevent layout shifts */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Loading state */
body.loading {
    overflow: hidden;
}

body.loaded {
    overflow-x: hidden;
    overflow-y: auto;
}

/* ============================================
   MOBILE OPTIMIZATIONS - Task 3
   ============================================ */

/* Responsive Design */
@media (max-width: 768px) {
    .display-1 {
        font-size: 2.5rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Navbar mobile adjustments */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        background: linear-gradient(135deg, rgba(45, 55, 72, 0.98) 0%, rgba(74, 85, 104, 0.98) 100%);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    /* Optimize section spacing for mobile */
    section {
        scroll-margin-top: 55px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Further optimize for small screens */
    .navbar {
        min-height: 55px;
    }
    
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: #ffd700;
    color: #1a202c;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 2000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        border-bottom: 2px solid #ffffff;
    }
    
    .nav-link {
        font-weight: 600;
    }
}

/* Advanced Animation Classes */
.fade-in {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.slide-in-left {
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* Micro-interactions */
.micro-bounce {
    animation: microBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes microBounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smooth-transition-slow {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Footer Contrast Enhancements */
footer.bg-dark {
    background-color: #0b1220 !important;
    color: #f8f9fa !important;
}

footer.bg-dark h5,
footer.bg-dark h6,
footer.bg-dark p,
footer.bg-dark li,
footer.bg-dark a {
    color: #f8f9fa !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

footer.bg-dark a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .footer,
    .btn,
    .alert,
    .scroll-indicator,
    .floating-element {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Dark Mode Styles */
.dark-mode {
    background-color: #1a1a1a !important;
    color: #e5e5e5 !important;
}

.dark-mode .navbar {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #404040;
}

.dark-mode .navbar-brand,
.dark-mode .navbar-nav .nav-link {
    color: #e5e5e5 !important;
}

.dark-mode .navbar-nav .nav-link:hover {
    color: #3b82f6 !important;
}

.dark-mode .card {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
    color: #e5e5e5 !important;
}

.dark-mode .card-header {
    background-color: #404040 !important;
    border-bottom-color: #555 !important;
}

.dark-mode .form-control,
.dark-mode .form-select {
    background-color: #404040 !important;
    border-color: #555 !important;
    color: #e5e5e5 !important;
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
    background-color: #404040 !important;
    border-color: #3b82f6 !important;
    color: #e5e5e5 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
}

.dark-mode .btn-outline-primary {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

.dark-mode .btn-outline-primary:hover {
    background-color: #3b82f6 !important;
    color: white !important;
}

.dark-mode .text-muted {
    color: #9ca3af !important;
}

.dark-mode .text-dark {
    color: #e5e5e5 !important;
}

.dark-mode .bg-light {
    background-color: #2d2d2d !important;
}

.dark-mode .bg-white {
    background-color: #2d2d2d !important;
}

.dark-mode .border {
    border-color: #404040 !important;
}

.dark-mode .table {
    color: #e5e5e5 !important;
}

.dark-mode .table th {
    background-color: #404040 !important;
    border-color: #555 !important;
    color: #e5e5e5 !important;
}

.dark-mode .table td {
    border-color: #555 !important;
}

.dark-mode .table tbody tr:hover {
    background-color: #404040 !important;
}

.dark-mode .modal-content {
    background-color: #2d2d2d !important;
    color: #e5e5e5 !important;
}

.dark-mode .modal-header {
    border-bottom-color: #555 !important;
}

.dark-mode .modal-footer {
    border-top-color: #555 !important;
}

.dark-mode .list-group-item {
    background-color: #2d2d2d !important;
    border-color: #555 !important;
    color: #e5e5e5 !important;
}

.dark-mode .list-group-item:hover {
    background-color: #404040 !important;
}

.dark-mode .alert {
    background-color: #404040 !important;
    border-color: #555 !important;
    color: #e5e5e5 !important;
}

.dark-mode .alert-success {
    background-color: #1a4d1a !important;
    border-color: #2d5a2d !important;
    color: #90ee90 !important;
}

.dark-mode .alert-danger {
    background-color: #4d1a1a !important;
    border-color: #5a2d2d !important;
    color: #ffb3b3 !important;
}

.dark-mode .alert-info {
    background-color: #1a3d4d !important;
    border-color: #2d5a6b !important;
    color: #b3d9ff !important;
}
/* Remove any remaining default spacing */
* {
    box-sizing: border-box;
}

/* Ensure no gaps in main content */
main {
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix navbar potential spacing */
.navbar {
    margin-bottom: 0 !important;
}

/* Remove any potential footer gaps */
footer {
    margin-top: 0 !important;
}

.dark-mode .alert-warning {
    background-color: #4d3d1a !important;
    border-color: #5a4d2d !important;
    color: #ffd9b3 !important;
}

.list-unstyled {
    border-color: #5a4d2d !important;
    color: #fce6cf !important;
}