/* ══════════════════════════════════════════════════════════
   Economode Food Equipment — Custom Styles
   ══════════════════════════════════════════════════════════ */

/* ── Base Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
    overflow-x: clip;
    width: 100%;
}
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

/* ── Custom Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #E8390A; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #c42f08; }

/* ── Nav Link Styles ─────────────────────────────────── */
.nav-link {
    position: relative;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A1A2E;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: #E8390A; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #E8390A;
    transition: all 0.3s;
    transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after { width: 60%; }

/* Nav scrolled state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
.nav-scrolled .nav-link { color: #1A1A2E; }

.nav-transparent .nav-link { color: #fff; }
.nav-transparent .nav-link:hover { color: #F5A623; }
.nav-transparent .nav-link::after { background: #F5A623; }
.nav-transparent .hamburger-line { background: #fff; }

/* Mobile nav links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #E8390A;
    background: #FEF2F2;
}

/* Hamburger animation */
.menu-open .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .hamburger-line:nth-child(2) { opacity: 0; }
.menu-open .hamburger-line:nth-child(3) { transform: translateY(-4px) rotate(-45deg); width: 1.5rem; }

/* ── Hero Section ────────────────────────────────────── */
#heroSection {
    margin-top: -80px;
}
@media (min-width: 768px) {
    #heroSection {
        margin-top: -116px;
    }
}
.hero-gradient-overlay {
    background: linear-gradient(
        to top,
        rgba(13, 13, 26, 0.95) 0%,
        rgba(13, 13, 26, 0.7) 40%,
        rgba(13, 13, 26, 0.4) 70%,
        rgba(13, 13, 26, 0.2) 100%
    );
}

/* Typewriter cursor */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: #E8390A;
    margin-left: 4px;
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ── Section Headings ────────────────────────────────── */
.section-heading {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #E8390A;
    border-radius: 2px;
}
.section-heading-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ── Background Textures ─────────────────────────────── */
.bg-dot-pattern {
    background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}
.bg-diagonal-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.02) 10px,
        rgba(0,0,0,0.02) 20px
    );
}

/* ── Product Cards ───────────────────────────────────── */
.product-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid transparent;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-top-color: #E8390A;
}
.product-card .card-image {
    overflow: hidden;
}
.product-card:hover .card-image img {
    transform: scale(1.08);
}
.product-card .card-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
.product-card:hover .card-overlay { opacity: 1; }

/* ── Category Cards ──────────────────────────────────── */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
}
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 13, 26, 0.85) 0%, rgba(13, 13, 26, 0.2) 60%);
    transition: background 0.4s;
    z-index: 2;
}
.category-card:hover::after {
    background: linear-gradient(to top, rgba(232, 57, 10, 0.9) 0%, rgba(13, 13, 26, 0.3) 60%);
}
.category-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover img { transform: scale(1.1); }
.category-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 1.5rem;
}
.category-slideshow {
    z-index: 0;
}
.category-card .view-arrow {
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s;
}
.category-card:hover .view-arrow {
    transform: translateX(0);
    opacity: 1;
}
.slide-img {
    transition: opacity 1s ease-in-out, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ── Automation Badges ───────────────────────────────── */
.badge-batch {
    background: #E5E7EB;
    color: #4B5563;
}
.badge-semi-automatic {
    background: #FEF3C7;
    color: #92400E;
}
.badge-fully-automatic {
    background: #D1FAE5;
    color: #065F46;
}

/* ── Stats Counter ───────────────────────────────────── */
.stats-strip {
    background: linear-gradient(135deg, #1A1A2E 0%, #0D0D1A 100%);
}

/* ── Timeline ────────────────────────────────────────── */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #E8390A, #F5A623);
    transform: translateY(-50%);
    transform-origin: left;
}
.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E8390A;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #E8390A;
    z-index: 1;
}
.timeline-dot-inactive {
    background: #D1D5DB;
    border-color: #fff;
    box-shadow: 0 0 0 3px #D1D5DB;
}

/* Vertical timeline for About page */
.vertical-timeline {
    position: relative;
    padding-left: 2rem;
}
.vertical-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #E8390A, #F5A623, #3D5A7A);
}
.vertical-timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
}
.vertical-timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #E8390A;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #E8390A;
    transform: translateX(-5.5px);
}

