:root {
    /* Color Palette */
    --bg-deep: #030407;
    --bg-panel: rgba(10, 15, 24, 0.7);
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-orange: #ff9e00; /* New Accent Color */
    --alert-red: #ff2a6d;
    --tech-green: #05ffa1;
    --text-white: #ffffff;
    --text-dim: #94a3b8;
    
    /* Fonts */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* Effects */
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --neon-glow: 0 0 15px rgba(0, 243, 255, 0.4);
    --card-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 243, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-blue);
    mix-blend-mode: screen;
}

/* Dynamic Background Spotlight */
.spotlight-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%), 
        rgba(0, 243, 255, 0.08) 0%, 
        transparent 40%
    );
    pointer-events: none;
    z-index: 0;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAAAAAAAAAABMTExERERmZmZnOt2OAAAACHRSTlMAMwA3M2YzM2Y119MzAAAAJUlEQVQ4y2NgQAX8DIwM/xkY/jMw/Gdg+M/A8J+B4T8D7T0sAADFwQ77K7bWiwAAAABJRU5ErkJggg==');
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--neon-blue), transparent);
    opacity: 0.3;
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 9998;
}

@keyframes scan {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* HUD Top Bar */
.hud-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(3, 4, 7, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    z-index: 1001;
    letter-spacing: 1px;
}

.hud-group {
    display: flex;
    gap: 20px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--tech-green);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--tech-green);
    animation: blink 2s infinite;
}

/* Floating Navbar */
.navbar {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-container {
    background: rgba(10, 15, 24, 0.6);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 0 40px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-icon {
    width: 24px;
    height: 24px;
    background: var(--neon-blue);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: rotateIcon 10s linear infinite;
}

@keyframes rotateIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-text span:first-child { color: var(--neon-blue); }
.brand-text span:last-child { color: var(--text-white); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
    transition: 0.3s;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: 0.3s ease;
    box-shadow: 0 0 10px var(--neon-blue);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-white);
}

.nav-menu a:hover::before, .nav-menu a.active::before {
    width: 100%;
}

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

/* Animated Grid Floor */
.grid-floor {
    position: absolute;
    bottom: -20%;
    left: -50%;
    width: 200%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(75deg);
    animation: gridMove 10s linear infinite;
    z-index: -1;
    mask-image: linear-gradient(to top, black, transparent 80%);
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(75deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(75deg) translateY(60px); }
}

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

.hero-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--neon-blue);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
    backdrop-filter: blur(5px);
}

.glitch-title {
    font-family: var(--font-display);
    font-size: 5.5rem;
    line-height: 0.95;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.glitch-title.outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.8);
    opacity: 0.5;
}

.typing-wrapper {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--tech-green);
    margin: 30px 0 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(5, 255, 161, 0.05);
    padding: 10px 20px;
    border-left: 3px solid var(--tech-green);
    width: fit-content;
}

.hero-desc {
    max-width: 550px;
    color: var(--text-dim);
    margin-bottom: 50px;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Button Advanced */
.btn-group {
    display: flex;
    gap: 20px;
}

.btn-tech {
    position: relative;
    padding: 16px 45px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    overflow: hidden;
    transition: 0.4s;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.btn-tech:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.btn-tech.secondary {
    border-color: rgba(255,255,255,0.3);
    color: var(--text-white);
    background: transparent;
}

.btn-tech.secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-white);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* Hero Visual 3D Sphere */
.hero-visual-col {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sphere-container {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

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

.sphere-wireframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 243, 255, 0.3);
    background: radial-gradient(circle at 30% 30%, rgba(0, 243, 255, 0.1), transparent 60%);
    box-shadow: 
        inset 0 0 50px rgba(0, 243, 255, 0.2),
        0 0 30px rgba(0, 243, 255, 0.1);
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(188, 19, 254, 0.4);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
}

.ring:nth-child(1) { width: 140%; height: 140%; animation: spin 20s linear infinite; border-width: 1px; border-style: dashed; }
.ring:nth-child(2) { width: 180%; height: 180%; animation: spin 30s linear infinite reverse; border-color: rgba(255, 255, 255, 0.1); }

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}

/* Products - 3D Tilt Cards */
.products-section {
    padding: 120px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 100px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.section-num {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.1);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-white);
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 180px;
    align-items: center;
    perspective: 1000px; /* Enable 3D space */
}

.product-row.reverse {
    direction: rtl;
}

.product-row.reverse .product-details {
    direction: ltr;
}

/* The Tilt Element */
.tilt-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Smooth tilt */
}

.image-frame {
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 0 0 transparent;
    transition: 0.3s;
    transform: translateZ(20px); /* Lift image */
}

.image-frame img {
    width: 100%;
    display: block;
    filter: grayscale(100%) contrast(1.1);
    transition: 0.5s;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.product-row:hover .image-frame img {
    filter: grayscale(0%) contrast(1.1);
}

.product-row:hover .image-frame {
    border-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

/* Decorations */
.corner-deco {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--neon-blue);
    transition: 0.3s;
    z-index: 10;
}

.corner-deco.tl { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.corner-deco.br { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

.product-details {
    padding: 20px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1.1;
}

.product-sub {
    color: var(--neon-purple);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    display: block;
}

.product-desc {
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 1.1rem;
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 20px;
}

.tech-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.spec-item {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.spec-label {
    display: block;
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.spec-value {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.about-text-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.about-text-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--neon-orange);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mission-card {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mission-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.stat-box {
    background: rgba(10, 15, 24, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: 0.3s;
    transform: scale(0.5);
}

.stat-box:hover::after {
    opacity: 1;
    transform: scale(1);
}

.stat-box:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Contact Terminal 2.0 */
.contact-terminal {
    background: rgba(10, 12, 16, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.terminal-header {
    background: rgba(255,255,255,0.05);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-body {
    padding: 40px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    color: #a9b7c6;
}

.cmd-line {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.cmd-line:nth-child(1) { animation-delay: 0.2s; }
.cmd-line:nth-child(2) { animation-delay: 0.8s; }
.cmd-line:nth-child(3) { animation-delay: 1.4s; }
.cmd-line:nth-child(4) { animation-delay: 2.0s; }

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

.prompt { color: var(--tech-green); margin-right: 10px; }
.command { color: var(--neon-blue); }
.string { color: #a5c261; }
.comment { color: #808080; }

/* Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0;
    margin-top: 150px;
    background: #020202;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dim);
}

/* Mobile */
@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual-col { display: none; } /* Simplify for mobile */
    .glitch-title { font-size: 3rem; }
    .product-row, .product-row.reverse { grid-template-columns: 1fr; text-align: left; }
    .about-grid { grid-template-columns: 1fr; }
    .nav-menu { display: none; }
    .cursor-dot, .cursor-outline { display: none; } /* No custom cursor on touch */
    * { cursor: auto; }
}