/* ============================================
   ARC CNC - Main Stylesheet
   Professional Industrial Design
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
    /* Primary Colors */
    --primary: #e67e22;
    --primary-dark: #d35400;
    --primary-light: #f39c12;
    --primary-glow: rgba(230, 126, 34, 0.3);
    
    /* Dark Colors */
    --dark-900: #0a0e17;
    --dark-800: #0d1321;
    --dark-700: #111827;
    --dark-600: #1a2332;
    --dark-500: #243042;
    --dark-400: #2d3a4d;
    
    /* Neutral */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    
    /* Accent */
    --accent-blue: #2980b9;
    --accent-green: #27ae60;
    --accent-red: #c0392b;
    
    /* Metallic */
    --metallic-1: #b8c6d4;
    --metallic-2: #8e9aaf;
    --metallic-3: #5c6b7a;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 30px var(--primary-glow);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-700);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Utility Classes ---- */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title .subtitle::before,
.section-title .subtitle::after {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-700);
    margin-bottom: 16px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray-500);
    font-size: 1.05rem;
}

.section-dark {
    background: var(--dark-800);
    color: #fff;
}

.section-dark .section-title h2 {
    color: #fff;
}

.section-dark .section-title p {
    color: var(--metallic-2);
}

.section-gray {
    background: var(--gray-100);
}

/* ---- Buttons ---- */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transition: var(--transition-normal);
    z-index: -1;
}

.btn-primary-custom:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary-custom:hover::before {
    left: 0;
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-outline-custom:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(230, 126, 34, 0.1);
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-900);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-gear {
    width: 60px;
    height: 60px;
    border: 3px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.preloader-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--primary);
    text-transform: uppercase;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar-arc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 18px 0;
    transition: var(--transition-normal);
    background: transparent;
}

.navbar-arc.scrolled {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar-arc .navbar-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-arc .navbar-brand .brand-highlight {
    color: var(--primary);
}

.navbar-arc .navbar-brand img {
    height: 45px;
}

.navbar-arc .nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    padding: 8px 18px !important;
    position: relative;
    transition: var(--transition-normal);
}

.navbar-arc .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-normal);
}

.navbar-arc .nav-link:hover,
.navbar-arc .nav-link.active {
    color: var(--primary);
}

.navbar-arc .nav-link:hover::after,
.navbar-arc .nav-link.active::after {
    width: calc(100% - 36px);
}

.navbar-arc .navbar-toggler {
    border: none;
    color: #fff;
    font-size: 1.4rem;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
}

.nav-cta {
    margin-left: 10px;
}

.nav-cta .btn-primary-custom {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* ============================================
   HERO / SLIDER
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 14, 23, 0.92) 0%,
        rgba(10, 14, 23, 0.7) 50%,
        rgba(10, 14, 23, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content .subtitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards 0.3s;
}

.hero-content .subtitle::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards 0.5s;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content .hero-desc {
    font-size: 1.1rem;
    color: var(--metallic-1);
    max-width: 550px;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards 0.7s;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards 0.9s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    border-radius: 2px;
}

.slider-dot.active {
    background: var(--primary);
    width: 60px;
}

/* Slider side info */
.hero-side-info {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-side-info a {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    transition: var(--transition-normal);
    writing-mode: vertical-lr;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-weight: 500;
}

.hero-side-info a:hover {
    color: var(--primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    writing-mode: vertical-lr;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--primary);
    animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-image-wrapper {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.about-image-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 24px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-glow);
    z-index: 5;
}

.about-experience-badge .number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.about-experience-badge .text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.about-content .about-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.about-content .about-subtitle::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.about-content h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray-500);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.about-feature-item:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.about-feature-item i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 126, 34, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.about-feature-item span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-600);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--dark-800);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(230, 126, 34, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(41, 128, 185, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.service-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-8px);
    border-color: rgba(230, 126, 34, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(230, 126, 34, 0.05));
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.service-card p {
    color: var(--metallic-2);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    position: relative;
}

.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.product-filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition-normal);
}

.product-filter-btn:hover,
.product-filter-btn.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--gray-100);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition-normal);
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-overlay a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.product-card-overlay a:hover {
    background: #fff;
    color: var(--primary);
}

.product-card-body {
    padding: 24px;
}

.product-card-category {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-card-body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: var(--transition-normal);
}

.product-card:hover .product-card-body h4 {
    color: var(--primary);
}

.product-card-body p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.product-card-footer a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-card-footer a:hover {
    gap: 12px;
}

/* ============================================
   STATS / COUNTER SECTION
   ============================================ */
.stats-section {
    position: relative;
    background: var(--dark-900);
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.08) 0%, transparent 50%, rgba(41, 128, 185, 0.05) 100%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255,255,255,0.08);
}

