/* OTI Corp Website Styles */
:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --secondary: #10B981;
    --accent: #F59E0B;
    --gradient-1: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    --gradient-2: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    --gradient-3: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
    --dark: #1F2937;
    --light: #F9FAFB;
    --white: #FFFFFF;
    --text: #374151;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --icon-surface: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-body, 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: clip;
    max-width: 100vw;
}

/* Premium Navigation */
.modern-header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.modern-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--border);
}

.modern-header.scrolled:hover {
    box-shadow: var(--shadow-lg);
}

.modern-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    max-width: 1320px;
    margin: 0 auto;
    gap: 2rem;
    transition: padding 0.3s ease;
}

.modern-menu {
    margin-left: auto;
}

.modern-header.scrolled .modern-nav {
    padding: 1rem 2rem;
}

.modern-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
    margin-right: auto;
}

.modern-logo:hover {
    transform: translateY(-2px);
}

.modern-logo-img-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 46px;
}

.modern-logo-img {
    height: 46px;
    width: auto;
    transition: opacity 0.3s ease;
}

.modern-logo-img-color {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.modern-header.scrolled .modern-logo-img-white {
    opacity: 0;
}

.modern-header.scrolled .modern-logo-img-color {
    opacity: 1;
}

.modern-logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.modern-header.scrolled .modern-logo-title {
    color: var(--dark);
}

.modern-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.modern-nav-toggle {
    display: none;
}

.modern-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.15s ease, opacity 0.15s ease;
    position: relative;
    padding: 0.5rem 0;
}

.modern-menu a:hover, .modern-menu a.active {
    color: var(--white);
    opacity: 0.85;
}

.modern-header.scrolled .modern-menu a {
    color: var(--dark);
}

.modern-header.scrolled .modern-menu a:hover, .modern-header.scrolled .modern-menu a.active {
    color: var(--primary);
    opacity: 1;
}

.modern-nav-mobile-cta {
    display: none;
}

.modern-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.modern-header.scrolled .modern-menu a::after {
    background: var(--gradient-2);
}

.modern-menu a:hover::after, .modern-menu a.active::after {
    width: 100%;
}

/* Premium Hero Section */
.modern-hero {
    background: var(--gradient-3);
    color: var(--white);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modern-hero.page-hero {
    padding: 12rem 2rem 5rem;
}

.modern-hero.page-hero h1 {
    font-size: 2.75rem;
}

.modern-hero.page-hero p {
    font-size: 1.15rem;
}

.page-hero .page-hero-icon {
    position: absolute;
    font-size: 2.25rem;
    color: rgba(255, 255, 255, 0.15);
    animation: floatIcon 15s ease-in-out infinite;
    z-index: 0;
}

@media (max-width: 768px) {
    .modern-hero.page-hero {
        padding: 9rem 1.5rem 3.5rem;
    }

    .modern-hero.page-hero h1 {
        font-size: 2rem;
    }

    .product-hero-photo::after {
        top: 74px;
    }
}

.product-hero-photo {
    background: var(--gradient-3);
}

.product-hero-photo::after {
    content: '';
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.88) 0%, rgba(37, 99, 235, 0.92) 100%), var(--hero-photo-url);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
}

.modern-hero > * {
    position: relative;
    z-index: 1;
}

.modern-hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -1px;
}

.modern-hero p {
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #F1F5F9;
    color: #1E293B;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: inherit;
    transition: all 0.2s ease;
    border: 1px solid #CBD5E1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.modern-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
    border-color: #94A3B8;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.modern-btn:active {
    transform: scale(0.98);
}

.modern-btn i {
    transition: transform 0.2s ease;
}

.modern-btn:hover i.bx-right-arrow-alt {
    transform: translateX(4px);
}

/* Primary — brand color, main CTA */
.modern-btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.modern-btn-primary:hover {
    background: var(--primary-dark);
    color: #FFFFFF;
    border-color: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Secondary / outline (light) */
.modern-btn-outline,
.modern-btn-outline-dark {
    background: #F1F5F9;
    color: #1E293B;
    border: 1px solid #CBD5E1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.modern-btn-outline:hover,
.modern-btn-outline-dark:hover {
    background: #E2E8F0;
    color: #0F172A;
    border-color: #94A3B8;
}

/* Outline on dark/hero backgrounds (light mode) */
.modern-btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.modern-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: #fff;
}

/* Gradient slot now = neutral secondary */
.modern-btn-gradient {
    background: #F1F5F9;
    color: #1E293B;
    border: 1px solid #CBD5E1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.modern-btn-gradient:hover {
    background: #E2E8F0;
    color: #0F172A;
    border-color: #94A3B8;
}

/* Container */
.modern-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.modern-section {
    padding: 6rem 0;
}

.modern-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.modern-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.modern-section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid System */
.modern-grid {
    display: grid;
    gap: 2rem;
}

.modern-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.modern-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Premium Cards */
.modern-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.modern-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.modern-card:hover .modern-card-img {
    transform: scale(1.05);
}

.modern-card-body {
    padding: 2rem;
}

.modern-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.modern-card-text {
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.modern-card-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--gradient-2);
    color: var(--white);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

/* Premium Stats */
.modern-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding: 3rem 0;
}

.modern-stat {
    text-align: center;
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--dark);
    transition: var(--transition);
}

.modern-stat:hover {
    border-color: var(--primary-light);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

.modern-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modern-stat-label {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.cert-card {
    text-align: center;
    padding: 1rem;
    min-width: 0;
}

.cert-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cert-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-2);
    color: #fff;
    font-size: 2rem;
}

.cert-logo {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cert-logo-dark {
    display: none;
}

[data-theme="dark"] .cert-logo-light {
    display: none;
}

[data-theme="dark"] .cert-logo-dark {
    display: block;
}


.cert-desc {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Premium Services */
.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--white) 0%, #f8f9ff 100%);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-text {
    color: var(--text);
    line-height: 1.6;
}

/* Premium Footer */
.modern-footer {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: var(--white);
    padding: 3.5rem 2rem 1.5rem;
}

.modern-footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.modern-footer-grid > div:first-child {
    flex: 1 1 320px;
    max-width: 400px;
}

