/* --- GD CONCEPTS MASTER SHEET vFINAL --- */
:root {
    /* COLORS */
    --neon-green: #39ff14;
    --neon-purple: #a855f7;
    --neon-blue: #0ea5e9;
    --neon-yellow: #eab308;
    
    --bg-color: #050505;
    --surface: rgba(20, 20, 20, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    
    --text-main: #FFFFFF;
    --text-muted: #9ca3af;
    --card-hover-border: white;
}

/* CUSTOM SCROLLBAR (Fixes the ugly white block in terminal) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-green); }

/* LIGHT MODE VARIABLES */
body.light-mode {
    --bg-color: #f4f4f5;
    --surface: #ffffff;
    --border: #e4e4e7;
    --text-main: #18181b;
    --text-muted: #52525b;
    --card-hover-border: var(--neon-purple);
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Clean subtle grain */
    background-image: radial-gradient(circle at 15% 50%, rgba(57, 255, 20, 0.03), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.05), transparent 35%);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal-up { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-text { opacity: 0; transform: translateX(-30px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-visual { opacity: 0; transform: scale(0.9); transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1); }

.reveal-active { opacity: 1; transform: translateY(0) translateX(0) scale(1); }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; }

.text-gradient {
    background: linear-gradient(to right, var(--neon-green), var(--neon-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* --- BUTTONS --- */
.btn-primary {
    background: var(--neon-green); color: black; padding: 14px 35px; border-radius: 2px;
    font-weight: 800; border: none; cursor: pointer; transition: 0.3s;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(57, 255, 20, 0.5); background: white; }

.btn-outline {
    background: transparent; color: var(--text-main); padding: 14px 35px; border-radius: 2px;
    font-weight: 700; border: 1px solid var(--border); cursor: pointer; transition: 0.3s;
    font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase;
}
.btn-outline:hover { border-color: var(--neon-purple); color: var(--neon-purple); }

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1100px;
    padding: 12px 30px;
    background: rgba(10, 10, 10, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 50px; display: flex; justify-content: space-between; align-items: center; z-index: 1000;
}
body.light-mode nav { background: rgba(255, 255, 255, 0.7); border-color: rgba(0,0,0,0.05); }

.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img { height: 35px; width: auto; object-fit: contain; }
.logo-text { font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; color: var(--text-main); }
.nav-links { display: flex; gap: 40px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 600; transition: 0.3s; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--neon-green); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.mobile-cta { display: none; }
.theme-toggle, .hamburger { cursor: pointer; font-size: 1.2rem; color: var(--text-main); transition: 0.3s; }
.theme-toggle:hover, .hamburger:hover { color: var(--neon-green); }
.hamburger { display: none; } 

/* --- HERO --- */
.hero { min-height: 100vh; padding: 160px 0 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; }
.hero-content { flex: 1; max-width: 600px; z-index: 10; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(128, 128, 128, 0.1); border: 1px solid var(--border); color: var(--text-main); padding: 8px 16px; border-radius: 2px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 25px; }

/* GLITCH EFFECT */
.glitch-wrapper { position: relative; font-size: 4rem; line-height: 1.1; font-weight: 800; margin-bottom: 25px; letter-spacing: -2px; color: white; }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.8;
}
.glitch::before { color: #ff00c1; z-index: -1; clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); animation: glitch-anim-1 2.5s infinite linear alternate-reverse; }
.glitch::after { color: #00fff9; z-index: -2; clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); animation: glitch-anim-2 3s infinite linear alternate-reverse; }

@keyframes glitch-anim-1 { 0% { transform: translate(0); } 20% { transform: translate(-2px, 2px); } 40% { transform: translate(-2px, -2px); } 60% { transform: translate(2px, 2px); } 80% { transform: translate(2px, -2px); } 100% { transform: translate(0); } }
@keyframes glitch-anim-2 { 0% { transform: translate(0); } 20% { transform: translate(2px, -2px); } 40% { transform: translate(2px, 2px); } 60% { transform: translate(-2px, -2px); } 80% { transform: translate(-2px, 2px); } 100% { transform: translate(0); } }

.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; }

/* --- 3D NEXUS --- */
.nexus-wrapper { flex: 1; height: 500px; position: relative; perspective: 1200px; width: 100%; }
.nexus-container {
    width: 100%; height: 100%; background: linear-gradient(145deg, rgba(15, 15, 15, 0.9), rgba(0, 0, 0, 0.95));
    border: 1px solid rgba(57, 255, 20, 0.3); border-radius: 4px; position: relative; transform-style: preserve-3d; 
    transition: transform 0.1s ease-out; display: flex; align-items: center; justify-content: center; overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
body.light-mode .nexus-container { background: linear-gradient(145deg, #f0f0f0, #ffffff); border-color: #ccc; }
.nexus-bg-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(128,128,128,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(128,128,128,0.05) 1px, transparent 1px);
    background-size: 40px 40px; transform: translateZ(-100px);
}
.nexus-scan-line {
    position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--neon-green); box-shadow: 0 0 10px var(--neon-green);
    opacity: 0.3; animation: scanMove 4s ease-in-out infinite; transform: translateZ(-90px);
}
@keyframes scanMove { 0% { top: 0%; opacity: 0; } 50% { opacity: 0.5; } 100% { top: 100%; opacity: 0; } }

.hud-corner { position: absolute; width: 30px; height: 30px; border: 2px solid var(--text-muted); opacity: 0.3; transition: 0.3s; }
.nexus-container:hover .hud-corner { opacity: 0.8; border-color: var(--neon-green); }
.top-left { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.top-right { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.bottom-right { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.nexus-core-system { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; transform: translateZ(20px); }
.nexus-core { width: 80px; height: 80px; border: 2px solid var(--neon-green); background: rgba(57, 255, 20, 0.05); position: relative; z-index: 10; animation: corePulse 4s ease-in-out infinite; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 15px rgba(57, 255, 20, 0.2); }
.nexus-core-logo { width: 100%; height: 100%; object-fit: contain; padding: 10px; filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.5)); }

.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.2); transform-style: preserve-3d; }
.ring-outer { width: 220px; height: 220px; border-color: rgba(57, 255, 20, 0.2); animation: spinRing 15s linear infinite; }
.ring-inner { width: 160px; height: 160px; border-color: rgba(168, 85, 247, 0.3); border-style: solid; border-width: 1px; animation: spinRing 10s linear infinite reverse; }

.nexus-node {
    position: absolute; padding: 12px 24px; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(5px);
    border: 1px solid; border-radius: 2px; color: var(--text-main); font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: translateZ(60px);
    display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
}
.node-pulse { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; opacity: 0.1; filter: blur(15px); z-index: -1; animation: pulseGlow 3s infinite; }
.node-1 { top: 15%; left: 8%; animation: floatNode 6s ease-in-out infinite; }
.node-2 { bottom: 20%; right: 8%; animation: floatNode 7s ease-in-out infinite reverse; }
.node-3 { top: 10%; right: 12%; animation: floatNode 8s ease-in-out infinite 1s; }

@keyframes corePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes spinRing { 100% { transform: rotateX(60deg) rotateZ(360deg); } }
@keyframes floatNode { 0%, 100% { transform: translateZ(60px) translateY(0); } 50% { transform: translateZ(60px) translateY(-15px); } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(0.8); } 50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.2); } }

/* --- MARQUEE --- */
.marquee-section { background: var(--neon-green); color: black; padding: 15px 0; overflow: hidden; font-weight: 800; font-size: 1rem; letter-spacing: 2px; white-space: nowrap; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- EXPERTISE (What We Do) --- */
.features { padding: 120px 0; position: relative; }

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

.feature-card {
    background: rgba(15, 15, 15, 0.6); /* Glassy dark background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 35px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

/* Base Hover */
.feature-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(160deg, rgba(25, 25, 25, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Specific Card Glows (Matches the icon color) */
.card-tech:hover { border-color: var(--neon-green); box-shadow: 0 0 30px rgba(57, 255, 20, 0.15); }
.card-visual:hover { border-color: var(--neon-purple); box-shadow: 0 0 30px rgba(168, 85, 247, 0.15); }
.card-ops:hover { border-color: var(--neon-blue); box-shadow: 0 0 30px rgba(14, 165, 233, 0.15); }

/* Text */
.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Icon Styling */
.icon-square {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03); /* Subtle glass background */
}

/* Dynamic Icon Colors */
.card-tech .icon-square { color: var(--neon-green); }
.card-visual .icon-square { color: var(--neon-purple); }
.card-ops .icon-square { color: var(--neon-blue); }

/* Icon Hover Animation */
.feature-card:hover .icon-square {
    transform: scale(1.1) rotate(5deg);
    border-color: currentColor; /* Uses the text color (green/purple/blue) */
    background: rgba(255,255,255,0.05);
}

/* --- TERMINAL --- */
.demo-section { background: rgba(128,128,128,0.05); padding: 120px 0; }
.demo-container { display: flex; gap: 60px; align-items: center; }
.stats-grid { display: flex; gap: 40px; margin: 30px 0; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--text-main); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.chat-interface { flex: 1; background: #000; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; box-shadow: 0 0 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; height: 500px; }
.chat-header { background: #111; padding: 15px 20px; border-bottom: 1px solid #333; display: flex; align-items: center; gap: 15px; }
.chat-body { flex: 1; padding: 25px; overflow-y: auto; background: #000; display: flex; flex-direction: column; gap: 10px; font-family: 'JetBrains Mono', monospace; }
.terminal-footer { padding: 15px; border-top: 1px solid #333; background: #111; font-family:'JetBrains Mono', monospace; font-size:0.8rem; color:#555; }
.log-entry { margin-bottom: 8px; line-height: 1.5; font-size: 0.9rem; }

/* --- WORKS (PORTFOLIO) --- */
.works-section { padding: 100px 0; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 25px; }
.work-card { height: 400px; border-radius: 4px; position: relative; overflow: hidden; cursor: pointer; border: 1px solid var(--border); background-size: cover; background-position: center; transition: transform 0.4s ease; }
.work-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-color: var(--neon-green); }

/* Overlay Gradient */
.work-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4)); 
    z-index: 1; 
    transition: 0.3s; 
}
.work-card:hover .work-overlay { 
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(57, 255, 20, 0.1) 100%); 
}

/* Content */
.work-content { position: absolute; bottom: 30px; left: 25px; z-index: 2; transition: 0.3s; }
.work-content h3 { font-size: 1.6rem; color: white; margin-bottom: 5px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.work-content p { color: var(--neon-green); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* --- PROCESS (The Difference) --- */
.pricing { 
    padding: 120px 0; 
    position: relative; 
}

/* Grid Layout: 3 Columns on Desktop, 1 on Mobile */
.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    align-items: center; /* Centers the side cards vertically relative to the featured one */
    max-width: 1100px;
    margin: 0 auto;
}

/* Card Base Style */
.price-card { 
    background: rgba(15, 15, 15, 0.6); 
    backdrop-filter: blur(10px); /* Glass effect */
    padding: 50px 30px; 
    border-radius: 8px; 
    border: 1px solid var(--border); 
    text-align: center; 
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
    position: relative; 
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hover Effect for standard cards */
.price-card:hover { 
    transform: translateY(-7px); 
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    background: rgba(25, 25, 25, 0.8);
}

/* Typography */
.price-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: white;
}

.price-card .subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 35px;
    display: block;
    opacity: 0.8;
}

/* List Styling */
.price-card ul {
    list-style: none;
    margin-top: auto; 
    text-align: left;
    padding: 0 10px;
}

.price-card li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03); /* Subtle separator */
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.4;
}

.price-card li:last-child { border-bottom: none; }

/* Icon Colors */
.list-icon { font-size: 1rem; margin-top: 2px; }
.list-icon.bad { color: #ef4444; } /* Red */
.list-icon.good { color: var(--neon-green); } /* Neon Green */

/* --- THE ENGINE (Featured Card) --- */
.price-card.featured { 
    background: linear-gradient(180deg, rgba(57, 255, 20, 0.04) 0%, rgba(10,10,10,0.95) 100%);
    border: 1px solid var(--neon-green); 
    box-shadow: 0 0 40px rgba(57, 255, 20, 0.15); /* Stronger glow */
    transform: scale(1.08); /* Makes it physically larger */
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 60px;
}

.price-card.featured:hover {
    box-shadow: 0 0 60px rgba(57, 255, 20, 0.25);
    transform: scale(1.08) translateY(-5px);
}

.featured-badge { 
    background: var(--neon-green); 
    color: black; 
    font-weight: 800; 
    font-size: 0.75rem; 
    padding: 8px 20px; 
    border-radius: 50px; 
    position: absolute; 
    top: -16px; 
    left: 50%; 
    transform: translateX(-50%); 
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
    text-transform: uppercase;
}

/* --- CONTACT --- */
.contact { padding: 100px 0 60px; }
.contact-form { max-width: 650px; margin: 0 auto; background: var(--surface); padding: 50px; border-radius: 4px; border: 1px solid var(--border); }
.form-input { width: 100%; padding: 15px; background: rgba(128,128,128,0.1); border: 1px solid var(--border); border-radius: 4px; color: var(--text-main); outline: none; margin-top: 8px; transition: 0.3s; }
.form-input:focus { border-color: var(--neon-green); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%239ca3af%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 12px auto; }
select.form-input option { background-color: #222; color: white; }
body.light-mode select.form-input option { background-color: white; color: black; }

/* --- FOOTER --- */
footer { 
    background: #030303; 
    padding: 100px 0 30px; 
    border-top: 1px solid var(--border); 
    position: relative;
    overflow: hidden;
}

/* Optional: Top Gradient Glow */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-green), var(--neon-purple), transparent);
    opacity: 0.5;
}

body.light-mode footer { 
    background: #f8f8f8; 
    border-top-color: #ddd;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr; 
    gap: 60px; 
    margin-bottom: 80px; 
}

/* Brand Column */
.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.footer-bio {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 320px;
}

/* Headers */
.footer-col h4 {
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: inline-block;
    position: relative;
}

/* Links (Fixed specificity) */
.footer-nav { 
    list-style: none !important; 
    padding: 0; 
    margin: 0;
}
.footer-nav li { margin-bottom: 15px; }
.footer-nav li a { 
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 0.95rem; 
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); 
    display: inline-block;
}
.footer-nav li a:hover { 
    color: var(--neon-green) !important; 
    transform: translateX(5px); 
}