.stat-item:last-child::after {
    display: none;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--metallic-2);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    background: var(--gray-100);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 40%, rgba(10, 14, 23, 0.85));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.gallery-item-overlay p {
    color: var(--metallic-1);
    font-size: 0.85rem;
}

.gallery-item-overlay .gallery-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-zoom {
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 6rem;
    font-family: serif;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-rating i {
    color: var(--primary);
    font-size: 0.9rem;
}

.testimonial-card .testimonial-text {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    flex-shrink: 0;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
}

.testimonial-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.testimonial-author-info span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: var(--dark-800);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.6rem;
    color: #fff;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--metallic-2);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-900);
    color: rgba(255,255,255,0.7);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-main {
    padding: 80px 0 40px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-brand .brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
}

.footer-brand .brand-name span {
    color: var(--primary);
}

.footer-desc {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--metallic-2);
    margin-bottom: 24px;
    max-width: 350px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--metallic-2);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

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

.footer h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--metallic-2);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact-item p {
    color: var(--metallic-2);
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--metallic-3);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-form-wrapper .form-control {
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-normal);
    background: var(--gray-100);
}

.contact-form-wrapper .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
    background: #fff;
}

.contact-info-card {
    background: var(--dark-800);
    border-radius: var(--radius-lg);
    padding: 40px;
    height: 100%;
    color: #fff;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 126, 34, 0.1);
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.contact-info-item p {
    color: var(--metallic-2);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
    position: relative;
    padding: 180px 0 80px;
    background: var(--dark-800);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(230, 126, 34, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 50%, rgba(41, 128, 185, 0.03) 100%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 16px;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: var(--metallic-2);
    font-family: var(--font-heading);
    font-weight: 500;
}

.page-header .breadcrumb-item.active {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--metallic-3);
}

/* Grid lines decoration */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.grid-lines::before,
.grid-lines::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,0.02);
}

.grid-lines::before {
    width: 1px;
    height: 100%;
    left: 25%;
    top: 0;
}

.grid-lines::after {
    width: 1px;
    height: 100%;
    left: 75%;
    top: 0;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--gray-100);
}

.product-detail-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.product-detail-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.product-detail-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.product-detail-thumbnails img:hover,
.product-detail-thumbnails img.active {
    border-color: var(--primary);
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.product-specs-table tr td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.product-specs-table tr td:first-child {
    font-weight: 600;
    color: var(--dark-600);
    width: 40%;
    background: var(--gray-100);
}

.product-specs-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition-normal);
    animation: whatsappPulse 2s ease infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    .hero-side-info {
        display: none;
    }
}

