/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Page Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a56 0%, #d14836 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-ring:nth-child(2) {
    border-top-color: rgba(255, 255, 255, 0.6);
    animation-duration: 1.5s;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
}

.loader-ring:nth-child(3) {
    border-top-color: rgba(255, 255, 255, 0.3);
    animation-duration: 2s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Logo Loader */
.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo .logo-image {
    width: 120px;
    height: auto;
    animation: logoFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.loader-bar {
    width: 150px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Transparent Navbar */
#navbar {
    backdrop-filter: blur(10px);
}

#navbar.bg-transparent {
    background-color: transparent;
}

#navbar.bg-white {
    background-color: white;
}

.nav-link {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link.text-white {
    color: white;
}

.nav-link.text-gray-900 {
    color: #111827;
    text-shadow: none;
}

/* Go to Top Button */
#go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff9a56 0%, #d14836 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 154, 86, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

#go-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#go-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 154, 86, 0.6);
}

/* Fade In Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Animations */
.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
.scale-in {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hover-glow::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;
}

.hover-glow:hover::before {
    left: 100%;
}

/* Card Animations */
.card-modern {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-modern:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

/* Image Zoom Effect */
.img-zoom {
    overflow: hidden;
    border-radius: 12px;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Button Animations */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-modern::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-modern:active::after {
    width: 300px;
    height: 300px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ff9a56 0%, #d14836 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #ff9a56 0%, #d14836 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #ff8142 0%, #c9412e 100%);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #ffa868 0%, #e05a48 100%);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    animation: textReveal 0.8s ease-out;
}

@keyframes textReveal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #ff9a56, #d14836);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    transition: width 0.3s ease;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Form Input Animations */
.input-modern {
    transition: all 0.3s ease;
}

.input-modern:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 154, 86, 0.2);
}

/* Badge Animation */
.badge-pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 154, 86, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 154, 86, 0);
    }
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::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: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    #go-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .card-modern {
        border-radius: 12px;
    }
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Hero Slider Styles */
.hero-slider-container {
    position: relative;
    width: 100%;
}

.hero-slider {
    position: relative;
    width: 100%;
}

.slider-item {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    z-index: 1;
}

.slider-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Fade Animation */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-item.active .slide-fade-in {
    animation: slideFadeIn 0.8s ease-out forwards;
}

/* Slider Controls */
.slider-control {
    transition: all 0.3s ease;
}

.slider-control:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.slider-control:active {
    transform: scale(0.95);
}

/* Slider Indicators */
.slider-indicator {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator.active {
    background: white;
    width: 24px;
    border-radius: 6px;
}

.slider-indicator:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Auto-play animation for indicators */
.slider-indicator.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    animation: indicatorProgress 5s linear forwards;
}

@keyframes indicatorProgress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Responsive Slider */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px !important;
    }
    
    .slider-control {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .slider-control svg {
        width: 20px;
        height: 20px;
    }
}

/* Page Header Styles */
.page-header {
    position: relative;
    min-height: 240px;
}

.page-header img {
    transition: transform 0.3s ease;
}

.page-header:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .page-header {
        min-height: 200px;
    }
    
    .page-header.h-80 {
        height: 16rem !important;
    }
}

/* Navigation Carousel Styles */
.nav-carousel-slide {
    transition: transform 0.5s ease-in-out;
}

.nav-carousel-indicator.active {
    background: #ff9a56;
    width: 32px;
}

/* Rotating Carousel Styles */
.rotating-item {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.rotating-item.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    pointer-events: auto;
}

.rotating-item img {
    animation: rotateFloat 6s ease-in-out infinite;
}

@keyframes rotateFloat {
    0%, 100% {
        transform: rotate(-3deg) scale(1);
    }
    50% {
        transform: rotate(3deg) scale(1.05);
    }
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
}

.scroll-reveal.fade-in-up {
    transform: translateY(40px);
}

.scroll-reveal.fade-in-up.revealed {
    transform: translateY(0);
}

.scroll-reveal.slide-left {
    transform: translateX(-60px);
}

.scroll-reveal.slide-left.revealed {
    transform: translateX(0);
}

.scroll-reveal.slide-right {
    transform: translateX(60px);
}

.scroll-reveal.slide-right.revealed {
    transform: translateX(0);
}

.scroll-reveal.slide-up {
    transform: translateY(60px);
}

.scroll-reveal.slide-up.revealed {
    transform: translateY(0);
}

/* Stagger animations */
.scroll-reveal.stagger-1 { transition-delay: 0.1s; }
.scroll-reveal.stagger-2 { transition-delay: 0.2s; }
.scroll-reveal.stagger-3 { transition-delay: 0.3s; }
.scroll-reveal.stagger-4 { transition-delay: 0.4s; }
.scroll-reveal.stagger-5 { transition-delay: 0.5s; }
.scroll-reveal.stagger-6 { transition-delay: 0.6s; }
.scroll-reveal.stagger-7 { transition-delay: 0.7s; }
.scroll-reveal.stagger-8 { transition-delay: 0.8s; }

/* Region Cards */
.region-card {
    backdrop-filter: blur(10px);
}

.region-card:hover {
    transform: translateY(-8px) scale(1.05);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* FAQ Styles */
.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Inquiry Modal Styles */
#inquiryModal {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#modalContent {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Inquiry Button Hover Effects */
.inquiry-option {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inquiry-option:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Styles */
#mobile-menu {
    animation: fadeIn 0.3s ease-out;
}

#mobile-menu-panel {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-link {
    position: relative;
    overflow: hidden;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #ff9a56 0%, #d14836 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-menu-link:hover::before {
    transform: scaleY(1);
}

/* Mobile Menu Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Hamburger Menu Animation */
#mobile-menu-button svg {
    transition: transform 0.3s ease;
}

#mobile-menu-button:hover svg {
    transform: scale(1.1);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #navbar {
        backdrop-filter: blur(10px);
    }
    
    #navbar.bg-white {
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    #navbar.bg-transparent {
        background-color: rgba(0, 0, 0, 0.3);
    }
}

/* Product Image Auto-Slider */
.product-image-slider {
    position: relative;
    overflow: hidden;
}

.product-slide {
    transition: opacity 0.5s ease-in-out;
    will-change: opacity;
}

.product-indicator {
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.2);
}

/* Product Card Hover Effects */
.card-modern .product-image-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-modern:hover .product-image-slider::after {
    opacity: 1;
}

/* Custom Language Dropdown Styles */
#language-switcher {
    position: relative;
    z-index: 50;
}

#language-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: white;
}

#language-btn:hover {
    background-color: var(--hover-bg, rgba(255, 255, 255, 0.1));
}

/* When navbar has scrolled */
#navbar.bg-white #language-btn {
    color: #111827 !important;
}

#navbar.bg-white #language-btn:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

#language-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    animation: fadeInUp 0.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option, .lang-option-mobile {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 4px;
    font-size: 14px;
}

.lang-option:hover, .lang-option-mobile:hover {
    background-color: var(--theme-primary);
    color: white !important;
    text-decoration: none;
    transform: translateX(4px);
}

/* Hide Google Translate elements */
#google_translate_element {
    display: none !important;
}

body {
    top: 0 !important;
}

.skiptranslate {
    display: none !important;
}

/* Google Translate banner override */
.goog-te-banner-frame {
    display: none !important;
}

/* Mobile Translate Styles */
.lang-option-mobile {
    margin: 0;
    padding: 8px 0;
    border-radius: 0;
}