/* Social Icons */
.social-links { display: flex; gap: 12px; }
.social-icon { 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid var(--border);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-muted); 
    transition: 0.3s; 
    font-size: 1.1rem; 
    text-decoration: none; 
}
.social-icon:hover { 
    background: var(--neon-green); 
    border-color: var(--neon-green);
    color: black; 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.2);
}

/* Connect Data Column */
.contact-data { display: flex; flex-direction: column; gap: 15px; }
.data-row { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: var(--text-muted); 
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}
.data-row i { color: var(--neon-purple); font-size: 1rem; }

/* Bottom Bar */
.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: var(--text-muted);
    font-size: 0.85rem;
}
.scroll-top { cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.scroll-top:hover { color: var(--neon-green); }


/* --- POPUP --- */
.chat-widget-trigger { position: fixed; bottom: 30px; right: 30px; background: var(--neon-purple); color: white; padding: 15px 25px; border-radius: 50px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4); display: flex; gap: 10px; align-items: center; transition: 0.3s; z-index: 9999; }
.chat-widget-trigger:hover { transform: scale(1.05); background: white; color: var(--neon-purple); }
.widget-text { margin-left: 5px; }
.chat-popup { position: fixed; bottom: 100px; right: 30px; width: 320px; height: 350px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); z-index: 9999; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: translateY(20px); transition: 0.3s; }
.chat-popup.active { opacity: 1; pointer-events: all; transform: translateY(0); }
.popup-header { background: #111; padding: 15px; color: white; border-radius: 4px 4px 0 0; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }

/* =========================================
   MOBILE & RESPONSIVE OPTIMIZATION
   ========================================= */
@media (max-width: 1024px) {
    nav { width: 95%; padding: 15px 20px; }
}
@media (max-width: 992px) {
    .nav-links { position: fixed; top: 0; right: -100%; width: 85%; height: 100vh; background: #050505; flex-direction: column; padding: 120px 40px; gap: 30px; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-left: 1px solid var(--border); box-shadow: -20px 0 50px rgba(0,0,0,0.5); border-radius: 0; }
    .nav-links.active { right: 0; }
    .hamburger { display: block; z-index: 1001; }
    .desktop-cta { display: none; }
    .mobile-cta { display: block; }
    
    .hero { flex-direction: column; justify-content: center; padding-top: 160px; text-align: center; overflow: hidden; }
    .hero-content { align-items: center; margin-bottom: 40px; padding: 0 20px; }
    .glitch-wrapper { font-size: 2.8rem; }
    .hero-btns { justify-content: center; width: 100%; flex-direction: column; align-items: center;}
    .hero-btns button { width: 100%; max-width: 300px; margin-bottom: 10px; }
    .hero-btns a { width: 100%; max-width: 300px; }

    .nexus-wrapper { height: 450px; }
    .nexus-container { transform: scale(0.9); }
    .nexus-node { padding: 8px 12px; font-size: 0.65rem; }
    .nexus-node div { font-size: 1rem !important; }
    .hud-corner { width: 15px; height: 15px; }
    .ring-outer { width: 180px; height: 180px; }
    .ring-inner { width: 130px; height: 130px; }
    
    .stats-grid { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .stat-item { min-width: 140px; }

    /* Footer Responsive */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .brand-col { grid-column: span 2; }

    /* Pricing/Difference Responsive */
    .pricing-grid { 
        grid-template-columns: 1fr; 
        max-width: 500px; 
        gap: 50px; 
    }
    .price-card.featured {
        transform: scale(1);
        padding: 50px 30px;
        order: -1; 
    }
    .price-card.featured:hover {
        transform: translateY(-5px);
    }
}
@media (max-width: 768px) {
    .demo-container { 
        flex-direction: column; 
        gap: 40px; /* Adds space between text and terminal */
    }
    
    /* FIX: Make Terminal Full Width & Visible */
    .chat-interface {
        width: 100%;           /* Forces it to fill the screen width */
        min-height: 400px;     /* Ensures it's tall enough */
        margin-top: 20px;      /* Spacing from the text above */
        border: 1px solid rgba(57, 255, 20, 0.3); /* Subtle green border pop */
    }

    .contact-form { padding: 30px 20px; }
    .works-grid { grid-template-columns: 1fr; }
    
    .chat-widget-trigger { padding: 12px 18px; bottom: 20px; right: 20px; }
    .widget-text { display: none; }
    .chat-popup { right: 5%; width: 90%; bottom: 90px; }
}
@media (max-width: 600px) {
    /* Footer Mobile */
    .footer-grid { grid-template-columns: 1fr; text-align: left; }
    .brand-col { grid-column: span 1; }
    .footer-bottom { flex-direction: column; gap: 15px; }
    .social-links { justify-content: flex-start; }
}
@media (max-width: 480px) {
    nav { top: 10px; width: 92%; padding: 12px 20px; }
    .logo-text { font-size: 1rem; }
    .nav-logo-img { height: 30px; }
    .glitch-wrapper { font-size: 2.2rem; }
    .nexus-wrapper { height: 400px; }
    .nexus-core { width: 80px; height: 80px; font-size: 2rem; }
}