.modern-footer-menu-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4.5rem;
}

.modern-footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.modern-footer-text {
    opacity: 0.85;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

.modern-footer-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.9rem;
}

.modern-footer-link:hover {
    color: var(--white);
}

.modern-footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.modern-footer-contact-link i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

a.modern-footer-contact-link:hover {
    color: var(--white);
}

.modern-footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modern-footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.modern-footer-social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.modern-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.75rem;
    opacity: 0.7;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.modern-footer-bottom p {
    margin-bottom: 0;
}

.modern-footer-legal {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .modern-footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

.modern-footer-legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.modern-footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Legal pages */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text);
    line-height: 1.8;
}

.legal-content > p:first-child {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2.5rem 0 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 0 0 1rem 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* Error pages */
.error-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 10rem;
    padding-bottom: 4rem;
    background: var(--gradient-3);
}

.error-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    pointer-events: none;
}

.error-page .modern-container {
    position: relative;
    z-index: 1;
}

.error-page .modern-container {
    width: 100%;
}

.error-page .error-title {
    color: #fff;
}

.error-page .error-message {
    color: rgba(255,255,255,0.85);
}

.error-page .error-icon {
    background: rgba(255,255,255,0.15);
}

.error-page .error-actions .modern-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.error-page .error-actions .modern-btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: #fff;
}

.error-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 0;
}

.error-illustration {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.error-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-2);
    color: #fff;
    font-size: 3rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
}

.error-actions .modern-btn-outline {
    color: var(--primary);
    border-color: var(--primary);
}

.error-actions .modern-btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 600px) {
    .error-illustration {
        max-width: 280px;
    }

    .error-title {
        font-size: 1.5rem;
    }
}

/* Premium Form Styles */
.modern-form-group {
    margin-bottom: 1.75rem;
}

.modern-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--dark);
    font-size: 0.95rem;
}

.modern-form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
}

.modern-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.modern-form-input:hover {
    border-color: var(--primary-light);
}

.modern-form-textarea {
    min-height: 160px;
    resize: vertical;
}

/* Premium Alerts */
.modern-alert {
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    margin-bottom: 1.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-alert-success {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border-left: 5px solid var(--secondary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.modern-alert-error {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    border-left: 5px solid #EF4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Premium Responsive Design */
@media (max-width: 1024px) {
    .modern-footer-grid > div:first-child {
        flex-basis: 100%;
        max-width: none;
    }

    .modern-footer-menu-group {
        margin-left: 0;
        gap: 2.5rem;
    }

    .modern-nav {
        padding: 1rem 1.5rem;
    }

    .modern-logo-img-wrap,
    .modern-logo-img {
        height: 40px;
    }

    .modern-logo-title {
        font-size: 1.3rem;
    }

    .modern-menu {
        gap: 1.5rem;
    }

    .modern-container {
        padding: 0 1.5rem;
    }

    .enhanced-hero {
        padding: 6rem 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .modern-hero {
        padding: 5rem 1.5rem;
    }

    .modern-hero h1 {
        font-size: 2.5rem;
    }

    .modern-hero p {
        font-size: 1.1rem;
    }

    .modern-container {
        padding: 0 1.25rem;
    }

    .modern-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 1.5rem 1rem;
        position: relative;
    }

    .modern-header.scrolled .modern-nav {
        padding: 0.8rem 1.5rem;
    }

    .modern-logo-img-wrap,
    .modern-logo-img {
        height: 36px;
    }

    .modern-logo-title {
        display: inline-block;
        font-size: 1.2rem;
    }

    .modern-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        margin-right: -8px;
        background: transparent;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-size: 2.25rem;
        line-height: 1;
        color: var(--white);
        transition: color 0.3s ease, background 0.3s ease;
    }

    .nav-bars {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 26px;
        height: 20px;
    }

    .nav-bars span {
        display: block;
        width: 100%;
        height: 3px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .modern-nav-toggle.open .nav-bars span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .modern-nav-toggle.open .nav-bars span:nth-child(2) {
        opacity: 0;
    }

    .modern-nav-toggle.open .nav-bars span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .modern-header.scrolled .modern-nav-toggle {
        color: var(--dark);
    }

    .modern-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--white);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 16px 16px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .modern-menu.open {
        max-height: 400px;
        opacity: 1;
    }

    .modern-menu li {
        width: 100%;
    }

    .modern-menu a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        color: var(--dark) !important;
        transition: color 0.15s ease;
    }

    .modern-menu a::after {
        display: none;
    }

    .modern-menu a:hover {
        background: transparent;
        color: var(--primary) !important;
    }

    .modern-menu a.active {
        background: transparent;
        color: var(--primary) !important;
        font-weight: 700;
        border-left: 3px solid var(--primary);
    }

    .modern-section {
        padding: 4rem 0;
    }

    .modern-section-title {
        font-size: 1.875rem;
    }

    .modern-stat-number {
        font-size: 2.5rem;
    }

    .modern-card-img {
        height: 200px;
    }

    .modern-footer-grid {
        flex-direction: column;
        gap: 2.5rem;
    }

    .modern-footer-menu-group {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .modern-hero h1 {
        font-size: 2rem;
    }

    .modern-section-title {
        font-size: 1.875rem;
    }

    .modern-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-4 { padding: 2rem; }

/* Premium Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #F59E0B;
    font-size: 1.125rem;
}

.testimonial-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Client Logos Section */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.client-logo-item {
    flex: 0 0 auto;
}

.client-badge {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.client-badge:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.08);
}

/* CTA Badge */
.cta-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

/* Marketing Elements */
.value-proposition {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    margin: 0 0.5rem;
}

/* Subtle Animation for Trust Elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-icon:hover {
    animation: float 2s ease-in-out infinite;
}

.feature-icon:hover {
    animation: float 2s ease-in-out infinite;
}

/* Enhanced Mobile Responsive for New Elements */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .client-logos {
        gap: 1rem;
    }

    .client-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

/* ========================================
   ENHANCED HERO SECTION WITH ANIMATIONS
   ======================================== */

.modern-hero {
    position: relative;
    overflow: hidden;
}

/* Animated Background Particles */
.hero-particle {
    position: absolute;
    opacity: 0.1;
    animation: particleFloat 20s ease-in-out infinite;
}

.hero-particle.hexagon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-particle.circle {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.hero-particle.square {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transform: rotate(45deg);
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-60px) rotate(180deg);
        opacity: 0.1;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.15;
    }
}

/* Pulsing Gradient Overlay */
.hero-gradient-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    animation: pulseGradient 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGradient {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Enhanced Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* ========================================
   CUSTOM PAGINATION STYLES
   ======================================== */

/* Modern Bootstrap-style Pagination */
nav[role="navigation"] {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav[role="navigation"] > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav[role="navigation"] svg {
    width: 14px !important;
    height: 14px !important;
    display: inline-block;
}

nav[role="navigation"] span,
nav[role="navigation"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--white);
}

nav[role="navigation"] a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

nav[role="navigation"] span[aria-current="page"] {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

nav[role="navigation"] span[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Pagination */
@media (max-width: 640px) {
    nav[role="navigation"] a,
    nav[role="navigation"] span {
        min-width: 36px;
        height: 36px;
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    nav[role="navigation"] svg {
        width: 12px !important;
        height: 12px !important;
    }
}

/* ========================================
   CLIENT COMPANY CARDS
   ======================================== */

.client-company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.client-company-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.client-company-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    border-color: var(--primary);
}

.client-logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.client-company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.client-industry-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.client-company-description {
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Client Cards */
@media (max-width: 768px) {
    .client-company-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .client-company-card {
        padding: 1.5rem;
    }
}

/* Client Logos Marquee */
.client-marquee {
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.client-marquee-track {
    display: flex;
    align-items: center;
    gap: 5.5rem;
    width: max-content;
    animation: clientMarquee 30s linear infinite;
}

.client-marquee:hover .client-marquee-track {
    animation-play-state: paused;
}

.client-marquee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-marquee-item:hover {
    opacity: 1;
}

.client-marquee-item img {
    max-height: 100%;
    max-width: 160px;
    width: auto;
    object-fit: contain;
}

.client-marquee-item a {
    display: flex;
    align-items: center;
    height: 100%;
}

.client-marquee-item i {
    font-size: 2rem;
    color: var(--primary);
}

.client-marquee-item span {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
    white-space: nowrap;
}

@keyframes clientMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-33.3333%); }
}

@media (max-width: 768px) {
    .client-marquee-track {
        gap: 2.5rem;
    }

    .client-marquee-item {
        height: 70px;
    }
}

/* ========================================
   ENHANCED MODERN DESIGN ADDITIONS
   Floating WhatsApp, Scroll Buttons, Modern Layouts
   ======================================== */

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 35px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-top-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

/* Scroll Down Button in Hero */
.scroll-down-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-down-btn:hover {
    transform: translateX(-50%) translateY(5px);
}

.scroll-mouse {
    position: relative;
    display: inline-flex;
    width: 32px;
    height: 32px;
}

.scroll-mouse-icon {
    width: 100%;
    height: 100%;
    filter: invert(1) brightness(2);
    opacity: 0.9;
}

.scroll-wheel {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 6px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.95);
    animation: scrollWheel 1.6s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(9px);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Enhanced Hero Section */
.enhanced-hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 7rem 2rem 2rem;
}

.enhanced-hero .modern-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

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

.hero-text-content {
    z-index: 2;
    position: relative;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.enhanced-hero .hero-main-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #FFF 0%, #E0E7FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-dark {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Hero Banner */
.about-hero-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 3rem;
    background-color: #2563EB;
    background-image: url('/assets/svg/bg-city.svg'), var(--gradient-3);
    background-size: cover, cover;
    background-position: center 45%, center;
    background-repeat: no-repeat, no-repeat;
    overflow: hidden;
}

.about-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.15) 65%, transparent 100%);
}

