/* ====================================
   ASICPY - Modern Design System v2.0
   ==================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --primary: #0052CC;
    --primary-light: #4C9AFF;
    --primary-dark: #003B95;
    --primary-gradient: linear-gradient(135deg, #0052CC 0%, #00B8D9 100%);
    --secondary: #172B4D;
    --accent: #00B8D9;
    --accent-warm: #FF8B00;
    --success: #36B37E;
    --white: #FFFFFF;
    --gray-50: #FAFBFC;
    --gray-100: #F4F5F7;
    --gray-200: #EBECF0;
    --gray-300: #DFE1E6;
    --gray-400: #B3BAC5;
    --gray-500: #6B778C;
    --gray-600: #505F79;
    --gray-700: #344563;
    --gray-800: #253858;
    --gray-900: #091E42;
    --shadow-sm: 0 1px 3px rgba(9,30,66,0.08);
    --shadow-md: 0 4px 16px rgba(9,30,66,0.1);
    --shadow-lg: 0 8px 32px rgba(9,30,66,0.12);
    --shadow-xl: 0 16px 48px rgba(9,30,66,0.16);
    --shadow-glow: 0 0 40px rgba(0,82,204,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --navbar-height: 72px;
}

/* ---------- Global Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- Scroll Reveal Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Modern Navigation ---------- */
.navbar {
    padding: 0 !important;
    height: var(--navbar-height);
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 1050;
}

.navbar.scrolled {
    height: 60px;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-brand {
    margin-right: 0;
    padding-right: 2rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar-brand img {
    height: 42px;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
    height: 36px;
}

.navbar-nav.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.nav-item {
    padding: 0 6px;
    position: relative;
}

.nav-link {
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: var(--gray-700) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition) !important;
    position: relative;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(0, 82, 204, 0.06);
}

.nav-link.active,
.nav-item.active .nav-link {
    color: var(--primary) !important;
    background: rgba(0, 82, 204, 0.08);
}

.nav-link.active::after,
.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Dropdown Mega Menu Style */
.dropdown:hover .dropdown-menu {
    display: block;
    animation: slideDown 0.25s ease forwards;
}

.dropdown-menu {
    display: none;
    min-width: 360px;
    margin-top: 0;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--gray-700);
    transition: all var(--transition);
    white-space: normal;
    line-height: 1.5;
}

.dropdown-item:hover {
    background: rgba(0, 82, 204, 0.06);
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-toggle::after {
    transition: transform 0.25s ease;
    border: none;
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    display: inline-block;
    margin-left: 6px;
    vertical-align: 1px;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(-135deg);
}

/* Language Switcher */
.language-container {
    position: relative;
    display: inline-block;
    padding-left: 1.5rem;
}

.language-btn {
    background: transparent;
    border: 1.5px solid var(--gray-300) !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-700) !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.language-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: rgba(0, 82, 204, 0.04) !important;
}

.language-btn::after {
    content: '';
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 1060;
    overflow: hidden;
    min-width: 120px;
}

.language-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease;
}

.language-option {
    padding: 10px 18px;
    cursor: pointer;
    white-space: nowrap;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    font-size: 0.88rem;
    color: var(--gray-700);
    transition: all var(--transition);
}

.language-option:hover {
    background: rgba(0, 82, 204, 0.06);
    color: var(--primary);
}

/* ---------- Hero / Video Section ---------- */
.video-container {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    margin-top: var(--navbar-height);
    background: var(--gray-900);
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video gradient overlay */
.video-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    pointer-events: none;
}

.video-controls {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: var(--radius-md);
}

.video-controls button {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.9);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 14px;
}

.video-controls button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    width: 100%;
    padding: 20px;
}

/* Aspect ratio media queries */
@media (min-aspect-ratio: 16/9) {
    .video-container video {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-container video {
        width: auto;
        height: 100%;
    }
}

/* ---------- About Section ---------- */
#about {
    background: var(--white);
    padding: 100px 0;
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

#about h2 {
    color: var(--gray-900);
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.profile-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-600);
    text-align: justify;
}

.quote-mark {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ---------- Company Stats Section ---------- */
#company-stats {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 80px 0;
}

#company-stats .container {
    max-width: 700px;
}

