/* Reset and Base Styles */
@import url('./fonts.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* 3D Depth System - Shadow Hierarchy */
:root {
    /* Shadow Scale - 5 Levels of Elevation */
    --shadow-0: none;
    /* No elevation - flush with background */
    --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.08);
    /* Subtle elevation */
    --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Card elevation */
    --shadow-3: 0 8px 24px rgba(0, 0, 0, 0.12);
    /* Raised elevation */
    --shadow-4: 0 16px 48px rgba(0, 0, 0, 0.16);
    /* Floating elevation */
    --shadow-5: 0 24px 64px rgba(0, 0, 0, 0.24);
    /* Maximum elevation */

    /* Glow Effects */
    --glow-blue: 0 0 20px rgba(37, 99, 235, 0.3);
    --glow-orange: 0 0 20px rgba(249, 115, 22, 0.3);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.3);

    /* Inner Shadows */
    --inner-soft: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --inner-medium: inset 0 4px 8px rgba(0, 0, 0, 0.1);

    /* Z-Index Scale */
    --z-background: 0;
    --z-content: 10;
    --z-interactive: 20;
    --z-header: 30;
    --z-dropdown: 40;
    --z-modal: 50;
    --z-toast: 60;
}

/* Depth Utility Classes */
.depth-0 {
    box-shadow: var(--shadow-0);
}

.depth-1 {
    box-shadow: var(--shadow-1);
}

.depth-2 {
    box-shadow: var(--shadow-2);
}

.depth-3 {
    box-shadow: var(--shadow-3);
}

.depth-4 {
    box-shadow: var(--shadow-4);
}

.depth-5 {
    box-shadow: var(--shadow-5);
}

/* Smooth transitions for all depth changes */
.depth-transition {
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover depth effects */
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
}

.hover-float:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-4);
}

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Typography System */
:root {
    /* Typography Scale */
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.25rem;
    /* 20px */
    --font-size-2xl: 1.5rem;
    /* 24px */
    --font-size-3xl: 1.875rem;
    /* 30px */
    --font-size-4xl: 2.25rem;
    /* 36px */
    --font-size-5xl: 3rem;
    /* 48px */
    --font-size-6xl: 3.75rem;
    /* 60px */

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0em;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* Font Families */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--leading-relaxed);
    color: #1f2937;
    overflow-x: hidden;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: #111827;
    margin-bottom: 0.5em;
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    letter-spacing: var(--tracking-tighter);
    line-height: 1.1;
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

h6 {
    font-size: var(--font-size-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

/* Paragraph and Text Styles */
p {
    font-size: var(--font-size-base);
    line-height: var(--leading-relaxed);
    color: #4b5563;
    margin-bottom: 1em;
}



.text-large {
    font-size: var(--font-size-lg);
    line-height: var(--leading-relaxed);
}

.text-small {
    font-size: var(--font-size-sm);
    line-height: var(--leading-normal);
}

.text-xs {
    font-size: var(--font-size-xs);
    line-height: var(--leading-normal);
}

/* Font Weight Utilities */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-black {
    font-weight: 900;
}

/* Serif Font Class */
.font-serif {
    font-family: var(--font-serif);
}

/* Text Color Utilities */
.text-primary {
    color: #2563eb;
}

.text-secondary {
    color: #6b7280;
}

.text-muted {
    color: #9ca3af;
}

.text-white {
    color: #ffffff;
}

/* Enhanced Typography Classes */
.display-text {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.body-large {
    font-size: var(--font-size-lg);
    line-height: var(--leading-relaxed);
    color: #374151;
}

.caption {
    font-size: var(--font-size-sm);
    color: #6b7280;
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.lead-text {
    font-size: var(--font-size-xl);
    line-height: var(--leading-relaxed);
    color: #374151;
    font-weight: 400;
}

/* Improved readability for long text */
.prose {
    max-width: 65ch;
    line-height: var(--leading-loose);
}

.prose p {
    margin-bottom: 1.25em;
}

.prose h2 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose h3 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    z-index: var(--z-header);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-1);
    width: 100%;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-4);
    backdrop-filter: blur(30px);
    padding: 8px 0;
}

.header .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.header.scrolled .container {
    height: 64px;
}

/* Logo Section */
.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 60px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.logo-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-icon:hover img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    font-family: 'Inter', sans-serif;
    color: #2563eb;
}

.logo-tagline {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 1px;
    letter-spacing: 0.2px;
    font-family: 'Inter', sans-serif;
}

/* Subtle hover for entire logo */
.nav-logo:hover .logo-name {
    color: #111827;
    /* almost black for clarity */


}





/* Responsive for mobile */
@media (max-width: 768px) {
    .logo-tagline {
        display: none;
    }

    .logo-name {
        font-size: 1rem;
    }

    .logo-icon {
        width: 13vw !important;
    }

    .logo-icon img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        transition: transform 0.3s ease;
    }
}


/* Desktop Navigation */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    display: block;
    letter-spacing: var(--tracking-normal);
    font-feature-settings: 'kern' 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #2563eb;
}

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

.nav-link.active {
    color: #2563eb;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-toggle-btn:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.dropdown-toggle-btn[aria-expanded="true"] {
    color: #2563eb;
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    list-style: none;
    margin: 0;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 8px;
    white-space: nowrap;
}

.dropdown-link:hover {
    background: #f3f4f6;
    color: #2563eb;
    transform: translateX(4px);
}

.dropdown-link i {
    font-size: 12px;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.dropdown-link:hover i {
    color: #2563eb;
}

/* Dropdown Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.dropdown-submenu .dropdown-link .submenu-arrow {
    margin-left: auto;
}

.submenu-arrow {
    font-size: 10px !important;
    transition: transform 0.3s ease;
}

.dropdown-submenu:hover>.dropdown-link .submenu-arrow,
.dropdown-submenu:hover>.dropdown-sublink .submenu-arrow {
    transform: rotate(90deg);
}

.dropdown-submenu-content {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    list-style: none;
    margin: 0;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.dropdown-submenu:hover>.dropdown-submenu-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-sublink {
    display: block;
    padding: 8px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 6px;
}

.dropdown-sublink:hover {
    background: #f3f4f6;
    color: #2563eb;
    transform: translateX(2px);
}

/* Desktop Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-phone {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-phone:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    gap: 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
}

.bar {
    width: 25px;
    height: 3px;
    background: #1f2937;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

/* Hamburger always stays as 3 lines - no transformation needed since we have a separate close button */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f2937;
    font-weight: 700;
    font-size: 18px;
}

.mobile-logo i {
    color: #2563eb;
    font-size: 20px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.mobile-menu-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.mobile-nav {
    flex: 1;
    padding: 24px 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: #374151;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background: #f3f4f6;
    color: #2563eb;
    border-left-color: #2563eb;
}

.mobile-nav-link i {
    font-size: 18px;
    color: #9ca3af;
    width: 20px;
    text-align: center;
}

.mobile-nav-link:hover i {
    color: #2563eb;
}

.mobile-menu-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    padding-bottom: 10vh !important;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.mobile-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.mobile-contact-item:hover {
    color: #2563eb;
}

.mobile-contact-item i {
    font-size: 16px;
    color: #9ca3af;
    width: 20px;
    text-align: center;
}

/* Mobile Submenu Styles */
.mobile-submenu .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-submenu-toggle {
    font-size: 12px !important;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.mobile-submenu.active .mobile-submenu-toggle {
    transform: rotate(180deg);
}

.mobile-submenu-content {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9fafb;
    border-radius: 8px;
    margin: 8px 24px 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.mobile-submenu.active .mobile-submenu-content {
    max-height: 300px;
}

.mobile-nav-sublink {
    display: block;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-sublink:hover {
    background: #e5e7eb;
    color: #2563eb;
    border-left-color: #2563eb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header .container {
        padding: 0 20px;
    }

    .nav-list {
        gap: 32px;
    }

    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 16px;
        height: 64px;
    }

    .header.scrolled .container {
        height: 56px;
    }

    .nav-menu {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .logo-name {
        font-size: 18px;
    }

    .logo-tagline {
        display: none;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .header.scrolled .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
    }

    .mobile-menu-header {
        padding: 16px 20px;
    }

    .mobile-nav {
        padding: 20px 0;
    }

    .mobile-nav-link {
        padding: 14px 20px;
        font-size: 15px;
    }

    .mobile-menu-footer {
        padding: 20px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    padding: 0;
    margin: 0;
    margin-top: 80px;
    box-sizing: border-box;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    border: none;
    outline: none;
}

/* Hero depth layers */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
    padding-top: 6rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
}


.hero-content h1 {
    font-size: var(--font-size-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    letter-spacing: var(--tracking-tighter);
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 520px;
    animation: fadeInUp 1s ease-out 0.4s both;
    font-weight: 400;
    letter-spacing: var(--tracking-normal);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: var(--tracking-wide);
    font-feature-settings: 'kern' 1;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-3), var(--glow-blue);
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-buttons .btn-primary:hover::before {
    opacity: 1;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-4), var(--glow-blue);
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    box-shadow: var(--shadow-2);
    overflow: hidden;
}

.hero-buttons .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-buttons .btn-secondary:hover::before {
    opacity: 1;
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-6px);
    box-shadow: var(--shadow-3);
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1.4s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 0.75rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 1.5rem;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

/* Hero stats styling - higher specificity */
.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-stats .stat-label {
    font-size: 0.8rem;
    color: white !important;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.trust-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    animation: fadeInUp 1.6s ease-out 1s both;
    align-items: center;
    justify-content: flex-start;
}

/* Hero section trust badges specifically */
.hero .trust-badges {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #e5e7eb;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hero section trust badges specifically */
.hero .trust-badge {
    display: inline-flex !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.trust-badge i {
    color: #60a5fa;
    font-size: 0.9rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 2rem;
    padding-top: 4rem;
}

.machinery-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    width: 100%;
    max-width: 322px;
}

.machine-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.44rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2);
}

.machine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.machine-card:hover::before {
    opacity: 1;
}

.machine-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: var(--shadow-4), var(--glow-blue);
}

/* .machine-card.featured removed for consistency */

.machine-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.86rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-2);
}

.machine-card:hover .machine-icon {
    transform: scale(1.15);
    box-shadow: var(--shadow-3), var(--glow-blue);
}

.machine-icon i {
    font-size: 1.44rem;
    color: white;
}

.machine-card h4 {
    font-size: 1.09rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.46rem;
}

.machine-card p {
    font-size: 0.92rem;
    color: #e5e7eb;
    line-height: 1.3;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e5e7eb" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23e5e7eb" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23e5e7eb" opacity="0.2"/><circle cx="10" cy="60" r="0.5" fill="%23e5e7eb" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="%23e5e7eb" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2563eb;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    border-radius: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
}

.feature-icon i {
    font-size: 1.75rem;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

/* Consistent Icon Theme */
.feature-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.feature-icon::before {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
}

.feature-stat {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-stat {
    background: #dbeafe;
    transform: scale(1.05);
}

.trust-indicators {
    text-align: center;
    position: relative;
    z-index: 2;
}

.trust-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.brand-logo {
    font-size: 0.875rem;
    font-weight: 700;
    color: #9ca3af;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.brand-logo:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #2563eb;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .brand-logos {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .why-choose-us {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .brand-logos {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        justify-items: center;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .why-choose-us {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
    }

    .feature-icon i {
        font-size: 1.25rem;
    }
}

/* Machine Categories Section */
.machine-categories {
    padding: 5rem 0;
    background: #ffffff;
}

.categories-header {
    text-align: center;
    margin-bottom: 4rem;
}

.categories-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2563eb;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    border-radius: 20px;
}

.categories-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.categories-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 0;
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-2);
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-4);
    border-color: #3b82f6;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    z-index: 2;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-2);
}

.card-icon i {
    font-size: 2rem;
    color: #2563eb;
    transition: all 0.3s ease;
}

.category-card:hover .card-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: var(--shadow-3), var(--glow-blue);
}

.category-card:hover .card-icon i {
    color: #1d4ed8;
    transform: rotate(5deg);
}

.card-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-description {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.card-features li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.card-features li i {
    color: #10b981;
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.card-link:hover {
    color: #1d4ed8;
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* Card Subcategories */
.card-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.subcategory-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.subcategory-tag:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .category-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .machine-categories {
        padding: 3rem 0;
    }

    .categories-header {
        margin-bottom: 2.5rem;
    }

    .categories-title {
        font-size: 2rem;
    }

    .categories-description {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .machine-categories {
        padding: 2.5rem 0;
    }

    .categories-title {
        font-size: 1.75rem;
    }

    .category-card {
        padding: 1.25rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon i {
        font-size: 1.25rem;
    }
}


/* About Section */
/* About Hero Section */
.about-hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

/* About Hero depth layers */
.about-hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 30s ease-in-out infinite;
    z-index: 1;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="about-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(59,130,246,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23about-pattern)"/></svg>');
    opacity: 0.6;
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2563eb;
    margin-bottom: 1rem;
}

.about-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-hero-description {
    margin-bottom: 3rem;
}

.about-hero-description p {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-2);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-4), var(--glow-blue);
}

.stat-icon {
    color: #2563eb;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.about-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about-stats .stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

.about-hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-image-placeholder p {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.image-overlay {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.overlay-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.overlay-badge i {
    color: #10b981;
}

/* Journey Timeline */
.about-journey {
    padding: 6rem 0;
    background: white;
}

.journey-header {
    text-align: center;
    margin-bottom: 4rem;
}

.journey-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    color: #1f2937;
    margin-bottom: 1rem;
}

.journey-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.journey-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6, #f59e0b, #10b981);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: #3b82f6;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 3px solid #3b82f6;
    position: relative;
    z-index: 2;
    min-width: 120px;
    text-align: center;
}

.timeline-content {
    flex: 1;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    margin: 0 2rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: #f8fafc;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: #f8fafc;
    transform: translateY(-50%);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Values Section */
.about-values {
    padding: 6rem 0;
    background: #f8fafc;
}

.values-header {
    text-align: center;
    margin-bottom: 4rem;
}

.values-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    color: #1f2937;
    margin-bottom: 1rem;
}

.values-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-4);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-2);
}