.about-hero-banner .modern-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.about-hero-banner h1 {
    color: var(--white);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin: 0;
}

@media (max-width: 768px) {
    .about-hero-banner {
        min-height: 280px;
        padding: 7.5rem 1.5rem 2.5rem;
    }

    .about-hero-banner h1 {
        font-size: 2rem;
    }
}

/* About Profile Grid */
.about-profile-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-profile-col .section-title-alt {
    font-size: 2rem;
}

.about-profile-col p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.about-profile-col p:last-child {
    margin-bottom: 0;
}

.about-profile-subtitle {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.about-profile-subtitle:not(:first-child) {
    margin-top: 2.5rem;
}

.about-profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-profile-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.9rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
}

.about-profile-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

@media (max-width: 768px) {
    .about-profile-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Product Hero Strip (half-height banner) */
.product-hero-strip {
    min-height: 0;
    padding: 9rem 2rem 7rem;
}

.product-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

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

.product-back-link-light {
    color: var(--white);
}

.product-back-link-light:hover {
    color: var(--white);
    opacity: 0.85;
}

.product-banner-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: -120px auto 2rem;
    aspect-ratio: 21 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.product-banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: var(--white);
    font-size: 4rem;
}

@media (max-width: 768px) {
    .product-hero-strip {
        padding: 7rem 1.25rem 4.5rem;
    }

    .product-banner-card {
        aspect-ratio: 16 / 10;
        margin: -70px auto 1.5rem;
        border-radius: 14px;
    }
}

/* Home Final CTA */
.cta-banner {
    text-align: center;
    background: var(--light);
}

.cta-banner-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    text-align: left;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4rem;
    background-color: #2563EB;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px),
        var(--gradient-3);
    background-size: 26px 26px, cover;
    background-position: center;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
}

.cta-banner-content {
    flex: 1;
    min-width: 0;
}

.cta-banner-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.cta-banner-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 0 2rem;
}

.cta-banner .modern-btn-outline-white {
    padding: 0.9rem 2.25rem;
    font-size: 0.95rem;
}

.cta-banner-icon {
    flex-shrink: 0;
    width: 220px;
}

.cta-banner-icon img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .cta-banner-card {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .cta-banner-icon {
        order: -1;
        width: 160px;
    }

    .cta-banner-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-banner-title {
        font-size: 1.6rem;
    }
}

/* Blog Hero */
.blog-hero {
    text-align: left;
}