/* ── Client Logo Marquee ─────────────────────────────── */
.marquee-track {
    display: flex;
    width: max-content;
}
.marquee-track img {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s;
}
.marquee-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ── CTA Gradient Animation ──────────────────────────── */
.cta-gradient {
    background: linear-gradient(135deg, #E8390A 0%, #c42f08 25%, #E8390A 50%, #F5A623 75%, #E8390A 100%);
    background-size: 400% 400%;
    animation: gradient-shift 6s ease infinite;
}

/* ── Comparison Table ────────────────────────────────── */
.comparison-recommended {
    position: relative;
    border: 2px solid #E8390A;
    background: linear-gradient(to bottom, #FEF2F2, #fff);
}
.comparison-recommended::before {
    content: '★ RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #E8390A;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

/* ── SVG Wave Divider ────────────────────────────────── */
.wave-divider {
    line-height: 0;
    overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; }

/* ── Gallery Masonry ─────────────────────────────────── */
.masonry-grid {
    columns: 1;
    column-gap: 1rem;
}
@media (min-width: 640px) { .masonry-grid { columns: 2; } }
@media (min-width: 1024px) { .masonry-grid { columns: 3; } }
@media (min-width: 1280px) { .masonry-grid { columns: 4; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* ── Multi-step Form ─────────────────────────────────── */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeInUp 0.4s; }

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

.step-indicator {
    position: relative;
    z-index: 1;
}
.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #E5E7EB;
    z-index: -1;
}
.step-dot {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: #E5E7EB;
    color: #9CA3AF;
    transition: all 0.3s;
}
.step-dot.active {
    background: #E8390A;
    color: #fff;
    box-shadow: 0 4px 15px rgba(232, 57, 10, 0.4);
}
.step-dot.completed {
    background: #10B981;
    color: #fff;
}

/* ── World Map ───────────────────────────────────────── */
.map-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #E8390A;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}
.map-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #E8390A;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.map-dot .map-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1A1A2E;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.map-dot:hover .map-tooltip { opacity: 1; }

/* ── Page Hero ───────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #1A1A2E 0%, #0D0D1A 100%);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 57, 10, 0.1) 0%, transparent 70%);
}

/* ── Toast Notifications ─────────────────────────────── */
.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 24rem;
}
.toast.show { transform: translateX(0); }
.toast-success { background: #059669; }
.toast-error { background: #DC2626; }
.toast-info { background: #2563EB; }

/* ── Swiper Custom ───────────────────────────────────── */
.swiper-pagination-bullet-active { background: #E8390A !important; }
.swiper-button-next, .swiper-button-prev { color: #E8390A !important; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1.25rem !important; }

.featured-prev,
.featured-next {
    position: static !important;
    margin: 0 !important;
    inset: auto !important;
    transform: none !important;
}

.featured-pagination {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
}

.featured-prev::after,
.featured-next::after {
    display: none !important;
}


/* ── Misc Utilities ──────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #E8390A, #F5A623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.writing-mode-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Hide scrollbar utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ── Responsive adjustments ──────────────────────────── */
@media (max-width: 767px) {
    .section-heading::after { width: 40px; }
    .mega-menu { display: none !important; }
}

/* ── Print styles ────────────────────────────────────── */
@media print {
    .fixed, #whatsappFloat, #sideQuoteBtn, #scrollTopBtn, nav, #topbar { display: none !important; }
    .no-print { display: none !important; }
}

/* ── Hero Image Ken Burns Motion Effect ────────────────── */
@keyframes kenburns {
    0% {
        transform: scale(1.03) translate(0, 0);
    }
    50% {
        transform: scale(1.12) translate(-1%, -0.5%);
    }
    100% {
        transform: scale(1.03) translate(0, 0);
    }
}
.ken-burns-bg {
    animation: kenburns 36s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform;
}

/* ── Service Capability Cards ────────────────────────── */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E8390A, #F5A623);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.service-card .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: all 0.3s;
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-3deg);
}

/* ── Lead Generation Hub Cards ───────────────────────── */
.lead-gen-card {
    position: relative;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.lead-gen-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.lead-gen-card:hover::after {
    opacity: 1;
}
.lead-gen-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0,0,0,0.2);
}
.lead-gen-card .lg-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.lead-gen-card:hover .lg-icon {
    transform: scale(1.15);
}

/* ── Machine Video Cards ─────────────────────────────── */
.video-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #1A1A2E 0%, #0D0D1A 100%);
    transition: all 0.4s ease;
    cursor: pointer;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(232, 57, 10, 0.2);
}
.video-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s;
}
.video-card:hover .play-overlay {
    background: rgba(232, 57, 10, 0.15);
}
.video-card .play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(232, 57, 10, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(232, 57, 10, 0.4);
}
.video-card:hover .play-btn {
    transform: scale(1.15);
    background: #E8390A;
}

/* ── Technology Partner Timeline ──────────────────────── */
.partner-step {
    position: relative;
    padding-left: 3rem;
}
.partner-step::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(180deg, #E8390A, #3D5A7A);
}
.partner-step:last-child::before {
    display: none;
}
.partner-step .step-dot {
    position: absolute;
    left: 4px;
    top: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E8390A;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(232, 57, 10, 0.3);
    z-index: 1;
}

/* ── Hero Outcome Pill ──────────────────────────────── */
.outcome-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s;
}
.outcome-pill:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(245, 166, 35, 0.4);
}

/* ── Product Content Custom Table Styling ──────────────────────────── */
.product-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.8125rem;
    text-align: left;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.product-content tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.product-content tr:hover {
    background-color: #f9fafb;
}

.product-content tr:last-child {
    border-bottom: none;
}

.product-content th,
.product-content td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-right: 1px solid #e5e7eb;
}

.product-content th:last-child,
.product-content td:last-child {
    border-right: none;
}

.product-content tr:first-child td,
.product-content th {
    background-color: #f9fafb;
    font-weight: 700;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Make table responsive on smaller screens */
.product-content {
    overflow-x: auto;
}

