/* Reset & Base */
:root {
    --bg-dark: #020617; /* Midnight depth */
    --bg-navy: #0f172a; /* Trust Navy */
    --bg-card: rgba(15, 23, 42, 0.7); /* Professional slate blue */
    --primary: #2563eb; /* Trust Blue (Royal) */
    --secondary: #1e40af; /* Deep Navy Blue */
    --accent: #0ea5e9; /* Sky Blue (Tech highlight) */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-stack: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --heading-font: 'Plus Jakarta Sans', sans-serif;
}

/* --- Subtle Noise Texture (Reduced opacity) --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 150px 150px;
    mix-blend-mode: overlay;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(30, 64, 175, 0.03) 0%, transparent 40%);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor Styles */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 10px var(--primary);
    transition: opacity 0.3s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 242, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Cursor Hover State (Magnetic Effect) */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 242, 255, 0.1);
    border-color: transparent;
    mix-blend-mode: screen;
}

body.hovering .cursor-dot {
    opacity: 0; /* Hide dot on hover for cleaner look */
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, #a5d8ff 100%); /* Softer cyan/blue gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
    color: #fff;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 15px;
}

h2::before {
    content: '';
    display: block;
    width: 8px;
    height: 32px;
    background: var(--primary);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary);
}

h2::after {
    display: none; /* Remove the old centered underline */
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    font-weight: 400; /* Regular weight for readability */
    line-height: 1.7; /* Improved breathing room */
    color: var(--text-muted);
}

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

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em; /* Increased letter spacing for buttons */
    font-size: 0.9rem;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background: #3b82f6; /* Lighter blue on hover */
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

/* Remove old shimmer effect for a cleaner look */

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

/* Enhanced Animations (Now handled by GSAP, keeping this clean) */
.reveal {
    /* GSAP handles opacity and transform now */
    visibility: visible;
    will-change: transform, opacity;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease; /* Faster nav transition */
    /* Initial subtle frost */
    backdrop-filter: blur(2px); 
    -webkit-backdrop-filter: blur(2px);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 15, 30, 0.7); 
    backdrop-filter: blur(24px) saturate(180%); 
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 0.02em;
    cursor: pointer;
}

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

.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.overlay-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--primary);
}

.nav-links-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.overlay-link {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.overlay-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.overlay-link:hover {
    color: var(--primary);
}

.overlay-link:hover::after {
    width: 50%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 移动端/触摸屏设备上隐藏粒子效果 */
@media (max-width: 992px), (hover: none) and (pointer: coarse) {
    #particles-js {
        display: none !important;
    }
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #1a2a40 0%, #050a14 70%);
    z-index: 0;
    transform: scale(1.1); /* Slight zoom for parallax */
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    font-size: clamp(8rem, 15vw, 18rem);
    font-family: var(--heading-font);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.015); /* Very faint */
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    letter-spacing: -0.05em;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: 600px;
    padding: 0;
    flex: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
    display: inline-block;
    letter-spacing: 0.05em;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--primary);
    animation: blink 0.7s infinite;
    font-weight: 400;
    margin-left: 2px;
    vertical-align: middle;
}

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

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* About Section */
.section {
    padding: 6rem 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Adjust ratio so text takes more space, image takes less */
    gap: 4rem;
    align-items: center; /* Changed back from stretch to center */
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-img {
    position: relative;
    border-radius: 16px;
    overflow: visible; /* Changed from hidden to allow deco-box to overflow */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: block; 
    aspect-ratio: 4/3; 
    height: auto; 
    max-height: 500px; 
}

.about-img img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px; /* Apply border radius directly to image */
    position: relative;
    z-index: 2;
}

.about-deco-box {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border: 4px solid var(--primary);
    border-radius: 12px;
    z-index: 1;
    opacity: 0.5;
    animation: float 4s ease-in-out infinite;
}

/* Remove gradient mask to match screenshot */

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

.about-text h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.4;
    font-weight: 600;
}

.about-sub-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.4); 
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.about-sub-section:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(37, 99, 235, 0.3);
}

.about-sub-section h4 {
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 0;
    font-weight: 600;
}