.blog-hero .blog-hero-title {
    color: var(--white);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.blog-hero .blog-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 620px;
    margin: 0;
}

/* Blog Search */
.blog-search-form {
    position: relative;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.blog-search-form i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

.blog-search-form input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--light);
    transition: var(--transition);
}

.blog-search-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

/* Blog Grid & Card */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
    align-items: stretch;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.blog-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    background: var(--light);
    overflow: hidden;
}

.blog-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    min-height: 1.35rem;
}

.blog-card-dot {
    opacity: 0.5;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    min-height: 3.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.blog-empty i {
    font-size: 3.5rem;
    color: var(--border);
    margin-bottom: 1rem;
}

/* Blog Show */
.blog-show-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.blog-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
}

.blog-show-image {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blog-show-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.blog-show-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-share a,
.blog-copy-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--light);
    color: var(--text);
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.15rem;
    transition: var(--transition);
}

.blog-share a:hover,
.blog-copy-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.blog-share a.share-wa,
.blog-copy-link {
    background: #25D366;
    color: #fff;
}

.blog-share a.share-fb {
    background: #1877F2;
    color: #fff;
}

.blog-share a.share-x {
    background: #111827;
    color: #fff;
}

.blog-share a.share-in {
    background: #0A66C2;
    color: #fff;
}

.blog-share a.share-tg {
    background: #229ED9;
    color: #fff;
}

.blog-copy-link {
    background: var(--light);
    color: var(--text);
}

.blog-copy-link:hover {
    background: var(--primary);
    color: #fff;
}

.blog-show-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2rem 0 1rem;
    scroll-margin-top: 110px;
}

.blog-show-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin: 0 0 1rem;
}

.blog-show-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.5rem 0 0.75rem;
    scroll-margin-top: 110px;
}

.blog-show-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1.25rem 0 0.5rem;
    scroll-margin-top: 110px;
}

.blog-show-content ul,
.blog-show-content ol {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.blog-show-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.blog-show-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--light);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-light);
}

.blog-show-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 1rem 0;
    display: block;
}

.blog-show-content > img,
.blog-show-content > figure {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.blog-show-content img.align-left,
.blog-show-content img[style*="float: left"] {
    float: left;
    margin: 0.25rem 1.5rem 1rem 0;
    max-width: 50%;
}

.blog-show-content img.align-right,
.blog-show-content img[style*="float: right"] {
    float: right;
    margin: 0.25rem 0 1rem 1.5rem;
    max-width: 50%;
}

.blog-show-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.blog-show-content th,
.blog-show-content td {
    border: 1px solid var(--border);
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.blog-show-content th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}

.blog-show-content a {
    color: var(--primary);
    text-decoration: underline;
}

.blog-show-content pre {
    background: var(--dark);
    color: #E5E7EB;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.blog-show-content code {
    background: var(--light);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-show-content pre code {
    background: none;
    padding: 0;
}

.blog-show-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.blog-show-content > *:last-child {
    margin-bottom: 0;
}

.blog-show-content figure {
    margin: 1.5rem 0;
}

.blog-show-content figure img {
    margin: 0;
}

.blog-show-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.blog-show-inline-image {
    margin: 2rem 0;
}

.blog-show-inline-image img {
    width: 100%;
    border-radius: 0;
    box-shadow: var(--shadow);
}

.blog-show-inline-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.blog-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-tag {
    background: var(--light);
    color: var(--text);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.blog-sidebar-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-search-form-sidebar {
    max-width: none;
    margin: 0;
}

.blog-sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.blog-toc-list,
.blog-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-toc-list a,
.blog-recent-list a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.5;
    transition: var(--transition);
}

.blog-toc-list a {
    display: block;
}

.blog-toc-level-3 {
    padding-left: 1rem;
}

.blog-toc-level-3 a {
    font-size: 0.88rem;
}

.blog-toc-level-4 {
    padding-left: 2rem;
}

.blog-toc-level-4 a {
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-toc-list a:hover,
.blog-recent-list a:hover {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .blog-show-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .blog-hero .blog-hero-title {
        font-size: 2rem;
    }
}

/* Product Detail Content */
.product-detail-content {
    max-width: 100%;
}

.product-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-detail-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    flex-shrink: 0;
}

.product-detail-back {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2.5rem;
}

.product-project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
}

.product-project-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.product-datasheet-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

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

.product-detail-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
    margin-bottom: 0;
}

.product-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.product-detail-client {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 2rem;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Product Detail Gallery */
.product-gallery {
    margin-top: 4rem;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.product-gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: none;
    padding: 0;
    cursor: pointer;
    background: none;
}

.product-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

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

/* Gallery Lightbox */
.product-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.92);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-lightbox.open {
    display: flex;
}

.product-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.product-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.product-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Organizational Structure */
.org-chart-outer {
    position: relative;
}

.org-chart-wrapper {
    position: relative;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: center;
}

.org-chart-img {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
}

.org-zoom-btn {
    position: absolute;
    right: 16px;
    bottom: 16px;
}

/* Org chart fullscreen lightbox */
.org-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    overscroll-behavior: none;
    user-select: none;
    -webkit-user-select: none;
}

.org-lightbox[hidden] {
    display: none;
}

.org-lightbox-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    touch-action: none;
    overscroll-behavior: none;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.org-lightbox-stage::-webkit-scrollbar {
    display: none;
}

.org-lightbox-stage.is-dragging {
    cursor: grabbing;
}

.org-lightbox-stage img {
    max-width: 92vw;
    max-height: 88vh;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.15s ease-out;
    transform-origin: center center;
}

.org-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    transition: background 0.2s;
}

.org-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.org-viewer-toolbar {
    position: absolute;
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 6px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.org-lightbox-toolbar {
    right: 50%;
    bottom: 22px;
    transform: translateX(50%);
}

.org-tool {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--dark);
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.org-tool:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .org-chart-wrapper {
        display: block;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        overflow-x: auto;
    }

    .org-chart-img {
        width: auto;
        max-width: none;
        height: 60vh;
        min-height: 360px;
    }

    .org-chart-outer .org-zoom-btn {
        right: 12px;
        bottom: 12px;
        width: auto;
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .org-chart-outer .org-zoom-btn i {
        font-size: 0.9rem;
    }
}

/* Contact Info Cards */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #2563EB;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.contact-info-card a,
.contact-info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none;
    margin: 0;
}

