@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --color-primary: #007057;
    --color-primary-dark: #00503e;
    --color-primary-light: #00a885;
    --color-bg: #F2F7F0;
    --color-text: #1B1B1B;
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-surface: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: var(--color-text);
    overflow-x: hidden;
}

/* --- Display Font --- */
.font-display {
    font-family: 'Outfit', sans-serif;
}

/* --- Glassmorphism Utilities --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.15);
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- 3D & Animation Utilities --- */
.perspective-1000 {
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

.cube-wrapper {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(15deg);
    transition: transform 0.5s ease;
}

.cube-wrapper:hover {
    transform: rotateX(-5deg) rotateY(25deg) scale(1.05);
}

/* Smooth Scroll Snap for Testimonials */
.snap-gallery {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.snap-item {
    scroll-snap-align: center;
}

/* Keyframe Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #007057 0%, #00a885 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hide scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Infinite Scroll Animation (for logos) */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
    width: max-content;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

.mask-gradient {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* =========================================
   SCOTT-INSPIRED NEW STYLES
   ========================================= */

/* --- Bold Dark Hero --- */
.hero-dark {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.hero-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 112, 87, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 168, 133, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Brand Marquee Banner --- */
.marquee-banner {
    background: var(--color-primary);
    overflow: hidden;
    white-space: nowrap;
    padding: 16px 0;
    position: relative;
}

.marquee-banner.dark {
    background: #0a0a0a;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-track {
    display: inline-flex;
    animation: marquee-scroll 20s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0 2rem;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
}

.marquee-item .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Horizontal Category Showcase --- */
.category-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0 2rem;
    cursor: grab;
}

.category-scroll:active {
    cursor: grabbing;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-card {
    flex: 0 0 280px;
    height: 380px;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.category-card:hover img {
    transform: scale(1.1) translateY(-10px);
}

.category-card .label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    z-index: 2;
}

.category-card .label h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-card .label p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* --- Enhanced Hover on Product Cards --- */
.product-card-enhanced {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.product-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* --- Category Pills --- */
.category-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.category-pill:hover,
.category-pill.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* --- Footer Redesign --- */
.footer-dark {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.8);
}

.footer-dark a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-dark a:hover {
    color: var(--color-primary-light);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Hero Stats Counter --- */
.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* --- Expertise Tabs --- */
.expertise-tab {
    transition: all 0.3s ease;
}

.expertise-tab:hover {
    background: rgba(0, 168, 133, 0.05);
    border-color: rgba(0, 168, 133, 0.15);
}

.expertise-tab.active {
    background: rgba(0, 168, 133, 0.08);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 133, 0.1);
}

.expertise-tab.active .tab-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.tab-arrow {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* --- Expertise Panels --- */
.expertise-panel {
    display: none;
    animation: panelFadeIn 0.4s ease;
}

.expertise-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Expertise Cards --- */
.expertise-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.expertise-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 168, 133, 0.2);
}

.expertise-card-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.5rem;
}

.expertise-card-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.expertise-card:hover .expertise-card-img img {
    transform: scale(1.08);
}

.expertise-card-body {
    padding: 1.25rem;
}

.expertise-card-body h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 0.3rem;
}

.expertise-card-body p {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.expertise-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.expertise-card-btn:hover {
    color: #007057;
    gap: 0.5rem;
}

.expertise-card-btn::after {
    content: '→';
}



/* --- Excellence Cards --- */
.excellence-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #f0f0f0;
    border-bottom: 3px solid #e5e7eb;
    transition: all 0.3s ease;
}

.excellence-card:hover {
    border-bottom-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.excellence-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.excellence-card:hover .excellence-icon {
    background: rgba(0, 168, 133, 0.1);
    color: var(--color-primary);
}

.excellence-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #dc2626;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.excellence-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
}

/* --- Feature Image Cards --- */
.feature-image-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 168, 133, 0.2);
}

.feature-image-wrapper {
    height: 240px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.feature-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
}

.feature-image-wrapper img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.feature-image-card:hover .feature-image-wrapper img {
    transform: scale(1.1) rotate(2deg);
}

.feature-content {
    padding: 2rem;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .category-card {
        flex: 0 0 220px;
        height: 300px;
    }

    .marquee-item {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .category-card {
        flex: 0 0 180px;
        height: 260px;
    }
}