/* Hide Default Cursor */
* {
    cursor: none !important;
}

/* Custom Cursor Styling */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #065f46; /* emerald-800 */
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(-50%, -50%, 0);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid #065f46; /* emerald-800 */
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(-50%, -50%, 0);
}

/* Hover State */
.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 1px solid #065f46;
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(6, 95, 70, 0.1); /* emerald-800 with low opacity */
    border: 1px solid transparent;
}

/* Custom Navbar Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4f46e5; /* indigo-600 */
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Animation */
#mobile-menu.active {
    display: block;
    transform: scaleY(1);
    opacity: 1;
}

/* Smooth Transition for Navbar background */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(226, 232, 240, 0.8); /* slate-200 */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Hero Blob Animation */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Hero Text Shadow */
.drop-shadow-sm {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Parallax Styles */
.parallax-bg {
    height: 120%; /* Taller than container for movement */
    top: -10%;
    will-change: transform;
}

.parallax-text {
    will-change: transform;
}

.drop-shadow-lg {
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Mapbox Popup Styling */
.custom-mapbox-popup .mapboxgl-popup-content {
    border-radius: 1.25rem;
    padding: 0.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.custom-mapbox-popup .mapboxgl-popup-tip {
    border-top-color: rgba(255, 255, 255, 0.95);
}

/* --- Cinematic Journey Section --- */
.cinematic-curve-mask {
    /* Creates an organic curve that cuts into the video */
    clip-path: ellipse(70% 100% at 0% 50%);
    transform: translateX(-1px); /* Prevent sub-pixel gaps */
}

.cinematic-video {
    transition: transform 0.2s ease-out;
    will-change: transform;
}

@media (max-width: 1024px) {
    #journey .cinematic-video-container {
        border-radius: 2rem 2rem 0 0;
        margin-top: -2rem;
        z-index: 30;
    }
}

/* Custom shadow for premium feel */
.shadow-soft {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08);
}

/* Marker Animation */
@keyframes marker-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.mapboxgl-marker {
    cursor: pointer;
}

.mapboxgl-marker:hover {
    animation: marker-pulse 1.5s ease-in-out infinite;
}

/* Smooth Hover & Transitions Global */
a, button, .product-card, .nav-link, .animate-blob, .animate-float {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.cursor-dot, .cursor-outline {
    /* Transitions only for scale/color, NOT for position */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Magnetic Element Reset */
a, button, .product-card, .video-parallax {
    will-change: transform;
}

/* Floating Animation */
@keyframes float-slow {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
    50% { transform: translate3d(0, -20px, 0) rotate(1deg); }
}

@keyframes float-hero {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    33% { transform: translate3d(10px, -30px, 0) rotate(2deg); }
    66% { transform: translate3d(-10px, -15px, 0) rotate(-1deg); }
}

.animate-float {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-hero {
    animation: float-hero 10s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 12s ease-in-out infinite;
}

/* Video Parallax Container */
.video-parallax {
    transition: transform 0.1s ease-out;
}

/* Reveal Animation Refined */
.reveal {
    position: relative;
    transform: translate3d(0, 40px, 0);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.active {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.animation-delay-200 {
    transition-delay: 0.2s;
}

.animation-delay-400 {
    transition-delay: 0.4s;
}

/* Scroll to Top Button Effects */
#scroll-top {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: float 4s ease-in-out infinite;
}

#scroll-top:hover {
    box-shadow: 0 0 25px rgba(6, 95, 70, 0.5);
    transform: scale(1.1) translateY(-5px);
}

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

@keyframes gradient-slow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient-slow {
    background-size: 200% 200%;
    animation: gradient-slow 12s ease infinite;
}

/* Sliding Text Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

.animate-marquee {
    animation: marquee 40s linear infinite;
    min-width: fit-content;
}

/* Sliding Text Section Enhancements */
.text-stroke-emerald {
    -webkit-text-stroke: 1px #065f46;
}
.text-stroke-stone {
    -webkit-text-stroke: 1px #78716c;
}

#marquee-row-1, #marquee-row-2 {
    will-change: transform;
    display: flex;
    white-space: nowrap;
    min-width: fit-content;
}

/* Hide Scrollbar for Product Slider */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Stats Number Refinement */
[data-count] {
    font-variant-numeric: tabular-nums;
}

/* Product Card Custom Shadow */
.product-card:hover {
    transform: translate3d(0, -12px, 0);
}

.product-card {
    will-change: transform;
}

/* --- Product Carousel Layout --- */
.carousel-wrapper {
    width: 100%;
    position: relative;
}

#product-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

#product-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    will-change: transform, box-shadow;
}

.carousel-card.active-item {
    transform: scale(1.05);
    z-index: 10;
}

@keyframes bounce-x {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.animate-bounce-x {
    animation: bounce-x 1s infinite;
}

/* Product Modal & Zoom Effect */
#product-modal.active {
    opacity: 1;
    pointer-events: auto;
}

#product-modal.active #modal-content {
    transform: scale(1);
}

.cursor-zoom-in {
    cursor: zoom-in;
}

.cursor-zoom-out {
    cursor: zoom-out;
}

#modal-image.zoomed {
    transform: scale(1.5);
}