.stats-item {
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-bounce);
    aspect-ratio: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.stats-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.stats-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.stats-item:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: rgba(0, 82, 204, 0.06);
    border-radius: 50%;
    padding: 14px;
}

.stats-icon {
    width: 100%;
    height: 100%;
}

.stats-icon path,
.stats-icon rect,
.stats-icon circle {
    stroke: var(--primary);
    stroke-width: 2.5;
}

.stats-content {
    text-align: center;
}

.stats-title {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-value {
    font-size: 1.1rem;
}

.stats-value .number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stats-value .plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stats-value .unit {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-left: 4px;
    font-weight: 500;
}

.text-primary-blue {
    color: var(--primary) !important;
}

.location {
    font-size: 1.3rem;
    color: var(--gray-700);
    font-weight: 600;
}

/* Stats grid */
#company-stats .row {
    margin: -8px;
}

#company-stats .col-md-6 {
    padding: 8px;
}

/* ---------- Section Titles ---------- */
.title-underline {
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    margin: 16px auto 30px;
    border-radius: 2px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ---------- World Map Section ---------- */
#global-distribution {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--white) 0%, #f0f4f8 100%);
}

.map-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 12px 48px rgba(6, 14, 26, 0.25),
        0 0 0 1px rgba(42, 127, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    background: #060e1a;
}

#world-map {
    width: 100%;
    min-height: 520px;
    max-height: 800px;
    background: #060e1a;
    border-radius: 0;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 24px;
    display: flex;
    gap: 24px;
    padding: 12px 20px;
    background: rgba(6, 14, 26, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 1px solid rgba(42, 127, 255, 0.2);
    z-index: 10;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(224, 240, 255, 0.85);
    font-weight: 500;
    font-family: 'Inter', system-ui, sans-serif;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot-hq {
    background: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6), 0 0 16px rgba(0, 229, 255, 0.2);
}

.legend-dot-project {
    background: #4da6ff;
    box-shadow: 0 0 6px rgba(77, 166, 255, 0.5), 0 0 12px rgba(77, 166, 255, 0.15);
}

.legend-dot-country {
    background: #1a3e6e;
    border: 1.5px solid #2a7fff;
    box-shadow: 0 0 6px rgba(42, 127, 255, 0.3);
}

/* ---------- Customers Grid ---------- */
#customers {
    padding: 80px 0;
    background: var(--gray-50);
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.customer-item {
    aspect-ratio: 16/9;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-md);
    transition: all var(--transition-bounce);
    border: 1px solid var(--gray-100);
}

.customer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all var(--transition);
    filter: grayscale(10%);
    opacity: 1;
}

.customer-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.customer-item:hover .customer-logo {
    filter: grayscale(0%) brightness(1.05);
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .customer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .customer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .customer-item {
        padding: 12px;
    }
}

