/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f69206ca;
    --dark-bg: #071033;
    --text-dark: #313741;
    --text-gray: #696E76;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    
    /* Responsive breakpoints */
    --mobile-s: 320px;
    --mobile-m: 375px;
    --mobile-l: 414px;
    --tablet: 768px;
    --tablet-l: 1024px;
    --desktop: 1280px;
    --desktop-l: 1440px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ENHANCED CONTAINER SYSTEM */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* MAIN HEADER */
.main-header {
    background: #FFFFFF;
    width: 100%;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #EEEEEE;
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Container */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

/* LOGO */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: auto;
}

.header-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: #113768;
    border-radius: 16px;
    border: 2px solid rgba(17, 55, 104, 0.15);
    box-shadow: 0 4px 16px rgba(21, 57, 106, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.header-logo .logo-icon:hover {
    transform: scale(1.05);
}

.header-logo .h-letter {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.header-logo .logo-text {
    display: flex;
    flex-direction: column;
    color: #113768;
}

.header-logo .company-main {
    font-size: 1rem;
    font-weight: 700;
    color: #113768;
    letter-spacing: 0.5px;
}

.header-logo .company-sub {
    font-size: 0.7rem;
    color: #7C7C7C;
    letter-spacing: 0.5px;
}

/* NAVIGATION */
.header-nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.header-nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.header-nav-left .nav-link,
.header-nav-right .nav-link {
    color: #222222;
    font-weight: 300;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
}

.header-nav-left .nav-link:hover,
.header-nav-right .nav-link:hover {
    color: #3A68B8;
}

.header-nav-left .nav-link.active,
.header-nav-right .nav-link.active {
    color: #3A68B8;
}

.header-nav-left .nav-link.active::after,
.header-nav-right .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #3A68B8;
}

/* CTA BUTTON */
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #3A68B8;
    border-radius: 999px;
    color: #3A68B8;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-cta-btn:hover {
    background: #3A68B8;
    color: #FFFFFF;
}

/* MOBILE MENU TOGGLE - ENHANCED FIX */
.header-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 20px;
    z-index: 1005;
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.header-menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.header-menu span {
    display: block;
    height: 3px;
    width: 24px;
    background: #222222;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.header-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #FF9500;
}

.header-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0.1);
}

.header-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #FF9500;
}

/* DROPDOWN */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 12px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    border: 1px solid #EEEEEE;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown .dropdown-menu li a {
    color: #222222;
    font-size: 0.9rem;
    font-weight: 300;
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-dropdown .dropdown-menu li a:hover {
    background: #F7F7F7;
    color: #3A68B8;
}