.about-sub-section h4::before {
    content: '\f105'; /* FontAwesome angle-right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary);
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.about-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.section-subtitle {
    text-align: left;
    max-width: 600px;
    margin: 0 0 3rem 0;
    font-size: 1.1rem;
}

/* Services Section (Restored to Original Centered/Border-flow Style) */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 8px 24px;
    border-radius: 50px;
    cursor: pointer; /* Changed from none */
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.95rem;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--primary);
    color: #fff;
    background: rgba(37, 99, 235, 0.2);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: 
        linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)) padding-box,
        linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)) border-box;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    cursor: default;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    will-change: transform, opacity, box-shadow;
}

.service-card:nth-child(4) {
    background: 
        linear-gradient(rgba(10, 15, 30, 0.8), rgba(10, 15, 30, 0.8)) padding-box,
        linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)) border-box;
}

.service-card * {
    transform: translateZ(20px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x, 0) var(--mouse-y, 0), 
        rgba(255, 255, 255, 0.06), 
        transparent 40%
    );
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0) var(--mouse-y, 0), 
        rgba(37, 99, 235, 0.4), 
        transparent 40%
    );
    z-index: 1;
    opacity: 1; 
    mix-blend-mode: overlay;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    background: 
        linear-gradient(rgba(10, 15, 30, 0.9), rgba(10, 15, 30, 0.9)) padding-box,
        linear-gradient(90deg, var(--primary), var(--accent), var(--primary)) border-box;
    background-size: 200% 200%;
    animation: borderFlow 3s ease infinite;
    box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.1), 0 10px 30px rgba(37, 99, 235, 0.25);
}

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

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

.service-card h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-card:hover .service-icon {
    transform: translateY(-5px);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: none;
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.service-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    opacity: 0.8;
    cursor: pointer; /* Changed from none */
}

.service-link:hover, .service-card:hover .service-link {
    opacity: 1;
    color: var(--primary);
}

.service-link i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.service-link:hover i, .service-card:hover .service-link i {
    transform: translateX(5px);
}

/* Solutions Section (Original Parallax/Alternating) */
#solutions {
    position: relative;
    overflow: hidden;
}

.solutions-deco {
    position: absolute;
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.deco-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -150px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
}

.deco-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -100px;
    border-radius: 20% 80% 30% 70% / 60% 40% 60% 40%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    animation: morph 10s linear infinite alternate;
}

@keyframes morph {
    0% { border-radius: 20% 80% 30% 70% / 60% 40% 60% 40%; }
    100% { border-radius: 70% 30% 80% 20% / 40% 60% 40% 60%; }
}

.solution-item {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
    gap: 4rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    padding: 0; /* Remove any padding that might make it look like a single card */
    will-change: transform, opacity;
}

.solution-item:hover {
    border-color: transparent;
    box-shadow: none;
}

.solution-item * {
    position: relative;
    z-index: 1;
}

.solution-item:nth-child(even) {
    flex-direction: row-reverse;
}

.solution-content {
    flex: 1;
    padding: 0;
}

.solution-content h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.solution-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.solution-image {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin: 0;
    min-height: auto;
    /* 3D Tilt Requirements */
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.solution-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    display: block !important;
}

.solution-item:nth-child(even) .solution-image::after {
    display: block !important;
}

.solution-image img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    transition: all 0.6s ease;
}

.solution-item:hover .solution-image img {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25);
}

.solution-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: none;
}

.solution-features li:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
}

.solution-features li i {
    color: var(--primary);
}

.solution-actions {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

/* Cases Section */
.cases-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.case-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.15);
}

.case-img {
    height: 200px;
    overflow: hidden;
}

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

.case-card:hover .case-img img {
    transform: scale(1.1);
}

.case-info {
    padding: 1.5rem;
}