/* ---------- Modern Footer ---------- */
.footer {
    font-family: var(--font-primary);
    color: rgba(255,255,255,0.9);
    background: linear-gradient(160deg, #0a1628 0%, #0d2847 50%, #0a1628 100%);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.footer::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,82,204,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-top {
    padding: 64px 0 32px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.company-info .footer-logo {
    max-width: 140px;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* Quick Links */
.footer-links .links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all var(--transition);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(-45deg);
    transition: transform var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-links a:hover::before {
    transform: rotate(-45deg) translateX(2px);
}

/* Contact Info */
.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.contact-section {
    flex: 1;
    min-width: 250px;
}

.contact-section-title {
    font-size: 0.95rem;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--white);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 14px;
    margin-top: 4px;
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.info-label {
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    display: block;
    margin-bottom: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-text {
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    font-size: 0.88rem;
}

.email-link {
    color: var(--accent) !important;
    text-decoration: none !important;
    transition: all var(--transition);
}

.email-link:hover {
    color: var(--primary-light) !important;
    text-decoration: underline !important;
}

/* Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
}

.copyright {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-bounce);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1040;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ---------- Hero Page Banner (non-index pages) ---------- */
.page-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0a1628 0%, #0d3168 60%, #0052CC 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,184,217,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,82,204,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.page-hero .hero-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* ---------- Product Page Styles ---------- */
.hero-section {
    margin-top: var(--navbar-height);
    padding: 80px 0;
    background: linear-gradient(135deg, #0a1628 0%, #0d3168 60%, #0052CC 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,184,217,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* ---------- Swiper / Patents Section ---------- */
.swiper {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 400px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.swiper-slide:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.02);
}

.award-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.award-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.patent-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ---------- Table Styles ---------- */
.table-auto {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-auto th {
    background: var(--primary) !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 14px 20px !important;
    font-size: 0.9rem;
    border: none !important;
}

.table-auto td {
    padding: 12px 20px !important;
    font-size: 0.9rem;
    border-color: var(--gray-100) !important;
    vertical-align: middle;
}

.table-auto tbody tr {
    transition: background var(--transition);
}

.table-auto tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.table-auto tbody tr:hover {
    background: rgba(0, 82, 204, 0.04);
}

/* ---------- File Tree (tec.html) ---------- */
.file-tree {
    font-family: var(--font-primary);
}

.tree-node {
    margin: 4px 0;
}

.tree-content {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.tree-content:hover {
    background: rgba(0, 82, 204, 0.04);
}

.tree-children {
    margin-left: 24px;
    border-left: 2px solid var(--gray-200);
    padding-left: 12px;
}

.tree-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.tree-arrow.expanded {
    transform: rotate(90deg);
}

/* tec.html icon wrapper override */
.file-tree .icon-wrapper {
    width: 20px;
    height: auto;
    background: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    margin: 0 10px;
}

.download-btn {
    margin-left: auto;
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--primary);
    background: rgba(0, 82, 204, 0.06);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: all var(--transition);
    text-decoration: none;
    font-weight: 500;
}

.tree-content:hover .download-btn {
    opacity: 1;
}

.download-btn:hover {
    background: rgba(0, 82, 204, 0.12);
    color: var(--primary-dark);
}

/* ---------- Login Popup ---------- */
.popup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1100;
}

.popup form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 420px;
    max-width: 90%;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease;
}

.popup label {
    font-size: 0.88rem;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

.popup input {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 20px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all var(--transition);
    outline: none;
}

.popup input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,82,204,0.1);
}

.popup form {
    position: relative;
}

.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--gray-500, #6B778C);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.popup-close-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--gray-700, #333);
    transform: none;
    box-shadow: none;
}

.submit-btn-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.popup button[type="submit"],
.submit-btn-container button[type="submit"] {
    padding: 12px 40px;
    font-size: 0.95rem;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition);
    letter-spacing: 0.05em;
}

.popup button[type="submit"]:hover,
.submit-btn-container button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cancel-btn {
    padding: 12px 40px;
    font-size: 0.95rem;
    color: var(--gray-700, #333);
    background: var(--gray-100, #F4F5F7);
    border: 1.5px solid var(--gray-300, #DFE1E6);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition);
    letter-spacing: 0.05em;
}

.cancel-btn:hover {
    background: var(--gray-200, #EBECF0);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(0,0,0,0.1));
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 16px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        margin-top: 8px;
    }

    .language-container {
        padding-left: 0;
        margin-top: 12px;
    }

    #about {
        padding: 60px 0;
    }

    #about h2 {
        font-size: 1.8rem;
    }

    .profile-content {
        font-size: 1rem;
        text-align: left;
    }

    .hero-section {
        padding: 60px 0;
    }

    .page-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    .stats-item {
        padding: 20px 12px;
    }

    .icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .stats-value .number {
        font-size: 1.8rem;
    }

    .location {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-column {
        flex: none;
        width: 100%;
    }

    .footer-top {
        padding: 40px 0 24px;
    }

    .contact-item .info-label {
        display: block;
        margin-bottom: 2px;
    }

    .video-container {
        height: 60vh;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    #company-stats {
        padding: 50px 0;
    }

    #customers {
        padding: 50px 0;
    }

    #global-distribution {
        padding: 50px 0;
    }
}

/* ---------- Spinner / Loading ---------- */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading .tree-content {
    opacity: 0.5;
    pointer-events: none;
}

/* ---------- Selection Color ---------- */
::selection {
    background: rgba(0, 82, 204, 0.15);
    color: var(--gray-900);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ---------- Image Loading ---------- */
img {
    max-width: 100%;
    height: auto;
}
