:root {
    --bg-dark: #07080c;
    --bg-card: rgba(16, 17, 24, 0.72);
    --bg-card-hover: rgba(22, 23, 34, 0.85);
    --primary-red: #ff0d2d;
    --primary-red-glow: rgba(255, 13, 45, 0.5);
    --primary-red-dim: rgba(255, 13, 45, 0.12);
    --text-white: #f5f5f7;
    --text-dim: #9ba1a6;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(255, 13, 45, 0.4);
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --header-height: 85px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#spa-content {
    flex: 1 0 auto;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* =========================================
   3D WEBGL BACKGROUND & CINEMATIC OVERLAY
   ========================================= */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, rgba(255, 13, 45, 0.04) 0%, rgba(5, 5, 8, 0.92) 100%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

/* =========================================
   TYPOGRAPHY & ACCENTS
   ========================================= */
.accent-text {
    color: var(--primary-red);
}

.glow-text {
    text-shadow: 0 0 25px var(--primary-red-glow), 0 0 50px rgba(255, 13, 45, 0.25);
}

.section-tag {
    color: var(--primary-red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    display: inline-block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    letter-spacing: 1px;
    line-height: 1.25;
    margin-bottom: 0.9rem;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 620px;
}

.text-center {
    text-align: center;
}

.text-center .section-subtitle {
    margin: 0 auto 3rem auto;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Common Section Padding */
.section-padding {
    padding: 5.5rem 0;
}

/* =========================================
   FIXED NAVIGATION HEADER
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: transparent;
    transition: background-color 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}

/* Background state triggered on scroll */
.header.scrolled {
    background: rgba(6, 7, 11, 0.94) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 13, 45, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 13, 45, 0.08);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 13, 45, 0.3));
    transition: var(--transition);
}

.brand-logo:hover {
    filter: drop-shadow(0 0 16px var(--primary-red-glow));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red);
}

.nav-cta {
    background: var(--primary-red-dim);
    border: 1px solid var(--primary-red);
    color: #fff;
    padding: 0.6rem 1.3rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-red);
    box-shadow: 0 0 20px var(--primary-red-glow);
    transform: translateY(-2px);
}

/* =========================================
   SUB-PAGE HERO SECTIONS (SPACING FIX)
   ========================================= */
.page-hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 3.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-glass);
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.back-link:hover {
    transform: translateX(-4px);
    color: #fff;
}

/* =========================================
   HOME HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
}

.badge-glitch {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.1rem;
    background: var(--primary-red-dim);
    border: 1px solid var(--primary-red);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-red);
    margin-bottom: 1.8rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-red);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.12;
    margin-bottom: 1.5rem;
    max-width: 950px;
}

.hero-subtitle {
    color: var(--text-dim);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    max-width: 680px;
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    max-width: 980px;
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.stat-item p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.stat-divider {
    width: 1px;
    background: var(--border-glass);
}

/* =========================================
   3D CARDS & HOVER TILT
   ========================================= */
.glass-card, .glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

.tilt-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 35px rgba(255, 13, 45, 0.15);
}

.card-inner-3d {
    transform-style: preserve-3d;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tilt-card h3,
.tilt-card .portfolio-badge,
.tilt-card .card-icon {
    transform: translateZ(25px);
}

.tilt-card p,
.tilt-card .portfolio-tags,
.tilt-card .reviewer-meta {
    transform: translateZ(15px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-red-glow);
}

.btn-primary:hover {
    background: #e60020;
    box-shadow: 0 0 35px rgba(255, 13, 45, 0.7);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-white);
}

.btn-secondary:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-link:hover {
    gap: 0.7rem;
    color: #fff;
}

/* =========================================
   ABOUT US PAGE & GRID
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}

.about-cube-glass {
    background: radial-gradient(circle at top left, rgba(255, 13, 45, 0.15), rgba(16, 17, 24, 0.85));
    border: 1px solid var(--border-accent);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
}

.cube-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary-red-dim);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}

.about-cube-glass h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin: 1.5rem 0 0.5rem;
}

.domain-tag {
    color: var(--primary-red);
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 2.2rem;
}

.cube-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

.cube-stats-row strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
}

.cube-stats-row span {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.about-desc {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.features-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.f-icon {
    color: var(--primary-red);
    margin-top: 0.2rem;
}

.feature-item h4 {
    color: #fff;
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
}

.feature-item p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================================
   PORTFOLIO & PROJECTS
   ========================================= */
.filter-controls {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-dim);
    padding: 0.55rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}

.project-img-box {
    width: 100%;
    height: 190px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.4rem;
    border: 1px solid var(--border-glass);
}

.project-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .project-img-box img {
    transform: scale(1.06);
}

