/* Enhanced Animations for Navicor */

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

/* Enhanced Loading Animation */
.loader-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-preloader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2a2a2a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.txt-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #2a2a2a;
    letter-spacing: 2px;
}

.letters-loading {
    animation: loading 2s infinite;
    opacity: 0;
}

.letters-loading:nth-child(1) { animation-delay: 0.1s; }
.letters-loading:nth-child(2) { animation-delay: 0.2s; }
.letters-loading:nth-child(3) { animation-delay: 0.3s; }
.letters-loading:nth-child(4) { animation-delay: 0.4s; }
.letters-loading:nth-child(5) { animation-delay: 0.5s; }
.letters-loading:nth-child(6) { animation-delay: 0.6s; }
.letters-loading:nth-child(7) { animation-delay: 0.7s; }
.letters-loading:nth-child(8) { animation-delay: 0.8s; }
.letters-loading:nth-child(9) { animation-delay: 0.9s; }
.letters-loading:nth-child(10) { animation-delay: 1.0s; }

@keyframes loading {
    0%, 100% { opacity: 0; transform: translateY(20px); }
    50% { opacity: 1; transform: translateY(0); }
}

/* Enhanced Header Animations */
.main-header {
    transition: all 0.3s ease;
}

.main-header.fixed-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced Banner Animations */
.banner-carousel .slide-item {
    position: relative;
    overflow: hidden;
}

.banner-carousel .slide-item .bg-layer {
    transition: transform 0.6s ease;
}

.banner-carousel .slide-item:hover .bg-layer {
    transform: scale(1.05);
}

.banner-carousel .title-box {
    animation: fadeInUp 1s ease 0.3s both;
}

.banner-carousel .content-box {
    animation: fadeInUp 1s ease 0.6s both;
}

.banner-carousel .btn-box {
    animation: fadeInUp 1s ease 0.9s both;
}

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

/* Enhanced Service Block Animations */
.service-block-one .inner-box {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-block-one .inner-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-block-one .inner-box .image-box {
    overflow: hidden;
}

.service-block-one .inner-box .image-box img {
    transition: transform 0.6s ease;
}

.service-block-one .inner-box:hover .image-box img {
    transform: scale(1.1);
}

.service-block-one .inner-box .icon-box {
    transition: all 0.3s ease;
}

.service-block-one .inner-box:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.service-block-one .inner-box .link {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.service-block-one .inner-box:hover .link {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Yacht Block Animations */
.yachts-block-one .inner-box {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.yachts-block-one .inner-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.yachts-block-one .inner-box .image-box {
    overflow: hidden;
}

.yachts-block-one .inner-box .image-box img {
    transition: transform 0.6s ease;
}

.yachts-block-one .inner-box:hover .image-box img {
    transform: scale(1.1);
}

.yachts-block-one .inner-box .overlay-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.yachts-block-one .inner-box:hover .overlay-content {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Choose Us Section Animations */
.chooseus-section .tab-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chooseus-section .tab-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;
}

.chooseus-section .tab-btn:hover::before {
    left: 100%;
}

.chooseus-section .tab-btn.active-btn {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.chooseus-section .tab {
    animation: fadeIn 0.5s ease;
}

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

/* Enhanced About Section Animations */
.about-section .image-box {
    position: relative;
    overflow: hidden;
}

.about-section .image-box img {
    transition: transform 0.6s ease;
}

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

.about-section .content-box {
    animation: slideInRight 1s ease 0.3s both;
}

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

/* Enhanced Yacht Types Section Animations */
.yacht-types-section .single-item {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.yacht-types-section .single-item:hover {
    transform: translateY(-5px);
}

.yacht-types-section .single-item .text-box {
    transition: all 0.3s ease;
}

.yacht-types-section .single-item:hover .text-box {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.yacht-types-section .single-item .overlay-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.yacht-types-section .single-item:hover .overlay-content {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Video Section Animations */
.video-section {
    position: relative;
    overflow: hidden;
}

.video-section .bg-layer {
    transition: transform 0.6s ease;
}

.video-section:hover .bg-layer {
    transform: scale(1.05);
}

.video-section .content-box {
    animation: fadeInUp 1s ease 0.3s both;
}

/* Enhanced Footer Animations */
.main-footer .footer-widget {
    transition: all 0.3s ease;
}

.main-footer .footer-widget:hover {
    transform: translateY(-5px);
}

.main-footer .links-list li {
    transition: all 0.3s ease;
    position: relative;
}

.main-footer .links-list li::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #2a2a2a;
    transition: width 0.3s ease;
}

.main-footer .links-list li:hover::before {
    width: 100%;
}

.main-footer .links-list li a {
    transition: all 0.3s ease;
}

.main-footer .links-list li:hover a {
    color: #2a2a2a;
    transform: translateX(5px);
}

/* Enhanced Scroll to Top Animation */
.scroll-to-top {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

/* Enhanced Mobile Menu Animations */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.mobile-menu-visible .mobile-menu {
    transform: translateX(0);
}

.mobile-menu .menu-outer ul li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.5s ease forwards;
}

.mobile-menu .menu-outer ul li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu .menu-outer ul li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu .menu-outer ul li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu .menu-outer ul li:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu .menu-outer ul li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Cookie Consent Animation */
.cookie-consent {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced Button Animations */
.theme-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.theme-btn:hover::before {
    left: 100%;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Image Hover Effects */
.image-hov-one {
    position: relative;
    overflow: hidden;
}

.image-hov-one img {
    transition: transform 0.6s ease;
}

.image-hov-one:hover img {
    transform: scale(1.1);
}

/* Enhanced Text Animations */
.sec-title-animation .title-animation {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.sec-title-animation .title-animation:nth-child(1) { animation-delay: 0.1s; }
.sec-title-animation .title-animation:nth-child(2) { animation-delay: 0.3s; }
.sec-title-animation .title-animation:nth-child(3) { animation-delay: 0.5s; }

/* Enhanced Counter Animations */
.count-text {
    animation: countUp 2s ease-out;
}

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

/* Enhanced Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

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

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

/* Enhanced Focus States for Accessibility */
.theme-btn:focus,
.mobile-nav-toggler:focus,
.scroll-to-top:focus {
    outline: 2px solid #2a2a2a;
    outline-offset: 2px;
}

/* Enhanced Hover Effects for Interactive Elements */
.navigation > li > a:hover,
.footer-widget .links-list li a:hover,
.social-links li a:hover {
    color: #2a2a2a;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Enhanced Parallax Effects */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Enhanced Typography Animations */
.animated-text {
    overflow: hidden;
}

.animated-text span {
    display: inline-block;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animated-text span:nth-child(1) { animation-delay: 0.1s; }
.animated-text span:nth-child(2) { animation-delay: 0.2s; }
.animated-text span:nth-child(3) { animation-delay: 0.3s; }
.animated-text span:nth-child(4) { animation-delay: 0.4s; }
.animated-text span:nth-child(5) { animation-delay: 0.5s; }

/* Enhanced Form Animations */
.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Icon Animations */
.icon-box {
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Performance Optimizations */
* {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 