.contact-info-card a:hover {
    color: var(--primary);
}

/* Product Showcase Grid */
.product-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-showcase-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.product-showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.product-showcase-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--light);
}

.product-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-showcase-card:hover .product-showcase-media img {
    transform: scale(1.08);
}

.product-showcase-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
}

.product-showcase-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.product-showcase-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-showcase-eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.product-showcase-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
}

.product-showcase-desc {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-showcase-link {
    margin-top: auto;
}

.product-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
}

.product-showcase-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

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

.enhanced-hero .hero-main-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 2rem;
}

@media (min-width: 769px) {
    .enhanced-hero .hero-main-title {
        font-size: 48px;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .enhanced-hero .hero-main-subtitle {
        font-size: 1.1rem;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.8);
        max-width: 540px;
        margin: 0 0 2rem;
    }
}

.hero-stats-mini {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 460px;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-mini strong {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-mini span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-actions .modern-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.hero-trust-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.trust-logos-mini {
    display: flex;
    gap: 0.75rem;
}

.trust-logo-item {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero Visual Content - Floating Cards */
.hero-visual-content {
    position: relative;
    height: 520px;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    z-index: 2;
}

.hero-earth-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 115%;
    max-width: 580px;
    z-index: 1;
    pointer-events: none;
}

.hero-floating-card {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 230px;
    animation: floatCard 6s ease-in-out infinite;
}

.hero-floating-card i {
    font-size: 2.5rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-floating-card strong {
    display: block;
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.hero-floating-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

.hero-floating-card.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-floating-card.card-2 {
    top: 45%;
    right: 5%;
    animation-delay: 2s;
}

.hero-floating-card.card-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

/* Floating Tech Icons */
.tech-icon-float {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
    animation: floatIcon 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

.fade-in-right {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About Section Modern Layout */
.about-modern {
    position: relative;
    overflow: hidden;
}

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

.about-image-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

.about-logo-large {
    max-width: 280px;
    width: 100%;
    height: auto;
}

.about-text-side {
    padding: 2rem 0;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title-alt {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.about-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.about-feature-item i {
    font-size: 1.5rem;
    color: var(--secondary);
}

/* Innovation Showcase Section */
.innovation-section {
    background: var(--light);
    position: relative;
}

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

.innovation-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.innovation-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.innovation-visual {
    height: 130px;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background-color: var(--light);
    background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 14px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ai-spark {
    transform-box: fill-box;
    transform-origin: center;
    animation: aiSparkPulse 1.8s ease-in-out infinite;
}

.ai-spark-2 { animation-delay: 0.3s; }
.ai-spark-3 { animation-delay: 0.6s; }

@keyframes aiSparkPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 1; }
}

.iot-wave {
    transform-box: fill-box;
    transform-origin: center;
    animation: iotWavePulse 2s ease-in-out infinite;
}

.iot-wave-1 { animation-delay: 0s; }
.iot-wave-2 { animation-delay: 0.3s; }

@keyframes iotWavePulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}

.code-cursor {
    animation: codeCursorBlink 1s steps(1) infinite;
}

@keyframes codeCursorBlink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.access-fp-arc {
    animation: accessFpPulse 2s ease-in-out infinite;
}

@keyframes accessFpPulse {
    0%, 100% { stroke-opacity: 0.4; }
    50% { stroke-opacity: 1; }
}

.access-lock-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: accessLockBlink 1.6s ease-in-out infinite;
}

@keyframes accessLockBlink {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.mobile-check-box,
.mobile-check-mark {
    transform-box: fill-box;
    transform-origin: center;
    animation: mobileCheckPulse 2.4s ease-in-out infinite;
}

@keyframes mobileCheckPulse {
    0%, 55%, 100% { opacity: 1; transform: scale(1); }
    25% { opacity: 0; transform: scale(0.7); }
}

.bar {
    transform-box: fill-box;
    transform-origin: bottom;
    animation: barPulse 2.4s ease-in-out infinite;
}

.bar-1 { animation-delay: 0s; }
.bar-2 { animation-delay: 0.2s; }
.bar-3 { animation-delay: 0.4s; }
.bar-4 { animation-delay: 0.6s; }

@keyframes barPulse {
    0%, 100% { transform: scaleY(0.65); }
    50% { transform: scaleY(1); }
}

.innovation-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
}

.innovation-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.92rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.innovation-grid-full-text .innovation-card p {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.innovation-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.innovation-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--light);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.innovation-stats i {
    font-size: 1rem;
}

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

    .hero-visual-content {
        display: none;
    }

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

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

@media (max-width: 768px) {
    .enhanced-hero {
        min-height: 100svh;
        padding: 8.5rem 1.5rem 3rem;
    }

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

    .enhanced-hero .hero-main-subtitle {
        font-size: 1rem;
    }

    .hero-stats-mini {
        gap: 0.75rem;
        max-width: none;
    }

    .stat-mini {
        padding: 0.75rem 0.6rem;
    }

    .stat-mini strong {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .modern-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .scroll-down-btn {
        display: none;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }

    .scroll-top-btn {
        bottom: 85px;
        right: 25px;
        width: 45px;
        height: 45px;
    }

    .about-logo-large {
        max-width: 150px;
    }

    .about-desc-extra {
        display: none;
    }

    .about-image-side {
        align-self: auto;
    }

    .about-text-side {
        padding: 0;
    }

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

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

@media (max-width: 480px) {
    .enhanced-hero .hero-main-title {
        font-size: 1.9rem;
    }

    .enhanced-hero .hero-main-subtitle {
        font-size: 0.95rem;
    }

    .hero-stats-mini {
        gap: 0.6rem;
    }

    .stat-mini {
        padding: 0.6rem 0.5rem;
    }

    .stat-mini strong {
        font-size: 1.15rem;
    }

    .stat-mini span {
        font-size: 0.7rem;
    }

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Preview bar (post preview) */
.preview-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.25rem;
    background: #1F2937;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

.preview-bar i {
    color: #F59E0B;
}

.preview-bar-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.preview-bar-back:hover {
    background: var(--primary-dark);
}

.preview-bar-back i {
    color: #fff;
}

/* ========================================
   MOBILE REFINEMENTS
   ======================================== */
@media (max-width: 768px) {
    /* Cards */
    .product-showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .product-showcase-body {
        padding: 1.25rem;
    }

    .product-showcase-media {
        aspect-ratio: 16 / 10;
    }

    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .innovation-card {
        padding: 1.5rem;
    }

    .innovation-visual {
        height: 110px;
    }

    html {
        -webkit-text-size-adjust: 100%;
    }

    body {
        font-size: 15px;
    }

    /* Hero */
    .modern-hero.page-hero {
        padding: 7.5rem 1.25rem 3rem;
    }

    .modern-hero.page-hero h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .modern-hero.page-hero p {
        font-size: 1rem;
    }

    .page-hero .page-hero-icon {
        font-size: 1.75rem;
    }

    .enhanced-hero {
        min-height: 100svh;
        padding: 7.5rem 1.25rem 3rem;
    }

    .enhanced-hero .hero-main-title {
        font-size: 2rem;
    }

    /* Section spacing */
    .modern-section {
        padding: 3.5rem 0;
    }

    .modern-container {
        padding: 0 1.25rem;
    }

    .modern-section-header {
        margin-bottom: 2.25rem;
    }

    .modern-section-title {
        font-size: 1.5rem;
    }

    .modern-section-subtitle {
        font-size: 1rem;
    }

    /* About hero */
    .about-hero-banner h1 {
        font-size: 1.75rem;
    }

    .about-profile-subtitle {
        font-size: 1.2rem;
    }

    .about-profile-col .section-title-alt {
        font-size: 1.5rem;
    }

    .section-title-alt {
        font-size: 1.5rem;
    }

    /* Blog */
    .blog-hero .blog-hero-title {
        font-size: 1.75rem;
    }

    .blog-hero .blog-hero-subtitle {
        font-size: 1rem;
    }

    .blog-show-content h2 {
        font-size: 1.35rem;
    }

    .blog-show-content p,
    .blog-show-content li {
        font-size: 1rem;
    }

    /* Products */
    .product-detail-title {
        font-size: 1.6rem;
    }

    .product-detail-description {
        font-size: 1rem;
    }

    .product-showcase-body h3,
    .innovation-card h3 {
        font-size: 1.15rem;
    }

    .product-detail-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .product-detail-header-actions {
        width: 100%;
        gap: 0.75rem;
    }

    .product-detail-header-actions .product-project-link,
    .product-detail-header-actions .product-datasheet-link {
        flex: 1;
        justify-content: center;
        padding: 0.7rem 1rem;
        border: 1px solid var(--border);
        border-radius: 999px;
        text-decoration: none;
    }

    /* Legal */
    .legal-content h2 {
        font-size: 1.2rem;
    }

    .legal-content > p:first-child {
        font-size: 1rem;
    }

    /* CTA */
    .cta-banner-title {
        font-size: 1.6rem;
    }

    /* Footer */
    .modern-footer {
        padding: 2.5rem 1.25rem 1.25rem;
    }

    .modern-footer-grid {
        gap: 2rem;
    }

    .modern-footer-menu-group {
        gap: 2rem;
    }

    /* Error */
    .error-page {
        padding-top: 8rem;
    }

    .error-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modern-hero.page-hero h1,
    .blog-hero .blog-hero-title,
    .about-hero-banner h1 {
        font-size: 1.55rem;
    }

    .enhanced-hero .hero-main-title {
        font-size: 1.75rem;
    }

    .modern-section-title,
    .section-title-alt {
        font-size: 1.4rem;
    }

    .product-detail-title {
        font-size: 1.4rem;
    }

    .modern-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .preview-bar {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Form flash messages (plain text) */
.form-flash {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-flash i {
    font-size: 1.25rem;
}

.form-flash-success {
    color: #059669;
}

.form-flash-error {
    color: #EF4444;
}

/* ========================================
   DARK MODE
   ======================================== */
[data-theme="dark"] {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --secondary: #10B981;
    --accent: #F59E0B;
    --gradient-1: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    --gradient-2: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --gradient-3: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
    /* In dark mode: --dark stays light (headings), --light is the elevated surface */
    --dark: #F1F5F9;
    --light: #1E293B;
    --text: #CBD5E1;
    --text-light: #94A3B8;
    --border: #334155;
    --icon-surface: #0F1A2E;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] body {
    background: #0B1220;
    color: var(--text);
}

/* Surfaces that were white become elevated dark cards */
[data-theme="dark"] .modern-card,
[data-theme="dark"] .product-showcase-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .innovation-card,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .blog-sidebar-box,
[data-theme="dark"] .modern-stat,
[data-theme="dark"] .client-company-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .testimonial-card {
    background: #111C33;
    border-color: var(--border);
}

/* Sections with inline light background */
[data-theme="dark"] .modern-section[style*="background: var(--light)"],
[data-theme="dark"] .about-modern[style*="background: var(--light)"] {
    background: #0F1A2E !important;
}

[data-theme="dark"] .modern-card:hover,
[data-theme="dark"] .product-showcase-card:hover,
[data-theme="dark"] .blog-card:hover,
[data-theme="dark"] .innovation-card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .modern-btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .modern-btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

[data-theme="dark"] .modern-form-input,
[data-theme="dark"] .blog-search-form input,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #1E293B;
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .blog-card-media,
[data-theme="dark"] .product-showcase-media,

[data-theme="dark"] .modern-footer {
    background: #060B14;
}

[data-theme="dark"] .org-chart-wrapper {
    background: #111C33;
}

[data-theme="dark"] .legal-content,
[data-theme="dark"] .blog-show-content {
    color: var(--text);
}

[data-theme="dark"] .blog-show-content code {
    background: #1E293B;
}

[data-theme="dark"] .blog-show-content pre {
    background: #060B14;
}

[data-theme="dark"] .product-banner-card,
[data-theme="dark"] .blog-show-image {
    background: #1E293B;
}

[data-theme="dark"] .modern-section-title,
[data-theme="dark"] .section-title-alt,
[data-theme="dark"] .product-detail-title,
[data-theme="dark"] .blog-card-title,
[data-theme="dark"] .innovation-card h3,
[data-theme="dark"] .product-showcase-body h3,
[data-theme="dark"] .cert-title,
[data-theme="dark"] .about-profile-subtitle,
[data-theme="dark"] .contact-info-card h3,
[data-theme="dark"] .blog-sidebar-title,
[data-theme="dark"] .modern-footer-title {
    color: var(--dark);
}

[data-theme="dark"] .blog-show-content a,
[data-theme="dark"] .blog-toc-list a,
[data-theme="dark"] .legal-content a {
    color: var(--primary-light);
}

[data-theme="dark"] .product-detail-description,
[data-theme="dark"] .product-showcase-desc,
[data-theme="dark"] .section-description,
[data-theme="dark"] .about-profile-col p,
[data-theme="dark"] .about-profile-list li,
[data-theme="dark"] .blog-show-meta,
[data-theme="dark"] .card-desc,
[data-theme="dark"] .cert-desc {
    color: var(--text);
}

[data-theme="dark"] .contact-info-icon,
[data-theme="dark"] .modern-stat-number,
[data-theme="dark"] .client-industry-tag {
    color: var(--primary-light);
}

[data-theme="dark"] .modern-alert-success {
    background: #052e22;
    color: #6ee7b7;
}

[data-theme="dark"] .modern-alert-error {
    background: #3f1414;
    color: #fca5a5;
}

[data-theme="dark"] .form-flash-success { color: #34d399; }
[data-theme="dark"] .form-flash-error { color: #f87171; }

/* Theme toggle button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--white);
    font-size: 1.35rem;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modern-header.scrolled .theme-toggle {
    color: var(--dark);
}

.modern-header.scrolled .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.modern-nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 38px;
        height: 38px;
    }
}

/* Contact form box */
.contact-form-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .contact-form-box {
    background: #111C33;
}

/* Dark mode: secondary / outline buttons */
[data-theme="dark"] .modern-btn-outline,
[data-theme="dark"] .modern-btn-outline-dark,
[data-theme="dark"] .modern-btn-outline-white,
[data-theme="dark"] .modern-btn-gradient {
    background: rgba(30, 41, 59, 0.8);
    color: #FFFFFF;
    border: 1px solid #334155;
    backdrop-filter: blur(6px);
    box-shadow: none;
}

[data-theme="dark"] .modern-btn-outline:hover,
[data-theme="dark"] .modern-btn-outline-dark:hover,
[data-theme="dark"] .modern-btn-outline-white:hover,
[data-theme="dark"] .modern-btn-gradient:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #FFFFFF;
    border-color: #64748B;
}

[data-theme="dark"] .client-badge,
[data-theme="dark"] .trust-logo-item,
[data-theme="dark"] .stat-mini {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="dark"] .blog-card-meta,
[data-theme="dark"] .product-showcase-eyebrow,
[data-theme="dark"] .cert-desc,
[data-theme="dark"] .modern-section-subtitle,
[data-theme="dark"] .blog-hero-subtitle {
    color: var(--text-light);
}

[data-theme="dark"] .blog-tag {
    background: #1E293B;
    color: var(--text);
}

[data-theme="dark"] .blog-search-form input::placeholder,
[data-theme="dark"] .modern-form-input::placeholder {
    color: #64748B;
}

[data-theme="dark"] .modern-header.scrolled {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .modern-header.scrolled .modern-menu a {
    color: var(--text);
}

[data-theme="dark"] .modern-header.scrolled .modern-menu a:hover,
[data-theme="dark"] .modern-header.scrolled .modern-menu a.active {
    color: var(--primary-light);
    opacity: 1;
}

[data-theme="dark"] .modern-header.scrolled .modern-nav-toggle {
    color: var(--dark);
}

/* Dark mode: hero sections */
[data-theme="dark"] .modern-hero,
[data-theme="dark"] .enhanced-hero,
[data-theme="dark"] .product-hero-photo {
    background: linear-gradient(135deg, #0B1220 0%, #111C33 100%);
}

[data-theme="dark"] .about-hero-banner {
    background-color: #0B1220;
    background-image: url('/assets/svg/bg-city.svg'), linear-gradient(135deg, #0A1630 0%, #142455 100%);
    background-size: cover, cover;
    background-position: center 45%, center;
    background-repeat: no-repeat, no-repeat;
    background-blend-mode: luminosity, normal;
}

[data-theme="dark"] .about-hero-banner::before {
    background: linear-gradient(0deg, rgba(6, 12, 28, 0.82) 0%, rgba(10, 20, 45, 0.55) 55%, rgba(14, 30, 66, 0.35) 100%);
}

[data-theme="dark"] .about-hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 28% 32%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 44% 12%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 62% 26%, rgba(255,255,255,0.75), transparent),
        radial-gradient(1px 1px at 78% 16%, rgba(255,255,255,0.85), transparent),
        radial-gradient(1.5px 1.5px at 88% 34%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 20% 48%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 70% 44%, rgba(255,255,255,0.55), transparent);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .about-hero-banner .modern-container {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .modern-hero::before {
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
}

[data-theme="dark"] .cta-banner {
    background: #0B1220;
}

[data-theme="dark"] .cta-banner-card {
    background-color: #0B1220;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px),
        linear-gradient(135deg, #0B1220 0%, #111C33 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}


[data-theme="dark"] .modern-section[style*="var(--gradient-3)"] {
    background: linear-gradient(135deg, #0B1220 0%, #12203a 100%) !important;
    color: var(--text);
}

[data-theme="dark"] .text-white {
    color: var(--dark) !important;
}

@media (max-width: 768px) {
    [data-theme="dark"] .modern-menu {
        background: #111C33;
    }
}

[data-theme="dark"] .modern-menu a {
    color: var(--text) !important;
}

[data-theme="dark"] .modern-menu a:hover {
    background: transparent;
    color: #FFFFFF !important;
}

[data-theme="dark"] .modern-menu a.active {
    background: transparent;
    color: var(--primary-light) !important;
    border-left-color: var(--primary-light);
}

/* Dark mode: hero floating cards */
[data-theme="dark"] .hero-floating-card {
    background: rgba(17, 28, 51, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-floating-card strong {
    color: #FFFFFF;
}

[data-theme="dark"] .hero-floating-card p {
    color: #94A3B8;
}

/* Layanan Kami: icon box glassmorphism in dark mode */
[data-theme="dark"] .innovation-visual {
    background-color: rgba(56, 189, 248, 0.08);
    background-image: radial-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Dark mode: plain .modern-btn (CTA on colored sections) matches outline style */
[data-theme="dark"] .modern-btn:not(.modern-btn-primary):not(.modern-btn-outline):not(.modern-btn-outline-dark):not(.modern-btn-outline-white):not(.modern-btn-gradient) {
    background: rgba(30, 41, 59, 0.8);
    color: #FFFFFF;
    border: 1px solid #334155;
    backdrop-filter: blur(6px);
    box-shadow: none;
}

[data-theme="dark"] .modern-btn:not(.modern-btn-primary):not(.modern-btn-outline):not(.modern-btn-outline-dark):not(.modern-btn-outline-white):not(.modern-btn-gradient):hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: #64748B;
}

/* Dark mode: contact info cards */
[data-theme="dark"] .contact-info-card {
    background: rgba(51, 65, 85, 0.2);
    border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .contact-info-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .contact-info-icon {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #38BDF8;
}

/* Dark mode: contact form inputs */
[data-theme="dark"] .contact-form-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
}

[data-theme="dark"] .modern-form-input {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    color: #fff;
}

[data-theme="dark"] .modern-form-input::placeholder {
    color: #64748B;
}

[data-theme="dark"] .modern-form-input:focus {
    background: #1E293B;
    border-color: #3B82F6;
    box-shadow: 0 0 0 1px #3B82F6;
    outline: none;
}

[data-theme="dark"] .modern-form-label {
    color: #E2E8F0;
}

/* Dark mode: Google Maps embed */
.map-embed {
    width: 100%;
    height: 420px;
    border: 1px solid transparent;
    overflow: hidden;
}

[data-theme="dark"] .map-embed {
    border-color: #334155;
}

[data-theme="dark"] .map-embed iframe {
    filter: invert(90%) hue-rotate(180deg) contrast(90%) grayscale(20%);
}

/* Contact form section: prevent heading clipping after anchor jump */
.contact-form-section {
    scroll-margin-top: 110px;
    padding-top: 5rem;
}

.contact-form-section .modern-section-header {
    margin-bottom: 2.5rem;
}



/* Contact submit button matches form inputs */
.contact-submit {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
}

/* Certifications heading: keep on one line, responsive size */
.cert-heading {
    font-size: clamp(1.25rem, 4vw, 2.25rem);
    white-space: nowrap;
}

/* Dark mode: error pages */
[data-theme="dark"] .error-page {
    background: linear-gradient(135deg, #0B1220 0%, #12203a 100%);
}

[data-theme="dark"] .error-code {
    background: none;
    -webkit-text-fill-color: #38BDF8;
    color: #38BDF8;
}

[data-theme="dark"] .error-icon {
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
}

[data-theme="dark"] .error-title {
    color: #F1F5F9;
}

[data-theme="dark"] .error-message {
    color: #94A3B8;
}

/* Blog hero illustration */
.blog-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
}

.blog-hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-hero-illustration img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .blog-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-hero-illustration img {
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .blog-hero-illustration {
        display: none;
    }
}

/* Page loader */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: opacity 0.3s ease;
}

.page-loader-img {
    width: 64px;
    height: 64px;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

[data-theme="dark"] .page-loader {
    background: #0B1220;
}

@media (max-width: 768px) {
    .page-loader-img {
        width: 52px;
        height: 52px;
    }
}

/* Product detail: lift the whole block (banner + text) into the blue hero */
.product-detail-section {
    margin-top: -80px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .product-detail-section {
        margin-top: -50px;
    }
}

/* CTA with hero-style dot pattern */
.cta-dot-bg {
    position: relative;
    overflow: hidden;
}

.cta-dot-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    pointer-events: none;
}

.cta-dot-bg > * {
    position: relative;
    z-index: 1;
}

.scroll-chevron {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Product detail rich content (TinyMCE output) — same body size, bold headings */
.product-detail-content-rich {
    width: 100%;
    max-width: none;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.product-detail-content-rich p {
    width: 100%;
    max-width: none;
    margin: 0 0 1rem;
    font-size: inherit;
}

.product-detail-content-rich h2,
.product-detail-content-rich h3,
.product-detail-content-rich h4 {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem;
    line-height: 1.4;
}

.product-detail-content-rich h2 {
    font-size: 1.25rem;
}

.product-detail-content-rich ul,
.product-detail-content-rich ol {
    margin: 0 0 1rem 1.5rem;
    font-size: inherit;
}

.product-detail-content-rich li {
    font-size: inherit;
    line-height: 1.8;
    margin-bottom: 0.35rem;
}

.product-detail-content-rich a {
    color: var(--primary);
    text-decoration: underline;
}

.product-detail-content-rich img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.product-detail-content-rich > *:last-child {
    margin-bottom: 0;
}

/* Product share row */
.product-share {
    border-bottom: none;
    border-top: 1px solid var(--border);
    padding-top: 1.75rem;
    padding-bottom: 0;
    margin-top: 2rem;
    margin-bottom: 0;
}

/* Remove mobile tap highlight (blue flash) */
html {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

a, button, input, select, textarea, label {
    -webkit-tap-highlight-color: transparent;
}

a:focus,
button:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Touch devices: neutralize sticky :hover states */
@media (hover: none) and (pointer: coarse) {
    .modern-menu a:hover {
        background: transparent;
        color: inherit !important;
    }

    .modern-header.scrolled .modern-menu a:hover {
        color: var(--primary) !important;
    }

    .modern-btn-primary:hover {
        background: #2563EB;
        border-color: rgba(255, 255, 255, 0.2);
    }

    .modern-footer-social-icon:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: none;
    }

    .blog-share a:hover,
    .blog-copy-link:hover {
        transform: none;
    }
}