.case-info h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-container {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.contact-container:hover {
    border-color: transparent; /* No hover border change in original */
    box-shadow: none;
}

.contact-container * {
    position: relative;
    z-index: 1;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2rem;
    color: var(--accent);
    font-size: 1rem;
}

.contact-icon i {
    color: var(--primary);
}

.contact-icon img {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(5, 10, 20, 0.6); /* Dark inner shadow look */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
    cursor: text; /* Changed from none */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(5, 10, 20, 0.8);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 0 2px rgba(37, 99, 235, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: #010409;
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; } /* Reduced from 3rem */
    .about-grid, .contact-container { grid-template-columns: 1fr; gap: 2rem; }
    .solution-item { flex-direction: column !important; gap: 0; text-align: left; } /* Forced left align for mobile */
    .nav-links { display: none; } /* Mobile menu simplified for now */
    .menu-toggle { display: block; }
    
    /* Disable custom cursor on mobile for better UX */
    .cursor-dot, .cursor-outline {
        display: none;
    }
    * {
        cursor: auto !important;
    }

    /* --- Mobile Specific Optimizations --- */
    
    /* Global Padding */
    .section { padding: 3rem 0; }
    
    /* Hero Section */
    .hero-content {
        padding: 0 1.5rem;
    }
    h1 br {
        display: none; /* Remove manual line break on mobile */
    }
    h1 {
        font-size: 2rem; /* Even smaller for better fit */
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: center; /* Ensure centered alignment */
        display: block; /* Ensure it takes full width to center properly */
    }
    .hero p {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 0.5rem;
        text-align: center; /* Ensure description is also centered */
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 2rem auto 0;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* About Section */
    .about-text h3 {
        font-size: 1.4rem;
        text-align: left;
    }
    .about-img {
        aspect-ratio: 16/9;
        max-height: none;
        width: 100%;
        border-radius: 16px;
    }
    .about-img img {
        height: 100%;
        object-fit: cover;
    }

    /* Services Section */
    .services-tabs {
        display: flex;
        flex-wrap: nowrap; /* Prevent wrapping */
        overflow-x: auto; /* Enable horizontal scroll */
        justify-content: flex-start; /* Align start */
        padding-bottom: 1rem; /* Space for scrollbar if visible */
        margin-bottom: 3rem; /* Increased from 2rem to 3rem for better spacing */
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    .services-tabs::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    .tab-btn {
        flex: 0 0 auto; /* Don't shrink */
        white-space: nowrap;
    }
    
    .service-card {
        min-height: auto; /* Remove fixed height */
        padding: 2rem 1.5rem;
    }
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Solutions Section */
    .solution-item {
        margin-bottom: 3rem;
        flex-direction: column !important;
        padding: 0;
        border-radius: 20px;
    }
    .solution-content {
        padding: 2.5rem 1.5rem;
    }
    .solution-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: left;
    }
    .solution-content p {
        text-align: left;
        font-size: 0.95rem;
    }
    .solution-features {
        justify-content: flex-start;
        gap: 0.8rem;
    }
    .solution-features li {
        width: auto;
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    .solution-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .solution-actions .btn {
        width: 100%;
        text-align: center;
    }
    .solution-image {
        order: -1;
        min-height: 250px;
        width: 100%;
    }
    .solution-image::after {
        background: linear-gradient(to bottom, transparent 0%, rgba(15,23,42,0.8) 100%) !important;
    }
    .solution-image img {
        height: 100%;
        object-fit: cover;
    }

    /* Contact Section */
    .contact-container {
        padding: 2rem 1.5rem;
    }
    .form-control {
        height: 50px; /* Taller inputs for touch */
    }
    textarea.form-control {
        height: auto;
    }
    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem; /* Tighter gap between icon and text block */
    }
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem; /* Reduced from 1rem */
    }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .hero-buttons { flex-direction: column; }
    h2 { font-size: 2rem; }
}

/* Service Detail Pages */
.service-detail-hero {
    padding: 150px 0 120px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(5, 10, 20, 0.9), rgba(5, 10, 20, 1));
    position: relative;
}
.service-detail-hero h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.service-detail-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}
.media-container {
    max-width: 1000px;
    margin: -60px auto 60px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.1);
    position: relative;
    z-index: 10;
}
.media-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed rgba(255,255,255,0.2);
    transition: var(--transition);
}
.media-placeholder:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.media-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.detail-content {
    padding: 40px 0 80px;
}
.detail-content h2 {
    margin-bottom: 30px;
    text-align: center;
    justify-content: center;
}
.detail-content h2::before {
    display: none;
}
.detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.05);
}
.feature-item h3 {
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-item h3 i {
    color: var(--primary);
}


/* ==========================================================================
   Solution Detail Pages (Different from Product Services)
   ========================================================================== */
.solution-detail-hero {
    padding: 160px 0 100px;
    background: url('/images/office-bg.jpg') center/cover no-relative;
    position: relative;
}
.solution-detail-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.98) 0%, rgba(37, 99, 235, 0.1) 100%);
    z-index: 1;
}
.solution-detail-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 1200px;
}
.solution-detail-hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
    padding-left: 20px;
}
.solution-detail-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Solution Architecture Section (Timeline / Workflow style) */
.solution-architecture {
    padding: 80px 0;
    background: var(--bg-dark);
}
.architecture-header {
    text-align: center;
    margin-bottom: 60px;
}
.architecture-header h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 20px;
}
.architecture-header h2::before {
    display: none;
}
.architecture-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    display: block; /* Ensure it overrides any global none */
}

