/* style.css */

/* 1. Global Aesthetic Resets */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 2. Organic Grain Texture Overlay 
   Adds a subtle 'paper/earthy' feel to the whole site 
*/
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 3. Custom Scroll Animations (The "Scroll Reveal" Effect) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); /* Elegant easing */
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for children elements */
.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }

/* 4. Ken Burns Effect (Slow Zoom on Hero Image) */
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.animate-ken-burns {
    animation: kenBurns 20s ease-out infinite alternate;
}

/* 5. Custom Card Hover Effects */
.product-card-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group:hover .product-card-img {
    transform: scale(1.1);
}

/* 6. Navigation Transition */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.nav-transparent {
    background-color: transparent;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* 7. Typography Finetuning */
.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

/* HERO SPECIFIC STYLES */

/* 1. Floating Animation for the Main Image */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

/* 2. Floating Animation for Leaves (slower, different timing) */
@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-2deg); }
}

.animate-float-reverse {
    animation: float-reverse 7s ease-in-out infinite;
}

/* 3. Gold Text Gradient */
.text-gradient-gold {
    background: linear-gradient(135deg, #F59E0B 0%, #FDE68A 50%, #D97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 4. Circular Image Mask (Organic Shape) */
.organic-mask {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transition: border-radius 8s ease-in-out;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* 5. Glowing Background Blob */
.glow-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

/* NAVBAR AESTHETICS */

/* 1. The Glass Base */
.nav-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* State A: At the top (Transparent) */
.nav-top {
    background: transparent;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-top .nav-text { color: white; }
.nav-top .logo-leaf { color: #7CBD2A; filter: drop-shadow(0 0 8px rgba(124, 189, 42, 0.4)); }
.nav-top .nav-cta { background: white; color: #0B4F37; }

/* State B: Scrolled (Frosted Glass) */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-scrolled .nav-text { color: #0B4F37; } /* sid-dark */
.nav-scrolled .logo-leaf { color: #7CBD2A; filter: none; }
.nav-scrolled .nav-cta { background: #0B4F37; color: white; }

/* 2. Link Underline Animation */
.nav-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #F59E0B; /* sid-gold */
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* 3. Mobile Menu Glass */
.mobile-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

/* ABOUT SECTION SPECIFIC */

/* 1. Rotating Text Badge */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

/* 2. Abstract Background Map (Faint) */
.bg-map-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%230B4F37' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* 3. Image Hover Zoom */
.about-img-container {
    overflow: hidden;
}
.about-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-img-container:hover .about-img {
    transform: scale(1.1);
}

/* PRODUCT SPECIFIC STYLES */

/* 1. Category Filter Pill Animation */
.filter-btn {
    transition: all 0.3s ease;
}
.filter-btn.active {
    background-color: #0B4F37; /* sid-dark */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 79, 55, 0.3);
}

/* 2. Product Card Hover Lift */
.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 3. Detail Page Specs Table */
.spec-row:nth-child(even) {
    background-color: #f9fafb;
}

/* 4. Horizontal Scroll Snap (Homepage) */
.snap-x-mandatory {
    scroll-snap-type: x mandatory;
}
.snap-center {
    scroll-snap-align: center;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* PACKAGING SECTION STYLES */

/* 1. Tab Navigation Styles */
.pkg-tab {
    border-left: 4px solid transparent;
    transition: all 0.4s ease;
}

.pkg-tab:hover {
    background: rgba(255, 255, 255, 0.03);
}

.pkg-tab.active {
    border-left-color: #F59E0B; /* sid-gold */
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, transparent 100%);
}

.pkg-tab.active h3 {
    color: #F59E0B;
}

/* 2. Content Fade Animation */
.pkg-content {
    display: none;
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pkg-content.active {
    display: block;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. Tech Specs Grid (Blueprint look) */
.tech-grid {
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* CONTACT & FOOTER STYLES */

/* 1. Modern Form Inputs */
.form-input {
    background-color: #f9fafb; /* Light gray */
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-input:focus {
    background-color: #ffffff;
    border-color: #7CBD2A; /* sid-leaf */
    box-shadow: 0 0 0 4px rgba(124, 189, 42, 0.1);
    outline: none;
}

/* 2. Footer Curve (Negative Margin Trick) */
.footer-curve {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

/* 3. Social Icon Hover */
.social-link {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-link:hover {
    transform: translateY(-5px);
    color: #F59E0B; /* sid-gold */
}

/* PRODUCTS CATALOG SPECIFIC */

/* 1. Category Active State */
.cat-link.active {
    background-color: #0B4F37;
    color: white;
    transform: translateX(10px);
}

.cat-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Grid Item Animation */
.product-grid-item {
    transition: all 0.5s ease;
}

.product-grid-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

/* 3. Skeleton Loading Shine (for better UX) */
@keyframes skeleton-loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* PRODUCT DETAILS REDESIGN STYLES */

/* 1. Feature Icon Box */
.spec-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.spec-card:hover {
    border-color: #7CBD2A;
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 2. Side-Sticky Contact Box */
@media (min-width: 1024px) {
    .sticky-info {
        position: sticky;
        top: 120px;
    }
}

/* 3. Image Zoom Effect */
.zoom-container {
    overflow: hidden;
    cursor: zoom-in;
}
.zoom-container img {
    transition: transform 0.5s ease;
}
.zoom-container:hover img {
    transform: scale(1.2);
}

/* 4. Seasonal Indicator Pulse */
.active-month {
    background-color: #0B4F37;
    color: white;
    box-shadow: 0 0 15px rgba(11, 79, 55, 0.4);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    display: flex;
    width: 200%;
    animation: marquee 20s linear infinite;
}

/* Hero Image Fading */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 2s ease-out;
    transform: scale(1.1); /* Slight zoom out effect during fade */
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}