/* ===== FORM ENHANCEMENTS ===== */
.contact-form input.error,
.contact-form textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== NOTIFICATION STYLES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.notification-success {
    background: var(--success);
}

.notification-error {
    background: var(--error);
}

.notification-info {
    background: var(--accent);
}

/* ===== MODAL STYLES ===== */
.package-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--surface-elevated);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 400px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ===== ACTIVE NAVIGATION LINK ===== */
.nav-link.active {
    color: var(--accent-bright);
}

.nav-link.active::before {
    width: 100%;
}

/* ===== ENHANCED ANIMATIONS ===== */
.animated {
    animation: fadeInUp 0.6s ease-out;
}

.service-card.animated:nth-child(1) { animation-delay: 0.1s; }
.service-card.animated:nth-child(2) { animation-delay: 0.2s; }
.service-card.animated:nth-child(3) { animation-delay: 0.3s; }
.service-card.animated:nth-child(4) { animation-delay: 0.4s; }
.service-card.animated:nth-child(5) { animation-delay: 0.5s; }
.service-card.animated:nth-child(6) { animation-delay: 0.6s; }
.service-card.animated:nth-child(7) { animation-delay: 0.7s; }
.service-card.animated:nth-child(8) { animation-delay: 0.8s; }

/* ===== MICRO INTERACTIONS ===== */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* ===== FOCUS IMPROVEMENTS ===== */
.faq-question {
    cursor: pointer;
    outline: none;
}

.faq-question:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== LOADING SHIMMER EFFECT ===== */
.loading-shimmer {
    position: relative;
    overflow: hidden;
}

.loading-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent);
    color: var(--primary);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --border: rgba(255, 255, 255, 0.3);
        --text-secondary: #E2E8F0;
        --text-muted: #CBD5E1;
    }
    
    .glass,
    .glass-light {
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .navbar,
    .hero-image,
    .floating-elements,
    .animated-shape {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    .btn {
        border: 2px solid black;
        background: white;
        color: black;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-element,
    .animated-shape,
    .hero-icon {
        animation: none !important;
    }
}

/* ===== DARK MODE TOGGLE (if needed) ===== */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}