@media (max-width: 991px) {
    .section-padding {
        padding: 70px 0;
    }
    .hero-content h1 {
        font-size: 2.6rem;
    }
    .section-title h2 {
        font-size: 2.2rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item:nth-child(1) {
        grid-column: span 2;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .navbar-arc .navbar-collapse {
        background: rgba(10, 14, 23, 0.98);
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 10px;
    }
    .stat-item::after {
        display: none;
    }
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 600px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content .hero-desc {
        font-size: 0.95rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .gallery-item {
        height: 200px;
    }
    .about-experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        display: inline-block;
        margin-top: 20px;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .page-header {
        padding: 140px 0 60px;
    }
    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn-primary-custom,
    .hero-buttons .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .stat-number {
        font-size: 2.2rem;
    }
}

/* ============================================
   ANIMATIONS / KEYFRAMES
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth loading for images */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Team Section */
.team-card {
    text-align: center;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-card-image {
    height: 300px;
    overflow: hidden;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.team-card-image .team-placeholder {
    font-size: 4rem;
    color: var(--metallic-2);
}

.team-card-body {
    padding: 24px;
}

.team-card-body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-card-body .position {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.team-card-body p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay.show {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    background: none;
    border: none;
}

/* No image placeholder */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--metallic-2);
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-image-placeholder span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
}

/* ============================================
   PARTNERS CAROUSEL
   ============================================ */
.partners-section {
    background: var(--dark-900);
    padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}

.partners-header {
    text-align: center;
    margin-bottom: 30px;
}

.partners-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 8px;
}

.partners-label::before,
.partners-label::after {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--primary);
}

.partners-header h5 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.partners-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.partners-fade {
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.partners-fade-left {
    left: 0;
    background: linear-gradient(90deg, var(--dark-900), transparent);
}

.partners-fade-right {
    right: 0;
    background: linear-gradient(-90deg, var(--dark-900), transparent);
}

.partners-track {
    display: flex;
    gap: 50px;
    animation: partnersScroll 35s linear infinite;
    width: max-content;
}

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

@keyframes partnersScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

.partner-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 130px;
    padding: 15px 20px;
    transition: var(--transition-normal);
    cursor: default;
}

.partner-item:hover {
    transform: translateY(-3px);
}

.partner-item img {
    width: 70px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0.7) grayscale(0.3);
    transition: var(--transition-normal);
}

.partner-item:hover img {
    filter: brightness(1) grayscale(0);
}

.partner-logo-placeholder {
    width: 70px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.partner-item:hover .partner-logo-placeholder {
    border-color: var(--primary);
    background: rgba(230, 126, 34, 0.08);
}

.partner-logo-placeholder span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
}

.partner-item:hover .partner-logo-placeholder span {
    color: var(--primary);
}

.partner-name {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
    text-align: center;
    letter-spacing: 1px;
    white-space: nowrap;
    margin: 0;
    transition: var(--transition-normal);
}

.partner-item:hover .partner-name {
    color: rgba(255,255,255,0.7);
}

/* ============================================
   CNC SIMULATION
   ============================================ */
.cnc-sim-section {
    background: linear-gradient(180deg, var(--dark-900) 0%, #060a14 100%);
}

.cnc-sim-wrapper {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
    min-height: 420px;
}

.cnc-code-panel {
    width: 38%;
    
    display: flex;
    flex-direction: column;
    background: #0d1117;
}

.cnc-code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cnc-code-dots {
    display: flex;
    gap: 6px;
}

.cnc-code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.cnc-code-dots span:nth-child(1) { background: #ff5f57; }
.cnc-code-dots span:nth-child(2) { background: #febc2e; }
.cnc-code-dots span:nth-child(3) { background: #28c840; }

.cnc-code-title {
    flex: 1;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

.cnc-status {
    font-family: var(--font-display);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 3px 10px;
    border-radius: 20px;
}

.cnc-status.running {
    background: rgba(46,204,113,0.15);
    color: #2ecc71;
    animation: statusBlink 1.5s infinite;
}

.cnc-status.done {
    background: rgba(230,126,34,0.15);
    color: var(--primary);
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.cnc-code-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    scrollbar-width: thin;
    scrollbar-color: #21262d #0d1117;
}

.cnc-code-body::-webkit-scrollbar { width: 4px; }
.cnc-code-body::-webkit-scrollbar-track { background: #0d1117; }
.cnc-code-body::-webkit-scrollbar-thumb { background: #21262d; border-radius: 4px; }

.cnc-line {
    display: flex;
    padding: 1px 16px;
    transition: background 0.2s;
}

.cnc-line.active {
    background: rgba(230,126,34,0.05);
    border-left: 2px solid var(--primary);
}

.cnc-ln {
    color: #484f58;
    margin-right: 16px;
    user-select: none;
    flex-shrink: 0;
    width: 20px;
    text-align: right;
}

.cnc-lt {
    color: #c9d1d9;
    white-space: pre;
}

/* Syntax highlighting */
.hg { color: #7ee787; }
.hm { color: #d2a8ff; }
.hx { color: #79c0ff; }
.hf { color: #ffa657; }
.hs { color: #ff7b72; }
.hc { color: #484f58; font-style: italic; }

.cnc-cursor {
    color: var(--primary);
    animation: cursorBlink 0.6s steps(2) infinite;
    font-weight: bold;
}

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

.cnc-code-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #161b22;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.cnc-pos {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #484f58;
}

.cnc-pos strong {
    color: #79c0ff;
}

.cnc-prog-dots {
    display: flex;
    gap: 6px;
}

.cnc-prog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #21262d;
    transition: all 0.3s;
}

.cnc-prog-dot.active {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(230,126,34,0.4);
}

.cnc-canvas-panel {
    flex: 1;
    position: relative;
    background: #060a12;
    border-left: 1px solid rgba(255,255,255,0.06);
}

.cnc-canvas-panel canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.cnc-canvas-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: var(--font-display);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e74c3c;
    padding: 4px 12px;
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: 4px;
    background: rgba(231,76,60,0.08);
    animation: recBlink 2s infinite;
}

.cnc-canvas-badge::before {
    content: '●';
    margin-right: 6px;
    font-size: 8px;
}

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

@media (max-width: 991px) {
    .cnc-sim-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    .cnc-code-panel {
        width: 100%;
    }
    .cnc-code-body {
        max-height: 250px;
    }
    .cnc-canvas-panel {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.06);
        height: 350px;
    }
}

/* ============================================
   3D GLOBE
   ============================================ */
.globe-container {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-46%);
    width: 30%;
    height: 65%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.globe-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.globe-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid rgba(230, 126, 34, 0.3);
    border-radius: 50px;
    padding: 6px 16px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.globe-label-icon {
    color: var(--primary);
    font-size: 0.75rem;
}

.globe-label-text {
    font-family: var(--font-display);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
}

.globe-label-count {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 1399px) {
    .globe-container {
        width: 33%;
        right: 1%;
    }
}

@media (max-width: 1199px) {
    .globe-container {
        width: 30%;
        right: 0;
    }
}

