@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================== */
:root[data-theme="dark"] {
    --bg-color: #090d16;
    --bg-navbar: rgba(9, 13, 22, 0.75);
    --card-bg: rgba(17, 24, 39, 0.5);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-hover-border: rgba(59, 130, 246, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.25);
    --secondary-color: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.2);
    --accent-color: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.2);
    
    --grid-line: rgba(255, 255, 255, 0.02);
    --subtle-bg: #1e293b;
    --shadow-main: rgba(0, 0, 0, 0.4);
    --shadow-glow: rgba(59, 130, 246, 0.1);
    
    --sun-display: none;
    --moon-display: block;
}

:root[data-theme="light"] {
    --bg-color: #f8fafc;
    --bg-navbar: rgba(248, 250, 252, 0.8);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(15, 23, 42, 0.06);
    --card-hover-border: rgba(37, 99, 235, 0.3);
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --primary-color: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.08);
    --secondary-color: #0891b2;
    --secondary-glow: rgba(8, 145, 178, 0.08);
    --accent-color: #7c3aed;
    --accent-glow: rgba(124, 58, 237, 0.08);
    
    --grid-line: rgba(15, 23, 42, 0.02);
    --subtle-bg: #f1f5f9;
    --shadow-main: rgba(15, 23, 42, 0.06);
    --shadow-glow: rgba(37, 99, 235, 0.04);
    
    --sun-display: block;
    --moon-display: none;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 100px 0;
}

/* ==========================================
   COMPONENTS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.product-tabs::-webkit-scrollbar {
    height: 4px;
}

.product-tabs::-webkit-scrollbar-thumb {
    background-color: var(--card-border);
    border-radius: 4px;
}

.tab-btn {
    flex-shrink: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: var(--subtle-bg);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background-color: var(--card-bg);
    border-color: var(--text-muted);
}

.btn-block {
    display: flex;
    width: 100%;
}

.glass-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--shadow-main);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: inline-block;
}

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

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-main);
}


.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.75));
}

.logo-icon {
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    animation: pulseGlow 3s infinite alternate;
}

.logo-text span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

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

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.btn-contact {
    padding: 8px 18px;
    background: var(--subtle-bg);
    border: 1px solid var(--card-border);
    border-radius: 9999px;
}

.btn-contact:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-contact::after {
    display: none;
}

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

.theme-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--subtle-bg);
    transition: background-color 0.3s;
}

.theme-btn:hover {
    background-color: var(--card-border);
}

.sun-icon {
    display: var(--sun-display);
}

.moon-icon {
    display: var(--moon-display);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--subtle-bg);
    align-items: center;
    justify-content: center;
}

/* Mobile navigation drawer */
.mobile-drawer {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--card-border);
    padding: 24px;
    z-index: 999;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-item {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid var(--card-border);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-glow);
    border: 1px solid var(--primary-color);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: flash 1.5s infinite;
}





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

/* Hero Dashboard card */
.hero-visual {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.visual-wrapper {
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}

.tech-grid-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-carousel-card {
    width: 100%;
    max-width: 820px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px var(--shadow-main);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 25px 50px var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.15);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.window-title {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
    font-family: monospace;
}

/* Hero Carousel */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 440px;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.04);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 20px 16px;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.7) 65%, transparent 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
    z-index: 5;
}

:root[data-theme="light"] .carousel-caption {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.68) 65%, transparent 100%);
}

.carousel-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #60a5fa;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.carousel-badge.badge-cyan {
    background: rgba(6, 182, 212, 0.25);
    border-color: rgba(6, 182, 212, 0.5);
    color: #22d3ee;
}

.carousel-badge.badge-violet {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    color: #c084fc;
}

.carousel-badge.badge-green {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
}

.carousel-badge i {
    width: 13px;
    height: 13px;
}

.carousel-caption h4 {
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.carousel-caption p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    line-height: 1.4;
}

/* Control Buttons */
.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    opacity: 0;
}

.carousel-wrapper:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.carousel-btn i {
    width: 20px;
    height: 20px;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot-indicator.active {
    width: 22px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.carousel-footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--subtle-bg);
    border-top: 1px solid var(--card-border);
    font-size: 12px;
    color: var(--text-muted);
}

.status-icon-sparkle {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
    flex-shrink: 0;
    animation: pulseGlow 2s infinite alternate;
}