.value-icon.quality {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.value-icon.trust {
    background: linear-gradient(135deg, #10b981, #059669);
}

.value-icon.expertise {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.value-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-3);
}

/* Why Choose Us Enhanced */
.about-why-choose {
    padding: 6rem 0;
    background: white;
}

.why-choose-header {
    text-align: center;
    margin-bottom: 4rem;
}

.why-choose-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    color: #1f2937;
    margin-bottom: 1rem;
}

.why-choose-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.why-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.why-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.why-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.why-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.proof-point {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

/* Global Network */
.about-global {
    padding: 6rem 0;
    background: #f8fafc;
}

.global-header {
    text-align: center;
    margin-bottom: 4rem;
}

.global-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.global-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.global-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.country-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.country-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.country-flag {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    /* padding: 10px; */
}

.country-flag svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.country-card:hover .country-flag {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.country-flag.japan {
    background: #ffffff;
}

.country-flag.europe {
    background: #ffffff;
}

.country-flag.australia {
    background: #ffffff;
}

.country-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.country-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.country-stats {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

/* Testimonials */
.about-testimonials {
    padding: 6rem 0;
    background: white;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.testimonials-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-1);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-3);
    background: white;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: #3b82f6;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    color: #6b7280;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: #6b7280;
    font-size: 0.875rem;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 0.875rem;
}

/* About CTA */
.about-cta {
    padding: 6rem 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(29, 78, 216, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.about-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(59, 130, 246, 0.03) 2px,
            rgba(59, 130, 246, 0.03) 4px);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.about-cta .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.about-cta .btn-primary::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;
}

.about-cta .btn-primary:hover::before {
    left: 100%;
}

.about-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.about-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.about-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .global-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 4rem 0;
    }

    .about-hero-title {
        font-size: 2.25rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-image {
        height: 300px;
    }

    .journey-timeline::before {
        left: 2rem;
        transform: none;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 4rem;
    }

    .timeline-year {
        position: absolute;
        left: 0;
        top: 0;
        min-width: 80px;
        font-size: 1.25rem;
        padding: 0.75rem 1rem;
    }

    .timeline-content {
        margin: 0;
        margin-top: 1rem;
    }

    .timeline-content::before {
        display: none;
    }

    .values-grid,
    .global-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .about-hero-title {
        font-size: 1.75rem;
    }

    .hero-image {
        height: 250px;
        border-radius: 12px;
    }

    .hero-image-container {
        border-radius: 12px;
    }

    .overlay-badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}


/* Stock Section */
.stock {
    padding: 6rem 0;
}

.stock h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
    font-size: 2.5rem;
}

.stock-filters {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 0 0rem;
}

.filter-group {
    text-align: center;
    position: relative;
}

/* Add padding to the first filter group to accommodate absolute positioned sub type */
.filter-group:first-child {
    padding-bottom: 2rem;
}

/* Company Dropdown Styles */
.company-dropdown-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
}

.company-dropdown {
    position: relative;
    width: 100%;
    max-width: 250px;
}

.company-dropdown-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.company-dropdown-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.company-dropdown-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.company-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Smooth hover transition for company dropdown */
.company-dropdown:hover .company-dropdown-btn {
    border-color: #2563eb;
    color: #2563eb;
}

