/* Additional Landing Page Styles */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 4px;
}

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

/* Selection Color */
::selection {
    background: rgba(30, 58, 138, 0.2);
    color: #1e3a8a;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    width: 100px;
    height: 100px;
    animation: pulse-logo 2s infinite;
}

@keyframes pulse-logo {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Enhanced Button Styles */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* Typing Animation */
.typing-text {
    border-right: 2px solid #f59e0b;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #f59e0b; }
}

/* Particle Background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced Card Hover */
.card-enhanced {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.card-enhanced:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Text Reveal Animation */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.text-reveal.animate::after {
    transform: translateX(100%);
}

/* Enhanced Stats Counter */
.stat-enhanced {
    position: relative;
}

.stat-enhanced::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #f59e0b;
    transform: translateX(-50%);
    transition: width 1s ease;
}

.stat-enhanced.animate::before {
    width: 60px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .feature-card {
        margin-bottom: 30px;
    }
    
    .stat-item {
        margin-bottom: 40px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(31, 41, 55, 0.95) !important;
    }
    
    .nav-link {
        color: #f9fafb !important;
    }
    
    .features {
        background: #111827;
    }
    
    .feature-card {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .footer {
        background: #0f172a;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .social-links {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto !important;
    }
    
    .stats {
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-login {
        border: 2px solid #000;
    }
    
    .feature-card {
        border: 2px solid #000;
    }
    
    .navbar {
        border-bottom: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating {
        animation: none;
    }
    
    .btn-cta {
        animation: none;
    }
}