/* ==========================================
   TECHNICAL ACHIEVEMENTS
   ========================================== */
.achievements-section {
    position: relative;
    background-color: var(--bg-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.achievement-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 100%, var(--primary-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.achievement-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    box-shadow: 0 12px 40px var(--shadow-glow);
}

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

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 24px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s;
}

.achievement-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-color);
}

.achievement-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.achievement-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.card-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-bullets li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-main);
}

.bullet-icon {
    width: 14px;
    height: 14px;
    color: var(--secondary-color);
}

/* ==========================================
   PRODUCT SHOWCASE
   ========================================== */
.products-section {
    background-color: var(--bg-color);
    position: relative;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 9999px;
    background-color: var(--subtle-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--text-main);
    background-color: var(--card-bg);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.product-tab-content {
    position: relative;
    min-height: 480px;
}

.product-item {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.product-item.active {
    display: grid;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.product-image {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-main);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    z-index: 10;
}

.neon-glow-bg {
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
}

.neon-glow-bg.cyan { background-color: var(--secondary-color); }
.neon-glow-bg.violet { background-color: var(--accent-color); }
.neon-glow-bg.blue { background-color: var(--primary-color); }

/* Custom 3D isometric cube for visual wow */
.cube-container {
    width: 120px;
    height: 120px;
    perspective: 600px;
    z-index: 2;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(-45deg);
}

.animate-cube {
    animation: rotateCube 12s infinite linear;
}

.face {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--primary-color);
    background: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.face.front  { transform: rotateY(0deg) translateZ(60px); }
.face.back   { transform: rotateY(180deg) translateZ(60px); }
.face.right  { transform: rotateY(90deg) translateZ(60px); border-color: var(--secondary-color); background: rgba(6, 182, 212, 0.2); }
.face.left   { transform: rotateY(-90deg) translateZ(60px); border-color: var(--secondary-color); }
.face.top    { transform: rotateX(90deg) translateZ(60px); }
.face.bottom { transform: rotateX(-90deg) translateZ(60px); }

/* Mockup inner details for other tabs */
.inner-mockup {
    width: 80%;
    padding: 20px;
    z-index: 2;
}

.hub-dashboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-metric {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 6px;
}

.h-lbl { color: var(--text-muted); }
.h-val { font-weight: 700; color: var(--primary-color); }
.text-warn { color: #f59e0b; }

.hub-chart {
    height: 80px;
    position: relative;
    margin-top: 10px;
}

.line-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
}

.line-path {
    width: 100%;
    height: 100%;
}

.gateway-icon-box {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waves-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: waveGlow 3s infinite linear;
}

.waves-ring.delay-1 {
    animation-delay: 1.5s;
}

/* Info card right details */
.product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-info h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.lead-text {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 16px;
}

.product-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .spec-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
}

/* ==========================================
   COOPERATION RECORDS
   ========================================== */
.cooperation-section {
    background-color: var(--bg-color);
}

.cooperation-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.partner-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    transition: all 0.3s;
}

.partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.partner-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.partner-card:hover .partner-logo-icon {
    color: var(--primary-color);
}

.partner-card span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.cooperation-cases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.case-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 10px 30px var(--shadow-glow);
}

.case-category {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.case-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.case-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

.case-link:hover {
    color: var(--secondary-color);
}

/* ==========================================
   DEVELOPMENT HISTORY TIMELINE
   ========================================== */
.timeline-section {
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color), var(--subtle-bg));
}

.timeline-item {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    margin-left: 50%;
}

.timeline-item:nth-child(odd) {
    margin-right: 50%;
}

.timeline-dot-wrapper {
    position: absolute;
    top: 24px;
    right: -7px;
    z-index: 10;
}

.timeline-item:nth-child(even) .timeline-dot-wrapper {
    left: -7px;
    right: auto;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 3px solid var(--primary-color);
    transition: all 0.3s;
}

.timeline-item.active .timeline-dot {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--secondary-color);
}

.timeline-content {
    width: 90%;
    padding: 24px;
}

