/* Enhanced Animations & Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(249, 115, 22, 0.3);
    border-top: 4px solid #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.pulse-ring {
    width: 80px;
    height: 80px;
    border: 2px solid #f97316;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
    position: absolute;
    top: -10px;
    left: -10px;
}

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

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Enhanced Fade Animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Image Hover Effects */
.image-hover {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.image-hover img {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-hover:hover .image-overlay {
    opacity: 1;
}

/* Floating Elements */
.float-element {
    animation: float 6s ease-in-out infinite;
}

.float-element:nth-child(2) {
    animation-delay: -2s;
}

.float-element:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Enhanced Card Effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.card-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, transparent 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-hover:hover::before {
    opacity: 1;
}

/* FAQ Enhanced Animation */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
}

.faq-item .faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* Enhanced Navbar */
.navbar-glass {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Gallery Specific Styles */
.gallery-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, transparent 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gallery-item:hover::before {
    opacity: 1;
}

.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #f97316;
    color: white;
    border-color: #f97316;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
}

.lightbox.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .loader-spinner {
        width: 50px;
        height: 50px;
    }

    .pulse-ring {
        width: 70px;
        height: 70px;
    }

    .float-element {
        animation-duration: 4s;
    }

    .card-hover:hover, .gallery-item:hover {
        transform: translateY(-4px) scale(1.01);
    }

    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .navbar-glass {
        backdrop-filter: blur(8px);
    }

    .fade-in, .fade-left, .fade-right {
        transform: translateY(30px);
    }

    .fade-left {
        transform: translateX(-30px);
    }

    .fade-right {
        transform: translateX(30px);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .card-hover:hover, .gallery-item:hover {
        transform: translateY(-6px) scale(1.015);
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .float-element {
        animation-duration: 8s;
    }
}

@media print {
    .loader,
    .scroll-progress,
    .scroll-to-top,
    .float-element {
        display: none !important;
    }

    .fade-in,
    .fade-left,
    .fade-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-left,
    .fade-right,
    .card-hover,
    .gallery-item,
    .image-hover img,
    .float-element,
    .loader-spinner,
    .pulse-ring {
        animation: none !important;
        transition: none !important;
    }

    .fade-in,
    .fade-left,
    .fade-right {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-contrast: high) {
    .card-hover::before, .gallery-item::before {
        background: rgba(249, 115, 22, 0.2);
    }

    .image-overlay {
        background: rgba(0, 0, 0, 0.3);
    }
}
