/**
 * LuxMariaj Additional Custom Styles
 *
 * @package LuxMariaj
 */

/* Additional animations and enhancements */

/* Fade in animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    animation: fadeInUp 0.8s ease forwards;
}

/* Service card hover effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.5s ease;
}

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

/* Portfolio item styles */
.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Button loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

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

/* Form focus styles */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-bottom-color: var(--lux-gold);
}

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

::-webkit-scrollbar-track {
    background: var(--lux-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--lux-gold);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lux-gold-dark);
}

/* Selection color */
::selection {
    background: var(--lux-gold);
    color: var(--lux-white);
}

::-moz-selection {
    background: var(--lux-gold);
    color: var(--lux-white);
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .cta-section,
    .slider-nav,
    .slider-arrows,
    .btn {
        display: none !important;
    }
    
    .hero-slider {
        height: auto !important;
        min-height: auto !important;
    }
    
    .section {
        padding: 30px 0 !important;
    }
}

/* Accessibility - Focus visible */
:focus-visible {
    outline: 2px solid var(--lux-gold);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--lux-gold);
    color: var(--lux-white);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Loading overlay */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lux-cream-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loading.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--lux-border);
    border-top-color: var(--lux-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