.portfolio-badge {
    color: var(--primary-red);
    background: var(--primary-red-dim);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
    margin-bottom: 1rem;
}

.portfolio-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.client-meta {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
}

.client-meta strong {
    color: #fff;
}

.project-desc {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
    flex-grow: 1;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.portfolio-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.2rem;
    margin-top: auto;
}

.icon-link {
    color: var(--text-dim);
    transition: var(--transition);
}

.icon-link:hover {
    color: var(--primary-red);
}

.project-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    transition: var(--transition);
    border-top: 1px solid var(--border-glass);
    padding-top: 1.2rem;
    margin-top: auto;
}

.project-link:hover {
    color: var(--primary-red);
    gap: 0.6rem;
}

/* =========================================
   SINGLE PROJECT DETAIL / CASE STUDY LAYOUT
   ========================================= */
.project-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: flex-start;
}

.project-main {
    padding: 2.5rem;
}

.detail-banner {
    width: 100%;
    max-height: 380px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border-glass);
}

.detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-body h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.text-content {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 1rem;
}

.sidebar-card {
    padding: 2.2rem;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.8rem;
}

.spec-group {
    margin-bottom: 1.3rem;
}

.spec-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.spec-group p {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

.link-flex {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

/* =========================================
   REVIEWS & TESTIMONIALS
   ========================================= */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    color: #ffb800;
    margin-bottom: 1.2rem;
}

.star-icon {
    width: 16px;
    height: 16px;
    fill: #ffb800;
}

.review-quote {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.8rem;
    font-style: italic;
    flex-grow: 1;
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.2rem;
    margin-top: auto;
}

.reviewer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-red-dim);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-info h4 {
    font-size: 0.95rem;
    color: #fff;
}

.reviewer-info span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* =========================================
   CONTACT PAGE & FORMS
   ========================================= */
.contact-wrapper {
    padding: 3.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.contact-info p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-meta-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.meta-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.meta-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-red-dim);
    color: var(--primary-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta-row label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    display: block;
}

