/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --border-color: #d2d2d7;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --nav-height: 120px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--nav-height);
}

.nav-logo a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-image {
    height: 100px;
    width: auto;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.has-submenu > a::after {
    content: '▾';
    margin-left: 6px;
    font-size: 11px;
}

.submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: var(--transition);
    z-index: 1001;
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.submenu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

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

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.hero-content {
    max-width: 800px;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 72px;
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #1d1d1f 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 22px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hero-image {
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin-top: 40px;
}

.product-showcase {
    width: 100%;
    height: 100%;
    background-image: url("assets/images/banner219.001.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.product-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.05) 100%);
}

/* Features Section */
.features {
    padding: 100px 20px;
    background: var(--bg-white);
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 18px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.5;
}

/* Product Categories */
.product-categories {
    padding: 80px 20px;
    background: var(--bg-white);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-item {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.category-item.reverse {
    direction: ltr;
}

.category-content {
    padding: 50px 60px 60px;
    text-align: center;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-content h2 {
    font-size: 44px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.category-content p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-image {
    width: 100%;
    aspect-ratio: 900 / 385;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.milling-bg {
    background-image: url("assets/images/horizon.endmills.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.drill-bg {
    background-image: url("assets/images/horizon.drills.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.reamer-bg {
    background-image: url("assets/images/horizon.reamers.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 19px;
    font-weight: 400;
    transition: var(--transition);
}

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

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    text-align: center;
    background: var(--bg-light);
}

.cta-section h2 {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.cta-section p {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 60px 20px 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Page Header */
.page-header {
    margin-top: var(--nav-height);
    padding: 120px 20px 80px;
    text-align: center;
    background: var(--bg-light);
}

.page-header h1 {
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.page-header p {
    font-size: 24px;
    color: var(--text-secondary);
}

/* Products Page */
.product-section {
    padding: 100px 20px;
}

.product-section.alt {
    background: var(--bg-light);
}

/* Products Carousel */
.products-carousel-section {
    padding: 90px 20px 60px;
    background: radial-gradient(circle at top, rgba(0, 113, 227, 0.08), transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.carousel-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.carousel-header h2 {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -1px;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    font-size: 24px;
    line-height: 1;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--bg-light);
}

.carousel-track {
    margin-top: 6px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding: 6px 2px 12px;
    background: transparent;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar {
    height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
}

.carousel-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: var(--transition);
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.carousel-image {
    width: 100%;
    aspect-ratio: 900 / 385;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.custom-bg {
    background-image: url("assets/images/banner219.001.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-content {
    padding: 22px 24px 26px;
}

.carousel-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.carousel-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.carousel-link {
    color: var(--primary-color);
    font-size: 16px;
}

.product-header {
    text-align: center;
    margin-bottom: 60px;
}

.product-header h2 {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
}

.product-header p {
    font-size: 21px;
    color: var(--text-secondary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.product-card::after {
    content: 'View Gallery';
    position: absolute;
    bottom: 18px;
    right: 18px;
    background: rgba(0, 113, 227, 0.92);
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.2px;
    opacity: 0;
    transform: translateY(6px);
    transition: var(--transition);
}

.product-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.milling-1, .milling-2, .milling-3 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.drill-1, .drill-2, .drill-3 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.reamer-1, .reamer-2, .reamer-3 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.milling-1 {
    background-image: url("assets/images/square end mills.001.webp");
}

.milling-2 {
    background-image: url("assets/images/bull end mills.003.webp");
}

.milling-3 {
    background-image: url("assets/images/ball end mills.002.webp");
}

.drill-1 {
    background-image: url("assets/images/solid carbide drill.004.webp");
}

.drill-2 {
    background-image: url("assets/images/coolant drills.005.webp");
}

.drill-3 {
    background-image: url("assets/images/modular drills.006.webp");
}

.reamer-1 {
    background-image: url("assets/images/straight reamer.008.webp");
}

.reamer-2 {
    background-image: url("assets/images/spiral flute reamer.007.webp");
}

.reamer-3 {
    background-image: url("assets/images/coolant reamer.009.webp");
}

.product-card h3 {
    font-size: 24px;
    font-weight: 600;
    padding: 25px 25px 10px;
    letter-spacing: -0.5px;
}

.product-card > p {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    font-size: 17px;
}

.product-specs {
    list-style: none;
    padding: 0 25px 25px;
}

.product-specs li {
    padding: 8px 0;
    padding-left: 26px;
    position: relative;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.4;
}

.product-specs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.2em;
    color: var(--primary-color);
    font-weight: 600;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.gallery-modal.open {
    display: block;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.gallery-dialog {
    position: relative;
    max-width: 1000px;
    margin: 8vh auto;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.gallery-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
}

.gallery-main {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2500;
    font-family: inherit;
}

.whatsapp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.whatsapp-toggle:hover {
    transform: translateY(-2px);
}

.whatsapp-panel {
    position: absolute;
    right: 0;
    bottom: 56px;
    width: 320px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-widget.expanded .whatsapp-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.whatsapp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.whatsapp-header strong {
    display: block;
    font-size: 16px;
}

.whatsapp-header span {
    font-size: 12px;
    color: var(--text-secondary);
}

.whatsapp-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-secondary);
}

.whatsapp-message {
    padding: 14px 18px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.whatsapp-actions {
    display: grid;
    gap: 10px;
    padding: 16px 18px 10px;
}

.whatsapp-actions .btn {
    width: 100%;
    text-align: center;
}

.whatsapp-actions .wa-icon,
.whatsapp-actions .email-icon {
    margin-right: 6px;
}

.whatsapp-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 18px 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.contact-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.contact-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 12px;
}

.contact-value {
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-all;
}

.copy-btn {
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: #fff;
}

.whatsapp-widget.collapsed .whatsapp-panel {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

@media (max-width: 640px) {
    .whatsapp-panel {
        width: 260px;
        bottom: 52px;
    }
}

.product-cta {
    text-align: center;
}

/* Custom Section */
.custom-section {
    padding: 100px 20px;
    background: var(--bg-white);
}

.custom-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    padding: 60px;
    border-radius: 28px;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
}

.custom-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.custom-hero h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.custom-lead {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.custom-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.custom-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.custom-visual-card {
    width: 100%;
    max-width: 360px;
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.custom-visual-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.custom-visual-card ul {
    list-style: none;
}

.custom-visual-card li {
    padding: 8px 0;
    padding-left: 22px;
    position: relative;
    color: var(--text-secondary);
    font-size: 16px;
}

.custom-visual-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* About Page */
.about-story {
    padding: 100px 20px;
    background: var(--bg-white);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.story-content p {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Payment & Shipping Page */
.payment-shipping-section {
    padding: 100px 20px;
    background: var(--bg-white);
}

.payment-shipping-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.ps-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 40px 36px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.ps-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.ps-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

.ps-card h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.6px;
    color: var(--text-primary);
}

.ps-card p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.ps-card p:last-child {
    margin-bottom: 0;
}

.ps-lead {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px !important;
}

.ps-note {
    font-size: 16px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 20px !important;
}

.ps-intro {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 32px !important;
    color: var(--text-primary);
}

.highlight-time {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.15) 0%, rgba(0, 113, 227, 0.08) 100%);
    color: var(--primary-color);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 19px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    position: relative;
}

.process-step:first-child {
    padding-top: 0;
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-content h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.step-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.step-connector {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.3) 0%, rgba(0, 113, 227, 0.1) 100%);
    margin-left: 21px;
    margin-top: -4px;
    margin-bottom: -4px;
}

.timeline-items {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
}

.timeline-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-content strong {
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 600;
}

.timeline-content span {
    font-size: 15px;
    color: var(--text-secondary);
}

.shipping-details {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-light);
    border-radius: 10px;
    gap: 16px;
}

.detail-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.detail-value {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: right;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.08) 0%, rgba(0, 113, 227, 0.04) 100%);
    border-left: 3px solid var(--primary-color);
    padding: 20px 24px;
    border-radius: 12px;
    margin: 20px 0;
}

.highlight-box p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
}

.story-image {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.values-section {
    padding: 100px 20px;
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.value-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

.manufacturing-section {
    padding: 100px 20px;
    background: var(--bg-white);
}

.manufacturing-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.manufacturing-content h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.manufacturing-content > p {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.manufacturing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 17px;
    color: var(--text-secondary);
}

.capabilities-section {
    padding: 100px 20px;
    background: var(--bg-light);
}

/* Shipping Map */
.shipping-section {
    padding: 100px 20px;
    background: var(--bg-white);
}

.shipping-map {
    max-width: 1200px;
    margin: 0 auto 30px;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
    position: relative;
}

.shipping-map-base img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.85;
}

.shipping-routes {
    position: absolute;
    inset: 30px;
    width: calc(100% - 60px);
    height: calc(100% - 60px);
}

.hub {
    fill: #0071e3;
}

.hub-mobile {
    display: none;
}

.pulse {
    fill: none;
    stroke: rgba(0, 113, 227, 0.6);
    stroke-width: 2;
    animation: pulse 2.2s ease-out infinite;
}

.route {
    fill: none;
    stroke: url(#routeGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 6 10;
    animation: dash 5s linear infinite;
}

.route-1 { animation-delay: 0s; }
.route-2 { animation-delay: 0.6s; }
.route-3 { animation-delay: 1.2s; }

.shipping-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 14px;
}

.shipping-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border-radius: 999px;
    padding: 8px 16px;
    transition: var(--transition);
}

.shipping-legend .legend-item:hover {
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary-color);
}

.shipping-legend .legend-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.shipping-legend .legend-code.legend-cn {
    background: #DE2910; /* China flag red */
}

.shipping-legend .legend-code.legend-in {
    background: #FF9933; /* India flag saffron/orange */
}

.shipping-legend .legend-code.legend-eu {
    background: #003399; /* EU flag blue */
}

.shipping-legend .legend-code.legend-us {
    background: #002868; /* US flag blue */
}

@keyframes dash {
    to {
        stroke-dashoffset: -60;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.capability-item {
    background: white;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.capability-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.capability-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.capability-item p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

/* Contact Page */
.contact-section {
    padding: 100px 20px;
    background: var(--bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.contact-info > p {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.8;
}

.info-item {
    margin-bottom: 40px;
}

.info-item h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.info-item p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.info-item ul {
    list-style: none;
    margin-top: 15px;
}

.info-item ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    font-size: 17px;
}

.info-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 50px;
    border-radius: 18px;
}

.contact-form h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 17px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.map-section {
    padding: 100px 20px;
    background: var(--bg-light);
}

.map-section h2 {
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

/* VR Tour */
.vr-section {
    padding: 100px 20px;
    background: radial-gradient(circle at top, rgba(0, 113, 227, 0.08), transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

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

.vr-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    transform: translateY(0);
}

.vr-header {
    padding: 24px 26px 0;
}

.vr-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.vr-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.vr-frame {
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-white);
    position: relative;
}

.vr-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.vr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.16);
}

.vr-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 35%);
    pointer-events: none;
}

/* Factory Videos */
.video-section {
    padding: 100px 20px;
    background: var(--bg-white);
}

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

.video-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-meta {
    padding: 22px 26px 28px;
}

.video-meta h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.video-meta p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.map-embed {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .carousel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .carousel-controls {
        align-self: flex-end;
    }

    .carousel-header h2 {
        font-size: 32px;
    }
    .custom-hero {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .custom-hero-visual {
        justify-content: flex-start;
    }
    .product-categories {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin-top: 6px;
    }

    .submenu a {
        padding: 8px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .category-content {
        padding: 28px 22px 30px;
    }

    .category-content h2 {
        font-size: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-form-wrapper {
        padding: 28px 22px;
    }

    .shipping-map {
        padding: 20px;
    }

    .vr-grid {
        grid-template-columns: 1fr;
    }

    .vr-frame {
        height: 360px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .gallery-dialog {
        margin: 5vh 12px;
        padding: 16px;
    }

    .cta-section,
    .features,
    .product-section,
    .custom-section,
    .values-section,
    .manufacturing-section,
    .capabilities-section,
    .map-section,
    .video-section,
    .vr-section,
    .shipping-section {
        padding: 70px 20px;
    }

    .page-header {
        padding: 90px 20px 60px;
    }
}

@media (max-width: 640px) {
    :root {
        --nav-height: 80px;
    }

    .logo-image {
        height: 56px;
        margin: 6px;
    }

    .nav-container {
        min-height: var(--nav-height);
    }

    .hero {
        padding: 60px 16px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .page-header {
        padding: 70px 16px 50px;
    }

    .page-header h1 {
        font-size: 34px;
    }

    .page-header p {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 36px;
    }

    .feature-card {
        padding: 22px 14px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .feature-card p {
        font-size: 15px;
    }

    .category-content {
        padding: 20px 16px 22px;
        min-height: 150px;
    }

    .category-content h2 {
        font-size: 24px;
    }

    .category-content p {
        font-size: 16px;
    }

    .product-header h2 {
        font-size: 30px;
    }

    .product-header p {
        font-size: 18px;
    }

    .product-image {
        height: 180px;
    }

    .product-card h3 {
        font-size: 18px;
        padding: 16px 16px 6px;
    }

    .product-card > p {
        padding: 0 16px 12px;
        font-size: 14px;
    }

    .product-specs {
        padding: 0 16px 14px;
    }

    .product-specs li {
        font-size: 13px;
        padding: 6px 0;
        padding-left: 24px;
    }

    .custom-hero {
        padding: 22px 16px;
    }

    .custom-hero h2 {
        font-size: 24px;
    }

    .custom-lead {
        font-size: 14px;
    }

    .highlight-content h2 {
        font-size: 24px;
    }

    .highlight-lead {
        font-size: 14px;
    }

    .values-grid,
    .capabilities-grid,
    .pillars-grid {
        gap: 20px;
    }

    .value-card,
    .capability-item,
    .pillar-card {
        padding: 20px 16px;
    }

    .manufacturing-content h2 {
        font-size: 28px;
    }

    .manufacturing-content > p {
        font-size: 14px;
    }

    .stat-number {
        font-size: 30px;
    }

    .stat-label {
        font-size: 12px;
    }

    .carousel-header h2 {
        font-size: 22px;
    }

    .carousel-content h3 {
        font-size: 18px;
    }

    .carousel-content p {
        font-size: 13px;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .cta-section p {
        font-size: 14px;
    }

    .payment-shipping-section {
        padding: 50px 16px;
    }

    .payment-shipping-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ps-card {
        padding: 28px 24px;
    }

    .ps-icon {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .ps-card h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .ps-card p {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .ps-lead {
        font-size: 16px;
        margin-bottom: 20px !important;
    }

    .ps-note {
        font-size: 14px;
        margin-top: 16px !important;
    }

    .ps-intro {
        font-size: 16px;
        margin-bottom: 24px !important;
    }

    .highlight-time {
        font-size: 17px;
        padding: 3px 10px;
    }

    .process-step {
        padding: 20px 0;
        gap: 16px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-content h3 {
        font-size: 17px;
    }

    .step-content p {
        font-size: 14px;
    }

    .step-connector {
        height: 16px;
        margin-left: 19px;
    }

    .timeline-item {
        padding: 12px;
        gap: 12px;
    }

    .timeline-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .timeline-content strong {
        font-size: 15px;
    }

    .timeline-content span {
        font-size: 13px;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }

    .detail-label {
        font-size: 14px;
    }

    .detail-value {
        font-size: 13px;
        text-align: left;
    }

    .highlight-box {
        padding: 16px 20px;
        margin: 16px 0;
    }

    .highlight-box p {
        font-size: 15px;
    }

    .contact-info h2 {
        font-size: 26px;
    }

    .contact-info > p {
        font-size: 14px;
    }

    .info-item h3 {
        font-size: 16px;
    }

    .info-item p,
    .info-item ul li {
        font-size: 13px;
    }

    .map-section h2 {
        font-size: 26px;
    }

    .vr-frame {
        height: 220px;
    }

    .video-meta h2 {
        font-size: 16px;
    }

    .video-meta p {
        font-size: 13px;
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
    }

    .shipping-map {
        padding: 12px;
    }

    .shipping-routes {
        inset: 12px;
        width: calc(100% - 24px);
        height: calc(100% - 24px);
    }

    /* Adjust hub position for mobile - China is roughly at 82% from left, 36% from top in viewBox */
    /* On mobile with smaller padding, we keep the same viewBox coordinates but may need slight adjustment */
    .hub-desktop {
        display: none;
    }

    .hub-mobile {
        display: block;
        /* Position adjusted for mobile view - same relative position but accounting for padding change */
        transform: translate(0, 0);
    }
}

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

    .hero-subtitle {
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .product-image {
        height: 160px;
    }

    .vr-frame {
        height: 200px;
    }

    .whatsapp-panel {
        width: 240px;
    }
}