.timeline-year {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.timeline-content h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    background-color: var(--bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 40px;
    max-width: 480px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.method-item i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--subtle-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
}

.method-item span {
    font-size: 14px;
    font-weight: 500;
}

.contact-form-wrapper {
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    background-color: var(--subtle-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.main-footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--card-border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-links-group h5 {
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group ul li a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links-group ul li a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--card-border);
    padding-top: 30px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--subtle-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-socials a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================
   COMPANY NEWS & DYNAMICS
   ========================================== */
.news-section {
    background-color: var(--bg-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    box-shadow: 0 12px 40px var(--shadow-glow);
}

.news-img-mock {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-glow) 0%, var(--accent-glow) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
}

.news-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: var(--subtle-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    z-index: 2;
}

.news-tag.highlight {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.news-tag.highlight-green {
    background-color: #10b981;
    color: #fff;
    border-color: #10b981;
}

.news-icon-bg {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    opacity: 0.12;
    transform: scale(1);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.news-card:hover .news-icon-bg {
    transform: scale(1.2) rotate(8deg);
    opacity: 0.2;
}

.news-text-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.news-date i {
    width: 14px;
    height: 14px;
}

.news-card h4 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.news-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
}

.news-link:hover {
    color: var(--secondary-color);
}

.news-actions {
    display: flex;
    justify-content: center;
}

/* ==========================================
   SCROLL REVEAL & ANIMATIONS
   ========================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 2px var(--primary-glow)); }
    100% { filter: drop-shadow(0 0 12px var(--primary-color)); }
}

@keyframes barPulse {
    0% { height: 75%; }
    100% { height: 95%; }
}

@keyframes rotateCube {
    0% { transform: rotateX(-20deg) rotateY(-45deg); }
    100% { transform: rotateX(-20deg) rotateY(315deg); }
}

@keyframes waveGlow {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ==========================================
   RESPONSIVE LAYOUTS
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .cooperation-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-tabs {
        justify-content: flex-start;
    }

    .section-padding {
        padding: 60px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .product-item {
        grid-template-columns: 1fr;
        gap: 30px;
        position: relative;
    }
    
    .product-tab-content {
        min-height: auto;
    }
    
    .product-image {
        height: 280px;
    }
    
    .cooperation-cases {
        grid-template-columns: 1fr;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 45px;
        justify-content: flex-start;
    }
    
    .timeline-dot-wrapper {
        left: 13px !important;
        right: auto !important;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================
   COOPERATION DETAIL PAGES
   ========================================== */
.detail-page-body {
    padding-top: 80px;
}

.breadcrumb-nav {
    padding: 24px 0 12px;
    font-size: 14px;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.breadcrumb-container a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.breadcrumb-container a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--card-border);
    display: flex;
    align-items: center;
}

.breadcrumb-current {
    color: var(--text-main);
    font-weight: 500;
}

.detail-hero {
    position: relative;
    padding: 40px 0 60px;
    overflow: hidden;
    background: radial-gradient(circle at top right, var(--primary-glow) 0%, transparent 60%);
    border-bottom: 1px solid var(--card-border);
}

/* News & Detail Pages Unified Single-Column Layout & Width */
.detail-page-body .detail-hero .container,
.detail-page-body .detail-content-section .container,
.detail-page-body .breadcrumb-nav .container {
    max-width: 1000px;
    margin: 0 auto;
}

.detail-hero-content {
    max-width: 100%;
}

.detail-category {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: inline-block;
}

.detail-title {
    font-size: 38px;
    line-height: 1.25;
    margin-bottom: 20px;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 16px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.detail-meta-item i {
    width: 15px;
    height: 15px;
    color: var(--primary-color);
}

.detail-content-section {
    padding: 40px 0 80px;
}

.detail-layout, .detail-grid {
    display: block;
    width: 100%;
}

.detail-main-article, .detail-main-content {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-article-card {
    padding: 35px;
}

.detail-article-card h3 {
    font-size: 20px;
    margin-bottom: 18px;
    position: relative;
    padding-left: 14px;
}

.detail-article-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 18px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.detail-article-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.75;
    margin-bottom: 16px;
}

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

.detail-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin: 10px 0;
}

.detail-metric-card {
    background-color: var(--subtle-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.detail-metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.detail-metric-num {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 6px;
}

.detail-metric-label {
    font-size: 11px;
    color: var(--text-muted);
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    padding: 28px;
}

.sidebar-card h4 {
    font-size: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
}

.partner-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.partner-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.partner-info-lbl {
    font-size: 11px;
    color: var(--text-muted);
}

.partner-info-val {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
}

.tech-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 9999px;
    background-color: var(--subtle-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    transition: all 0.3s;
}

.tech-tag:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: var(--card-bg);
}

.btn-back-home {
    margin-top: 10px;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.detail-list li i {
    color: var(--secondary-color);
    width: 14px;
    height: 14px;
    margin-top: 4px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .detail-title {
        font-size: 30px;
    }
}

/* ==========================================
   NEWS ARCHIVE & NEWS DETAILS
   ========================================== */
.news-archive-header {
    background: radial-gradient(circle at top, var(--primary-glow) 0%, transparent 60%);
    padding: 60px 0 30px;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
}

.news-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 10px;
    flex-wrap: wrap;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Smooth filtering transitions */
.news-card-wrapper {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.news-card-wrapper.hidden {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.news-image-slot {
    margin: 24px 0;
    padding: 12px;
    background-color: var(--subtle-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-main);
    transition: all 0.3s ease;
}

.news-image-slot:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.news-image-slot img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    max-height: 480px;
}

.news-image-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
    font-weight: 500;
}

.news-quote-box {
    border-left: 4px solid var(--primary-color);
    padding: 14px 20px;
    background-color: var(--subtle-bg);
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-style: italic;
}

.news-quote-box p {
    color: var(--text-main) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-news-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

.sidebar-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-news-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    transition: color 0.3s;
}

.sidebar-news-title:hover {
    color: var(--primary-color);
}

.sidebar-news-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* News Video Player & Media Container */
.news-media-box {
    width: 100%;
    margin: 25px 0;
    text-align: center;
}

.news-media-box video {
    width: 100%;
    max-height: 480px;
    border-radius: 12px;
    background-color: #000;
    box-shadow: 0 8px 32px var(--shadow-main);
}

.news-tpl-card.active {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}





.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 45%, #818cf8 80%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px rgba(56, 189, 248, 0.25);
    letter-spacing: -0.5px;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #0f172a 0%, #0284c7 50%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-indent: 2em;
    text-align: justify;
    letter-spacing: 0.3px;
    white-space: pre-line;
}


/* ==========================================
   PRODUCT SPECIFICATIONS GRID (Dark & Light)
   ========================================== */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    width: 100%;
    margin-bottom: 28px;
}

/* Dark Mode Spec Card */
.spec-item {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-left: 3px solid #38bdf8;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.spec-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.12);
}

.spec-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
    word-break: break-word;
}

/* Light Mode Spec Card - Fresh White Card with Elegant Soft Blue Accent */
[data-theme="light"] .spec-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0284c7;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .spec-item:hover {
    background: #ffffff;
    border-color: #93c5fd;
    border-left-color: #0284c7;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
    transform: translateY(-2px);
}

[data-theme="light"] .spec-label {
    color: #64748b;
}

[data-theme="light"] .spec-value {
    color: #0f172a;
}

@media (max-width: 768px) {
    .spec-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
}

/* 3D CNC Machine Model Viewport */
.cnc-3d-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.cnc-3d-viewport:active {
    cursor: grabbing;
}

.cnc-3d-viewport canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    outline: none;
}

.model-loading-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10;
    color: var(--text-muted);
    font-size: 13px;
    transition: opacity 0.35s ease;
}

.model-loading-spinner.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner-ring {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spinRing 0.8s linear infinite;
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

.model-interaction-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    z-index: 5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.model-interaction-hint .reset-view-btn {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.model-interaction-hint .reset-view-btn:hover {
    background: #38bdf8;
    color: #0b1120;
}

/* Product Media Options & Upload Styling */
.media-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .media-type-grid {
        grid-template-columns: 1fr;
    }
}

.media-type-option {
    border: 2px solid rgba(56, 189, 248, 0.2);
    background: rgba(30, 41, 59, 0.6);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.media-type-option:hover {
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
}

.media-type-option.selected {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.16);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.media-type-option .opt-icon {
    font-size: 24px;
    color: #38bdf8;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
}

.media-type-option .opt-title {
    font-weight: 600;
    font-size: 14px;
    color: #f8fafc;
    margin-bottom: 4px;
}

.media-type-option .opt-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
}

.media-panel-section {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.product-video-wrapper video {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.product-img-wrapper img:hover {
    transform: scale(1.05);
}