/* Hero Section */
.hero-ems {
    padding: 80px 0;
    background: var(--bg-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-text p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #E68900;
    border-color: #E68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(49, 55, 65, 0.2);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Building EMS Section */
.building-ems {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.text-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.text-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.text-content p:last-child {
    margin-bottom: 0;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-section.dark-bg {
    background: #EEEFEB;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #E68900 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Factory EMS Section */
.factory-ems {
    padding: 80px 0;
    background: var(--white);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.solution-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 40px 35px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #E68900 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.solution-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Industries Section */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.industry-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 35px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.industry-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
}

.industry-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.industry-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.products-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D9D9D9;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-color);
    width: 40px;
    border-radius: 5px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.process-container {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid transparent;
}

.process-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left-color: var(--primary-color);
}

.process-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #E68900 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.process-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.process-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
}

.faq-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.faq-list h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

.faq-item {
    border-bottom: 1px solid #E0E0E0;
    padding: 20px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-toggle {
    background: transparent;
    border: none;
    font-size: 16px;
    color: var(--text-gray);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 15px;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.8;
}

.faq-answer ul {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-answer ul li {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 8px;
}

.faq-cta {
    position: relative;
}

.cta-card {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    padding: 40px;
    border-radius: 16px;
    color: var(--white);
    text-align: center;
    position: sticky;
    top: 100px;
}

.cta-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.cta-card p {
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.cta-btn:hover {
    background: #E68900;
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    text-align: center;
}

.newsletter-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-size: 18px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.cta-consultation-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(255, 149, 0, 0.4);
}

.cta-consultation-btn:hover {
    background: #E68900;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 149, 0, 0.5);
}

.cta-consultation-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.cta-consultation-btn:hover i {
    transform: translateX(5px);
}

/* ========================================
   RESPONSIVE - TABLET (768px - 1024px)
   ======================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 0 30px 40px;
    }

    .footer-company {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(58, 104, 184, 0.2);
    }

    .footer-company > * {
        flex: 1;
    }

    .footer-logo {
        margin-bottom: 0;
    }

    .footer-section-title {
        font-size: 0.95rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   RESPONSIVE - MOBILE LARGE (481px - 767px)
   ======================================== */

@media (min-width: 481px) and (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 0 20px 40px;
    }

    .footer-company {
        grid-column: 1 / -1;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(58, 104, 184, 0.2);
        margin-bottom: 10px;
    }

    .footer-section-title {
        font-size: 0.9rem;
    }

    .footer-list li a {
        font-size: 0.85rem;
    }

    .contact-value {
        font-size: 0.85rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

/* ========================================
   RESPONSIVE - MOBILE SMALL (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    .main-footer {
        margin-top: 60px;
        padding-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px 40px;
    }

    .footer-company {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(58, 104, 184, 0.2);
        margin-bottom: 10px;
    }

    .footer-logo {
        justify-content: center;
        text-align: center;
    }

    .footer-company-name {
        font-size: 1rem;
    }

    .footer-description {
        text-align: center;
        font-size: 0.85rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-section {
        gap: 12px;
    }

    .footer-section-title {
        font-size: 0.85rem;
        text-align: center;
        padding-bottom: 10px;
    }

    .footer-list {
        gap: 8px;
    }

    .footer-list li a {
        font-size: 0.8rem;
        justify-content: center;
    }

    .contact-item {
        margin-bottom: 12px;
    }

    .contact-icon {
        font-size: 1rem;
    }

    .contact-label {
        font-size: 0.7rem;
    }

    .contact-value {
        font-size: 0.8rem;
    }

    .footer-bottom {
        padding: 20px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .copyright {
        font-size: 0.75rem;
    }

    .footer-bottom-links {
        font-size: 0.75rem;
        justify-content: center;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: dark) {
    .main-footer {
        background: linear-gradient(135deg, #0a1429 0%, #0f1f3a 100%);
    }

    .footer-bottom {
        background: rgba(255, 255, 255, 0.05);
        border-top-color: rgba(58, 104, 184, 0.2);
    }

    .footer-section-title {
        border-bottom-color: rgba(58, 104, 184, 0.4);
    }

    .social-icon:hover {
        background: #5a8fcc;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .main-footer {
        margin-top: 40px;
        padding-top: 30px;
        page-break-inside: avoid;
    }

    .footer-content {
        padding: 0 20px 30px;
    }

    .social-icon {
        display: none;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .footer-logo-icon,
    .social-icon,
    .footer-list li a {
        animation: none !important;
        transition: none !important;
    }
}

.footer-list li a:focus-visible,
.social-icon:focus-visible {
    outline: 2px solid #3A68B8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Desktop Large (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 60px;
    }

    .hero-text h1 {
        font-size: 56px;
    }

    .hero-text p {
        font-size: 20px;
    }

    .section-title {
        font-size: 42px;
    }
}

/* Desktop (1024px - 1280px) */
@media (min-width: 1024px) and (max-width: 1280px) {
    .container {
        max-width: 1100px;
        padding: 0 40px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text p {
        font-size: 17px;
    }

    .hero-grid {
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Landscape (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }

    /* Hero Section */
    .hero-ems {
        padding: 60px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-text p {
        font-size: 16px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }

    /* Content Grid */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .text-content h2 {
        font-size: 32px;
        text-align: center;
    }

    .text-content p {
        text-align: center;
    }

    .image-content {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Section Titles */
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    /* Features & Solutions */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* Process Steps */
    .process-step {
        padding: 25px;
    }

    .process-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .process-content h3 {
        font-size: 20px;
    }

    /* Newsletter Section */
    .newsletter-section h2 {
        font-size: 32px;
    }

    .newsletter-section p {
        font-size: 16px;
    }

    .cta-consultation-btn {
        padding: 16px 40px;
        font-size: 16px;
    }

    /* FAQ Section */
    .faq-content {
        grid-template-columns: 1fr;
    }

    .cta-card {
        position: static;
        margin-top: 40px;
    }
}

/* Mobile Landscape / Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 0 20px;
    }

    /* Hero Section */
    .hero-ems {
        padding: 50px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 14px 30px;
        font-size: 15px;
    }

    /* Building EMS Section */
    .building-ems {
        padding: 60px 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .text-content h2 {
        font-size: 28px;
        text-align: center;
    }

    .text-content p {
        font-size: 14px;
        text-align: center;
    }

    /* Section Titles */
    .section-title {
        font-size: 28px;
        margin-bottom: 35px;
    }

    /* Features Section */
    .features-section {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 25px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .feature-card p {
        font-size: 13px;
    }

    /* Solutions Section */
    .factory-ems {
        padding: 60px 0;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .solution-card {
        padding: 30px 25px;
    }

    .solution-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .solution-card h3 {
        font-size: 18px;
    }

    .solution-card p {
        font-size: 13px;
    }

    /* Industries Section */
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .industry-card {
        padding: 30px 25px;
    }

    .industry-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .industry-card h3 {
        font-size: 18px;
    }

    .industry-card p {
        font-size: 13px;
    }

    /* Process Section */
    .faq-section {
        padding: 60px 0;
    }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
    }

    .process-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .process-content h3 {
        font-size: 18px;
    }

    .process-content p {
        font-size: 14px;
    }

    /* Newsletter Section */
    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-section h2 {
        font-size: 28px;
    }

    .newsletter-section p {
        font-size: 15px;
    }

    .cta-consultation-btn {
        padding: 15px 35px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Products Section */
    .products-section {
        padding: 60px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   Disable hover transforms on touch devices
   ======================================== */
@media (max-width: 767px), (hover: none) {
    .feature-card:hover,
    .solution-card:hover,
    .industry-card:hover,
    .process-step:hover,
    .product-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

    .solution-card:hover,
    .industry-card:hover {
        border-color: transparent;
    }

    .btn-primary:hover,
    .btn-secondary:hover,
    .cta-btn:hover,
    .cta-consultation-btn:hover {
        transform: none;
    }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* Hero Section */
    .hero-ems {
        padding: 32px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-text p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 13px 25px;
        font-size: 14px;
        justify-content: center;
    }

    .hero-image img {
        border-radius: 12px;
    }

    /* Building EMS Section */
    .building-ems {
        padding: 40px 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .text-content h2 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 15px;
    }

    .text-content p {
        font-size: 14px;
        line-height: 1.7;
        text-align: center;
        margin-bottom: 15px;
    }

    /* Section Titles */
    .section-title {
        font-size: 22px;
        margin-bottom: 24px;
        line-height: 1.3;
    }

    /* Features Section */
    .features-section {
        padding: 40px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
        margin-bottom: 18px;
    }

    .feature-card h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Factory EMS Section */
    .factory-ems {
        padding: 40px 0;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .solution-card {
        padding: 20px 16px;
    }

    .solution-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        border-radius: 10px;
    }

    .solution-card h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .solution-card p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Industries Section */
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .industry-card {
        padding: 20px 16px;
    }

    .industry-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        border-radius: 10px;
    }

    .industry-card h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .industry-card p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Process Section */
    .faq-section {
        padding: 40px 0;
    }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 14px;
        gap: 16px;
    }

    .process-number {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .process-content h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .process-content p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* Newsletter Section */
    .newsletter-section {
        padding: 40px 0;
    }

    .newsletter-section h2 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .newsletter-section p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 24px;
        padding: 0 8px;
    }

    .cta-consultation-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 14px;
        justify-content: center;
    }

    .cta-consultation-btn i {
        font-size: 14px;
    }

    /* Products Section */
    .products-section {
        padding: 40px 0;
    }

    .products-section h2 {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
        padding: 0 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card img {
        height: 180px;
    }

    .product-card h3 {
        padding: 16px;
        font-size: 15px;
    }

    /* FAQ Section */
    .faq-content {
        grid-template-columns: 1fr;
    }

    .faq-list h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .faq-item {
        padding: 16px 0;
    }

    .faq-question h3 {
        font-size: 15px;
        line-height: 1.4;
        padding-right: 10px;
    }

    .faq-toggle {
        font-size: 14px;
    }

    .faq-answer p {
        font-size: 13px;
        line-height: 1.7;
    }

    .faq-answer ul li {
        font-size: 13px;
        line-height: 1.7;
    }

    .cta-card {
        padding: 30px 20px;
        border-radius: 12px;
        position: static;
        margin-top: 30px;
    }

    .cta-card h3 {
        font-size: 20px;
    }

    .cta-card p {
        font-size: 13px;
    }

    .cta-btn {
        width: 100%;
        padding: 13px 30px;
        font-size: 14px;
        justify-content: center;
    }
}

/* Extra Small Mobile (max-width: 374px) */
@media (max-width: 374px) {
    .hero-text h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 13px;
    }

    .feature-card,
    .solution-card,
    .industry-card {
        padding: 20px 16px;
    }

    .feature-icon,
    .solution-icon,
    .industry-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .process-number {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-ems {
        padding: 30px 0;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-text p {
        font-size: 13px;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .features-section,
    .factory-ems,
    .faq-section {
        padding: 40px 0;
    }

    .newsletter-section {
        padding: 40px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .image-content img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-image img {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1a1a1a;
        --white: #ffffff;
        --text-dark: #e5e5e5;
        --text-gray: #b3b3b3;
    }

    .hero-ems,
    .building-ems,
    .factory-ems {
        background: #121212;
    }

    .features-section {
        background: #1a1a1a;
    }

    .feature-card,
    .solution-card,
    .industry-card,
    .product-card {
        background: #2a2a2a;
        border: 1px solid #333;
    }

    .process-step {
        background: #2a2a2a;
    }
}