/* Timeline Style for Solution Steps */
.solution-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.solution-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(0, 242, 255, 0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 40px;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0,242,255,0.3);
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}
.timeline-content {
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}
.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,242,255,0.1);
    transform: translateY(-5px);
}
.timeline-content h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.timeline-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Solution Values (Card Grid with different styling) */
.solution-values {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0a1120);
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.value-card {
    background: rgba(255,255,255,0.02);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border-top: 3px solid transparent;
    transition: var(--transition);
}
.value-card:hover {
    border-top-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}
.value-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .solution-timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    .timeline-icon {
        left: 6px !important;
        right: auto !important;
    }
}


/* ==========================================================================
   Custom Modal / Alert Box
   ========================================================================== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 242, 255, 0.15), inset 0 0 20px rgba(0, 242, 255, 0.05);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal-overlay.active .custom-modal {
    transform: translateY(0) scale(1);
}

.modal-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.custom-modal h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.custom-modal p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.custom-modal p strong {
    color: var(--primary);
    font-weight: 600;
}

.modal-close-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
}

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


.custom-modal h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.custom-modal p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.custom-modal p strong {
    color: var(--primary);
    font-weight: 600;
}

.modal-close-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
}

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


/* ==========================================================================
   Hero Enhancements (3D Core & Shimmer)
   ========================================================================== */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Duplicated .hero-content removed, handled above */

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Shimmer Text Effect */
.shimmer-text {
    background: linear-gradient(
        90deg, 
        #fff 0%, 
        rgba(255,255,255,0.8) 40%, 
        var(--accent) 50%, 
        rgba(255,255,255,0.8) 60%, 
        #fff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Ambient Mouse Glow */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(600px circle at 50% 50%, rgba(14, 165, 233, 0.05), transparent 40%);
    mix-blend-mode: screen;
}

/* 3D Core Graphic */
.core-container {
    position: relative;
    width: 600px;
    height: 600px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.core-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transform-style: preserve-3d;
}

.ring-1 {
    width: 450px;
    height: 450px;
    margin-top: -225px;
    margin-left: -225px;
    border-width: 1px;
    border-color: rgba(37, 99, 235, 0.3);
    /* Make rings static or very slow for a calmer feel */
    transform: rotateX(60deg) rotateY(20deg);
}

.ring-2 {
    width: 330px;
    height: 330px;
    margin-top: -165px;
    margin-left: -165px;
    border-width: 1px;
    border-color: rgba(14, 165, 233, 0.2);
    transform: rotateX(70deg) rotateY(-20deg);
}

.ring-3 {
    width: 570px;
    height: 570px;
    margin-top: -285px;
    margin-left: -285px;
    border: 1px dashed rgba(255,255,255,0.05);
}

.core-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; /* Slightly smaller to match screenshot */
    height: 100px;
    background: radial-gradient(circle, var(--accent) 0%, var(--primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.5), inset 0 0 20px rgba(255,255,255,0.3);
    /* Static glow instead of pulse */
}

.floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.floating-badge i {
    color: var(--accent);
    font-size: 1rem;
}

.badge-1 { top: 15%; left: 5%; }
.badge-2 { bottom: 15%; left: 15%; }
.badge-3 { top: 45%; right: 0%; }

/* Remove complex 3D animations */

/* --- Conference System AR Holographic Sandbox --- */
.conf-demo-container {
    background: #020617;
    perspective: 1200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.conf-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 150;
    display: flex;
    gap: 10px;
    background: rgba(15, 23, 42, 0.8);
    padding: 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.conf-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.conf-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.conf-btn.active {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

/* The Sandbox Base */
.ar-sandbox {
    position: relative;
    width: 800px;
    height: 800px;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- View Rotations --- */
/* ISO: Floor tilts back, Nodes counter-rotate to face user */
.ar-sandbox.view-iso { transform: rotateX(60deg) rotateZ(-45deg) scale(0.85); }
.ar-sandbox.view-iso .ar-billboard { transform: rotateZ(45deg) rotateX(-60deg); }

/* Front: Floor tilts slightly, Nodes counter-rotate slightly */
.ar-sandbox.view-front { transform: rotateX(25deg) rotateZ(0deg) scale(0.85) translateY(50px); }
.ar-sandbox.view-front .ar-billboard { transform: rotateZ(0deg) rotateX(-25deg); }

/* Top: Floor is flat, Nodes don't rotate */
.ar-sandbox.view-top { transform: rotateX(0deg) rotateZ(0deg) scale(0.75); }
.ar-sandbox.view-top .ar-billboard { transform: rotateZ(0deg) rotateX(0deg); }

/* --- Floor & Grid --- */
.ar-floor {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(rgba(56, 189, 248, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 100px rgba(14, 165, 233, 0.2) inset;
    transform: translateZ(0);
}
.ar-table-zone {
    position: absolute;
    width: 400px;
    height: 200px;
    left: 200px;
    top: 300px;
    background: rgba(30, 41, 59, 0.6);
    border: 2px dashed rgba(56, 189, 248, 0.3);
    border-radius: 20px;
}

/* --- Nodes & Billboards --- */
.ar-node {
    position: absolute;
    width: 0; height: 0; /* Anchor point */
    transform-style: preserve-3d;
    z-index: 10;
}
.ar-shadow {
    position: absolute;
    width: 40px; height: 20px;
    background: rgba(56, 189, 248, 0.4);
    border-radius: 50%;
    filter: blur(8px);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s;
}
.ar-billboard {
    position: absolute;
    bottom: 0; /* Stand ON the anchor */
    left: -40px; /* Center horizontally (width is 80px) */
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: bottom center; /* Pivot from the floor */
    opacity: 0.2;
    filter: grayscale(100%);
}
.ar-node.active .ar-billboard {
    opacity: 1;
    filter: grayscale(0%);
}
.ar-node.active .ar-shadow { opacity: 1; }

.ar-icon {
    position: relative;
    width: 50px; height: 50px;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid #334155;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #94a3b8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.ar-node.active .ar-icon {
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.2);
}
.ar-node.active:hover .ar-icon {
    transform: scale(1.15) translateY(-5px);
    border-color: #10b981; color: #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

.ar-stand {
    width: 2px; height: 30px;
    background: linear-gradient(to top, rgba(56, 189, 248, 0.8), transparent);
}

.ar-label {
    position: absolute;
    top: -25px;
    font-size: 0.75rem;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.9);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid #334155;
    transition: all 0.3s;
}
.ar-node.active .ar-label { border-color: #38bdf8; color: #38bdf8; }
.ar-node.active:hover .ar-label { border-color: #10b981; color: #10b981; transform: translateY(-5px); }

/* SVG Lines on Floor */
.ar-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    transform: translateZ(1px); /* Just above grid */
    pointer-events: none;
}
.ar-line {
    fill: none;
    stroke-width: 3;
    stroke-dasharray: 10 10;
    opacity: 0;
}
.audio-line { stroke: #10b981; animation: flowDash 1s linear infinite reverse; }
.audio-out-line { stroke: #10b981; animation: flowDash 1.5s linear infinite; }
.video-line { stroke: #38bdf8; stroke-width: 5; animation: flowDash 0.5s linear infinite; }
.ctrl-line { stroke: #f59e0b; animation: flowDash 1.5s linear infinite reverse; }
.cloud-line { stroke: #8b5cf6; stroke-dasharray: 5 15; animation: flowDash 0.5s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: 20; } }

/* Tooltips */
.device-tooltip {
    position: absolute;
    top: -110px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.6);
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    z-index: 100;
}
.ar-node.active:hover .device-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    top: -125px;
}

/* Device specific indicators */
.status-dot { position: absolute; top: -4px; right: -4px; width: 8px; height: 8px; border-radius: 50%; background: #475569; }
.ar-node.active .status-dot.green { background: #10b981; box-shadow: 0 0 8px #10b981; animation: pulseGreen 1.5s infinite; }
.ar-node.active .status-dot.red { background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: pulseRed 1.5s infinite; }
.wifi-wave { position: absolute; width: 100%; height: 100%; border: 1px solid #10b981; border-radius: 12px; opacity: 0; }
.ar-node.active .wifi-wave { animation: soundWave2D 1.5s infinite; }
.sound-wave { position: absolute; width: 100%; height: 100%; border: 2px solid #38bdf8; border-radius: 12px; opacity: 0; }
.ar-node.active .sound-wave { animation: soundWave2D 2s infinite; }

.cloud-pulse { position: absolute; width: 100%; height: 100%; border: 2px solid #8b5cf6; border-radius: 12px; opacity: 0; }
.ar-node.active .cloud-pulse { animation: soundWave2D 1.5s infinite; }

@media (max-width: 768px) {
    .conf-controls { flex-direction: column; top: 10px; left: 10px; }
    .ar-sandbox.view-iso { transform: rotateX(60deg) rotateZ(-45deg) scale(0.4); }
    .ar-sandbox.view-front { transform: rotateX(25deg) rotateZ(0deg) scale(0.5) translateY(100px); }
    .ar-sandbox.view-top { transform: rotateX(0deg) rotateZ(0deg) scale(0.4); }
}
.demo-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}
.pro-demo-container {
    position: relative;
    width: 100%;
    min-width: 800px;
    aspect-ratio: 16 / 9;
    min-height: 500px;
    background: #020617;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    overflow: hidden;
}
.demo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.5s;
}
.demo-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
    animation: pulsePlay 2s infinite;
    padding-left: 5px; /* Center the play triangle visually */
}
.demo-overlay p {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}
@keyframes pulsePlay {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}
.demo-scene {
    position: absolute;
    inset: 0;
}
.pro-node {
    position: absolute;
    transform: translate(-50%, -50%) scale(0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 0.2;
    filter: grayscale(100%);
    cursor: pointer;
}
.pro-node .icon-box {
    position: relative;
    width: 54px;
    height: 54px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #94a3b8;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pro-node .node-name {
    font-size: 0.85rem;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.9);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid #334155;
    transition: all 0.3s;
}
.pro-node.active:hover {
    z-index: 30;
}
.pro-node.active:hover .icon-box {
    transform: scale(1.15) translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.5), inset 0 0 15px rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}
.pro-node.active:hover .node-name {
    transform: translateY(5px);
    border-color: #38bdf8;
    color: #38bdf8;
    background: rgba(15, 23, 42, 1);
}

/* Device Info Tooltip */
.device-tooltip {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 40;
}
.device-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(56, 189, 248, 0.4);
    border-bottom: 1px solid rgba(56, 189, 248, 0.4);
}
.pro-node.active:hover .device-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    top: -85px;
}
.tooltip-title {
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4px;
}
.tooltip-stat {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 3px;
    color: #cbd5e1;
}
.tooltip-stat span:last-child {
    color: #10b981;
    font-family: monospace;
}

/* Ripple Effect on Click */
.node-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #38bdf8;
    opacity: 0;
    pointer-events: none;
}
@keyframes clickRipple {
    0% { width: 100%; height: 100%; opacity: 0.8; }
    100% { width: 250%; height: 250%; opacity: 0; }
}

.pro-node.active .icon-box {
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4), inset 0 0 10px rgba(14, 165, 233, 0.2);
}
.pro-node.active .node-name {
    border-color: var(--primary);
    color: #fff;
}
.net-link {
    stroke: #334155;
    stroke-width: 2.5;
    transition: stroke 0.5s;
}
.net-link.active {
    stroke: rgba(14, 165, 233, 0.6);
    filter: drop-shadow(0 0 4px rgba(14, 165, 233, 0.8));
}
.net-link.wireless {
    stroke-dasharray: 6, 6;
}
.data-packet {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8;
    transform: translate(-50%, -50%);
    z-index: 5;
}
.demo-status-popup {
    position: absolute;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transform: translate(-50%, -100%);
    backdrop-filter: blur(4px);
}
.demo-status-popup.warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

@media screen and (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
    }
    .hero-graphic {
        display: none; /* Hide complex graphic on mobile for performance/space */
    }
}