.meta-row p {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 12px rgba(255, 13, 45, 0.35);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.form-feedback {
    display: none;
    margin-top: 1.2rem;
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
}

.form-feedback.info {
    display: block;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.form-feedback.success {
    display: block;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.form-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

/* =========================================
   3D POP-UP QUOTATION MODAL
   ========================================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    width: 100%;
    max-width: 620px;
    padding: 3rem 2.5rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-backdrop.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-red);
}

.modal-header {
    margin-bottom: 1.8rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.modal-header p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* =========================================
   GLOBAL FOOTER
   ========================================= */
.footer {
    flex-shrink: 0;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid var(--border-glass);
    background: rgba(4, 5, 8, 0.98);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    height: 38px;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
    max-width: 340px;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-red);
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.85rem;
    width: 100%;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.8rem;
    margin-top: 1.8rem;
    text-align: center;
}

.footer-copy a {
    color: var(--primary-red);
    text-decoration: none;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 992px) {
    .about-grid, 
    .contact-grid, 
    .project-detail-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

}

@media (max-width: 600px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .modal-form-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

/* =========================================
   PAGE LOAD & SCROLL ANIMATION HELPER STYLES
   ========================================= */
.reveal-item,
.page-title,
.page-subtitle,
.badge-glitch {
    will-change: transform, opacity;
}

.portfolio-item,
.review-card,
.service-card,
.feature-item,
.sidebar-card {
    will-change: transform, opacity;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Fallback for intersection observer */
.animated-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Interactive Star Rating Selector */
.star-rating-select {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.3rem;
    font-size: 1.8rem;
}

.star-rating-select input {
    display: none;
}

.star-rating-select label {
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating-select label:hover,
.star-rating-select label:hover ~ label,
.star-rating-select input:checked ~ label {
    color: #ffb800;
    text-shadow: 0 0 10px rgba(255, 184, 0, 0.5);
}

.star-rating-select label:hover {
    transform: scale(1.15);
}

/* Mobile Toggle Button (Desktop hidden by default) */
.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 1002;
    transition: var(--transition);
}

.mobile-toggle:hover {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(255, 13, 45, 0.3);
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Transform to 'X' icon when open */
.mobile-toggle.active .bar-1 {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--primary-red);
}

.mobile-toggle.active .bar-2 {
    opacity: 0;
}

.mobile-toggle.active .bar-3 {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--primary-red);
}

/* =========================================
   RESPONSIVE MOBILE NAVIGATION DRAWER
   ========================================= */
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex; /* Show Hamburger on Tablets & Mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: rgba(8, 9, 14, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-glass);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1001;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-cta {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   MARQUEE STREAM TICKER
   ========================================= */
.tech-ticker-bar {
    width: 100%;
    overflow: hidden;
    background: rgba(16, 17, 24, 0.4);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.1rem 0;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerLoop 32s linear infinite;
    gap: 2rem;
    align-items: center;
}

.ticker-track span {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    font-weight: 600;
}

.ticker-dot {
    color: var(--primary-red) !important;
    text-shadow: 0 0 10px var(--primary-red);
}

@keyframes tickerLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   3D CTA BANNER
   ========================================= */
.cta-banner {
    padding: 4.5rem 3rem;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(255, 13, 45, 0.1) 0%, rgba(14, 15, 22, 0.85) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 1.1rem;
    line-height: 1.25;
}

.cta-content p {
    color: var(--text-dim);
    max-width: 680px;
    margin: 0 auto 2.2rem auto;
    font-size: 1.05rem;
    line-height: 1.65;
}


/* =========================================
   CAPABILITIES / SERVICES SECTION (FIXED)
   ========================================= */
.services-overview-section {
    position: relative;
    padding: 6rem 0;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
}

.service-card {
    background: var(--bg-card, rgba(16, 17, 24, 0.72));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 2.4rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red, #ff0d2d), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: var(--border-accent, rgba(255, 13, 45, 0.4));
    background: var(--bg-card-hover, rgba(22, 23, 34, 0.85));
    box-shadow: 0 14px 40px rgba(255, 13, 45, 0.15), 0 0 20px rgba(255, 13, 45, 0.08);
}

.service-card:hover::before {
    opacity: 1;
}

/* 3D Inner Wrapper */
.service-card .card-inner-3d {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
}

/* Glowing Icon Box */
.card-icon {
    width: 54px;
    height: 54px;
    background: var(--primary-red-dim, rgba(255, 13, 45, 0.12));
    border: 1px solid rgba(255, 13, 45, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red, #ff0d2d);
    margin-bottom: 1.6rem;
    transform: translateZ(25px);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.card-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2px;
}

.service-card:hover .card-icon {
    background: var(--primary-red, #ff0d2d);
    color: #ffffff;
    box-shadow: 0 0 20px var(--primary-red-glow, rgba(255, 13, 45, 0.5));
    transform: translateZ(35px) scale(1.05);
}

/* Typography Inside Service Cards */
.service-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    transform: translateZ(25px);
}

.service-card p {
    color: var(--text-dim, #9ba1a6);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.8rem;
    flex-grow: 1; /* Pushes the meta pills to the bottom evenly */
    transform: translateZ(15px);
}

/* Bottom Tag/Meta Pill */
.service-meta {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-red, #ff0d2d);
    background: rgba(255, 13, 45, 0.06);
    border: 1px solid rgba(255, 13, 45, 0.2);
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    width: fit-content;
    display: inline-block;
    margin-top: auto;
    transform: translateZ(20px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.service-card:hover .service-meta {
    background: rgba(255, 13, 45, 0.15);
    border-color: var(--primary-red, #ff0d2d);
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .service-card {
        padding: 2rem 1.6rem;
        min-height: auto;
    }
}







/* Sound Toggle Button */
.sound-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-dim);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition);
}

.sound-toggle-btn.active {
    background: var(--primary-red-dim);
    border-color: var(--primary-red);
    color: var(--primary-red);
    box-shadow: 0 0 15px rgba(255, 13, 45, 0.3);
}

/* Estimator Architecture Matrix */
.estimator-wrapper {
    padding: 3.5rem;
    border: 1px solid var(--border-accent);
}

.estimator-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.pills-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.matrix-pill {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    color: var(--text-dim);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
}

.matrix-pill:hover {
    border-color: var(--primary-red);
    color: #fff;
    transform: translateY(-2px);
}

.matrix-pill.active {
    background: var(--primary-red-dim);
    border-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 13, 45, 0.3);
}

.estimator-display {
    padding: 2.2rem;
    background: rgba(10, 11, 16, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
}

.telemetry-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--primary-red);
    font-weight: 700;
}

.telemetry-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.tele-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.3rem;
}

.tele-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
}

.active-modules-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    min-height: 80px;
}

@media (max-width: 992px) {
    .estimator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .estimator-wrapper {
        padding: 2rem;
    }
}




/* =========================================
   FLOATING AI CHATBOT WIDGET
   ========================================= */
.ai-widget-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

/* Floating Trigger Button */
.ai-trigger-btn {
    background: #0d0f17;
    border: 1px solid var(--border-accent, rgba(255, 13, 45, 0.4));
    color: #ffffff;
    padding: 0.75rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 13, 45, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-trigger-btn:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary-red);
    box-shadow: 0 15px 35px rgba(255, 13, 45, 0.4);
}