#zoom-overlay.active {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Hide body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* --- Premium Mobile Interactions --- */

/* 1. Tap Feedback */
.tap-active {
    transform: scale(0.95) !important;
}

/* 2. Mobile Product Card Tap State */
@media (max-width: 768px) {
    .product-card.tap-reveal .absolute.inset-0.bg-stone-900\/60 {
        opacity: 1;
    }
    .product-card.tap-reveal .view-product-btn {
        transform: scale(1);
    }
    .product-card.tap-reveal img {
        transform: scale(1.05);
    }
}

/* 3. Touch Device Cursor Handling */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    * {
        cursor: auto !important;
    }
}

/* --- Luxury Footer Styles --- */

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.shimmer-text {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #d4af37 25%,
        #ffffff 50%,
        #d4af37 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* Floating Particles */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

#particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #d4af37;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* Eco Leaves Animation */
@keyframes leaf-float {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

#leaves-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.leaf {
    position: absolute;
    font-size: 20px;
    opacity: 0.6;
    animation: leaf-float 15s linear infinite;
}

/* Social Icon Hover */
.social-icon:hover {
    transform: translateY(-5px) rotate(10deg);
}

/* Service Tag Hover */
.service-tag:hover {
    transform: translateY(-2px);
}

/* Export Tag Pulse */
@keyframes tag-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.2);
    }
}

.export-tag:hover {
    animation: tag-pulse 2s ease-in-out infinite;
}

/* Footer Links Hover Underline */
.footer-link {
    display: inline-block;
}

/* Luxury Product Showcase */
#luxury-product-image {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* best catelogue heading */
.heading-wrap {
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #888;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s ease forwards;
  }
  .main-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 700;
    color: #0f172a;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.12em;
  }
  .main-heading span {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px) rotate(-3deg);
    animation: letterIn 0.55s ease forwards;
  }
  .accent-line {
    width: 0;
    height: 2px;
    background: #0f172a;
    opacity: 0.18;
    animation: lineGrow 0.7s 1.3s cubic-bezier(.77,0,.18,1) forwards;
  }
  .subtitle {
    font-size: 13px;
    color: #888;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeUp 0.6s 1.6s ease forwards;
  }
  @keyframes letterIn {
    to { opacity: 1; transform: translateY(0) rotate(0); }
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes lineGrow {
    to { width: 120px; opacity: 0.18; }
  }

/* Our Videos Section Styles */
.video-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.video-card:hover {
  transform: scale(1.03);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
}

/* Play Icon Pulse Animation */
.play-icon {
  transition: opacity 0.4s ease;
}

.play-icon div {
  animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.video-card:hover .play-icon {
  opacity: 0;
}

/* Glass Shine Animation */
.glass-shine {
  pointer-events: none;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 155, 60, 0.3);
  transform: scale(0);
  animation: rippleAnimation 0.6s ease-out;
  pointer-events: none;
}

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

/* Animated Underline */
#videos-underline {
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Tiny Particles */
.video-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #C89B3C;
  border-radius: 50%;
  opacity: 0.4;
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(0) translateX(20px); }
  75% { transform: translateY(20px) translateX(10px); }
}