/* =====================================================
   AVIATION HRP - Landing Page Enhancements
   Additional styles for better user experience
   ===================================================== */

/* =====================================================
   Loading Animation
   ===================================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* =====================================================
   Smooth Scroll Behavior
   ===================================================== */
html {
    scroll-behavior: smooth;
}

/* =====================================================
   Enhanced Button Styles
   ===================================================== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.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%;
}

/* =====================================================
   Enhanced Form Styles
   ===================================================== */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.form-group input:valid {
    border-color: #10b981;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* =====================================================
   Enhanced Card Hover Effects
   ===================================================== */
.feature-highlight,
.audience-card,
.stat-card,
.tech-item {
    position: relative;
    overflow: hidden;
}

.feature-highlight::before,
.audience-card::before,
.stat-card::before,
.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(245, 158, 11, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-highlight:hover::before,
.audience-card:hover::before,
.stat-card:hover::before,
.tech-item:hover::before {
    opacity: 1;
}

/* =====================================================
   Enhanced Tab Styles
   ===================================================== */
.tab-btn {
    position: relative;
    overflow: hidden;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.tab-btn.active::after {
    width: 100%;
}

/* =====================================================
   Enhanced Video Styles
   ===================================================== */
.demo-video {
    transition: all 0.3s ease;
}

.demo-video:hover {
    transform: scale(1.02);
}

/* =====================================================
   Enhanced Screenshot Styles
   ===================================================== */
.screenshot-item {
    position: relative;
    overflow: hidden;
}

.screenshot-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.8), rgba(245, 158, 11, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.screenshot-item:hover::after {
    opacity: 1;
}

/* =====================================================
   Enhanced Modal Styles
   ===================================================== */
.modal-content {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =====================================================
   Enhanced Success Message
   ===================================================== */
.success-message {
    animation: successSlideIn 0.5s ease;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-100px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =====================================================
   Enhanced Statistics Animation
   ===================================================== */
.stat-number {
    position: relative;
    overflow: hidden;
}

.stat-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* =====================================================
   Enhanced Header Styles
   ===================================================== */
.modern-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =====================================================
   Enhanced Hero Section
   ===================================================== */
.hero-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* =====================================================
   Enhanced Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tabs-container {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .tabs-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .tabs-container {
        padding: 1rem;
    }

    .feature-highlight {
        flex-direction: column;
        text-align: center;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Print Styles
   ===================================================== */
@media print {

    .modern-header,
    .hero-actions,
    .tabs-container,
    .target-audience,
    .professional-footer {
        display: none;
    }

    .hero-section {
        background: none;
        color: black;
    }

    .hero-title,
    .hero-subtitle {
        color: black;
    }
}

/* =====================================================
   Accessibility Enhancements
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.tab-btn:focus,
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }

    .tabs-container {
        background: white;
        border: 2px solid #000;
    }

    .tab-btn {
        border: 1px solid #000;
    }
}

/* =====================================================
   Performance Optimizations
   ===================================================== */
.feature-highlight,
.audience-card,
.stat-card,
.tech-item,
.screenshot-item {
    will-change: transform;
}

.dynamic-clouds {
    will-change: transform;
}

/* =====================================================
   Custom Scrollbar
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* =====================================================
   Enhanced Typography
   ===================================================== */
.hero-title {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   Enhanced Loading States
   ===================================================== */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =====================================================
   Enhanced Error States
   ===================================================== */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error .error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* =====================================================
   Enhanced Success States
   ===================================================== */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group.success .success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}