.ai-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: livePulse 2s infinite;
}

.ai-btn-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.ai-icon-close {
    display: none;
}

.ai-widget-wrapper.open .ai-icon-open {
    display: none;
}

.ai-widget-wrapper.open .ai-icon-close {
    display: block;
}

/* Chat Window */
.ai-chat-window {
    position: absolute;
    bottom: 65px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 520px;
    background: rgba(10, 11, 17, 0.96) !important;
    border: 1px solid var(--border-accent, rgba(255, 13, 45, 0.35)) !important;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 13, 45, 0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.ai-widget-wrapper.open .ai-chat-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Chat Header */
.ai-chat-header {
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-red-dim);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 13, 45, 0.3);
}

.ai-avatar svg {
    width: 20px;
    height: 20px;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #0d0f17;
}

.ai-header-info h4 {
    font-size: 0.95rem;
    color: #fff;
    margin: 0;
}

.ai-status {
    font-size: 0.72rem;
    color: #9ba1a6;
    margin: 0;
}

.ai-close-btn {
    background: transparent;
    border: none;
    color: #9ba1a6;
    cursor: pointer;
    padding: 4px;
}

/* Chat Messages */
.ai-chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ai-msg {
    max-width: 82%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.ai-msg.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #e2e8f0;
}

.ai-msg.user {
    align-self: flex-end;
    background: var(--primary-red);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 13, 45, 0.3);
}

.ai-msg-time {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    text-align: right;
}

/* Quick Chips */
.ai-quick-chips {
    display: flex;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ai-chip {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #cbd5e1;
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chip:hover {
    border-color: var(--primary-red);
    color: #fff;
    background: var(--primary-red-dim);
}

/* Chat Footer & Input */
.ai-chat-footer {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 0.5rem;
}

.ai-chat-footer input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.ai-chat-footer input:focus {
    border-color: var(--primary-red);
}

.ai-send-btn {
    background: var(--primary-red);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ai-send-btn:hover {
    box-shadow: 0 0 15px var(--primary-red);
}




/* =========================================
   PERFORMANCE COMPARISON SLIDER
   ========================================= */
.comparison-wrapper {
    padding: 2.5rem;
    border: 1px solid var(--border-accent);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.comparison-container {
    position: relative;
    width: 100%;
    min-height: 440px;
    border-radius: 16px;
    overflow: hidden;
    background: #08090d;
    border: 1px solid var(--border-glass);
}

.comparison-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}

/* Before / Legacy Background */
.side-before {
    background: radial-gradient(circle at 20% 50%, rgba(239, 68, 68, 0.08) 0%, rgba(10, 11, 16, 0.95) 100%);
    z-index: 1;
}

/* After / CoreX Overlay Background */
.side-after {
    background: radial-gradient(circle at 80% 50%, rgba(16, 185, 129, 0.12) 0%, rgba(8, 9, 13, 0.98) 100%);
    z-index: 2;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); /* Defaults to 50% split */
    border-left: 1px solid rgba(16, 185, 129, 0.3);
}

.side-content-box {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Telemetry Badges */
.telemetry-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.badge-warning {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.badge-dot.warning { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.badge-dot.success { background: #10b981; box-shadow: 0 0 8px #10b981; }

/* Metrics Grid Inside Slider */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.metric-bad {
    border-color: rgba(239, 68, 68, 0.2);
}

.metric-good {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.03);
}

.metric-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #f87171;
    margin-bottom: 0.3rem;
}

.text-success {
    color: #34d399 !important;
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}

.metric-score-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.score-bad {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    color: #f87171;
}

.score-good {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.metric-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Bullet Points */
.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    font-size: 0.85rem;
    color: #f87171;
}

.success-list {
    color: #34d399;
}

/* Draggable Split Handle */
.comparison-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.handle-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, transparent, #ff0d2d, #10b981, transparent);
    box-shadow: 0 0 10px rgba(255, 13, 45, 0.8);
}

.handle-button {
    width: 44px;
    height: 44px;
    background: #0d0f17;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 13, 45, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s ease;
}

.handle-button svg {
    width: 20px;
    height: 20px;
}

.comparison-slider-handle:hover .handle-button,
.comparison-slider-handle:active .handle-button {
    transform: scale(1.15);
    border-color: var(--primary-red);
}

/* Comparison Footer */
.comparison-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
    flex-wrap: wrap;
    gap: 1rem;
}

.drag-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.drag-hint svg {
    width: 16px;
    height: 16px;
    color: var(--primary-red);
}

/* Responsive Adjustments */
@media (max-width: 868px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .comparison-side {
        padding: 2rem 1.2rem;
    }
    .comparison-container {
        min-height: 560px;
    }
    .stack-list {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}