.company-dropdown.active .company-dropdown-btn {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

/* Company Dropdown Search Styles */
.dropdown-search-container {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    margin: 0 !important;
    position: relative;
}

.dropdown-search-input {
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.dropdown-search-input:focus {
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dropdown-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 12px;
    pointer-events: none;
}



/* No results message */
.no-results-message {
    padding: 12px 20px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    font-style: italic;
}

/* Simple search highlight - remove all possible spacing */
.search-highlight {
    background-color: #dbeafe;
    color: #1e40af;
    font-weight: 500;
    padding: 0;
    margin: 0;
    border: 0;
    display: inline;
    line-height: 1;
    letter-spacing: 0;
    word-spacing: 0;
    text-indent: 0;
    vertical-align: baseline;
    font-size: inherit;
    font-family: inherit;
    white-space: nowrap;
}

/* Simple dropdown menu for search */
.company-dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* Scrollbar styling for dropdown */
.company-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.company-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.company-dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.company-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.company-dropdown-menu {
    min-width: 100%;
    width: max-content;
}

.company-option {
    cursor: pointer;
}

.company-option:hover {
    background: #f3f4f6;
    color: #2563eb;
}



/* Show dropdown when active */
.company-dropdown.active .company-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-group h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Sub Type Filter Animation - Nested under Machine Type */
.subtype-filter {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
    margin-top: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    z-index: 10;
    background: white;
    padding: 0 1rem;
}

.subtype-filter.show {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
}

/* Smooth closing animation with gentle easing */
.subtype-filter.closing {
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        max-height 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        margin-top 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        padding-top 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Add a subtle highlight effect when closing */
.subtype-filter.closing.show {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(59, 130, 246, 0.01) 100%);
}

/* Subtle scale effect during closing for extra elegance */
.subtype-filter.closing:not(.show) {
    transform: translateY(-5px) scale(0.98);
}



.subtype-filter h4 {
    color: #2563eb;
    position: relative;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.subtype-filter h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 1px;
}

/* Sub Type Filter Buttons */
.subtype-filter-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.subtype-filter-btn:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.subtype-filter-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.subtype-filter-btn.active:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.filter-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    justify-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* Filter buttons responsive breakpoints for better space utilization */
@media (min-width: 1200px) {
    .filter-buttons {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
        max-width: 800px;
    }

    .company-dropdown {
        max-width: 280px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .filter-buttons {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 0.75rem;
        max-width: 600px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .stock-filters {
        gap: 2.5rem;
        padding: 0 1.5rem;
        grid-template-columns: 1.5fr 1fr;
    }

    .filter-buttons {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 0.6rem;
        max-width: 500px;
    }

    .company-dropdown {
        max-width: 220px;
    }
}

.filter-btn {
    padding: 0.7rem 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Dropdown icon styles */
.filter-btn.has-dropdown {
    position: relative;
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: #9ca3af;
}

.filter-btn.has-dropdown:hover .dropdown-icon {
    color: white;
}

.filter-btn.has-dropdown.active .dropdown-icon {
    color: white;
}

.filter-btn.has-dropdown.dropdown-open .dropdown-icon {
    transform: rotate(180deg);
    color: white;
}

/* Ensure buttons without dropdowns still look centered */
.filter-btn:not(.has-dropdown) {
    justify-content: center;
}

.filter-btn.active,
.filter-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Active filter highlight */
.filter-btn.active::after {
    content: '';
}

.company-filter.active,
.company-filter:hover {

    color: white;
    border-color: #10b981;
}

.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}



.stock-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stock-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #e5e7eb;
}

.stock-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.stock-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stock-item:hover .stock-image img {
    transform: scale(1.02);
}

.condition-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.subcategory-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.stock-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    justify-content: space-between;
}

.stock-info h3 {
    color: #1f2937;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.stock-metadata {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.stock-metadata .brand {
    font-weight: 600;
    color: #374151;
}

.stock-metadata .separator {
    color: #d1d5db;
    font-weight: 300;
}

.stock-metadata .category {
    color: #6b7280;
}

.stock-metadata .year {
    color: #6b7280;
}

.stock-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.stock-actions .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stock-actions .btn-outline {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
    cursor: pointer;
    pointer-events: auto;
}

.stock-actions .btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.stock-actions .btn-primary {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.stock-actions .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.details-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.details-btn:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

.pagination-btn i {
    font-size: 0.75rem;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 1rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pagination-number:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pagination-number.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #9ca3af;
    font-weight: 500;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.pagination-info span {
    color: #374151;
    font-weight: 600;
}

/* Hide pagination when no results */
.pagination-container.hidden {
    display: none;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .pagination-btn {
        min-width: 80px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .pagination-btn span {
        display: none;
    }

    .pagination-numbers {
        margin: 0 0.5rem;
        gap: 0.125rem;
    }

    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }

    .pagination-info {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        margin-top: 2rem;
        gap: 1rem;
    }

    .pagination {
        width: 100%;
        justify-content: space-between;
    }

    .pagination-numbers {
        flex: 1;
        justify-content: center;
        margin: 0 0.25rem;
    }

    .pagination-number {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* Why Us Section */
.why-us {
    padding: 6rem 0;
    background: #f8fafc;
}

.why-us h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
    font-size: 2.5rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.why-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.why-icon i {
    font-size: 2rem;
}

.why-item h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.why-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

.contact-content {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.contact-info p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-details {

    grid-column: 1/3;
    align-self: self-start;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(37, 99, 235, 0.02);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.contact-item i {
    color: #2563eb;
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background: rgba(37, 99, 235, 0.15);
    transform: scale(1.1);
}

/* Enhanced Active/Click States for Contact Cards */
.contact-item:active {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: all 0.15s ease;
}

.contact-item:active i {
    background: rgba(37, 99, 235, 0.2);
    transform: scale(0.95);
    transition: all 0.15s ease;
}

.contact-item div {
    align-items: center;
    flex: 1;
}

.contact-item h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.contact-item p {
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Clickable contact links */
.contact-link {
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.5;
}

.contact-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.contact-link:active {
    transform: scale(0.98);
}

/* Mobile Contact Section Improvements */
@media (max-width: 768px) {
    .contact {
        padding: 4rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .contact-info p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        line-height: 1.6;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .contact-item i {
        font-size: 1.6rem;
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .contact-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
        font-weight: 700;
    }

    .contact-link {
        font-size: 1rem;
        font-weight: 500;
        padding: 0.25rem 0;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .contact-link:hover {
        background: rgba(37, 99, 235, 0.1);
        padding: 0.25rem 0.5rem;
        margin: -0.25rem -0.5rem;
    }

    .contact-link:active {
        transform: scale(0.95);
        background: rgba(37, 99, 235, 0.15);
    }
}

@media (max-width: 480px) {
    .contact-info h2 {
        font-size: 1.75rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .contact-details {
        gap: 1.25rem;
    }

    .contact-item {
        padding: 1rem;
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .contact-item i {
        font-size: 1.8rem;
        width: 52px;
        height: 52px;
        border-radius: 14px;
        margin-bottom: 0.5rem;
    }

    .contact-item div {
        text-align: center;
        align-items: center;
    }

    .contact-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .contact-link {
        font-size: 1rem;
        word-break: break-all;
        /* Ensure long email addresses break properly */
        display: block;
        padding: 0.5rem;
        border-radius: 8px;
        background: rgba(37, 99, 235, 0.05);
        margin-top: 0.25rem;
    }

    .contact-link:hover {
        background: rgba(37, 99, 235, 0.1);
        padding: 0.5rem;
        margin: 0.25rem 0 0 0;
    }
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
}

.contact-form h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    color: #1e293b;
    will-change: border-color, box-shadow;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.form-group select option {
    color: #64748b;
    background: white;
    padding: 8px 12px;
    transition: background-color 0.2s ease;
}

.form-group select option:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

/* Form dropdown styles - matching navigation dropdown */
.form-group select,
#state,
#machineType {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    will-change: border-color, box-shadow;
    background: white !important;
    position: relative;
    padding-right: 40px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    color: #1e293b !important;
    font-family: inherit !important;
}

.form-group select:focus,
#state:focus,
#machineType:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232563eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

/* Force custom styling on all form selects */
select,
select.form-control,
select#state,
select#machineType,
.form-group select,
#state,
#machineType {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: white !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    padding-right: 40px !important;
    font-size: 1rem !important;
    color: #1e293b !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
}

select:focus,
select.form-control:focus,
select#state:focus,
select#machineType:focus,
.form-group select:focus,
#state:focus,
#machineType:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232563eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

/* Search hint styling */
.form-group select::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Row for side-by-side inputs */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* CAPTCHA Styles */
.captcha-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.captcha-challenge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

#captchaText {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    letter-spacing: 2px;
    user-select: none;
    min-width: 120px;
    text-align: center;
}

.refresh-btn {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.refresh-btn:hover {
    background: #1d4ed8;
    transform: rotate(180deg);
}

#captchaInput {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#captchaInput:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Checkbox Styles */
.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-label input[type="checkbox"].error+.checkmark {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Checkbox highlight animation */
.checkbox-label input[type="checkbox"].highlight {
    animation: checkboxPulse 0.6s ease-in-out;
}

.checkbox-label input[type="checkbox"].highlight+.checkmark {
    animation: checkmarkPulse 0.6s ease-in-out;
}

.checkbox-label input[type="checkbox"].highlight~* {
    animation: labelHighlight 0.6s ease-in-out;
}

@keyframes labelHighlight {
    0% {
        background-color: transparent;
    }

    25% {
        background-color: rgba(239, 68, 68, 0.1);
    }

    50% {
        background-color: rgba(239, 68, 68, 0.15);
    }

    75% {
        background-color: rgba(239, 68, 68, 0.1);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes checkboxPulse {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes checkmarkPulse {
    0% {
        transform: scale(1);
        border-color: #e2e8f0;
    }

    25% {
        transform: scale(1.3);
        border-color: #ef4444;
    }

    50% {
        transform: scale(1.2);
        border-color: #ef4444;
    }

    75% {
        transform: scale(1.25);
        border-color: #ef4444;
    }

    100% {
        transform: scale(1);
        border-color: #ef4444;
    }
}

/* Alternative bounce animation */
.checkbox-label input[type="checkbox"].bounce {
    animation: checkboxBounce 0.8s ease-in-out;
}

@keyframes checkboxBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) scale(1);
    }

    10% {
        transform: translateY(-5px) scale(1.1);
    }

    30% {
        transform: translateY(-3px) scale(1.05);
    }

    40% {
        transform: translateY(-2px) scale(1.02);
    }

    60% {
        transform: translateY(-1px) scale(1.01);
    }
}

.terms-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Checkbox text wrapper styling */
.checkbox-text {
    flex: 1;
    min-width: 0;
    /* Allow text to wrap */
}

/* Mobile responsive checkbox styling */
@media (max-width: 768px) {
    .checkbox-label {
        flex-wrap: wrap;
        white-space: normal;
        line-height: 1.4;
        font-size: 0.85rem;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .checkbox-text {
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
        hyphens: auto;
    }

    .checkbox-label .terms-link {
        display: inline;
        word-break: keep-all;
        white-space: nowrap;
    }

    .checkbox-label .checkmark {
        margin-top: 0;
        align-self: flex-start;
        flex-shrink: 0;
    }

    /* Ensure proper text flow on mobile */
    .checkbox-label {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Enhanced form validation styles - only show errors */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Loading state for form */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-loading .btn {
    position: relative;
}

.form-loading .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Call-to-Action Section */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #6366f1 100%);
    padding: 5rem 0;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="0" cy="0" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-badge i {
    font-size: 0.75rem;
    color: #fbbf24;
}

.cta-headline {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #2563eb;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.btn-primary-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: #1d4ed8;
}

.btn-primary-cta i {
    font-size: 1rem;
}

.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
    cursor: pointer;
}

.btn-secondary-cta:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary-cta i {
    font-size: 1rem;
}

.contact-options {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 200px;
    flex: 1;
    max-width: 280px;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.contact-icon i {
    font-size: 1.2rem;
    color: white;
}

/* Specific icon colors to match footer styling */
.contact-item:has(.contact-icon .fa-phone) .contact-icon {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.contact-item:has(.contact-icon .fa-phone) .contact-icon i {
    color: #10b981;
    /* Green for phone */
}

.contact-item:has(.contact-icon .fa-envelope) .contact-icon {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.contact-item:has(.contact-icon .fa-envelope) .contact-icon i {
    color: #f59e0b;
    /* Amber for email */
}

.contact-item:has(.contact-icon .fa-map-marker-alt) .contact-icon {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.contact-item:has(.contact-icon .fa-map-marker-alt) .contact-icon i {
    color: #ef4444;
    /* Red for location */
}

/* Enhanced hover effects with matching colors */
.contact-item:has(.contact-icon .fa-phone):hover .contact-icon {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.contact-item:has(.contact-icon .fa-envelope):hover .contact-icon {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.contact-item:has(.contact-icon .fa-map-marker-alt):hover .contact-icon {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    /* Allow text to wrap */
}

.contact-label {
    padding-left: 4rem;
    justify-self: flex-start;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1rem;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.3;
    word-break: break-word;
    /* Handle long email addresses */
}

.contact-value:hover {
    color: #fbbf24;
}

.contact-divider {
    display: none;
    /* Hide dividers since we're using card layout now */
}

.trust-elements {
    display: flex;
    justify-content: center;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-item i {
    font-size: 0.875rem;
    color: #fbbf24;
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 0.75rem 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    height: 64px;
    /* Same as header height on mobile */
    display: none;
    /* Hidden by default, flex when shown on mobile */
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    border: none;
    outline: none;
}

/* Main CTA Button (Center) */
.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    flex: 1;
    max-width: 200px;
    height: 48px;
    margin: 0 0.5rem;
}

.mobile-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: #1d4ed8;
}

/* Action Buttons (WhatsApp & Back to Top) */
.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #20c55a;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
    font-size: 1.2rem;
}

/* Back to Top Button */
.back-to-top-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #2563eb;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.back-to-top-btn:hover {
    background: white;
    color: #1d4ed8;
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.back-to-top-btn i {
    font-size: 1rem;
}

.mobile-cta-btn i {
    font-size: 1rem;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cta-headline {
        font-size: 2.5rem;
    }

    .cta-description {
        font-size: 1.125rem;
    }

    .contact-options {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        max-width: 100%;
        width: 100%;
        min-width: auto;
        justify-content: flex-start;
    }

    .trust-elements {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 0;
    }

    .cta-headline {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .btn-primary-cta,
    .btn-secondary-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .contact-options {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .contact-item {
        max-width: 100%;
        width: 100%;
        min-width: auto;
        padding: 1.25rem;
        text-align: center;
        flex-direction: column;
        gap: 0.75rem;
    }

    .contact-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 0.5rem;
    }

    .contact-icon i {
        font-size: 1.4rem;
    }

    .contact-details {
        text-align: center;
        gap: 0.5rem;
    }

    .contact-label {
        font-size: 1rem;
        font-weight: 600;
    }

    .contact-value {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .contact-divider {
        display: none;
    }

    .trust-elements {
        flex-direction: column;
        gap: 1rem;
    }

    .sticky-mobile-cta {
        display: flex;
    }



    /* Ensure no white space at bottom when sticky CTA is shown */
    body {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Add padding to body to account for sticky CTA */
    body:has(.sticky-mobile-cta) {
        padding-bottom: 64px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 3rem 0;
    }

    .cta-headline {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 0.95rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    position: relative;
    overflow: visible;
    padding: 1rem 0 0.5rem;
    box-shadow: var(--shadow-3);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #f97316, #3b82f6);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {

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

    50% {
        background-position: 100% 50%;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 1rem;
    padding: 1rem 0;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #f97316);
}

.footer-section h5 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}


.footer-section .contact-item {
    max-width: 100%;
    min-width: 100%;
    padding: 12px !important;
}



/* Company Info Section */
.company-info {
    max-width: 400px;
}

.footer-logo .tagline {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.company-description {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.trust-badges {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #f97316;
    font-weight: 500;
}

.badge i {
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Footer Links Wrapper - Default behavior for desktop */
.footer-links-wrapper {
    display: contents;
    /* This makes the wrapper invisible on desktop, children behave as if wrapper doesn't exist */
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 0.5rem;
}



/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: grid !important;
    grid-template-columns: 1fr 3fr !important;
    gap: 0rem !important;
    font-size: 0.875rem;
}

.contact-item i {
    color: #3b82f6;
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.contact-item a {
    /* color: #d1d5db; */
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3b82f6;
}

.contact-item span {
    color: #d1d5db;
}

/* Newsletter */
.newsletter {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter p {
    color: #9ca3af;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: var(--inner-soft);
    max-width: 15rem
}

.newsletter-form input::placeholder {
    color: #9ca3af;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 0.375rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 2.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2);
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-3), var(--glow-blue);
}

.newsletter-form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* Newsletter button loading state */
.newsletter-form button.loading {
    background: #6b7280;
    cursor: not-allowed;
    pointer-events: none;
}

.newsletter-form button.loading i {
    animation: spin 1s linear infinite;
}

/* Prevent duplicate spinners on newsletter button */
.newsletter-form button.loading::after {
    display: none !important;
}

/* Prevent general loading styles from affecting newsletter */
.newsletter-form.loading {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.newsletter-form.loading .btn::after {
    display: none !important;
}

/* Newsletter button success state */
.newsletter-form button.success {
    background: #10b981;
    animation: successPulse 0.6s ease-in-out;
}

.newsletter-form button.success i {
    animation: checkmark 0.5s ease-in-out;
}

/* Newsletter message styling */
.newsletter-message {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease-out;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

/* Newsletter message container */
.newsletter-message-container {
    width: 100%;
    margin-top: 0.75rem;
    position: relative;
}

.newsletter-message.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.newsletter-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

/* Newsletter message animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* Newsletter form enhanced focus states */
.newsletter-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
}

/* Newsletter form validation states */
.newsletter-form.error input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

.newsletter-form.success input {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 1rem;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-1);
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.copyright p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

.established {
    color: #6b7280;
    font-size: 0.8125rem;
    font-style: italic;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #3b82f6;
}

.separator {
    color: #6b7280;
    font-size: 0.875rem;
}

.made-with-love {
    color: #9ca3af;
    font-size: 0.8125rem;
}

.made-with-love i {
    color: #ef4444;
    margin: 0 0.25rem;
}








/* Ripple animation for click effects */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========================================
   PROFESSIONAL ANIMATIONS & MICRO-INTERACTIONS
   ======================================== */

/* Global smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #f97316);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.animate-stagger:nth-child(1) {
    transition-delay: 0.1s;
}

.animate-stagger:nth-child(2) {
    transition-delay: 0.2s;
}

.animate-stagger:nth-child(3) {
    transition-delay: 0.3s;
}

.animate-stagger:nth-child(4) {
    transition-delay: 0.4s;
}

.animate-stagger:nth-child(5) {
    transition-delay: 0.5s;
}

.animate-stagger:nth-child(6) {
    transition-delay: 0.6s;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.card-hover:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-hover:hover .card-arrow {
    transform: translateX(4px);
}

/* Enhanced Category Card Hover */
.category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.category-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: #3b82f6;
}

.category-card:hover .card-link {
    transform: translateX(4px);
    color: #3b82f6;
}

/* Enhanced Feature Card Hover */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    color: #3b82f6;
}

/* Stock Item Hover Effects */
.stock-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.stock-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.stock-item:hover .stock-image {
    transform: scale(1.05);
}

.stock-item:hover .stock-actions .btn {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced clickable feedback for machine cards */
.stock-item {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stock-item:active {
    transform: translateY(-2px) scale(0.98);
}

/* Mobile touch feedback */
@media (max-width: 768px) {
    .stock-item:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Button Enhancements */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.btn-enhanced:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-enhanced:active {
    transform: scale(0.98);
}

.btn-enhanced .btn-icon {
    transition: transform 0.2s ease;
}

.btn-enhanced:hover .btn-icon {
    transform: translateX(2px);
}

/* Secondary Button Hover */
.btn-secondary:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Link Hover Effects */
.link-hover {
    position: relative;
    transition: color 0.3s ease;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;

    background: #3b82f6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Modal trigger buttons styled as links */
.terms-link, .privacy-link {
    background: none;
    border: none;
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.terms-link:hover, .privacy-link:hover {
    color: #2563eb;
}

/* Accessibility: Contrast Fixes */
.clear-btn {
    background: #dc2626 !important; /* Higher contrast red */
    color: white !important;
    font-weight: 600;
}

.condition-badge {
    background: #10b981 !important; /* Higher contrast blue */
    color: white !important;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
}

/* Navigation Link Animations */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: #3b82f6;
    transform: translateY(-1px);
}

/* Mobile Navigation Animations */
.mobile-nav-item {
    transition: all 0.3s ease;
    transform: translateX(20px);
    opacity: 0;
}

.mobile-nav-item.animate-in {
    transform: translateX(0);
    opacity: 1;
    padding-bottom: 1rem;
}

.mobile-nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

/* Footer Link Animations */
.footer-links a {
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #3b82f6;
    transform: translateX(4px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    transform: translateY(-50%) scale(1);
}

/* Icon Animations */
.icon-hover {
    transition: all 0.2s ease;
}

.icon-hover:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Social Media Icons */
.social-icon {
    transition: all 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.15) rotate(5deg);
    background: #3b82f6;
    color: white;
}

/* Form Input Animations */
.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Enhanced Form Animations */
input,
textarea,
select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus,
textarea:focus,
select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
    outline: none;
}

/* Form Validation States */
.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success Animation */
@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.success-pulse {
    animation: successPulse 0.6s ease-in-out;
    background-color: #10b981 !important;
    color: white !important;
}

/* Shake Animation for Errors */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Button shake animation for validation errors */
.btn.shake {
    animation: buttonShake 0.6s ease-in-out;
}

@keyframes buttonShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-8px) scale(1.02);
    }

    20% {
        transform: translateX(8px) scale(1.02);
    }

    30% {
        transform: translateX(-6px) scale(1.01);
    }

    40% {
        transform: translateX(6px) scale(1.01);
    }

    50% {
        transform: translateX(-4px) scale(1.005);
    }

    60% {
        transform: translateX(4px) scale(1.005);
    }

    70% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }

    90% {
        transform: translateX(-1px);
    }
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.pulse {
    animation: pulse 1.5s infinite;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Toast Notifications */
.toast {

    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.info {
    background: #3b82f6;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Floating Elements Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Slide Up Fade Animation */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up-fade {
    animation: slideUpFade 0.8s ease-out both;
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.5s ease-out both;
}

/* Bounce Animation */
@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateY(0);
    }

    40%,
    43% {
        transform: translateY(-10px);
    }

    70% {
        transform: translateY(-5px);
    }

    90% {
        transform: translateY(-2px);
    }
}

.bounce {
    animation: bounce 1s ease;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out both;
}

/* Slide In from Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out both;
}

/* Slide In from Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out both;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }

    .company-info {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }

    .bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .legal-links {
        order: -1;
    }

    /* Mobile side-by-side layout for Quick Links and Our Machines */
    .footer-links-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-links-wrapper .footer-section {
        margin: 0;
    }

    /* Hide Get Quote button from mobile menu only, not from sticky CTA */
    .mobile-menu-footer .mobile-cta-btn {
        display: none !important;
    }


}

@media (max-width: 480px) {
    .footer-content {
        padding: 1.5rem 0;
    }

    .newsletter-form {
        flex-direction: row;
    }

    /* .newsletter-form button {
        width: 100%;
    } */
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 0 2rem;
    }
}

/* Laptop/Desktop specific adjustments for 100% zoom */
@media (min-width: 1024px) and (max-width: 1440px) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 0;
    }

    .hero-container {
        gap: 1.5rem;
        min-height: 100vh;
    }

    .hero-content h1 {
        font-size: 3.2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        margin-bottom: 1rem;
    }

    .machinery-showcase {
        gap: 1rem;
        max-width: 300px;
    }

    .machine-card {
        padding: 1.5rem;
    }

    .machine-icon {
        width: 50px;
        height: 50px;
    }

    .machine-card h4 {
        font-size: 1rem;
    }

    .machine-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hero {
        /* Use min-height with mobile viewport units for better mobile support */
        min-height: calc(100vh - 60px);
        /* Account for 60px header */
        height: auto;
        /* Allow content to expand */
        padding: 0;
        /* Remove padding from hero section */
        padding-top: 60px;
        /* Only add top padding equal to header height */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        min-height: auto;
        /* Remove fixed height constraints */
        align-items: flex-start;
        /* Start from top instead of center */
        padding: 0;
        margin: 0;
        padding-top: 5rem !important;
        padding-right: 20rem !important;
        /* Proper mobile padding: top right bottom */
    }

    .hero-visual {
        justify-content: center;
        padding-left: 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.15;
    }

    .hero-stats {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: nowrap;
    }

    .trust-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stock-filters {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 100%;
        padding: 0 1rem;
    }

    .company-dropdown {
        max-width: 200px;
    }

    .company-dropdown-btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .filter-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
        max-width: 500px;
    }

    .filter-buttons {
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .filter-btn {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .filter-buttons {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.5rem;
    }

    /* Sub Type Filter Responsive */
    .subtype-filter {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin-top: 1rem;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .subtype-filter.show {
        max-height: 400px;
        padding-top: 1rem;
    }

    .subtype-filter h4 {
        font-size: 1rem;
    }

    .subtype-filter .filter-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .subtype-filter-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        margin: 0.2rem;
    }

    .filter-group:first-child {
        padding-bottom: 0;
    }

    /* Form responsive styles */
    .form-row {
        grid-template-columns: 1fr;
    }

    .captcha-challenge {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    #captchaText {
        min-width: auto;
        width: 100%;
    }

    .refresh-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero {
        /* Ensure full content visibility on small screens */
        min-height: calc(100vh - 60px - 64px);
        /* Account for header + bottom nav */
        padding: 0;
        /* Remove padding from hero section */
        padding-top: 60px;
        /* Only header height padding */
    }

    .hero-container {
        padding: 1.5rem 16px 2rem;
        /* Proper small screen padding: top right bottom */
        gap: 1.5rem;
        /* Tighter spacing */
    }

    .hero-content h1 {
        font-size: var(--font-size-4xl);
        line-height: 1.15;
        letter-spacing: var(--tracking-tight);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
        line-height: var(--leading-relaxed);
    }

    .hero-buttons .btn {
        padding: 1rem 1.5rem;
        font-size: var(--font-size-sm);
        letter-spacing: var(--tracking-normal);
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .machinery-showcase {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overscroll-behavior: none;
}

body {
    overscroll-behavior: none;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
}

/* Prevent any over-scroll behavior */
* {
    overscroll-behavior: none;
}

/* Ensure hero section starts at the very top */
.hero {
    margin-top: 0;
    scroll-margin-top: 0;
    position: relative;
    top: 0;
    margin-bottom: 0;
}

/* Force hero to stick to header */
.header+.hero {
    margin-top: 0;
    padding-top: 0;
}

/* Mobile viewport height fix for iOS Safari and other mobile browsers */
@supports (height: 100dvh) {
    @media (max-width: 768px) {
        .hero {
            min-height: calc(100dvh - 60px);
            /* Use dynamic viewport height */
        }
    }

    @media (max-width: 480px) {
        .hero {
            min-height: calc(100dvh - 60px - 64px);
            /* Account for bottom nav */
        }
    }
}

/* Remove any default spacing */
section.hero {
    margin: 0;
    padding: 0;
}

/* Prevent any spacing issues */
body {
    margin: 0;
    padding: 0;
}

/* Remove white space after footer */
html,
body {
    margin: 0;
    padding: 0;
}

.footer {
    margin-top: auto;
}

/* Ensure no white space after footer */
.footer-bottom {
    margin-bottom: 0;
}

/* Remove any extra spacing */
* {
    box-sizing: border-box;
}

/* Force footer to be at bottom with no white space */
body {
    margin: 0;
    padding: 0;
}

.footer {
    margin-top: auto;
}

/* Remove any potential white space */
.footer-bottom {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure no extra space after footer */
.footer::after {
    display: none;
}

/* Remove any potential margin/padding from last elements */
.footer *:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Ensure floating buttons are completely independent */
.back-to-top,
.whatsapp-float {
    position: fixed !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    transform-origin: center !important;
}



/* Aggressive white space removal */
html,
body {
    overflow-x: hidden;
}

/* Ensure no white space after footer - aggressive approach */
.footer {
    position: relative;
}

.footer::after {
    content: '';
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

/* Remove any potential spacing from body and html */
body {
    margin: 0 !important;
    padding: 0 !important;
}

html {
    margin: 0 !important;
    padding: 0 !important;
}

html {
    margin: 0;
    padding: 0;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error states */
.success {
    color: #10b981;
}

.error {
    color: #ef4444;
}

/* Modal Styles */
.modal {
    display: none !important;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease-out;
}

.modal[style*="display: block"] {
    display: block !important;
}

#machineModal {
    display: none !important;
}

#machineModal[style*="display: block"] {
    display: block !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 300;
}

.modal-close:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    transform: rotate(90deg) scale(1.1);
    border-color: #dc2626;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.modal-body {
    padding: 1.5rem 2rem;
    background: #ffffff;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.machine-details-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: auto auto;
    gap: .5rem;
    position: relative;
    height: 100%;
}

.machine-details-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 57%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, #e2e8f0 20%, #e2e8f0 80%, transparent 100%);
}

.machine-image-section {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding-right: 1.5rem;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.main-image:hover {
    transform: scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.3);
}

.main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image:hover::before {
    opacity: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-image:hover img {
    transform: scale(1.05);
}

.image-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    max-width: 100%;
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.image-gallery::-webkit-scrollbar {
    height: 6px;
}

.image-gallery::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.image-gallery::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 3px;
}

.image-gallery::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.1) rotate(2deg);
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.gallery-thumb:hover::before {
    opacity: 1;
}

.gallery-thumb.active {
    border-color: #1d4ed8;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

.gallery-thumb.active::before {
    opacity: 0.3;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.machine-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    grid-column: 2;
    grid-row: 1/-1;
    padding-left: 1.5rem;
    position: relative;
    min-height: 0;
}

/* .machine-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
    animation: slideDown 0.6s ease-out 0.3s both; }*/


@keyframes slideDown {
    from {
        height: 0;
        opacity: 0;
    }

    to {
        height: 60px;
        opacity: 1;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    flex: 1;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.info-item:hover::before {
    transform: scaleX(1);
}

.info-item.full-width {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    padding: 1.5rem;
}

.info-item.full-width::before {
    height: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.info-item.full-width:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(16, 185, 129, 0.2);
}

.info-item label {
    font-weight: 700;
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.info-item:hover label {
    color: #3b82f6;
}

.info-item span {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.info-item:hover span {
    color: #0f172a;
    transform: translateX(2px);
}

.info-item p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.info-item.full-width:hover p {
    color: #475569;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    max-height: 8vh;
    margin-top: 1rem;
    padding: .5rem 2rem;
    padding-bottom: 0;
    border-top: 2px solid #f1f5f9;
    animation: fadeInUp 0.6s ease-out 0.4s both;
    background: #ffffff;
    flex-shrink: 0;
}

.modal-actions .btn {
    flex: 1;
    padding: 0rem 1.5rem !important;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-actions .btn::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;
}

.modal-actions .btn:hover::before {
    left: 100%;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.modal-actions .btn-outline {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    color: #64748b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.modal-actions .btn-outline:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
    color: #475569;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive Modal - comprehensive styles defined in Enhanced Responsive Design section below */

/* Gallery thumbnail styles */
.gallery-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.gallery-thumbnail:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Image counter styles */
.image-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

/* Image navigation buttons */
.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.image-nav-btn.prev {
    left: 10px;
}

.image-nav-btn.next {
    right: 10px;
}

.main-image:hover .image-nav-btn {
    opacity: 1;
}

.image-nav-btn:hover {
    background: rgba(59, 130, 246, 0.8);
    border-color: rgba(59, 130, 246, 1);
    transform: translateY(-50%) scale(1.1);
}

.info-grid {
    height: 100%;
    grid-template-columns: 1fr 1fr;
}

.modal-actions {
    flex-direction: row;
    grid-row: 2;
}


/* Custom Dropdown Styling - Matching Navigation Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
    color: #1e293b;
    font-family: inherit;
    min-height: 48px;
    box-sizing: border-box;
}

.dropdown-selected.selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dropdown-selected:hover {
    border-color: #d1d5db;
}

.dropdown-selected.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dropdown-text {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    color: #6b7280;
    font-size: 14px;
    transition: transform 0.2s ease, color 0.2s ease;
    margin-left: 8px;
}

.dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
    color: #2563eb;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

.dropdown-option.selected {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

/* Search input styling */
.dropdown-search {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: white;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* Hide the hidden input */
.custom-dropdown input[type="hidden"] {
    display: none;
}

/* ============================================
   Dropdown Trigger & Content Styling
   (For .dropdown-trigger and .dropdown-content structure)
   ============================================ */

.dropdown-trigger {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
    color: #1e293b;
    font-family: inherit;
    min-height: 48px;
    box-sizing: border-box;
    text-align: left;
}

.dropdown-trigger:hover {
    border-color: #d1d5db;
}

.custom-dropdown.active .dropdown-trigger {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    color: #2563eb;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.custom-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* No results message for stock filter dropdowns */
.dropdown-content .no-results {
    padding: 12px 20px;
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    font-size: 14px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float a {
    color: white;
    font-size: 22px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Hide floating buttons on mobile since they're in the mobile CTA bar */
@media (max-width: 768px) {

    .whatsapp-float,
    .back-to-top {
        display: none !important;
    }

    /* Note: Mobile CTA bar with WhatsApp, Get Quote, and Back to Top buttons 
       is shown via .sticky-mobile-cta { display: flex; } in the CTA section media query */
}

/* Extra small screens - floating buttons already hidden above */
@media (max-width: 480px) {

    /* Machine modal adjustments for very small screens */
    .modal-content {
        width: 100%;
        max-height: 94vh;
        border-radius: 0;
        margin: 3vh auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .modal-header {
        padding: 1.5rem 1rem 0.75rem 1rem;
        flex-shrink: 0;
    }

    .modal-header h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .modal-body {
        padding: 1rem 1rem 1.5rem 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        min-height: 0;
    }

    .machine-details-grid {
        gap: 1.25rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .main-image {
        height: 200px;
        border-radius: 8px;
    }

    .gallery-thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .image-gallery {
        padding: 0.5rem 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .info-item {
        padding: 0.625rem;
    }

    .info-item label {
        font-size: 0.8125rem;
    }

    .info-item span {
        font-size: 0.9375rem;
    }

    .modal-actions {
        margin-top: 1rem;
        gap: 0.75rem;
    }

    .modal-actions .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    /* Image navigation adjustments for very small screens - always visible */
    .image-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.7);
    }

    .image-nav-btn.prev {
        left: 5px;
    }

    .image-nav-btn.next {
        right: 5px;
    }

    /* Bigger gallery thumbnails on very small screens */
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }

    .image-counter {
        bottom: 5px;
        right: 5px;
        padding: 2px 5px;
        font-size: 10px;
    }
}

.modal-content {
    width: 98%;
    max-height: 95vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-body {
    padding: 1rem;
}

.modal-header {
    padding: 1rem;
}

/* Advanced Typography Enhancements */

/* Improved text selection */
::selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: #1f2937;
}

::-moz-selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: #1f2937;
}

/* Enhanced focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Typography animations */
@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-text {
    animation: textFadeIn 0.6s ease-out forwards;
}

/* Enhanced link styles */
.enhanced-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.enhanced-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transition: width 0.3s ease;
}

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

.enhanced-link:hover {
    color: #1d4ed8;
}

/* Improved quote styling */
blockquote {
    font-family: var(--font-serif);
    font-size: var(--font-size-xl);
    line-height: var(--leading-relaxed);
    color: #374151;
    border-left: 4px solid #2563eb;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

/* Enhanced code styling */
code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875em;
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #1f2937;
}

/* Improved list styling */
ul,
ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: var(--leading-relaxed);
}

/* Enhanced table typography */
table {
    font-feature-settings: 'tnum' 1;
}

th {
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    font-size: var(--font-size-sm);
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
    :root {
        --font-size-6xl: 2.5rem;
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
    }

    .prose {
        max-width: none;
    }

    blockquote {
        font-size: var(--font-size-lg);
        padding-left: 1rem;
        margin: 1.5rem 0;
    }
}

/* Print styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #000;
        page-break-after: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }
}

/* Parent dropdown items are now clickable for category selection */
.dropdown-parent,
.mobile-nav-parent {
    cursor: pointer;
}

.dropdown-parent:hover,
.mobile-nav-parent:hover {
    cursor: pointer;
}

/* No Results Message */
.no-results-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.no-results-message h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: var(--tracking-tight);
}

.no-results-message p {
    font-size: var(--font-size-lg);
    color: #6b7280;
    line-height: var(--leading-relaxed);
    margin-bottom: 0;
}

.contact-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: #1d4ed8;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .no-results-message {
        min-height: 40vh;
    }

    .no-results-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .no-results-message h3 {
        font-size: var(--font-size-2xl);
    }

    .no-results-message p {
        font-size: var(--font-size-base);
    }
}

/* Mobile landscape orientation fix */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: calc(100vh - 60px);
        /* Smaller height for landscape */
        padding: 0;
        /* Remove padding */
        padding-top: 60px;
        /* Only header height */
    }

    .hero-container {
        gap: 1rem;
        /* Tighter spacing in landscape */
        padding: 0.5rem 16px 1rem;
        /* Minimal padding for landscape */
    }

    .hero-content h1 {
        font-size: 2.2rem;
        /* Smaller heading for landscape */
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-stats {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
}

/* Very small screens in landscape (like iPhone SE) */
@media (max-width: 480px) and (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: calc(100vh - 60px - 64px);
        padding: 0;
        /* Remove padding */
        padding-top: 60px;
        /* Only header height */
    }

    .hero-container {
        gap: 0.5rem;
        padding: 0.25rem 16px 0.5rem;
        /* Minimal padding for very small landscape */
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.25rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .hero-stats {
        flex-direction: row;
        /* Horizontal in landscape */
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-buttons {
        flex-direction: row;
        /* Horizontal buttons in landscape */
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-buttons .btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}


.color-black {
    color: #000;
}

/* Enhanc
ed Contact Section Touch Interactions */
@media (max-width: 768px) {

    /* Add touch feedback for contact items */
    .contact-item {
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
        cursor: pointer;
        flex-direction: row;
    }

    /* Improve touch targets for contact links */
    .contact-link {
        min-height: 44px;
        /* Minimum touch target size */
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
    }

    /* Add visual feedback for phone and email links */
    .contact-item:has(.contact-link[href^="tel:"]) {
        position: relative;
    }

    .contact-item:has(.contact-link[href^="tel:"]):hover::after {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        color: #10b981;
        font-weight: 500;
        opacity: 0.8;
    }

    .contact-item:has(.contact-link[href^="mailto:"]) {
        position: relative;
    }

    .contact-item:has(.contact-link[href^="mailto:"]):hover::after {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        color: #10b981;
        font-weight: 500;
        opacity: 0.8;
    }
}

/* Accessibility improvements */
.contact-link {
    position: relative;
    outline: none;
}

.contact-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

.contact-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Screen reader improvements */
.contact-link[href^="tel:"]::before {
    content: "Phone: ";
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-link[href^="mailto:"]::before {
    content: "Email: ";
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* WhatsApp Contact Styling */
.contact-item:has(.whatsapp-link) i {
    color: #25d366;
    /* WhatsApp green */
    background: rgba(37, 211, 102, 0.1);
}

.contact-item:has(.whatsapp-link):hover {
    background: rgba(37, 211, 102, 0.05);
    border-color: rgba(37, 211, 102, 0.2);
}

.contact-item:has(.whatsapp-link):hover i {
    background: rgba(37, 211, 102, 0.15);
}

.whatsapp-link:hover {
    color: #25d366;
}

@media (max-width: 768px) {
    .contact-item:has(.whatsapp-link):hover::after {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        color: #25d366;
        font-weight: 500;
        opacity: 0.8;
    }

    .stat-item {
        margin: 0 .5rem;
    }

    .hero-stats {
        margin-left: .7rem !important;
        margin-right: .7rem !important;
    }
}

/* 
Phone Contact Styling */
.contact-item:has(.contact-link[href^="tel:"]) i {
    color: #10b981;
    /* Green for phone */
    background: rgba(16, 185, 129, 0.1);
}

.contact-item:has(.contact-link[href^="tel:"]):hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.contact-item:has(.contact-link[href^="tel:"]):hover i {
    background: rgba(16, 185, 129, 0.15);
}

/* Email Contact Styling */
.contact-item:has(.contact-link[href^="mailto:"]) i {
    color: #f59e0b;
    /* Amber for email */
    background: rgba(245, 158, 11, 0.1);
}

.contact-item:has(.contact-link[href^="mailto:"]):hover {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}

.contact-item:has(.contact-link[href^="mailto:"]):hover i {
    background: rgba(245, 158, 11, 0.15);
}

/* Address Contact Styling */
.contact-item:has(i.fa-map-marker-alt) i {
    color: #ef4444;
    /* Red for location */
    background: rgba(239, 68, 68, 0.1);
}

.contact-item:has(i.fa-map-marker-alt):hover {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.contact-item:has(i.fa-map-marker-alt):hover i {
    background: rgba(239, 68, 68, 0.15);
}

/* Contac
t Icon Animations */
@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.contact-item:hover i {
    animation: iconPulse 0.6s ease-in-out;
}

/* Enhanced desktop layout for contact details */
@media (min-width: 1024px) {
    .contact-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .contact-item:nth-child(4) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Large desktop layout */
@media (min-width: 1200px) {
    .contact-details {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .contact-item:nth-child(4) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }
}

/* Enhanc
ed Active States for Contact Types */

/* Phone Contact Active State */
.contact-item:has(.contact-link[href^="tel:"]):active {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    transition: all 0.15s ease;
}

.contact-item:has(.contact-link[href^="tel:"]):active i {
    background: rgba(16, 185, 129, 0.25) !important;
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.15s ease;
}

/* Email Contact Active State */
.contact-item:has(.contact-link[href^="mailto:"]):active {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
    transition: all 0.15s ease;
}

.contact-item:has(.contact-link[href^="mailto:"]):active i {
    background: rgba(245, 158, 11, 0.25) !important;
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    transition: all 0.15s ease;
}

/* WhatsApp Contact Active State */
.contact-item:has(.whatsapp-link):active {
    background: rgba(37, 211, 102, 0.08) !important;
    border-color: rgba(37, 211, 102, 0.3) !important;
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    transition: all 0.15s ease;
}

.contact-item:has(.whatsapp-link):active i {
    background: rgba(37, 211, 102, 0.25) !important;
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    transition: all 0.15s ease;
}

/* Address Contact Active State */
.contact-item:has(i.fa-map-marker-alt):active {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
    transition: all 0.15s ease;
}

.contact-item:has(i.fa-map-marker-alt):active i {
    background: rgba(239, 68, 68, 0.25) !important;
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    transition: all 0.15s ease;
}

/* Mobile-specific active states for better touch feedback */
@media (max-width: 768px) {
    .contact-item:active {
        transform: translateY(-1px) scale(0.97);
        box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
    }

    .contact-item:active i {
        transform: scale(0.9);
    }

    /* Add haptic-like feedback with subtle animation */
    .contact-item:active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
        border-radius: 16px;
        opacity: 0;
        animation: tapRipple 0.3s ease-out;
        pointer-events: none;
    }
}

/* Ripple animation for tap feedback */
@keyframes tapRipple {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* Enhanced focus states for accessibility */
.contact-item:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-color: rgba(37, 99, 235, 0.3);
}

.contact-link:focus {
    outline: none;
    /* Remove default outline since parent handles it */
}

/* Improved touch targets for mobile */
@media (max-width: 480px) {
    .contact-item {
        min-height: 80px;
        /* Ensure adequate touch target */
        position: relative;
        overflow: hidden;
        /* For ripple effect */
    }

    .contact-item:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }

    .contact-item:active i {
        transform: scale(0.85);
        transition: transform 0.1s ease;
    }
}

/* Enhanc
ed Contact Link Interactions */
.contact-link {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-link:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Add subtle background on link hover */
.contact-link:hover {
    background: rgba(37, 99, 235, 0.05);
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
}

/* Phone link specific styling */
.contact-link[href^="tel:"]:hover {
    background: rgba(16, 185, 129, 0.05);
    color: #10b981;
}

.contact-link[href^="tel:"]:active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* Email link specific styling */
.contact-link[href^="mailto:"]:hover {
    background: rgba(245, 158, 11, 0.05);
    color: #f59e0b;
}

.contact-link[href^="mailto:"]:active {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* WhatsApp link specific styling */
.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.05);
    color: #25d366;
}

.whatsapp-link:active {
    background: rgba(37, 211, 102, 0.1);
    color: #22c55e;
}

/* Add loading state for contact actions */
.contact-item.loading {
    pointer-events: none;
    opacity: 0.7;
}

.contact-item.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Success feedback animation */
.contact-item.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* En
hanced CTA Contact Cards */
@media (min-width: 769px) {
    .contact-options {
        justify-content: center;
        max-width: 900px;
        margin: 0 auto 2.5rem;
    }

    .contact-item {
        flex: 1;
        max-width: 280px;
        min-width: 260px;
    }
}

/* Tablet specific adjustments */
@media (max-width: 768px) and (min-width: 481px) {
    .contact-options {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .contact-item {
        flex: 1;
        min-width: 200px;
        max-width: 300px;
        flex-direction: row;
        text-align: left;
        padding: 1rem;
        gap: 1rem;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
    }

    .contact-icon i {
        font-size: 1.2rem;
    }

    .contact-details {
        text-align: left;
    }

    .contact-label {
        font-size: 0.875rem;
    }

    .contact-value {
        font-size: 1rem;
    }
}

/* Active states for CTA contact items */
.contact-item:active {
    transform: translateY(-1px) scale(0.98);
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.15s ease;
}

.contact-item:active .contact-icon {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
}

/* Add subtle animation for contact values */
.contact-value {
    position: relative;
    overflow: hidden;
}

.contact-value::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.contact-value:hover::after {
    width: 100%;
}

/* Mobile Hero Content Safety - Ensure content never goes under header */
@media (max-width: 768px) {
    .hero-content {
        margin-top: 0;
        padding-top: 0;
    }

    .hero-content h1 {
        margin-top: 0;
        padding-top: 0;
    }

    /* Ensure hero section starts exactly after header */
    .hero {
        margin-top: 0;
        position: relative;
        top: 0;
    }

    /* Add safety margin for notched phones */
    @supports (padding-top: env(safe-area-inset-top)) {
        .hero {
            padding-top: calc(60px + env(safe-area-inset-top));
        }
    }
}

/* Additional safety for very small screens */
@media (max-width: 480px) {
    .hero-container {
        /* Ensure minimum spacing from top */
        min-height: auto;
        padding-top: max(1.5rem, env(safe-area-inset-top, 0px));
    }
}

/* Debug helper - remove in production */
@media (max-width: 768px) {
    .hero-container {
        /* Visual indicator for debugging - can be removed */
        position: relative;
    }

    .hero-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: rgba(255, 0, 0, 0.3);
        z-index: 1000;
        /* Remove this debug line in production */
        display: none;
    }
}


@media (max-width: 768px) {


    .hero-container {


        padding: 6rem 0 6rem 0 !important;
        margin: 0 !important;

    }

}

/* Mobile Brand Logos Grid Styling */
@media (max-width: 768px) {
    .brand-logo {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        text-align: center;
        min-width: 0;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Small screen specific adjustments */
@media (max-width: 480px) {
    .brand-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        max-width: 350px;
        padding: 0 1rem;
    }

    .brand-logo {
        font-size: 0.7rem;
        padding: 0.35rem 0.5rem;
        border-radius: 6px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .brand-logos {
        gap: 0.5rem;
        max-width: 320px;
    }

    .brand-logo {
        font-size: 0.65rem;
        padding: 0.3rem 0.4rem;
    }
}

/* Ensur
e proper alignment for 8 brand items in 3-column grid */
@media (max-width: 768px) {
    .brand-logos {
        /* With 8 items in 3 columns, we get 3-3-2 layout */
        /* Add slight adjustment for better visual balance */
        align-items: start;
    }

    /* Style the last row items (7th and 8th) to center them */
    .brand-logo:nth-child(7),
    .brand-logo:nth-child(8) {
        grid-column: span 1;
    }

    /* Center the last row if needed */
    .brand-logo:nth-child(7) {
        grid-column: 1 / 2;
    }

    .brand-logo:nth-child(8) {
        grid-column: 3 / 4;
    }
}

/* Alternative layout for better balance on very small screens */
@media (max-width: 360px) {
    .brand-logos {
        /* Adjust grid for better fit on very small screens */
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .brand-logo:nth-child(7) {
        grid-column: 1 / 3;
        /* Span 2 columns */
        justify-self: center;
    }

    .brand-logo:nth-child(8) {
        grid-column: 3 / 4;
        justify-self: center;
    }
}

/* Mobile
 Stock Section - 3 Column Grids */
@media (max-width: 768px) {

    /* Stock Grid - Single column on mobile */
    .stock-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
    }

    /* Filter Buttons - 3 columns on mobile */
    .filter-buttons {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        max-width: 100%;
        margin: 0 auto;
        justify-items: center;
        padding: 0 1rem;
    }

    /* Sub Type Filter Buttons - 3 columns on mobile */
    .subtype-filter .filter-buttons {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        max-width: 100%;
        margin: 0 auto;
        justify-items: center;
        padding: 0 1rem;
    }

    /* Company Dropdown - Centered */
    .company-dropdown-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .company-dropdown {
        max-width: 280px;
        width: 100%;
    }

    /* Filter Group Centering */
    .filter-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .filter-group h4 {
        margin-bottom: 1rem;
        text-align: center;
    }

    /* Sub Type Filter Centering */
    .subtype-filter {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        margin-top: 1rem;
        padding: 1rem;
    }

    .subtype-filter h4 {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Small Mobile Devices - Optimized 3 Column Layout */
@media (max-width: 480px) {

    /* Stock Grid - Single column on small mobile */
    .stock-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    /* Filter Buttons - Compact 3 column layout */
    .filter-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0 0.75rem;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Sub Type Filter Buttons - Compact 3 column layout */
    .subtype-filter .filter-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0 0.75rem;
    }

    .subtype-filter-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Company Dropdown - Smaller on mobile */
    .company-dropdown {
        max-width: 250px;
    }

    .company-dropdown-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }
}

/* Very Small Devices - Ultra Compact */
@media (max-width: 360px) {
    .stock-grid {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .filter-buttons {
        gap: 0.4rem;
        padding: 0 0.5rem;
    }

    .filter-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.3rem;
    }

    .subtype-filter .filter-buttons {
        gap: 0.4rem;
        padding: 0 0.5rem;
    }

    .subtype-filter-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.3rem;
    }

    .company-dropdown {
        max-width: 220px;
    }
}

/* Mobile Stock Items - Optimized for Single Column */
@media (max-width: 768px) {
    .stock-item {
        min-height: auto;
        font-size: 1rem;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .stock-item h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .stock-item .company {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .stock-item .details {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .stock-item .price {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .stock-item .status {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .stock-item {
        min-height: auto;
        font-size: 0.95rem;
        padding: 1rem;
        max-width: 400px;
    }

    .stock-item h3 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .stock-item .company {
        font-size: 0.85rem;
    }

    .stock-item .details {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .stock-item .price {
        font-size: 1rem;
    }

    .stock-item .status {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 360px) {
    .stock-item {
        min-height: auto;
        padding: 0.9rem;
        max-width: 350px;
    }

    .stock-item h3 {
        font-size: 1rem;
    }

    .stock-item .company {
        font-size: 0.8rem;
    }

    .stock-item .details {
        font-size: 0.85rem;
    }

    .stock-item .price {
        font-size: 0.95rem;
    }
}

/* Mobile Stock Section - Overall Layout Centering */
@media (max-width: 768px) {

    /* Stock Section Container */
    .stock-section {
        padding: 2rem 0;
        text-align: center;
    }

    .stock-section .container {
        max-width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
    }

    /* Section Title Centering */
    .stock-section h2 {
        text-align: center;
        margin-bottom: 2rem;
    }

    /* Filter Controls Container */
    .filter-controls {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
        width: 100%;
    }

    /* Ensure all filter elements are centered */
    .filter-group,
    .company-dropdown-group,
    .subtype-filter {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* No Results Message Centering */
    .no-results-message {
        text-align: center;
        margin: 2rem auto;
        max-width: 300px;
    }
}

/* Tablet Specific Adjustments */
@media (max-width: 768px) and (min-width: 481px) {
    .stock-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .filter-buttons {
        max-width: 500px;
        margin: 0 auto;
    }

    .company-dropdown {
        max-width: 300px;
    }
}

/* Ensure proper spacing and alignment */
@media (max-width: 768px) {

    /* Add proper spacing between filter sections */
    .filter-group+.company-dropdown-group {
        margin-top: 1.5rem;
    }

    .company-dropdown-group+.subtype-filter {
        margin-top: 1.5rem;
    }

    /* Ensure buttons have consistent styling */
    .filter-btn,
    .subtype-filter-btn {
        border-radius: 8px;
        transition: all 0.3s ease;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
    }

    .filter-btn:hover,
    .subtype-filter-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Sim
plified Mobile Menu - Main Navigation Only */
@media (max-width: 768px) {

    /* Allow submenu elements to be visible */
    .mobile-submenu-content {
        display: block;
    }

    .mobile-submenu-toggle {

        display: inline-block;
        margin: 3px 12px !important;
        padding: 6px 42px !important;
    }

    /* Ensure mobile nav items have consistent spacing */
    .mobile-nav-item {
        margin-bottom: 0;
    }

    .mobile-nav-link {
        padding: 1rem 1.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 1rem;
        font-weight: 500;
        color: #374151;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        margin-bottom: 0.5rem;
    }

    .mobile-nav-link:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #2563eb;
        transform: translateX(4px);
    }

    .mobile-nav-link i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        color: #6b7280;
        transition: color 0.3s ease;
    }

    .mobile-nav-link:hover i {
        color: #2563eb;
    }

    /* Ensure proper spacing in simplified menu */
    .mobile-nav-list {
        padding: 1rem 0;
        list-style: none;
        margin: 0;
    }
}

/* Enhanced Mobile Menu - Fixed Dropdown Issues */
@media (max-width: 768px) {

    /* Ensure mobile menu scrolling works properly */
    .mobile-menu {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        max-height: 100vh;
    }

    .mobile-nav {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 2rem;
    }

    /* Mobile submenu - CLOSED by default */
    .mobile-submenu-content {
        list-style: none;
        margin: 0;
        padding: 0;
        background: #f9fafb;
        border-radius: 8px;
        margin: 8px 24px 0;
        overflow: hidden;
        max-height: 0;
        /* CLOSED by default */
        transition: max-height 0.3s ease-out;
    }

    /* Only open when active class is added */
    .mobile-submenu.active .mobile-submenu-content {
        max-height: 400px;
        /* Enough for nested content */
    }

    /* Nested submenu styling */
    .mobile-submenu-content .mobile-submenu-content {
        background: #f1f5f9;
        margin: 4px 12px 0;
        border-left: 2px solid #e5e7eb;
        padding-left: 8px;
    }

    /* Mobile nav sublinks */
    .mobile-nav-sublink {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 12px 20px;
        color: #6b7280;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        border-radius: 4px;
        margin: 2px 4px;
    }

    .mobile-nav-sublink:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #2563eb;
        border-left-color: #2563eb;
    }

    .mobile-nav-sublink i {
        font-size: 14px;
        width: 16px;
        text-align: center;
        color: #9ca3af;
        transition: color 0.3s ease;
    }

    .mobile-nav-sublink:hover i {
        color: #2563eb;
    }

    /* Parent links with dropdowns */
    .mobile-nav-parent {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Dropdown toggle arrows */
    .mobile-submenu-toggle {
        font-size: 12px !important;
        transition: transform 0.3s ease;
        color: #9ca3af;
        margin-left: auto;
        padding: 4px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-submenu.active .mobile-submenu-toggle {
        transform: rotate(180deg);
        color: #2563eb;
    }

    /* Enhanced mobile nav items */
    .mobile-nav-item {
        margin-bottom: 4px;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 24px;
        color: #374151;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Ensure parent links maintain proper layout */
    .mobile-nav-link.mobile-nav-parent {
        justify-content: flex-start;
    }

    .mobile-nav-link.mobile-nav-parent .mobile-submenu-toggle {
        margin-left: auto;
    }

    .mobile-nav-link:hover {
        background: rgba(59, 130, 246, 0.05);
        color: #2563eb;
    }

    .mobile-nav-link i:not(.mobile-submenu-toggle) {
        font-size: 18px;
        width: 20px;
        text-align: center;
        color: #6b7280;
        transition: color 0.3s ease;
    }

    .mobile-nav-link:hover i:not(.mobile-submenu-toggle) {
        color: #2563eb;
    }

    /* Mobile nav list */
    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* Ensure proper spacing and prevent layout issues */
    .mobile-nav-item:last-child {
        margin-bottom: 0;
    }
}

/* Fix for 
mobile menu dropdown icons visibility */
@media (max-width: 768px) {
    .mobile-submenu-toggle {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Ensure proper layout for inventory and other parent items */
    .mobile-nav-item.mobile-submenu .mobile-nav-link {
        display: flex !important;

        align-items: center !important;
    }

    /* Make sure the icon and text are properly spaced */
    .mobile-nav-link .fas:not(.mobile-submenu-toggle) {
        margin-right: 12px;
        flex-shrink: 0;
    }

    /* Ensure dropdown arrow is always visible */
    .mobile-nav-link .mobile-submenu-toggle {
        margin-left: auto;
        flex-shrink: 0;
        display: inline-block !important;
    }
}

/* Completely Fixed Mobile Dropdown System */
@media (max-width: 768px) {

    /* Base dropdown content - always scrollable */
    .mobile-submenu-content {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        background: #f9fafb;
        border-radius: 8px;
        margin: 8px 24px 0;
    }

    /* When dropdown is active/open - main level */
    .mobile-submenu.active>.mobile-submenu-content {
        max-height: 500px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Nested dropdown content - starts closed */
    .mobile-submenu-content .mobile-submenu>.mobile-submenu-content {
        max-height: 0;
        overflow: hidden;
        background: #f1f5f9;
        margin: 4px 12px 0;
        border-left: 2px solid #e5e7eb;
        padding-left: 8px;
    }

    /* When nested dropdown is active */
    .mobile-submenu-content .mobile-submenu.active>.mobile-submenu-content {
        max-height: 250px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure all dropdown items are clickable */
    .mobile-nav-sublink {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 12px 20px;
        color: #6b7280;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        border-radius: 4px;
        margin: 2px 4px;
        cursor: pointer;
        pointer-events: auto;
    }

    .mobile-nav-sublink:hover,
    .mobile-nav-sublink:active {
        background: rgba(59, 130, 246, 0.1);
        color: #2563eb;
        border-left-color: #2563eb;
    }

    /* Parent links in dropdowns */
    .mobile-submenu-content .mobile-nav-parent {
        cursor: pointer;
        pointer-events: auto;
    }

    /* Dropdown toggles */
    .mobile-submenu-toggle {
        cursor: pointer;
        pointer-events: auto;
        padding: 8px;
        margin: -8px;
    }

    /* Ensure main dropdown stays scrollable */
    .mobile-submenu.active .mobile-submenu-content {
        pointer-events: auto;
    }
}

/* Mobile 
Dropdown Final Adjustments */
@media (max-width: 768px) {

    /* Fix alignment - ensure all dropdown items are left-aligned */
    .mobile-nav-sublink,
    .mobile-submenu-content .mobile-nav-parent {
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: center;
    }

    /* Ensure parent links in dropdowns are properly aligned */
    .mobile-submenu-content .mobile-nav-parent {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Fix dropdown arrow rotation animations */
    .mobile-submenu-toggle {
        transition: transform 0.3s ease;
        transform: rotate(0deg);
        /* Down arrow by default */
    }

    /* Rotate arrow when dropdown is open */
    .mobile-submenu.active>.mobile-nav-link .mobile-submenu-toggle,
    .mobile-submenu.active>.mobile-nav-sublink .mobile-submenu-toggle {
        transform: rotate(180deg);
        /* Up arrow when open */
    }

    /* Ensure nested dropdown arrows also rotate properly */
    .mobile-submenu-content .mobile-submenu.active .mobile-submenu-toggle {
        transform: rotate(180deg);
    }

    /* Make sure all dropdown content is left-aligned */
    .mobile-submenu-content {
        text-align: left;
    }

    .mobile-submenu-content ul {
        text-align: left;
    }

    .mobile-submenu-content li {
        text-align: left;
    }
}

/* Mobile Dropdown Enhanced Layout & Interactions */
@media (max-width: 768px) {

    /* Enhanced parent link layout with proper spacing */
    .mobile-nav-parent {
        display: flex !important;
        justify-content: flex-start !important;
        /* Left align content */
        align-items: center !important;
        width: 100% !important;
        position: relative !important;
        cursor: pointer !important;
        text-align: left !important;
        /* Ensure left alignment */
    }

    /* Dropdown toggle positioned to the right with enhanced hit box */
    .mobile-submenu-toggle {
        position: absolute !important;
        right: 16px !important;
        /* Moved closer to edge for better padding */
        top: 50% !important;
        transform: translateY(-50%) rotate(0deg) !important;
        transition: transform 0.3s ease !important;
        cursor: pointer !important;
        padding: 16px 20px !important;
        /* Increased padding for bigger hit box */
        margin: -16px -20px !important;
        /* Negative margin to maintain positioning */
        z-index: 15 !important;
        font-size: 16px !important;
        /* Slightly larger icon */
        color: #9ca3af !important;
        background: transparent !important;
        border: none !important;
        min-width: 44px !important;
        /* Ensure minimum touch target */
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Only rotate arrow when the SPECIFIC dropdown is open - not parent */
    .mobile-submenu.active>.mobile-nav-link>.mobile-submenu-toggle,
    .mobile-submenu.active>.mobile-nav-sublink>.mobile-submenu-toggle {
        transform: translateY(-50%) rotate(180deg) !important;
        color: #2563eb !important;
    }

    /* Ensure nested dropdown arrows don't rotate when parent opens */
    .mobile-submenu-content .mobile-submenu .mobile-submenu-toggle {
        transform: translateY(-50%) rotate(0deg) !important;
        color: #9ca3af !important;
    }

    /* Only rotate nested arrows when THEY are specifically active */
    .mobile-submenu-content .mobile-submenu.active>.mobile-nav-sublink>.mobile-submenu-toggle {
        transform: translateY(-50%) rotate(180deg) !important;
        color: #2563eb !important;
    }

    /* Create space between text and dropdown arrow */
    .mobile-nav-parent i:not(.mobile-submenu-toggle) {
        margin-right: 12px !important;
    }

    /* Ensure text doesn't overlap with dropdown arrow */
    .mobile-nav-parent {
        padding-right: 70px !important;
        /* Increased space for larger dropdown arrow */
    }

    /* Fix nested dropdown arrows with enhanced hit box */
    .mobile-submenu-content .mobile-submenu-toggle {
        right: 12px !important;
        font-size: 14px !important;
        /* Slightly larger for better visibility */
        padding: 14px 16px !important;
        /* Increased padding for bigger hit box */
        margin: 3px 12px !important;
        min-width: 40px !important;
        /* Ensure minimum touch target */
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Enhanced hover effects for better UX */
    .mobile-nav-parent:hover {
        background: rgba(59, 130, 246, 0.05) !important;
    }

    .mobile-submenu-toggle:hover {
        background: rgba(59, 130, 246, 0.1) !important;
        border-radius: 8px !important;
        /* Rounded rectangle for better visual */
        color: #2563eb !important;
    }

    /* Active state for dropdown toggles */
    .mobile-submenu-toggle:active {
        background: rgba(59, 130, 246, 0.15) !important;
        transform: translateY(-50%) scale(0.95) !important;
    }

    /* Enhanced visual feedback for nested toggles */
    .mobile-submenu-content .mobile-submenu-toggle:hover {
        background: rgba(59, 130, 246, 0.1) !important;
        border-radius: 6px !important;
        color: #2563eb !important;
    }
}

/*
 Additional Mobile Navigation Alignment Fixes */
@media (max-width: 768px) {

    /* Ensure all mobile nav items are left-aligned */
    .mobile-nav-link,
    .mobile-nav-sublink {
        text-align: left !important;
        justify-content: flex-start !important;
    }

    /* Fix inventory label alignment specifically */
    .mobile-nav-item .mobile-nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .mobile-submenu-toggle {

        display: inline-block;
        margin: 3px 12px !important;
        padding: 14px 12px !important;
    }
}

/* Loading
 and Error States for API-Only Frontend */
.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
}

.loading-message::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 20px 0;
}

.error-message h3 {
    color: #dc2626;
    margin-bottom: 10px;
}

.error-message p {
    color: #7f1d1d;
    margin-bottom: 20px;
}

.no-machines-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    margin: 20px 0;
}

.no-machines-message::before {
    content: '📦';
    font-size: 3rem;
    margin-bottom: 20px;
}

.retry-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.retry-btn:hover {
    background: #2563eb;
}

.retry-btn i {
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Admin Panel Error States */
.admin-section .error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
}

.admin-section .error-message h3 {
    margin-bottom: 15px;
    color: #dc2626;
}

.admin-section .error-message .btn {
    margin-top: 15px;
}

/* Loading states for category badges */
.card-badge.loading {
    background: #f3f4f6;
    color: #9ca3af;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Empty state for stock grid */
.stock-grid:empty::after {
    content: 'Loading machines...';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6b7280;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* API connection status indicator */
.api-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1000;
    transition: all 0.3s ease;
}

.api-status.connected {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.api-status.disconnected {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.api-status.connecting {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}


@media (max-width: 1000px) and (min-width: 768px) {

    .contact-content {
        display: flex;
        flex-direction: column;
    }

    .contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: .2fr 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }


    .contact-details {
        grid-row: 1/-1;
        grid-column: 2 /2;


    }





}

/* 
Dynamic dropdown loading and error states */
.dropdown-loading,
.dropdown-error {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 6px;
    margin: 4px 0;
}

.dropdown-loading {
    color: #6b7280;
    background: #f9fafb;
}

.dropdown-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

.dropdown-error {
    color: #ef4444;
    background: #fef2f2;
}

.dropdown-error i {
    margin-right: 8px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Mobile menu loading states */
.mobile-nav-item .dropdown-loading,
.mobile-nav-item .dropdown-error {
    padding: 8px 12px;
    font-size: 13px;
}

/* Ensure loading states are visible */
.dropdown-menu .dropdown-loading,
.dropdown-menu .dropdown-error {
    list-style: none;
    margin: 0;
}

/* Custom dropdown loading states */
.custom-dropdown .dropdown-loading,
.custom-dropdown .dropdown-error {
    padding: 16px;
    text-align: center;
    border-radius: 8px;
    margin: 8px;
}

/* NEW DROPDOWN-BASED FILTER LAYOUT */
.stock-filters-new {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(229, 231, 235, 0.8);
    overflow: visible;
    position: relative;
    z-index: 10;
}

.filters-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    overflow: visible;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: visible;
    position: relative;
}

.filter-item label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}

/* Search Input */
.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #374151;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    padding: 0.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Clear Button */
.clear-btn {
    padding: 12px 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.clear-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.clear-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .filters-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }

    .search-filter {
        grid-column: 1 / -1;
    }

    .clear-filter {
        grid-column: 2;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .stock-filters-new {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .filters-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .filter-item {
        width: 100%;
    }

    .clear-btn {
        width: 100%;
        justify-content: center;
        grid-column: 1 / -1;
    }
}

/* Loading and Error States */
.filter-select.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='%236b7280' d='M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.filter-select.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Animation for filter changes */
.stock-grid {
    transition: opacity 0.3s ease;
}

.stock-grid.filtering {
    opacity: 0.6;
}

/* 
Enhanced Status Badge Styling */
#modalStatus {
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

#modalStatus::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

#modalStatus:hover::before {
    left: 100%;
}

.status-badge.available {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.status-badge.sold {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

.status-badge.reserved {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
}

.status-badge.under-inspection {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

/* Enhanced Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* Loading Animation for Images */
.main-image img,
.gallery-thumb img {
    opacity: 0;
    animation: imageLoad 0.6s ease-out 0.2s both;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(1.1);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        max-height: 90vh;
        border-radius: 16px;
        margin: 5vh auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .modal-header {
        padding: 2rem 1.5rem 1rem 1.5rem;
        flex-shrink: 0;
    }

    .modal-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .modal-body {
        padding: 1.5rem 1.5rem 2rem 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        min-height: 0;
    }

    .machine-details-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
        grid-template-columns: none !important;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .machine-details-grid::before {
        display: none;
    }

    .machine-image-section,
    .machine-info-section {
        padding: 0;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .machine-image-section {
        order: 1;
    }

    .machine-info-section {
        order: 2;
    }

    .modal-actions {
        order: 3;
    }

    .machine-info-section::before {
        width: 100%;
        height: 4px;
        top: -1rem;
        left: 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-item {
        padding: 1rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        margin-bottom: 3rem;
        order: 3;
    }

    .modal-actions .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }

    /* Mobile-specific machine image section fixes */
    .machine-image-section {
        padding-right: 0;
        gap: 1rem;
    }

    .main-image {
        height: 250px;
        border-radius: 12px;
    }

    .image-gallery {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        justify-content: center;
        padding: 0.75rem 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: rgba(203, 213, 225, 0.5) transparent;
    }

    /* When gallery has many images and needs scrolling, align to start */
    .image-gallery.scrollable {
        justify-content: flex-start;
    }

    .image-gallery::-webkit-scrollbar {
        height: 4px;
    }

    .image-gallery::-webkit-scrollbar-track {
        background: transparent;
    }

    .image-gallery::-webkit-scrollbar-thumb {
        background: rgba(203, 213, 225, 0.5);
        border-radius: 2px;
    }

    .gallery-thumbnail {
        width: 70px;
        height: 70px;
        margin: 0;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    /* Mobile-specific machine info section fixes */
    .machine-info-section {
        padding-left: 0;
        gap: 1rem;
    }

    .machine-info-section::before {
        width: 100%;
        height: 3px;
        top: -0.5rem;
        left: 0;
        border-radius: 1.5px;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .info-item {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .info-item label {
        font-size: 0.875rem;
        font-weight: 600;
    }

    .info-item span {
        font-size: 1rem;
        font-weight: 500;
    }

    /* Image navigation buttons mobile adjustments - always visible */
    .image-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.7);
    }

    .image-nav-btn.prev {
        left: 8px;
    }

    .image-nav-btn.next {
        right: 8px;
    }

    /* Make gallery thumbnails bigger on mobile */
    .gallery-thumbnail {
        width: 70px;
        height: 70px;
    }

    .image-counter {
        bottom: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 11px;
    }

    .main-image {
        height: 250px;
    }

    .gallery-thumb {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 1.5rem 1rem 0.75rem 1rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .info-item {
        padding: 0.875rem;
    }

    .info-item label {
        font-size: 0.8rem;
    }

    .info-item span {
        font-size: 1rem;
    }

    .main-image {
        height: 200px;
        border-radius: 12px;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
        border-radius: 8px;
    }
}

/* Pulse animation for loading states */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth focus states for accessibility */
.modal-close:focus,
.modal-actions .btn:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Enhanced backdrop blur for modern browsers */
@supports (backdrop-filter: blur(10px)) {
    .modal {
        backdrop-filter: blur(10px);
        background-color: rgba(0, 0, 0, 0.4);
    }
}

/* Image Lightbox Styles */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    animation: lightboxFadeIn 0.3s ease-out;
}

.image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 95%;
    height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightboxSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: rgba(239, 68, 68, 1);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.lightbox-image-container img:hover {
    transform: scale(1.02);
}

/* Lightbox counter styles */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.lightbox-nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    opacity: 0.7;
}

.lightbox-nav-btn:hover {
    background: rgba(59, 130, 246, 0.8);
    border-color: rgba(59, 130, 246, 1);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    opacity: 1;
}

.lightbox-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.lightbox-nav-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .lightbox-image-container {
        padding: 3rem 1rem;
    }

    .lightbox-navigation {
        padding: 0 1rem;
    }

    .lightbox-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .lightbox-image-container {
        padding: 2rem 0.5rem;
    }

    .lightbox-navigation {
        padding: 0 0.5rem;
    }

    .lightbox-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .lightbox-counter {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Smooth transitions for lightbox */
.image-lightbox.closing {
    animation: lightboxFadeOut 0.3s ease-out forwards;
}

@keyframes lightboxFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.image-lightbox.closing .lightbox-content {
    animation: lightboxSlideOut 0.3s ease-out forwards;
}

@keyframes lightboxSlideOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Enhanced cursor for clickable images */
.main-image {
    cursor: zoom-in;
    position: relative;
}

/* Clickable zoom button */
.image-zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.8);
    backdrop-filter: blur(10px);
    z-index: 5;
}

.main-image:hover .image-zoom-btn {
    opacity: 1;
    transform: scale(1);
}

.image-zoom-btn:hover {
    background: rgba(59, 130, 246, 0.9);
    border-color: rgba(59, 130, 246, 1);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}



@keyframes zoomIconFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ===
=========================================
   LEGAL MODAL (TERMS & PRIVACY POLICY)
   ============================================ */

.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-modal.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.legal-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-modal.active .legal-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.legal-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.legal-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.legal-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.1);
}

.legal-modal-body {
    padding: 32px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.legal-modal-body h3 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.legal-modal-body ul {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-modal-body li {
    margin-bottom: 0.5rem;
}

.legal-modal-body strong {
    color: #111827;
    font-weight: 600;
}

/* Custom scrollbar for modal content */
.legal-modal-body::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Responsive design */
@media (max-width: 768px) {
    .legal-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .legal-modal-header {
        padding: 20px 24px;
    }

    .legal-modal-header h2 {
        font-size: 1.25rem;
    }

    .legal-modal-body {
        padding: 24px;
        max-height: calc(95vh - 100px);
    }
}

@media (max-width: 480px) {
    .legal-modal-content {
        width: 98%;
    }

    .legal-modal-header {
        padding: 16px 20px;
    }

    .legal-modal-body {
        padding: 20px;
    }
}

/* =====
=======================================
   PHOTO GALLERY SECTION
   ============================================ */

.photo-gallery-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.photo-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="gallery-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(148,163,184,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23gallery-grid)"/></svg>');
    pointer-events: none;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.gallery-eyebrow {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.gallery-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.gallery-description {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    /* Use auto-fill instead of auto-fit to preventing items from stretching too wide when few are visible */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px; /* specific row height for implicit grid */
    grid-auto-flow: dense;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* When filtered, reset layout to simple grid to avoid gaps */
.gallery-grid.filtered .gallery-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
}
.gallery-grid.filtered .gallery-image {
    height: 100% !important;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    /* Ensure item takes full height of grid cell(s) */
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 100%; /* Fill the grid item completely */
    overflow: hidden;
}

/* Remove fixed heights in favor of Grid control, but keep specific content sizing logic if needed fallback */
.gallery-item.large .gallery-image {
    height: 100%;
}

.gallery-item.tall .gallery-image {
    height: 100%;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(29, 78, 216, 0.9));
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    transition: all 0.4s ease 0.3s;
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(15px) scale(1.1);
}

.gallery-item:hover .gallery-content h3,
.gallery-item:hover .gallery-content p,
.gallery-item:hover .gallery-btn {
    transform: translateY(0);
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.filter-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.filter-tab.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.gallery-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.gallery-modal.active .gallery-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gallery-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.gallery-modal-image {
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.gallery-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-modal-info {
    padding: 2rem;
    text-align: center;
}

.gallery-modal-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.gallery-modal-info p {
    color: #64748b;
    font-size: 1rem;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.gallery-nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.gallery-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item.large .gallery-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .photo-gallery-section {
        padding: 4rem 0;
    }

    .gallery-title {
        font-size: 2.5rem;
    }

    .gallery-description {
        font-size: 1.125rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .gallery-item.tall .gallery-image {
        height: 250px;
    }

    .gallery-filters {
        gap: 0.5rem;
    }

    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .gallery-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .gallery-modal-image {
        height: 50vh;
    }

    .gallery-modal-info {
        padding: 1.5rem;
    }

    .gallery-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-header {
        margin-bottom: 2rem;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-modal-nav {
        padding: 0 1rem;
    }
}

/* Tablet screens - optimized layout between mobile and desktop */
@media (max-width: 768px) and (min-width: 481px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .machine-details-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.75rem;
    }

    .machine-image-section,
    .machine-info-section {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .main-image {
        height: 280px;
    }

    .gallery-thumbnail {
        width: 68px;
        height: 68px;
        flex-shrink: 0;
    }

    .image-gallery {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Image navigation always visible on tablet */
    .image-nav-btn {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.7);
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .modal-actions {
        flex-direction: row;
        gap: 1rem;
    }

    .modal-actions .btn {
        flex: 1;
    }
}

/* Mobile modal overlay improvements - removed conflicting styles */

/* Mobile-specific modal close button positioning */
@media (max-width: 480px) {
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
}

/* Mobile
 image gallery overflow prevention */
@media (max-width: 768px) {
    .image-gallery {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .image-gallery::-webkit-scrollbar {
        display: none;
    }

    /* Ensure gallery thumbnails don't wrap awkwardly */
    .image-gallery {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .gallery-thumbnail {
        flex-shrink: 0;
    }
}

/* Very small screens - single row scrollable gallery */
@media (max-width: 480px) {
    .image-gallery {
        padding: 0.25rem 0.5rem;
        gap: 0.375rem;
    }

    .gallery-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* M
obile machine modal - final layout enhancements */
@media (max-width: 768px) {

    /* Ensure proper vertical stacking */
    .machine-details-grid>* {
        width: 100%;
        max-width: 100%;
    }

    /* Add visual separation between sections */
    .machine-image-section {
        padding-bottom: 1rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .machine-info-section {
        padding-top: 1rem;
    }

    /* Improve description readability on mobile */
    .info-item.full-width p {
        line-height: 1.6;
        font-size: 0.9375rem;
        color: #475569;
    }

    /* Ensure buttons are easily tappable */
    .modal-actions .btn {
        min-height: 48px;
        font-weight: 600;
    }
}

/* Very small screens - extra compact */
@media (max-width: 480px) {
    .machine-image-section {
        padding-bottom: 0.75rem;
    }

    .machine-info-section {
        padding-top: 0.75rem;
    }

    .info-item.full-width p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* Mobile safe area adjustments for notched devices */
@media (max-width: 768px) {
    .modal-header {
        padding-top: calc(2rem + env(safe-area-inset-top, 0px));
    }

    .modal-body {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
    }

    .modal-body {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* 
Mobile modal positioning fix - ensure consistent spacing */
@media (max-width: 768px) {
    .modal {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .modal.active {
        display: flex;
    }

    .modal-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 0;
    }
}

/* Mobile image gallery - now properly configured in main mobile sections above */

/* Mobile swipe gesture support for main image */
@media (max-width: 768px) {
    .main-image {
        touch-action: pan-y pinch-zoom;
        user-select: none;
        -webkit-user-select: none;
        cursor: pointer;
    }

    .main-image img {
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
}

/* Mobile lightbox navigation - always visible */
@media (max-width: 768px) {
    .lightbox-nav-btn {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.7);
        border: 2px solid rgba(255, 255, 255, 0.3);
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .lightbox-nav-btn:active {
        background: rgba(59, 130, 246, 0.8);
        transform: scale(0.95);
    }
}

@media (max-width: 480px) {
    .lightbox-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* Mobile
 lightbox swipe support */
@media (max-width: 768px) {
    .lightbox-image-container {
        touch-action: pan-y pinch-zoom;
    }

    .lightbox-image-container img {
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
}

/* Mobil
e inventory dropdown visibility fix */
@media (max-width: 768px) {

    /* Ensure submenu content is visible when active */
    .mobile-submenu.active>.mobile-submenu-content {
        max-height: 600px !important;
        overflow-y: auto;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Ensure sublinks are visible */
    .mobile-submenu-content .mobile-nav-sublink {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #374151 !important;
    }

    /* Ensure nested submenus work */
    .mobile-submenu-content .mobile-submenu.active>.mobile-submenu-content {
        max-height: 400px !important;
        display: block !important;
    }
}

/* CRIT
ICAL FIX: Mobile inventory dropdown visibility - FORCE VISIBLE */
@media (max-width: 768px) {

    /* Force submenu content to be visible when active - WHITE BACKGROUND, DARK TEXT */
    .mobile-submenu.active>.mobile-submenu-content {
        max-height: 1000px !important;
        overflow-y: auto !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #ffffff !important;
        padding: 12px 0 !important;
        margin: 12px 16px !important;
        /* border: 2px solid #2563eb !important; */
        border-radius: 8px !important;
    }

    /* Force ALL links inside submenu to be visible with DARK text */
    .mobile-submenu-content a,
    .mobile-submenu-content .mobile-nav-sublink,
    .mobile-submenu-content .mobile-nav-item a,
    .mobile-submenu-content li a {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #000000 !important;
        background: #ffffff !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        min-height: 44px !important;
        text-decoration: none !important;
        align-items: center !important;
        gap: 12px !important;
    }

    /* Hover state - make it obvious */
    .mobile-submenu-content a:hover {
        background: #dbeafe !important;
        color: #1d4ed8 !important;
    }

    /* Force list items to be visible */
    .mobile-submenu-content li,
    .mobile-submenu-content .mobile-nav-item {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Force icons to be visible */
    .mobile-submenu-content i,
    .mobile-submenu-content .fas {
        opacity: 1 !important;
        visibility: visible !important;
        color: #2563eb !important;
        font-size: 14px !important;
    }

    /* Nested submenus */
    .mobile-submenu-content .mobile-submenu.active>.mobile-submenu-content {
        max-height: 600px !important;
        display: block !important;
        background: #f3f4f6 !important;
        border: 1px solid #d1d5db !important;
    }
}

/* Mo
bile stock filters - Fixed width dropdowns with expandable options */
@media (max-width: 768px) {
    .stock-filters-new .custom-dropdown {
        position: relative;
        width: 100%;
        min-width: 0;
    }

    /* Fixed width for dropdown trigger - doesn't change based on content */
    .stock-filters-new .dropdown-trigger {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    /* Text truncation to prevent width changes */
    .stock-filters-new .dropdown-text {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    /* Dropdown options can expand beyond parent width */
    .stock-filters-new .dropdown-content {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 100%;
        width: max-content;
        max-width: 90vw;
        z-index: 1000;
    }

    /* Ensure dropdown options are readable */
    .stock-filters-new .dropdown-option {
        white-space: nowrap;
        padding: 12px 16px;
    }

    /* Clear button in grid */
    .stock-filters-new .clear-btn {
        width: 100%;
        min-width: 0;
    }
}

/* CRITIC
AL FIX: Mobile stock filters - FORCE fixed width dropdowns */
@media (max-width: 768px) {

    /* Force grid items to stay in their cells but allow dropdown to overflow */
    .stock-filters-new .filter-item {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    /* Force dropdown container to stay within grid cell but allow content to overflow */
    .stock-filters-new .custom-dropdown {
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    /* FORCE fixed width for dropdown trigger - NEVER changes */
    .stock-filters-new .dropdown-trigger {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        overflow: hidden !important;
    }

    /* FORCE text truncation to prevent width changes */
    .stock-filters-new .dropdown-text {
        flex: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* Arrow stays fixed size */
    .stock-filters-new .dropdown-arrow {
        flex-shrink: 0 !important;
        margin-left: 8px !important;
    }

    /* Dropdown options can expand beyond parent width */
    .stock-filters-new .dropdown-content {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        min-width: 100% !important;
        width: max-content !important;
        max-width: 90vw !important;
        z-index: 1000 !important;
    }

    /* Ensure dropdown options are readable */
    .stock-filters-new .dropdown-option {
        white-space: nowrap !important;
        padding: 12px 16px !important;
    }

    /* Clear button in grid */
    .stock-filters-new .clear-btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Force filters-row grid to maintain structure */
    .stock-filters-new .filters-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
}
/* FIX: Mobile Hero Section Cutoff - Added by Assistant */
@media (max-width: 768px) {
    section.hero {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        padding-bottom: 2rem !important;
    }

    .hero-container {
        height: auto !important;
        min-height: 100% !important;
        overflow: visible !important;
    }
    
    .hero-background {
        height: 100% !important;
        min-height: 100vh !important;
        position: absolute !important;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
    }

    .hero-content {
        padding-top: 140px !important; /* Space for fixed header */
        margin-top: 0 !important;
    }

    /* Ensure gears cover the full expanded height */
    .gears-container {
        height: 100% !important;
        min-height: 100vh !important;
        position: absolute !important;
    }
}


/* FIX: Robust Mobile Hero Overflow Fix - Added by Assistant */
@media (max-width: 768px) {
    /* 1. Disable Flex Centering on Hero Parent */
    section.hero {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    /* 2. Stack Content Vertically */
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* Start from top */
        height: auto !important;
        min-height: 100% !important;
        padding-top: 140px !important; /* Header Clearance */
        padding-bottom: 60px !important; /* Bottom buffer */
        overflow: visible !important;
    }

    /* 3. Ensure Content items can shrink/grow safely */
    .hero-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: none !important; /* Prevent flex shrinking */
    }

    /* 4. Fix Stats Container specifically */
    .hero-stats {
        display: flex !important;
        flex-direction: column !important; /* Stack stats vertical on mobile if needed, or keep row */
        flex-wrap: wrap !important;
        height: auto !important;
        overflow: visible !important;
        margin-bottom: 2rem !important;
    }

    /* 5. Ensure Stats items are visible */
    .stat-item {
        flex: 1 1 100px !important; /* Allow wrapping */
        min-width: 120px !important;
        opacity: 1 !important; /* Force visibility */
        visibility: visible !important;
    }
}


/* FIX: NUCLEAR Mobile Hero Height & Overflow Fix */
@media (max-width: 768px) {
    /* 1. Unset ALL global height restrictions */
    html, body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    /* 2. Force Hero to Expand */
    section.hero {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important; /* Explicitly remove max-height */
        overflow: visible !important;
        padding-bottom: 5rem !important; /* Visual breathing room */
        margin-bottom: 0 !important;
    }

    /* 3. Hero Container MUST flow naturally */
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        padding-top: 140px !important;
        padding-bottom: 120px !important; /* Large buffer for bottom content */
        overflow: visible !important;
    }

    /* 4. Fix Background Layering */
    .hero-background {
        position: absolute !important;
        height: 100% !important; /* Expands with parent */
        min-height: 100vh !important;
        bottom: auto !important; /* Don't anchor to bottom */
    }

    /* 5. Force Stat Visibility */
    .hero-stats {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-top: 2rem !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important; /* Disable animations potentially hiding it */
    }

    .stat-item {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex: 1 1 45% !important; /* 2 per row */
        margin-bottom: 1rem !important;
    }
}


/* FIX: HYPER SPECIFIC ID TARGETING - FINAL ATTEMPT */
@media (max-width: 768px) {
    /* Target ID specifically to win specificity wars */
    section#home.hero {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 200px !important; /* Massive padding to prove point */
        margin-bottom: 0 !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* Container for #home specifically */
    #home .hero-container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        padding-top: 140px !important;
        padding-bottom: 100px !important;
        overflow: visible !important;
    }

    /* Ensure content inside doesn't collapse */
    #home .hero-content {
        flex: none !important;
        height: auto !important;
        width: 100% !important;
    }

    #home .hero-stats {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        margin-top: 30px !important;
        pointer-events: auto !important;
    }
}

