/* ============================================================
   UPPA Aviation Enhancements - Visual Effects & Animations
   ============================================================ */

/* ---- Smooth Scroll ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Global Transitions ---- */
*, *::before, *::after {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Animated Hero / Slider Enhancements ---- */
.main-banner {
    position: relative;
    overflow: hidden;
}

.main-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.6) 0%,
        rgba(10, 22, 40, 0.2) 50%,
        rgba(10, 22, 40, 0.5) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.slider-box {
    position: relative;
    background-attachment: fixed !important; /* Parallax effect */
    background-size: cover !important;
    background-position: center !important;
}

.slide-heading-main {
    animation: slideInLeft 0.8s ease forwards;
    opacity: 0;
}

.swiper-slide-active .slide-heading-main {
    opacity: 1;
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-60px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(60px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 169, 110, 0.4); }
    50%        { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(200, 169, 110, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ---- Slider Title Animation ---- */
.slider-heading {
    animation: fadeInUp 0.9s ease both;
    animation-delay: 0.2s;
}

.slider-heading a {
    transition: color 0.3s ease;
}

.slider-heading a:hover {
    color: #c8a96e;
}

/* ---- Slider Excerpt ---- */
.main-carousel-caption .entry-content {
    animation: fadeInUp 0.9s ease both;
    animation-delay: 0.4s;
}

/* ---- Hero CTA Button ---- */
.btn-fancy,
.btn-fancy-primary {
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: all 0.4s ease !important;
    animation: fadeInUp 0.9s ease both;
    animation-delay: 0.6s;
}

.btn-fancy::before,
.btn-fancy-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-fancy:hover::before,
.btn-fancy-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-fancy:hover,
.btn-fancy-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.btn-fancy:active,
.btn-fancy-primary:active {
    transform: translateY(-1px);
}

/* ---- Banner Image Float ---- */
.banner-img,
.image-main-box {
    animation: float 5s ease-in-out infinite;
}

/* ---- Service Cards ---- */
.service-box {
    position: relative;
}

.theme-article-post {
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
    border-radius: 8px;
    overflow: hidden;
}

.theme-article-post:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}

/* ---- Service Image Zoom on Hover ---- */
.featured-image,
.data-bg-large {
    transition: transform 0.6s ease !important;
    overflow: hidden;
}

.theme-article-post:hover .featured-image,
.theme-article-post:hover .data-bg-large {
    transform: scale(1.08) !important;
}

/* ---- Service Icon Bounce ---- */
.ser-icon-img {
    transition: transform 0.4s ease !important;
    animation: float 4s ease-in-out infinite;
}

.theme-article-post:hover .ser-icon-img {
    transform: scale(1.2) rotate(10deg) !important;
    animation: none;
}

/* ---- Entry Title Underline Effect ---- */
.entry-title a {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease !important;
}

.entry-title a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.4s ease;
}

.entry-title a:hover::after {
    width: 100%;
}

/* ---- Navigation Menu Enhancements ---- */
#site-navigation .nav-menu > li > a {
    position: relative;
    transition: color 0.3s ease !important;
}

#site-navigation .nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #c8a96e;
    transition: width 0.3s ease, left 0.3s ease;
}

#site-navigation .nav-menu > li:hover > a::after,
#site-navigation .nav-menu > li.current-menu-item > a::after {
    width: 100%;
    left: 0;
}

/* Dropdown menu animation */
#site-navigation .nav-menu .sub-menu {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    pointer-events: none;
}

#site-navigation .nav-menu > li:hover .sub-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ---- Header Scroll Effect ---- */
#site-header {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease !important;
}

#site-header.scrolled {
    background: rgba(10, 22, 40, 0.97) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* ---- Logo Hover ---- */
.custom-logo,
.site-branding img {
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.custom-logo:hover,
.site-branding img:hover {
    transform: scale(1.05) !important;
    opacity: 0.85 !important;
}

/* ---- AOS Enhancements - Default reveal animations ---- */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* ---- Post/Page Content Entrance ---- */
.site-main article {
    animation: fadeInUp 0.7s ease both;
}

/* ---- Back to Top Button ---- */
.to-the-top {
    transition: all 0.3s ease !important;
    display: inline-block;
}

.to-the-top:hover {
    transform: translateY(-5px) !important;
}

/* ---- Footer Widget Links ---- */
.footer-widgetarea a {
    transition: color 0.3s ease, padding-left 0.3s ease !important;
    display: inline-block;
}

.footer-widgetarea a:hover {
    padding-left: 5px !important;
}

/* ---- Sidebar Widget Links ---- */
.widget a {
    transition: color 0.3s ease !important;
}

/* ---- Search Form ---- */
.search-form .search-field {
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.search-form .search-field:focus {
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.25) !important;
    border-color: #c8a96e !important;
}

/* ---- Image hover effect ---- */
.post-thumbnail img,
.wp-post-image,
article img:not(.ser-icon-img) {
    transition: transform 0.5s ease, filter 0.5s ease !important;
}

.post-thumbnail:hover img,
article:hover .wp-post-image {
    transform: scale(1.04) !important;
    filter: brightness(1.05) !important;
}

/* ---- Scroll Reveal for sections ---- */
.service-box,
.footer-widgetarea,
.site-info {
    overflow: hidden;
}

/* ---- Swiper/Carousel controls ---- */
.swiper-pagination-bullet {
    transition: transform 0.3s ease, background 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    transform: scale(1.4) !important;
}

/* ---- Page Header / Breadcrumb ---- */
.page-header {
    animation: fadeInDown 0.6s ease both;
}

/* ---- Comment Form ---- */
.comment-form input,
.comment-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #c8a96e !important;
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.2) !important;
}

/* ---- Ripple effect on clickable elements ---- */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    animation: rippleAnim 0.6s linear;
    transform: scale(0);
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ---- Scroll progress bar ---- */
#uppa-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #c8a96e, #e8c98e);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ---- Flying plane decoration ---- */
#uppa-flying-plane {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0;
    z-index: 9998;
    pointer-events: none;
    color: #c8a96e;
    transition: opacity 0.3s ease;
}

/* ---- Stats counter section ---- */
.uppa-stats-bar {
    background: linear-gradient(135deg, #0a1628 0%, #1a2f4a 50%, #0a1628 100%);
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.uppa-stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a96e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.5;
}

.uppa-stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.uppa-stat-item {
    color: #fff;
    min-width: 150px;
}

.uppa-stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #c8a96e;
    line-height: 1;
    display: block;
    font-family: 'Segoe UI', sans-serif;
}

.uppa-stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    display: block;
}

/* ---- Particle dots background on banner ---- */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%       { opacity: 1; transform: scale(1.5); }
}

/* ---- Mobile responsive ---- */
@media (max-width: 768px) {
    .uppa-stats-grid {
        gap: 30px;
    }
    .uppa-stat-number {
        font-size: 36px;
    }
    #uppa-flying-plane {
        display: none;
    }
}
