﻿/* ============================================================
   QMICS Services – Enterprise Header CSS
   ============================================================ */

/* Prevent scrollbar-caused layout shift (affects home page splash exit) */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Suppress scrollbar during splash — applied via class on <body> in index.html */
body.splash-active {
    overflow: hidden;
}

/* --- Tokens --- */
:root {
    --gold:           #C49A2A;
    --gold-light:     #E8BA4A;
    --gold-dark:      #9A7515;
    --navy:           #0D1B2A;
    --navy-2:         #12263A;
    --navy-3:         #1A3550;
    --white:          #FFFFFF;
    --slate:          #F4F7FB;
    --slate-border:   #E2E8F0;
    --text-muted:     #94A3B8;
    --shadow-lg:      0 20px 60px rgba(0,0,0,0.22);
    --shadow-sm:      0 4px 20px rgba(0,0,0,0.08);
    --shadow-pill:    0 2px 12px rgba(13,27,42,0.08);
    --radius:         10px;
    --radius-pill:    12px;
    --transition:     0.35s cubic-bezier(0.4,0,0.2,1);
    --font-main:      'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ============================================================
   SPLASH / INTRO SCREEN
   ============================================================ */
#qmicsSplash {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #060d20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#qmicsSplash.sp-exit {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Center column */
.sp-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* Logo wrapper */
.sp-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* Blue circular glow behind logo — matches reference */
.sp-logo-glow {
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(0,100,210,0.6) 0%,
        rgba(0,60,160,0.3) 40%,
        transparent 70%);
    animation: spGlowPulse 2.8s ease-in-out infinite;
}
@keyframes spGlowPulse {
    0%,100% { transform: scale(0.92); opacity: 0.8; }
    50%      { transform: scale(1.08); opacity: 1; }
}

/* Logo image */
.sp-logo {
    position: relative;
    z-index: 2;
    width: 170px;
    height: auto;
    animation: spLogoIn 1.1s cubic-bezier(0.175,0.885,0.32,1.275) 0.2s both;
}
@keyframes spLogoIn {
    0%   { opacity: 0; transform: scale(0.25); }
    60%  { opacity: 1; transform: scale(1.07); }
    80%  { transform: scale(0.97); }
    100% { opacity: 1; transform: scale(1); }
}

/* QMICS SERVICES — white, wide spacing */
.sp-name {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 10px;
    color: #ffffff;
    text-transform: uppercase;
    animation: spSlideUp 0.7s ease 1.2s both;
}

/* ENTERPRISE COMPLIANCE & SECURITY — gold */
.sp-tag {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3.5px;
    color: #f4a800;
    text-transform: uppercase;
    animation: spSlideUp 0.7s ease 1.5s both;
}

/* Gold underline */
.sp-line {
    width: 55px;
    height: 2px;
    background: #f4a800;
    border-radius: 2px;
    animation: spSlideUp 0.7s ease 1.7s both;
}

@keyframes spSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   END SPLASH
   ============================================================ */

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #052049; overflow-x: hidden; max-width: 100vw; }
body {
    font-family: var(--font-main);
    background: #F0F4F8;
    color: var(--navy);
    overflow-x: hidden;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==========================================================
   REDESIGNED PREMIUM TWO-ROW HEADER (LIGHT SKY-BLUE THEME)
   ========================================================== */

:root {
    --header-bg:      #052049;      /* Dark navy blue of QMICS logo text */
    --header-text:    #FFFFFF;      /* High-contrast white */
    --qmics-blue:     #052049;      /* Brand blue */
    --qmics-gold:     #FFC000;      /* Brand gold */
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    box-shadow: 0 4px 30px rgba(5, 32, 73, 0.25);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    height: 72px;
}

/* Logo Wrap: Spans vertically across the entire header height */
.logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-right: 12px;
    margin-left: 0;
    flex-shrink: 0;
    height: 100%;
    text-decoration: none;
}

.logo-text-tag {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--qmics-gold);
    text-transform: uppercase;
    margin-top: -4px;
    text-decoration: none;
}

.logo-img {
    height: 62px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition), filter var(--transition);
    filter: brightness(1.25) drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
    margin-top: 12px;
}

.logo-wrap:hover .logo-img {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

/* Header Right Pane: stacked vertically (top row, gold line, bottom row) */
.header-right {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    height: 100%;
    justify-content: space-between;
}

/* Top Row: Contact Info (left) & Socials (right) */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    padding-top: 2px;
}

.contact-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88); /* High contrast light color */
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-link i {
    font-size: 14px;
    color: var(--qmics-gold); /* Gold icons for a beautiful pop of color! */
}

.contact-link:hover {
    color: var(--qmics-gold);
}

/* Hide address on desktop to save header width */
.contact-links .contact-link:last-child {
    display: none;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

/* QMICS GROUP text button */
.social-group-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1.5px solid #FFC000;
    border-radius: 6px;
    background: rgba(5, 15, 40, 0.85);
    color: #FFC000 !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.social-group-btn:hover {
    background: rgba(255,192,0,0.12);
    box-shadow: 0 0 10px rgba(255,192,0,0.3);
}

/* Rounded square with pulsing neon gold glow */
.social-links a:not(.social-group-btn) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 6px;
    background: #06101f;
    border: 1.5px solid rgba(255,165,0,0.85);
    color: #FFA500;
    font-size: 11px;
    text-decoration: none;
    flex-shrink: 0;
    animation: hdrIconShine 2.5s ease-in-out infinite;
}
.social-links a:not(.social-group-btn):nth-of-type(2) { animation-delay: 0.3s; }
.social-links a:not(.social-group-btn):nth-of-type(3) { animation-delay: 0.6s; }
.social-links a:not(.social-group-btn):nth-of-type(4) { animation-delay: 0.9s; }
.social-links a:not(.social-group-btn):nth-of-type(5) { animation-delay: 1.2s; }
.social-links a:not(.social-group-btn):nth-of-type(6) { animation-delay: 1.5s; }

@keyframes hdrIconShine {
    0%, 100% { box-shadow: 0 0 6px rgba(255,165,0,0.4), 0 0 12px rgba(255,165,0,0.15); }
    50%       { box-shadow: 0 0 16px rgba(255,165,0,0.9), 0 0 30px rgba(255,165,0,0.4), 0 0 45px rgba(255,165,0,0.15); }
}
.social-links a:not(.social-group-btn)::before { display: none; }
.social-links a:not(.social-group-btn):hover {
    background: rgba(255,165,0,0.08);
    box-shadow: 0 0 22px rgba(255,165,0,1), 0 0 40px rgba(255,165,0,0.5);
}

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

/* Gold Horizontal Dividing Line */
.header-gold-line {
    height: 2.5px;
    background-color: var(--qmics-gold);
    width: 100%;
    flex-shrink: 0;
}

/* Bottom Row: Navigation Menu & CTA Button */
.header-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    padding-bottom: 2px;
}

.navbar {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.88); /* High-contrast white */
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1px;
    padding: 10px 0;
    transition: color 0.2s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--qmics-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--qmics-gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Contact Us gold pill button in nav */
.nav-contact-btn .nav-contact-link {
    background: var(--qmics-gold);
    color: #052049 !important;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 12px rgba(255,192,0,0.35);
}
.nav-contact-btn .nav-contact-link:hover {
    background: #E8A800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,192,0,0.5);
}
.nav-contact-btn .nav-contact-link::after { display: none; }

/* Dropdown Menu (More Menu) */
.simple-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #FFFFFF;
    border: 1.5px solid var(--slate-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 999;
    overflow: hidden;
}

.nav-item:hover .simple-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.simple-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: var(--qmics-blue);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.simple-dropdown li a:hover {
    background: #F0F4F8;
    color: var(--qmics-blue);
    padding-left: 22px;
}

/* Mega Panel styling adapted for light theme inside dark header */
.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(12px);
    min-width: 720px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    border-top: 4px solid var(--qmics-gold);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow: hidden;
}

.nav-item:hover .mega-panel {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Smaller mega panel for menus with fewer items */
.mega-panel-sm { min-width: 260px; }
.mega-grid-1col { grid-template-columns: 1fr; }
.mega-grid-2col { grid-template-columns: 1fr; }

.mega-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--qmics-blue) 0%, #153A6B 100%);
    color: #FFFFFF;
}

.mega-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.mega-header p {
    font-size: 11.5px;
    color: rgba(255,255,255,0.7);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 14px;
    background: #FAFBFC;
}
.mega-panel-sm .mega-grid {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1.5px solid var(--slate-border);
    transition: all 0.25s ease;
}

.mega-item:hover {
    background: #F0F7FD;
    border-color: rgba(5, 32, 73, 0.2);
    transform: translateX(3px);
}

.mega-item strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--qmics-blue);
    margin-bottom: 1px;
}

.mega-item small {
    font-size: 9.5px;
    color: #64748B;
}

.mega-item-icon {
    font-size: 14px;
    color: var(--qmics-blue);
}

/* CTA: Pill-shaped Gold button with a black dot on the left */
.header-cta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.get-started-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--qmics-gold);
    color: #052049 !important;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 12px rgba(255,192,0,0.35);
}

.get-started-btn:hover {
    background: #E8A800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,192,0,0.5);
}

.btn-dot {
    font-size: 15px;
    line-height: 1;
    color: #000000;
    font-weight: 900;
}

/* Mobile Collapsible Menu Footer is hidden on desktop by default */
.mobile-menu-footer {
    display: none;
}
/* li wrapper for mobile-menu-footer inside nav-links */
.nav-footer-item {
    list-style: none;
    padding: 0;
    width: 100%;
    display: none;
}

/* Hamburger (desktop hidden) */
.hamburger {
    display: none;
}

/* ==========================================================
   HERO SECTION — see css/hero.css
   ========================================================== */

/* Shared gradient text (used in other sections too) */
.gradient-text {
    background: linear-gradient(135deg, #f4b000 0%, #ffd34e 50%, #f4b000 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}
@keyframes shimmerText {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}



/* ==========================================================
   CONTAINER
   ========================================================== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================
   KEYFRAMES
   ========================================================== */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(196,154,42,0.4); }
    50%       { box-shadow: 0 4px 40px rgba(196,154,42,0.75), 0 0 0 6px rgba(196,154,42,0.12); }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
    background: #020b1a;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── CTA Header Banner ── */
.ft-header {
    background: linear-gradient(135deg, #071428 0%, #0d2248 100%);
    border-bottom: 1px solid rgba(255,192,0,0.15);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.ft-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFC000, transparent);
}
.ft-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.ft-header-text h2 {
    font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 8px;
}
.ft-header-text h2 span { color: #FFC000; }
.ft-header-text p { font-size: 14px; color: rgba(255,255,255,0.6); }
.ft-header-btns { display: flex; gap: 14px; flex-shrink: 0; }
.ft-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: #FFC000; color: #052049;
    font-size: 13px; font-weight: 800;
    padding: 12px 24px; border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}
.ft-btn-primary:hover { background: #e6ac00; transform: translateY(-2px); }
.ft-btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 2px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.8);
    font-size: 13px; font-weight: 700;
    padding: 12px 24px; border-radius: 8px;
    transition: border-color 0.2s, color 0.2s;
}
.ft-btn-outline:hover { border-color: #FFC000; color: #FFC000; }

/* ── Footer Main Grid ── */
.ft-main { padding: 60px 0 40px; }
.ft-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 48px;
}

/* Col 1: Brand */
.ft-logo {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}
.ft-logo img { width: 90px; height: auto; }
.ft-logo span { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.5px; text-transform: uppercase; }
.ft-logo strong { color: #FFC000; }
.ft-desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 20px; }
.ft-desc strong { color: rgba(255,255,255,0.85); }
.ft-blue { color: #4488ff; font-weight: 600; }

.ft-socials { display: flex; gap: 14px; flex-wrap: wrap; }
.ft-socials a {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(8, 18, 50, 0.95);
    border: 1.5px solid #FFC000;
    color: #FFC000;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    text-decoration: none;
    flex-shrink: 0;
    animation: ftIconShine 2.5s ease-in-out infinite;
}
.ft-socials a:nth-child(2) { animation-delay: 0.4s; }
.ft-socials a:nth-child(3) { animation-delay: 0.8s; }
.ft-socials a:nth-child(4) { animation-delay: 1.2s; }
.ft-socials a:nth-child(5) { animation-delay: 1.6s; }
.ft-socials a:nth-child(6) { animation-delay: 2.0s; }

@keyframes ftIconShine {
    0%, 100% { box-shadow: 0 0 6px rgba(255,192,0,0.2), inset 0 0 6px rgba(255,192,0,0.04); }
    50%       { box-shadow: 0 0 22px rgba(255,192,0,0.7), 0 0 40px rgba(255,192,0,0.3), inset 0 0 14px rgba(255,192,0,0.12); }
}

.ft-socials a::before { display: none; }
.ft-socials a:hover {
    background: rgba(255,192,0,0.15);
    box-shadow: 0 0 28px rgba(255,192,0,0.8), 0 0 50px rgba(255,192,0,0.4), inset 0 0 16px rgba(255,192,0,0.15);
}

/* Column headings */
.ft-col-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}
.ft-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #FFC000; flex-shrink: 0;
}

/* Links */
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ft-links a {
    font-size: 13px; color: rgba(255,255,255,0.55);
    transition: color 0.2s, padding-left 0.2s;
}
.ft-links a:hover { color: #FFC000; padding-left: 6px; }

/* Contact items */
.ft-contact-items { display: flex; flex-direction: column; gap: 18px; }
.ft-contact-item { display: flex; align-items: flex-start; gap: 12px; }
.ft-ci-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,192,0,0.1);
    border: 1px solid rgba(255,192,0,0.25);
    color: #FFC000;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.ft-contact-item strong { font-size: 12px; font-weight: 800; color: #fff; display: block; margin-bottom: 3px; }
.ft-contact-item p { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.6; }
.ft-contact-item a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.ft-contact-item a:hover { color: #FFC000; }

/* Bottom bar */
.ft-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 18px 0;
}
.ft-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px;
}
.ft-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }

.feature-panels { display: none !important; }
.brand-ticker   { display: none !important; }

/* ── Scroll To Top Button ── */
#scrollTopBtn {
    position: fixed;
    bottom: 36px;
    right: 32px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--qmics-gold, #FFC000);
    color: #052049;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255,192,0,0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s;
}
#scrollTopBtn.stt-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#scrollTopBtn:hover {
    background: #e6ac00;
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(255,192,0,0.6);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
    .mega-panel { min-width: 600px; }
    .mega-grid { grid-template-columns: repeat(2, 1fr); }
    .mega-panel-sm .mega-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .header-container {
        height: 85px;
        padding: 0 20px;
        justify-content: space-between;
    }
    
    .logo-img {
        height: 75px;
    }
    
    .header-right {
        flex-grow: 0;
        height: auto;
        justify-content: center;
    }
    
    .header-top-row,
    .header-gold-line,
    .header-bottom-row .header-cta {
        display: none; /* Hide topbar and desktop CTA button */
    }
    
    .header-bottom-row {
        height: auto;
        padding-bottom: 0;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        justify-content: center;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
    }
     .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #FFFFFF; /* High-contrast white hamburger menu bar */
        border-radius: 2px;
        transition: all 0.35s ease;
    }
    
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--header-bg);
        border-top: 3px solid var(--qmics-gold);
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        padding: 16px 24px 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        gap: 0;
        z-index: 998;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-item {
        position: relative;
        opacity: 1;
        animation: none;
        width: 100%;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        color: rgba(255, 255, 255, 0.9); /* White menu links */
        font-size: 15px;
        font-weight: 700;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover {
        color: var(--qmics-gold);
        opacity: 1;
    }
    
    /* Mobile Dropdowns — simple (dark style) */
    .simple-dropdown {
        position: static;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-left: 2.5px solid var(--qmics-gold);
        border-radius: 0;
        margin: 0;
        padding: 0 0 0 16px;
        background: transparent;
        display: none;
        visibility: visible;
        opacity: 1;
        pointer-events: all;
    }

    /* Mobile Dropdowns — mega panel (matches desktop white/blue design) */
    .mega-panel {
        position: static;
        transform: none;
        min-width: 100%;
        display: none;
        visibility: visible;
        opacity: 1;
        pointer-events: all;
        background: #FFFFFF;
        border: none;
        border-top: 3px solid var(--qmics-gold);
        border-radius: 8px;
        overflow: hidden;
        margin: 8px 0 4px;
        padding: 0;
        box-shadow: 0 4px 18px rgba(5, 32, 73, 0.14);
    }
    
    .simple-dropdown li a {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 13.5px;
        font-weight: 600;
        padding: 10px 0;
    }
    
    .simple-dropdown li a:hover {
        color: var(--qmics-gold) !important;
        background: transparent;
        padding-left: 4px;
    }
    
    .nav-item.open .simple-dropdown,
    .nav-item.has-mega.open .mega-panel {
        display: block;
    }

    .nav-item.has-mega.open .nav-link-drop .arrow {
        transform: rotate(180deg);
        color: var(--qmics-gold);
    }

    .nav-link-drop .arrow {
        transition: transform 0.25s ease, color 0.2s ease;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    /* Mega header — show on mobile with same blue gradient as desktop */
    .mega-header {
        display: block;
        background: linear-gradient(135deg, var(--qmics-blue) 0%, #153A6B 100%);
        color: #FFFFFF;
        padding: 14px 16px;
        border-radius: 0;
    }

    .mega-header h4 {
        font-size: 13px;
        margin: 0 0 2px;
        color: #FFFFFF;
        font-weight: 700;
    }

    .mega-header p {
        font-size: 11px;
        margin: 0;
        color: rgba(255, 255, 255, 0.78);
    }

    .mega-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px;
        background: #FAFBFC;
    }

    .mega-item {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #FFFFFF;
        border: 1.5px solid rgba(5, 32, 73, 0.12);
        padding: 12px 10px;
        min-height: 44px;
        border-radius: 6px;
        text-decoration: none;
        color: var(--qmics-blue);
        transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
        pointer-events: all;
    }

    .mega-item:hover,
    .mega-item:active {
        transform: translateX(3px);
        background: rgba(5, 32, 73, 0.04);
        border-color: var(--qmics-blue);
    }

    .mega-item strong {
        display: block;
        font-size: 12.5px;
        font-weight: 700;
        color: var(--qmics-blue);
        margin-bottom: 1px;
    }

    .mega-item small {
        font-size: 10.5px;
        color: #64748B;
    }

    .mega-item-icon {
        color: var(--qmics-blue);
        font-size: 14px;
        width: 18px;
        text-align: center;
        flex-shrink: 0;
    }

    .mega-item::before {
        display: none;
    }

    /* li wrapper for mobile-menu-footer — pushed to TOP of menu */
    .nav-footer-item {
        display: block;
        width: 100%;
        list-style: none;
        padding: 0;
        order: -1; /* float above nav items in the flex column */
    }

    /* Mobile contact & social footer (now a HEADER strip at top of menu) */
    .mobile-menu-footer {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 0;
        margin-bottom: 6px;
        padding: 14px 0 16px;
        border-top: none;
        border-bottom: 2px solid rgba(255, 192, 0, 0.3);
    }

    .mobile-menu-contacts {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-menu-contacts .contact-link {
        font-size: 13.5px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-menu-contacts .contact-link i {
        color: var(--qmics-gold);
        font-size: 13px;
        width: 16px;
        text-align: center;
        flex-shrink: 0;
    }

    /* ── Social icons row ── */
    .mobile-menu-socials {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .mobile-menu-socials a {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.07);
        border: 1.5px solid rgba(255, 192, 0, 0.5);
        color: #FFC000;
        font-size: 15px;
        text-decoration: none;
        transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
        box-shadow: 0 0 8px rgba(255, 192, 0, 0.12);
    }

    .mobile-menu-socials a::before {
        display: none; /* remove spinning ring — clean look */
    }

    .mobile-menu-socials a:hover,
    .mobile-menu-socials a:active {
        background: rgba(255, 192, 0, 0.15);
        border-color: var(--qmics-gold);
        box-shadow: 0 0 16px rgba(255, 192, 0, 0.45);
        transform: translateY(-2px);
        color: #fff;
    }

    .mobile-menu-cta { margin-top: 6px; }
    .mobile-menu-cta .get-started-btn {
        width: 100%;
        justify-content: center;
    }

    /* CONTACT US nav button: full-width on mobile */
    .nav-contact-btn {
        margin-top: 8px;
    }
    .nav-contact-btn .nav-contact-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .hero-stats { flex-wrap: wrap; }
    .stat { padding: 14px 20px; }
}

@media (max-width: 600px) {
    .mega-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 32px; }
    .hero-sub { font-size: 14px; }
}

/* ── Tablet: fix logo margin so it sits inside 85px header ── */
@media (max-width: 900px) {
    .logo-img { margin-top: 5px !important; }
}

/* ── Mobile header: show social icons beside the hamburger ── */
@media (max-width: 900px) {
    /* Show top-row again but only for social icons */
    .header-top-row {
        display: flex !important;
        align-items: center;
        height: auto;
        padding: 0;
        justify-content: flex-end;
    }
    /* Hide contact text and QMICS GROUP text button — keep icon links only */
    .contact-links,
    .social-group-btn {
        display: none !important;
    }
    /* Lay header-right as a row: [socials] [hamburger] */
    .header-right {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        height: auto;
        justify-content: flex-end;
    }
    .header-bottom-row {
        flex: 0 0 auto;
    }
    /* Compact social icon sizing for mobile header */
    .social-links {
        gap: 7px;
        margin-right: 0;
    }
    .social-links a:not(.social-group-btn) {
        width: 26px;
        height: 26px;
        font-size: 10.5px;
        border-radius: 6px;
        animation: none;
        box-shadow: 0 0 6px rgba(255, 165, 0, 0.45);
    }
}

/* ── Header refinements for small phones ── */
@media (max-width: 480px) {
    .header-container {
        height: 72px !important;
        padding: 0 14px !important;
    }
    .logo-img {
        height: 56px !important;
        margin-top: 4px !important;
    }
    .hamburger { padding: 6px; }
    .hamburger span { width: 22px; height: 2px; }
    /* Slightly smaller social icons at 480px */
    .social-links a:not(.social-group-btn) {
        width: 24px;
        height: 24px;
        font-size: 10px;
        border-radius: 5px;
    }
    .social-links { gap: 5px; }
}

/* ── Mobile nav menu: limit height & allow scroll ── */
@media (max-width: 900px) {
    .nav-links {
        max-height: calc(100vh - 85px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}
@media (max-width: 480px) {
    .nav-links { max-height: calc(100vh - 72px); }
}

/* ── Splash screen: prevent overflow on small phones ── */
@media (max-width: 480px) {
    .sp-name {
        font-size: 18px;
        letter-spacing: 5px;
    }
    .sp-tag {
        font-size: 9.5px;
        letter-spacing: 2px;
        text-align: center;
        padding: 0 10px;
    }
}

/* ==========================================================
   3D SERVICES SHOWCASE — Seamless Hero Theme Continuation
   ========================================================== */

/* Section background matches hero exactly */
.services-3d {
    position: relative;
    background: linear-gradient(180deg, #152234 0%, #0D1B2A 30%, #0a1220 70%, #0D1B2A 100%);
    padding: 110px 0 100px;
    overflow: hidden;
}

/* Hero-matching radial glows */
.services-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 50% at 85% 20%, rgba(196,154,42,0.10) 0%, transparent 65%),
        radial-gradient(ellipse 45% 55% at 10% 80%, rgba(196,154,42,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 30% 40% at 50% 50%, rgba(21,34,52,0.5) 0%, transparent 70%);
    pointer-events: none;
}

/* Floating dot particles matching hero */
.svc-particles { position:absolute;inset:0;pointer-events:none;overflow:hidden; }
.svc-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(196,154,42,0.3);
    animation: svcFloat linear infinite;
}
@keyframes svcFloat {
    0%   { transform: translateY(110%) scale(0); opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 0.6; }
    100% { transform: translateY(-10%) scale(1); opacity: 0; }
}

/* Faint grid lines (hero-style depth) */
.svc-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196,154,42,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196,154,42,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    opacity: 0.7;
}

/* ── Section Header ── */
.section-head { text-align:center; margin-bottom:72px; position: relative; z-index: 2; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border: 1px solid rgba(196,154,42,0.4);
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 22px;
    background: rgba(196,154,42,0.06);
    backdrop-filter: blur(8px);
}

.section-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.gold-text { color: var(--gold-light); }

.section-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ── 3D Cards Grid ── */
.cards-3d-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 52px;
}

/* Cards hidden — slide in from right one by one */
.c3d-card {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.c3d-card.c3d-visible {
    opacity: 1;
    transform: translateX(0);
}

.card-3d { cursor: pointer; }

/* One-by-one slide-in reveal with 2 bounces */
.card-3d.c3d-card {
    opacity: 0;
    transform: translateY(70px) scale(0.94);
}
.card-3d.c3d-card.c3d-visible {
    animation: c3dEntry 1s ease forwards;
}
@keyframes c3dEntry {
    0%   { opacity: 0; transform: translateY(70px) scale(0.94); }
    45%  { opacity: 1; transform: translateY(-14px) scale(1.03); }
    60%  { transform: translateY(8px) scale(0.99); }
    74%  { transform: translateY(-7px) scale(1.015); }
    86%  { transform: translateY(3px) scale(1.0); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.card-3d-inner {
    position: relative;
    background: linear-gradient(145deg,
        rgba(255,255,255,0.04) 0%,
        rgba(196,154,42,0.03) 50%,
        rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(196,154,42,0.15);
    border-radius: 20px;
    padding: 34px 26px 28px;
    overflow: hidden;
    transition:
        transform 0.5s cubic-bezier(0.23,1,0.32,1),
        box-shadow 0.5s ease,
        border-color 0.4s ease;
    will-change: transform;
    height: 100%;
}

/* Star-dot in top corner of each card */
.card-3d-inner::before {
    content: '';
    position: absolute;
    top: 16px; right: 20px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold-light);
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(196,154,42,0.8);
    animation: starBlink 3s ease-in-out infinite;
}
@keyframes starBlink {
    0%,100% { opacity:0.3; box-shadow: 0 0 6px rgba(196,154,42,0.5); }
    50%      { opacity:0.9; box-shadow: 0 0 18px rgba(196,154,42,1); }
}

.card-3d:hover .card-3d-inner {
    border-color: rgba(196,154,42,0.5);
    box-shadow:
        0 0 0 1px rgba(196,154,42,0.15),
        0 24px 60px rgba(0,0,0,0.6),
        0 0 60px rgba(196,154,42,0.08),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Corner accent line */
.card-3d-inner::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50px; height: 2px;
    background: linear-gradient(90deg, var(--gold-light), transparent);
    border-radius: 0 0 4px 0;
    opacity: 0;
    transition: opacity 0.4s ease, width 0.4s ease;
}
.card-3d:hover .card-3d-inner::after { opacity: 1; width: 80px; }

/* Top glowing gradient blob per card */
.card-glow {
    position: absolute;
    width: 180px; height: 180px;
    top: -50px; right: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,154,42,0.15) 0%, transparent 70%);
    filter: blur(25px);
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.card-3d:hover .card-glow { opacity: 1.5; }
.glow-blue   { background: radial-gradient(circle, rgba(50,120,255,0.15)  0%, transparent 70%); }
.glow-green  { background: radial-gradient(circle, rgba(34,197,94,0.15)   0%, transparent 70%); }
.glow-purple { background: radial-gradient(circle, rgba(168,85,247,0.15)  0%, transparent 70%); }

/* Icon */
.card-icon-wrap {
    position: relative;
    width: 60px; height: 60px;
    margin-bottom: 22px;
}
.card-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(196,154,42,0.35);
    animation: ringPulse 2.8s ease-in-out infinite;
}
@keyframes ringPulse {
    0%,100% { transform: scale(1);    opacity: 0.7; }
    50%      { transform: scale(1.35); opacity: 0;   }
}
.card-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 24px;
    color: var(--gold-light);
    filter: drop-shadow(0 0 8px rgba(196,154,42,0.6));
    transition: transform 0.35s ease, filter 0.35s ease;
}
.card-3d:hover .card-icon {
    transform: translate(-50%,-50%) scale(1.2);
    filter: drop-shadow(0 0 18px rgba(196,154,42,0.9));
}

/* Card text */
.card-3d-inner h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}
.card-3d-inner p {
    font-size: 13px;
    color: rgba(255,255,255,0.48);
    line-height: 1.75;
    margin-bottom: 18px;
}

/* Tags */
.card-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:22px; }
.card-tags li {
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid rgba(196,154,42,0.25);
    color: var(--gold-light);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: rgba(196,154,42,0.05);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.card-3d:hover .card-tags li {
    background: rgba(196,154,42,0.12);
    border-color: rgba(196,154,42,0.5);
}

/* CTA arrow link */
.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.2px;
    transition: gap 0.3s ease, color 0.3s ease;
}
.card-cta:hover { gap: 14px; color: #fff; }
.card-cta i { font-size: 11px; transition: transform 0.3s ease; }
.card-cta:hover i { transform: translateX(4px); }

/* Shine sweep */
.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg,
        rgba(255,255,255,0.0) 30%,
        rgba(255,255,255,0.05) 50%,
        rgba(255,255,255,0.0) 70%);
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.card-3d:hover .card-shine { opacity: 1; }

/* ── Feature Strip ── */
.feature-strip {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(196,154,42,0.04);
    border: 1px solid rgba(196,154,42,0.18);
    border-radius: 18px;
    padding: 30px 40px;
    flex-wrap: wrap;
    gap: 16px;
    backdrop-filter: blur(16px);
}
.feature-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(196,154,42,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.feature-strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}
.feature-strip-item i {
    font-size: 22px;
    color: var(--gold-light);
    animation: iconGlow 2.5s ease-in-out infinite alternate;
}
@keyframes iconGlow {
    from { filter: drop-shadow(0 0 4px rgba(196,154,42,0.4)); }
    to   { filter: drop-shadow(0 0 20px rgba(196,154,42,1)); }
}
.feature-strip-item:hover { color: #fff; }
.feature-strip-divider {
    width: 1px; height: 44px;
    background: linear-gradient(180deg, transparent, rgba(196,154,42,0.25), transparent);
    flex-shrink: 0;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1),
                transform 0.8s cubic-bezier(0.23,1,0.32,1);
    animation: revealFallback 0.9s ease forwards;
    animation-delay: 0.3s;
}
.reveal.visible { opacity:1; transform:translateY(0); animation: none; }
@keyframes revealFallback {
    from { opacity:0; transform:translateY(40px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ── Responsive ── */
@media (max-width:1200px) { .cards-3d-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px) {
    .cards-3d-grid { grid-template-columns:1fr; }
    .feature-strip { padding:20px 24px; }
    .feature-strip-divider { display:none; }
    .feature-strip-item { padding:6px 0; }
}

/* ==========================================================
   PREMIUM ENTERPRISE SECTION
   ========================================================== */
.enterprise-section {
    position: relative;
    background: linear-gradient(180deg, #0D1B2A 0%, #080f1c 50%, #0D1B2A 100%);
    padding: 0 0 100px;
    overflow: hidden;
}
.ent-bg-glow { position:absolute; width:600px; height:600px; border-radius:50%; filter:blur(120px); pointer-events:none; }
.ent-glow-left  { background:radial-gradient(circle,rgba(196,154,42,.08) 0%,transparent 70%); left:-200px; top:50%; transform:translateY(-50%); }
.ent-glow-right { background:radial-gradient(circle,rgba(30,80,180,.07) 0%,transparent 70%); right:-200px; top:30%; }

.section-divider { display:flex; align-items:center; padding:60px 60px 50px; gap:20px; }
.divider-line { flex:1; height:1px; background:linear-gradient(90deg,transparent,rgba(196,154,42,.5),rgba(196,154,42,.7),rgba(196,154,42,.5),transparent); animation:dividerPulse 3s ease-in-out infinite; }
@keyframes dividerPulse { 0%,100%{opacity:.5;} 50%{opacity:1;} }
.divider-diamond { width:54px; height:54px; border:2px solid rgba(196,154,42,.5); border-radius:12px; display:flex; align-items:center; justify-content:center; transform:rotate(45deg); background:rgba(196,154,42,.06); flex-shrink:0; animation:diamondPulse 2.5s ease-in-out infinite; }
.divider-diamond i { transform:rotate(-45deg); color:var(--gold-light); font-size:20px; filter:drop-shadow(0 0 12px rgba(196,154,42,.9)); }
@keyframes diamondPulse { 0%,100%{box-shadow:0 0 0 0 rgba(196,154,42,.4);} 50%{box-shadow:0 0 0 16px rgba(196,154,42,0);} }

/* Stats Row */
.stats-mega-row { display:flex; align-items:center; background:linear-gradient(135deg,rgba(255,255,255,.03) 0%,rgba(196,154,42,.04) 100%); border:1px solid rgba(196,154,42,.15); border-radius:24px; padding:40px 20px; margin-bottom:56px; position:relative; overflow:hidden; }
.stats-mega-row::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,var(--gold-light),rgba(196,154,42,.3),transparent); }
.stat-mega { flex:1; text-align:center; padding:8px 24px; }
.stat-mega-icon { width:52px; height:52px; border-radius:14px; background:rgba(196,154,42,.1); border:1px solid rgba(196,154,42,.25); display:flex; align-items:center; justify-content:center; margin:0 auto 14px; transition:transform .3s ease,background .3s ease; }
.stat-mega:hover .stat-mega-icon { transform:translateY(-4px) scale(1.1); background:rgba(196,154,42,.2); }
.stat-mega-icon i { font-size:22px; color:var(--gold-light); filter:drop-shadow(0 0 8px rgba(196,154,42,.6)); }
.stat-mega-num { font-size:46px; font-weight:900; color:var(--gold-light); line-height:1; margin-bottom:6px; letter-spacing:-1px; filter:drop-shadow(0 0 20px rgba(196,154,42,.3)); }
.stat-mega-label { font-size:12px; color:rgba(255,255,255,.5); font-weight:600; letter-spacing:.8px; margin-bottom:14px; text-transform:uppercase; }
.stat-mega-bar { height:3px; background:rgba(255,255,255,.06); border-radius:10px; overflow:hidden; }
.stat-mega-fill { height:100%; width:0; background:linear-gradient(90deg,rgba(196,154,42,.4),var(--gold-light)); border-radius:10px; transition:width 1.8s cubic-bezier(.23,1,.32,1); }
.stat-mega-divider { width:1px; height:80px; background:linear-gradient(180deg,transparent,rgba(196,154,42,.25),transparent); flex-shrink:0; }

/* Feature Panels */
.feature-panels { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:60px; }
.feat-panel { position:relative; border-radius:24px; padding:48px 40px 40px; overflow:hidden; transition:transform .4s cubic-bezier(.23,1,.32,1),box-shadow .4s ease; }
.feat-panel:hover { transform:translateY(-6px); box-shadow:0 32px 80px rgba(0,0,0,.5); }
.feat-panel-dark { background:linear-gradient(135deg,rgba(255,255,255,.04) 0%,rgba(20,40,80,.4) 100%); border:1px solid rgba(255,255,255,.08); }
.feat-panel-gold { background:linear-gradient(135deg,rgba(196,154,42,.08) 0%,rgba(196,154,42,.03) 100%); border:1px solid rgba(196,154,42,.2); }

.feat-panel-3d-badge { position:absolute; top:32px; right:32px; width:80px; height:80px; display:flex; align-items:center; justify-content:center; }
.badge-3d-ring { position:absolute; inset:0; border-radius:50%; border:2px solid rgba(196,154,42,.3); animation:badgePulse 2s ease-in-out infinite; }
.badge-3d-ring.ring-2 { inset:-12px; border-color:rgba(196,154,42,.12); animation-delay:.5s; animation-duration:2.5s; }
@keyframes badgePulse { 0%,100%{transform:scale(1);opacity:.8;} 50%{transform:scale(1.2);opacity:.2;} }
.badge-3d-icon { font-size:30px; color:var(--gold-light); filter:drop-shadow(0 0 14px rgba(196,154,42,.8)); animation:iconFloat 3s ease-in-out infinite; position:relative; z-index:2; }
.gold-badge .badge-3d-icon { color:#f0c040; }
@keyframes iconFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-7px);} }

.feat-panel-content { padding-right:90px; }
.feat-panel-tag { display:inline-flex; align-items:center; padding:5px 14px; border-radius:50px; font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); color:rgba(255,255,255,.6); margin-bottom:16px; }
.feat-panel-tag.gold-tag { background:rgba(196,154,42,.1); border-color:rgba(196,154,42,.3); color:var(--gold-light); }
.feat-panel-content h3 { font-size:22px; font-weight:800; color:#fff; line-height:1.3; margin-bottom:12px; }
.feat-panel-content h3 span { color:var(--gold-light); }
.feat-panel-content p { font-size:14px; color:rgba(255,255,255,.5); line-height:1.75; margin-bottom:20px; }
.feat-checklist { list-style:none; margin-bottom:28px; display:flex; flex-direction:column; gap:10px; }
.feat-checklist li { display:flex; align-items:center; gap:10px; font-size:14px; color:rgba(255,255,255,.7); font-weight:500; }
.feat-checklist li i { color:var(--gold-light); font-size:14px; filter:drop-shadow(0 0 6px rgba(196,154,42,.5)); flex-shrink:0; }
.feat-btn { display:inline-flex; align-items:center; gap:8px; padding:12px 24px; border-radius:10px; font-size:13px; font-weight:700; color:rgba(255,255,255,.8); border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.05); transition:all .3s ease; }
.feat-btn.gold-btn { background:rgba(196,154,42,.12); border-color:rgba(196,154,42,.4); color:var(--gold-light); }
.feat-btn:hover { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.3); color:#fff; transform:translateX(4px); }
.feat-btn.gold-btn:hover { background:rgba(196,154,42,.25); border-color:var(--gold-light); color:#fff; }
.feat-btn i { font-size:11px; transition:transform .3s ease; }
.feat-btn:hover i { transform:translateX(4px); }

/* Brand Ticker */
.brand-ticker { overflow:hidden; padding:20px 0; border-top:1px solid rgba(196,154,42,.1); border-bottom:1px solid rgba(196,154,42,.1); background:rgba(196,154,42,.02); position:relative; }
.brand-ticker::before,.brand-ticker::after { content:''; position:absolute; top:0; bottom:0; width:120px; z-index:2; pointer-events:none; }
.brand-ticker::before { left:0; background:linear-gradient(90deg,#080f1c,transparent); }
.brand-ticker::after  { right:0; background:linear-gradient(-90deg,#080f1c,transparent); }
.ticker-track { display:flex; align-items:center; gap:28px; white-space:nowrap; animation:tickerScroll 30s linear infinite; width:max-content; }
.ticker-track span { font-size:13px; font-weight:700; letter-spacing:1px; color:rgba(255,255,255,.45); text-transform:uppercase; transition:color .3s ease; }
.ticker-track span:hover { color:var(--gold-light); }
.ticker-dot { color:var(--gold-light) !important; font-size:8px !important; opacity:.5; }
@keyframes tickerScroll { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

@media (max-width:900px) { .feature-panels{grid-template-columns:1fr;} .stats-mega-row{flex-wrap:wrap;} .stat-mega{min-width:50%;padding:20px;} .feat-panel-content{padding-right:0;} }
@media (max-width:600px) { .stat-mega{min-width:100%;} .section-divider{padding:40px 20px 30px;} .feat-panel{padding:32px 24px;} }

/* ==========================================================
   3D HEXAGONAL COMPLIANCE NETWORK
   ========================================================== */
.hex-section {
    position:relative;
    background:linear-gradient(180deg,#050d1a 0%,#071020 40%,#0a1628 100%);
    padding:90px 0 80px;
    overflow:hidden;
}
.hex-grid-overlay {
    position:absolute;inset:0;
    background-image:linear-gradient(rgba(100,180,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(100,180,255,.04) 1px,transparent 1px);
    background-size:50px 50px;pointer-events:none;
}
.hex-bg-particles { position:absolute;inset:0;pointer-events:none;overflow:hidden; }
.hex-section-head { text-align:center;margin-bottom:60px;position:relative;z-index:2; }

/* Network Wrap */
.hex-network-wrap { position:relative;display:flex;justify-content:center;margin-bottom:60px; perspective: 1000px; }
.hex-network { position:relative;width:600px;height:600px;max-width:100%; transform-style: preserve-3d; }

/* ORBIT CONTAINER */
.hex-orbit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* SVG Lines */
.hex-connections { position:absolute;inset:0;width:100%;height:100%;z-index:1; }
.hex-line { stroke-dasharray:8 6;animation:lineDash 3s linear infinite;opacity:.65; }
@keyframes lineDash { to { stroke-dashoffset:-100; } }

/* Hexagon base */
.hex-node { position:absolute;z-index:5;cursor:pointer; filter: drop-shadow(0 0 12px rgba(26,111,255,0.6)); transition: transform 0.4s ease; }
.hex-node:hover { transform: scale(1.1) translateY(-4px); filter: drop-shadow(0 0 20px rgba(26,111,255,1)); }

.hex-border {
    position: absolute; inset: -2px;
    background: #1a6fff; /* Cyan/blue border */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 0;
}

.hex-node-inner {
    position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
    clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
    z-index: 1; width: 100%; height: 100%;
    background: #060f26;
}

/* CENTER */
.hex-center { width:160px;height:160px;top:50%;left:50%;transform:translate(-50%,-50%); }
.hex-center .hex-node-inner { width:160px;height:160px;background:linear-gradient(135deg,#0d2a5e 0%,#0a1e4a 50%,#1a3a7a 100%);animation:centerFloat 3s ease-in-out infinite; }
@keyframes centerFloat { 0%,100%{transform:translateY(0) scale(1);}50%{transform:translateY(-8px) scale(1.03);} }

/* Blinking glow core */
.hex-glow-core {
    position:absolute;inset:0;
    background:radial-gradient(circle,rgba(100,180,255,.5) 0%,rgba(196,154,42,.2) 40%,transparent 70%);
    animation:coreBlink 1.5s ease-in-out infinite;
    clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
@keyframes coreBlink { 0%,100%{opacity:.35;}50%{opacity:1;} }

/* Triple pulse rings */
.hex-pulse-ring {
    position:absolute;
    border:2px solid rgba(100,180,255,.5);
    border-radius:0;
    clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
    animation:hexRingPulse 2.4s ease-out infinite;
    pointer-events:none;
}
.r1 { inset:-20px;animation-delay:0s; }
.r2 { inset:-36px;animation-delay:.6s; }
.r3 { inset:-52px;animation-delay:1.2s; }
@keyframes hexRingPulse { 0%{opacity:.8;transform:scale(.9);}60%{opacity:.2;}100%{opacity:0;transform:scale(1.4);} }

.hex-center-icon {
    font-size:28px;color:rgba(100,200,255,.9);
    filter:drop-shadow(0 0 12px rgba(100,200,255,.9));
    margin-bottom:6px;position:relative;z-index:2;
    animation:iconGlowBlue 1.5s ease-in-out infinite alternate;
}
@keyframes iconGlowBlue {
    from{filter:drop-shadow(0 0 6px rgba(100,200,255,.6));}
    to  {filter:drop-shadow(0 0 20px rgba(100,200,255,1)) drop-shadow(0 0 40px rgba(100,200,255,.5));}
}
.hex-center-label {
    font-size:11px;font-weight:900;letter-spacing:2px;color:#fff;
    text-shadow:0 0 20px rgba(100,200,255,.9);position:relative;z-index:2;
    animation:textBlink 1.5s ease-in-out infinite;
}
@keyframes textBlink {
    0%,100%{opacity:1;text-shadow:0 0 10px rgba(100,200,255,.5);}
    50%     {opacity:.7;text-shadow:0 0 30px rgba(100,200,255,1),0 0 60px rgba(100,200,255,.6);}
}

/* OUTER NODES */
.hex-outer { width:118px;height:118px; }

.hex-outer .hex-border { background: linear-gradient(135deg, #1a6fff, #00d4ff); }
.hex-outer .hex-node-inner {
    background:linear-gradient(135deg,rgba(4,14,40,0.97) 0%,rgba(8,18,50,0.99) 100%);
    gap: 3px;
}
.hex-outer .hex-node-inner i { font-size:26px;color:#00d4ff;filter:drop-shadow(0 0 10px rgba(0,212,255,0.6)); margin-bottom: 3px; }
.hex-outer .hex-node-inner strong { font-size:13px;font-weight:900;color:#ffffff;line-height:1; letter-spacing:0.5px; }

.hex-node-glow {
    position:absolute;inset:0;
    background:radial-gradient(circle,rgba(0,212,255,0.3) 0%,transparent 60%);
    clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
    animation:outerGlow 2.5s ease-in-out infinite alternate;
}
@keyframes outerGlow { from{opacity:.4;}to{opacity:1;} }
.hex-outer:hover .hex-node-inner i { filter:drop-shadow(0 0 18px #1a6fff) !important; }

/* Positions — adjusted for 118px node size */
.h-top       { top:16px;left:50%; margin-left:-59px; animation: nodeBlinkSeq 6s infinite 0s; }
.h-top-right { top:125px;right:16px; animation: nodeBlinkSeq 6s infinite 1s; }
.h-bot-right { bottom:125px;right:16px; animation: nodeBlinkSeq 6s infinite 2s; }
.h-bottom    { bottom:16px;left:50%; margin-left:-59px; animation: nodeBlinkSeq 6s infinite 3s; }
.h-bot-left  { bottom:125px;left:16px; animation: nodeBlinkSeq 6s infinite 4s; }
.h-top-left  { top:125px;left:16px; animation: nodeBlinkSeq 6s infinite 5s; }

@keyframes nodeBlinkSeq {
    0%, 15%, 100% { filter: drop-shadow(0 0 12px rgba(26,111,255,0.4)); opacity: 0.6; }
    7.5% { filter: drop-shadow(0 0 35px rgba(0, 212, 255, 1)) brightness(1.5); opacity: 1; }
}

/* Outer float animation (no transform to conflict with rotation) */
.h-top       .hex-node-inner { animation:outerFloat1 4s ease-in-out infinite; }
.h-top-right .hex-node-inner { animation:outerFloat1 4.4s ease-in-out infinite .5s; }
.h-bot-right .hex-node-inner { animation:outerFloat1 4.2s ease-in-out infinite 1s; }
.h-bottom    .hex-node-inner { animation:outerFloat1 4.6s ease-in-out infinite .3s; }
.h-bot-left  .hex-node-inner { animation:outerFloat1 4.1s ease-in-out infinite .7s; }
.h-top-left  .hex-node-inner { animation:outerFloat1 4.3s ease-in-out infinite .9s; }
@keyframes outerFloat1 { 0%,100%{margin-top:0;}50%{margin-top:-7px;} }

/* Compliance Tags */
.compliance-tags-row { display:flex;justify-content:center;flex-wrap:wrap;gap:12px;position:relative;z-index:2; }
.comp-tag {
    display:flex;align-items:center;gap:7px;padding:9px 20px;border-radius:50px;
    background:rgba(10,40,100,.5);border:1px solid rgba(100,180,255,.25);
    color:rgba(255,255,255,.8);font-size:12px;font-weight:700;letter-spacing:.8px;
    transition:all .3s ease;cursor:default;backdrop-filter:blur(8px);
}
.comp-tag i { color:rgba(100,200,255,.8);font-size:12px;animation:tagIconBlink 2s ease-in-out infinite; }
.comp-tag:nth-child(odd) i { animation-delay:.5s; }
@keyframes tagIconBlink {
    0%,100%{color:rgba(100,200,255,.6);filter:none;}
    50%{color:rgba(196,154,42,1);filter:drop-shadow(0 0 6px rgba(196,154,42,.8));}
}
.comp-tag:hover { background:rgba(100,180,255,.12);border-color:rgba(100,180,255,.6);color:#fff;transform:translateY(-2px);box-shadow:0 8px 24px rgba(100,180,255,.15); }

/* Responsive */
@media (max-width:640px) {
    .hex-network{width:340px;height:340px;}
    .hex-center{width:90px;height:90px;}
    .hex-center .hex-node-inner{width:90px;height:90px;}
    .hex-center-icon{font-size:16px;}
    .hex-center-label{font-size:8px;letter-spacing:1px;}
    .hex-outer{width:68px;height:68px;}
    .hex-outer .hex-node-inner{width:68px;height:68px;}
    .hex-outer .hex-node-inner i{font-size:13px;}
    .hex-outer .hex-node-inner span{font-size:5.5px;}
    .h-top-right{right:4px;} .h-bot-right{right:4px;}
    .h-bot-left{left:4px;}  .h-top-left{left:4px;}
    .h-top{top:10px;} .h-bottom{bottom:10px;}
    .h-top-right,.h-bot-right{top:unset;} .h-top-left,.h-bot-left{top:unset;}
}

/* ============================================================
   CAPITOL SOLAR STYLE — QMICS SERVICES SHOWCASE
   ============================================================ */
.cs-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px 0 20px;
}

/* LEFT text */
.cs-text {
    flex: 0 0 480px;
    margin-left: 0;
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.cs-text.cs-visible { opacity: 1; transform: translateX(0); }

.cs-tag {
    font-size: 12.5px;
    color: #FFC000;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 14px;
    display: block;
    opacity: 0;
    transform: translateY(12px);
    animation: csFadeUp 0.7s ease 0.2s forwards;
}
.cs-title {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(16px);
    animation: csFadeUp 0.7s ease 0.4s forwards;
}
.cs-gold { color: #FFC000; }

.cs-desc {
    font-size: 14.5px;
    color: rgba(255,255,255,0.68);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 500px;
    opacity: 0;
    transform: translateY(16px);
    animation: csFadeUp 0.7s ease 0.55s forwards;
}

/* Animated checklist */
.cs-list {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cs-li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.82);
    font-weight: 500;
    opacity: 0;
    transform: translateX(-18px);
    animation: csSlideIn 0.5s ease forwards;
}
.cs-li i { color: #FFC000; font-size: 14px; flex-shrink: 0; }
.cs-li-1 { animation-delay: 0.7s; }
.cs-li-2 { animation-delay: 0.85s; }
.cs-li-3 { animation-delay: 1.0s; }
.cs-li-4 { animation-delay: 1.15s; }
.cs-li-5 { animation-delay: 1.3s; }

@keyframes csSlideIn {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes csFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Stats row */
.cs-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
    opacity: 0;
    animation: csFadeUp 0.7s ease 1.4s forwards;
}
.cs-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.cs-stat span.cs-num {
    font-size: 32px;
    font-weight: 900;
    color: #FFC000;
    line-height: 1;
}
.cs-stat > span:not(.cs-num) {
    font-size: 22px;
    font-weight: 900;
    color: #FFC000;
    line-height: 1;
    display: inline;
}
.cs-stat small {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
    font-weight: 600;
}

/* CTA button */
.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #FFC000;
    color: #FFC000;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 13px 28px;
    border-radius: 4px;
    transition: background 0.25s, color 0.25s, transform 0.2s;
    opacity: 0;
    animation: csFadeUp 0.6s ease 1.6s forwards;
}
.cs-btn:hover {
    background: #FFC000;
    color: #052049;
    transform: translateY(-2px);
}

/* RIGHT image */
.cs-img-side {
    flex: 0 0 460px;
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.cs-img-side.cs-visible { opacity: 1; transform: translateX(0); }
.cs-img-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cs-img-frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.82);
    animation: csSlowZoom 10s ease-in-out infinite alternate;
}
@keyframes csSlowZoom {
    from { transform: scale(1.0); }
    to   { transform: scale(1.18); }
}
.cs-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,32,73,0.45) 0%, transparent 60%);
}
.cs-img-badge {
    position: absolute;
    bottom: 18px; left: 18px;
    background: rgba(5,20,50,0.92);
    border: 1px solid rgba(255,192,0,0.45);
    color: #FFC000;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

/* ============================================================
   GLASSMORPHISM COMPLIANCE SERVICES SECTION
   ============================================================ */
.gm-services-section {
    position: relative;
    padding: 50px 0 100px;
    background:
        linear-gradient(160deg, #030c22 0%, #060f2a 50%, #030812 100%),
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(26,111,255,0.04) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(26,111,255,0.04) 40px);
    overflow: hidden;
}
.gm-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.gm-glow-a {
    width: 700px; height: 700px;
    top: -200px; left: -150px;
    background: radial-gradient(circle, rgba(26,111,255,0.12) 0%, transparent 70%);
}
.gm-glow-b {
    width: 600px; height: 600px;
    bottom: -150px; right: -100px;
    background: radial-gradient(circle, rgba(244,176,0,0.10) 0%, transparent 70%);
}
.gm-services-section .container { position: relative; z-index: 1; }

/* Head */
.gm-head { text-align: center; margin-bottom: 64px; }
.gm-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(26,111,255,0.12);
    border: 1px solid rgba(26,111,255,0.25);
    color: #7ab3ff;
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px; border-radius: 50px;
    margin-bottom: 20px;
}
.gm-title {
    font-size: 44px; font-weight: 900; color: #fff;
    line-height: 1.15; margin-bottom: 16px;
    letter-spacing: -1px;
}
.gm-gold { color: #f4b000; }
.gm-sub {
    font-size: 16px; color: rgba(200,215,245,0.7);
    max-width: 620px; margin: 0 auto; line-height: 1.7;
}

/* Grid */
.gm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.gm-grid .gm-card:nth-child(4) { grid-column: 1 / 2; }
.gm-grid .gm-card:nth-child(5) { grid-column: 2 / 3; }

/* Card */
.gm-card {
    position: relative;
    background: rgba(255,255,255,0.055);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 22px;
    padding: 36px 30px 30px;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    overflow: hidden;
    cursor: default;
}
.gm-card:hover {
    transform: translateY(-14px) scale(1.02);
    background: rgba(255,255,255,0.09);
    border-color: var(--ac, #f4b000);
    box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 60px var(--glow, rgba(244,176,0,0.15));
}
.gm-card-glow {
    position: absolute; inset: 0; border-radius: 22px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--glow, rgba(244,176,0,0.1)), transparent);
    opacity: 0; transition: opacity 0.4s;
    pointer-events: none;
}
.gm-card:hover .gm-card-glow { opacity: 1; }

/* Icon */
.gm-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--ac, #f4b000);
    margin-bottom: 18px;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px var(--glow, rgba(244,176,0,0.1));
}
.gm-card:hover .gm-icon-wrap {
    background: rgba(255,255,255,0.12);
    box-shadow: 0 6px 30px var(--glow, rgba(244,176,0,0.25));
}

/* Badge */
.gm-card-badge {
    position: absolute; top: 28px; right: 26px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--ac, #f4b000);
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.5px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 50px;
}

/* Text */
.gm-card-title {
    font-size: 20px; font-weight: 800; color: #fff;
    margin-bottom: 12px; line-height: 1.3;
}
.gm-card-desc {
    font-size: 13.5px; color: rgba(200,218,255,0.65);
    line-height: 1.7; margin-bottom: 20px;
}

/* List */
.gm-list {
    list-style: none; padding: 0; margin: 0 0 22px;
    display: flex; flex-direction: column; gap: 8px;
}
.gm-list li {
    font-size: 13px; color: rgba(210,225,255,0.8);
    display: flex; align-items: center; gap: 9px;
    font-weight: 500;
}
.gm-list li i { color: var(--ac, #f4b000); font-size: 11px; flex-shrink: 0; }

/* Stats row */
.gm-stats {
    display: flex; gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px; margin-bottom: 20px;
}
.gm-stat {
    flex: 1; text-align: center;
    border-right: 1px solid rgba(255,255,255,0.07);
    padding: 0 8px;
}
.gm-stat:last-child { border-right: none; }
.gm-stat span {
    display: block; font-size: 18px; font-weight: 900;
    color: var(--ac, #f4b000); line-height: 1.2;
}
.gm-stat small {
    font-size: 10px; color: rgba(180,200,240,0.55);
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}

/* Button */
.gm-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--ac, #f4b000);
    color: var(--ac, #f4b000);
    font-size: 13px; font-weight: 700;
    padding: 10px 20px; border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.gm-btn:hover {
    background: var(--ac, #f4b000);
    color: #04101f;
    box-shadow: 0 6px 24px var(--glow, rgba(244,176,0,0.4));
    transform: translateX(4px);
}
.gm-btn i { transition: transform 0.3s; }
.gm-btn:hover i { transform: translateX(4px); }

/* ── Glassmorphism enhanced blur ── */
.gm-card {
    background: rgba(10,20,50,0.45) !important;
    backdrop-filter: blur(28px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.8) !important;
}
/* Frosted inner shimmer */
.gm-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 50%, rgba(255,255,255,0.03) 100%);
    pointer-events: none;
}

/* Scroll reveal — directional slides per card position */
.gm-card.gm-reveal { opacity: 0; }
.gm-card.gm-reveal:nth-child(1) { transform: translateX(-80px); }
.gm-card.gm-reveal:nth-child(2) { transform: translateY(80px); }
.gm-card.gm-reveal:nth-child(3) { transform: translateX(80px); }
.gm-card.gm-reveal:nth-child(4) { transform: translateX(-80px); }
.gm-card.gm-reveal:nth-child(5) { transform: translateX(80px); }

.gm-card.gm-reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
    transition:
        opacity 0.75s ease,
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.gm-card.gm-reveal.visible:nth-child(1) { transition-delay: 0ms; }
.gm-card.gm-reveal.visible:nth-child(2) { transition-delay: 120ms; }
.gm-card.gm-reveal.visible:nth-child(3) { transition-delay: 240ms; }
.gm-card.gm-reveal.visible:nth-child(4) { transition-delay: 360ms; }
.gm-card.gm-reveal.visible:nth-child(5) { transition-delay: 480ms; }

.gm-head.gm-reveal { opacity: 0; transform: translateY(24px); }
.gm-head.gm-reveal.visible { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

/* Responsive */
@media (max-width: 1024px) {
    .gm-grid { grid-template-columns: repeat(2, 1fr); }
    .gm-grid .gm-card:nth-child(4),
    .gm-grid .gm-card:nth-child(5) { grid-column: auto; }
    .gm-title { font-size: 36px; }
}
@media (max-width: 640px) {
    .gm-grid { grid-template-columns: 1fr; }
    .gm-services-section { padding: 70px 0 60px; }
    .gm-title { font-size: 28px; }
}
/* ============================================================
   ROBOT REVEAL SECTION
   ============================================================ */
/* ── old rr-section kept as qdc-section ── */
.qdc-section {
    position: relative;
    padding: 90px 0 80px;
    background: linear-gradient(170deg, #020a1e 0%, #050e28 60%, #030812 100%);
    overflow: hidden;
}

/* Heading */
.qdc-head { text-align: center; margin-bottom: 40px; }
.qdc-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,192,0,0.1); border: 1px solid rgba(255,192,0,0.25);
    color: #FFC000; font-size: 11px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 20px; margin-bottom: 16px;
}
.qdc-title { font-size: 36px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.qdc-hl    { color: #FFC000; }
.qdc-sub   { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* Tab buttons */
.qdc-tabs {
    display: flex; gap: 10px; justify-content: center;
    flex-wrap: wrap; margin-bottom: 36px;
}
.qdc-tab {
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 12px; font-weight: 700;
    padding: 9px 18px; border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.qdc-tab i { font-size: 13px; }
.qdc-tab:hover {
    border-color: var(--tc);
    color: var(--tc);
    background: rgba(255,255,255,0.08);
}
.qdc-tab.active {
    background: var(--tc);
    border-color: var(--tc);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.qdc-tab.active i { color: #fff; }

/* Hide tabs — scroll reveal mode */
.qdc-tabs { display: none; }

/* Showcase: stacked panels */
.qdc-showcase { display: flex; flex-direction: column; gap: 80px; }

/* Each panel: hidden until scrolled into view */
.qdc-panel {
    display: flex;
    gap: 52px;
    align-items: center;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.qdc-panel.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Alternate: even panels flip — image left, text right */
.qdc-panel:nth-child(even) {
    flex-direction: row-reverse;
}

/* Divider between panels */
.qdc-panel + .qdc-panel {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 80px;
}

@keyframes qdcFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Left text */
.qdc-panel-left { flex: 1; }
.qdc-ptag  { font-size: 12px; font-style: italic; font-weight: 600; margin-bottom: 10px; display: block; }
.qdc-ptitle { font-size: 38px; font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.qdc-pdesc  { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 22px; }

/* Service card inside panel */
.qdc-service-card {
    display: block;
    background: linear-gradient(135deg, rgba(8,20,55,0.92) 0%, rgba(4,12,32,0.75) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
/* Full-cover spinning sweep inside the card */
.qdc-service-card::after {
    content: '';
    position: absolute;
    width: 250%; height: 250%;
    top: -75%; left: -75%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(255,255,255,0.055) 45deg,
        transparent 90deg
    );
    animation: qdcCardSpin 4s linear infinite;
    pointer-events: none;
}
@keyframes qdcCardSpin {
    to { transform: rotate(360deg); }
}
.qdc-sc-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    border: 1px solid currentColor;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
    position: relative;
}
.qdc-service-card h4 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.qdc-service-card p  { font-size: 13.5px; color: rgba(255,255,255,0.82); line-height: 1.65; font-weight: 600; }

/* Checklist */
.qdc-list { display: none; }
.qdc-list li {
    display: flex; align-items: center; gap: 9px;
    font-size: 13px; color: rgba(255,255,255,0.8); font-weight: 500;
}
.qdc-list li i { color: var(--lc,#FFC000); font-size: 13px; flex-shrink: 0; }

/* CTA button */
.qdc-btn {
    display: none; align-items: center; gap: 8px;
    border: 2px solid var(--bc,#FFC000);
    color: var(--bc,#FFC000);
    background: transparent;
    font-size: 12px; font-weight: 800; letter-spacing: 1px;
    padding: 11px 24px; border-radius: 6px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.qdc-btn:hover { background: var(--bc,#FFC000); color: #fff; transform: translateY(-2px); }

/* Right image */
.qdc-panel-right { flex: 0 0 480px; }
.qdc-img-wrap {
    position: relative; border-radius: 14px; overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.qdc-img-wrap img {
    width: 100%; height: 400px; object-fit: cover; display: block;
    filter: brightness(0.75);
    transform: scale(1.0);
    animation: qdcSlowZoom 8s ease-in-out infinite alternate;
    transform-origin: center center;
}
@keyframes qdcSlowZoom {
    from { transform: scale(1.0); }
    to   { transform: scale(1.2); }
}
.qdc-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(2,10,30,0.5) 0%, transparent 60%);
}

/* Floating icons over image */
.qdc-float-icons {
    position: absolute; bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 12px;
}
.qdc-float-icons span {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(5,15,40,0.88);
    border: 1px solid currentColor;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(10px);
    animation: qdcIconFloat 2.5s ease-in-out infinite;
}
.qdc-float-icons span:nth-child(2) { animation-delay: 0.4s; }
.qdc-float-icons span:nth-child(3) { animation-delay: 0.8s; }
@keyframes qdcIconFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.rr-section {
    position: relative;
    padding: 100px 0 90px;
    background: linear-gradient(170deg, #020a1e 0%, #050e28 60%, #030812 100%);
    overflow: hidden;
}
.rr-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 10%, rgba(26,111,255,0.13) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 90%, rgba(244,176,0,0.09) 0%, transparent 60%),
        repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(26,111,255,0.05) 50px),
        repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(26,111,255,0.05) 50px);
    pointer-events: none;
}

/* Head */
.rr-head { text-align: center; margin-bottom: 50px; }
.rr-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(26,111,255,0.1); border: 1px solid rgba(26,111,255,0.25);
    color: #7ab3ff; font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 5px 14px; border-radius: 50px; margin-bottom: 16px;
}
.rr-title { font-size: 40px; font-weight: 900; color: #fff; letter-spacing: -1px; margin-bottom: 12px; }
.rr-hl { color: #f4b000; }
.rr-sub { font-size: 15px; color: rgba(190,210,245,0.65); max-width: 520px; margin: 0 auto; }

/* ── Robot Arm Scene ── */
.rr-arm-scene {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    height: 220px;
    position: relative;
    overflow: visible;
}
.rr-arm-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-280px);
    opacity: 0;
    transition: transform 1.1s cubic-bezier(0.34,1.4,0.64,1), opacity 0.5s ease;
}
.rr-arm-wrap.drop {
    transform: translateY(0);
    opacity: 1;
}

/* Shoulder */
.rr-shoulder {
    width: 80px; height: 22px;
    background: linear-gradient(135deg, #0d2a5e, #162f6a);
    border-radius: 11px;
    border: 2px solid rgba(26,111,255,0.6);
    box-shadow: 0 0 20px rgba(26,111,255,0.3);
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 10px;
}
.rr-bolt {
    width: 8px; height: 8px; border-radius: 50%;
    background: #1a6fff;
    box-shadow: 0 0 8px rgba(26,111,255,0.9);
}

/* Upper arm */
.rr-upper-arm {
    width: 24px; height: 70px;
    background: linear-gradient(to right, #0d2a5e, #1a3a70, #0d2a5e);
    border-left: 1.5px solid rgba(26,111,255,0.4);
    border-right: 1.5px solid rgba(26,111,255,0.4);
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: space-evenly;
}
.rr-circuit {
    width: 14px; height: 1px;
    background: rgba(6,182,212,0.7);
    box-shadow: 0 0 6px rgba(6,182,212,0.6);
}
.rr-led {
    width: 6px; height: 6px; border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 10px rgba(6,182,212,0.9);
    animation: ledBlink 1.4s ease-in-out infinite alternate;
}
.rr-led-2 { background: #f4b000; box-shadow: 0 0 10px rgba(244,176,0,0.9); animation-delay: 0.7s; }
.rr-led-3 { background: #10b981; box-shadow: 0 0 10px rgba(16,185,129,0.9); animation-delay: 0.4s; }
@keyframes ledBlink {
    0%   { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1;   transform: scale(1.2); }
}

/* Elbow */
.rr-elbow {
    width: 36px; height: 36px; border-radius: 50%;
    background: radial-gradient(circle, #1a5fff, #0a1f5a);
    border: 2px solid #4a90ff;
    box-shadow: 0 0 25px rgba(26,111,255,0.7), inset 0 0 10px rgba(26,111,255,0.3);
    display: flex; align-items: center; justify-content: center;
}
.rr-elbow-inner {
    width: 14px; height: 14px; border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 12px rgba(6,182,212,1);
    animation: ledBlink 0.8s ease-in-out infinite alternate;
}

/* Lower arm */
.rr-lower-arm {
    width: 20px; height: 55px;
    background: linear-gradient(to right, #0d2a5e, #1a3a70, #0d2a5e);
    border-left: 1.5px solid rgba(26,111,255,0.4);
    border-right: 1.5px solid rgba(26,111,255,0.4);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}

/* Wrist */
.rr-wrist {
    width: 32px; height: 14px;
    background: linear-gradient(135deg, #0d2a5e, #162f6a);
    border-radius: 4px;
    border: 1.5px solid rgba(26,111,255,0.5);
    display: flex; align-items: center; justify-content: center;
}
.rr-wrist-ring {
    width: 22px; height: 4px; border-radius: 2px;
    background: #1a6fff;
    box-shadow: 0 0 8px rgba(26,111,255,0.8);
}

/* Hand */
.rr-hand-group { position: relative; display: flex; flex-direction: column; align-items: center; }
.rr-palm {
    width: 48px; height: 32px;
    background: linear-gradient(135deg, #0d2a5e, #162f6a);
    border-radius: 6px 6px 10px 10px;
    border: 1.5px solid rgba(26,111,255,0.5);
    box-shadow: 0 0 20px rgba(26,111,255,0.25);
    position: relative;
}
.rr-finger {
    position: absolute;
    bottom: -18px;
    width: 10px; height: 20px;
    background: linear-gradient(to bottom, #162f6a, #0d2a5e);
    border-radius: 0 0 5px 5px;
    border: 1px solid rgba(26,111,255,0.4);
}
.rr-fi1 { left: 4px; height: 16px; }
.rr-fi2 { left: 16px; }
.rr-fi3 { left: 28px; }
.rr-point {
    background: linear-gradient(to bottom, #1a6fff, #0d3aaa);
    box-shadow: 0 0 14px rgba(26,111,255,0.8);
    height: 28px;
    animation: pointPulse 1s ease-in-out infinite alternate;
}
@keyframes pointPulse {
    0%   { box-shadow: 0 0 8px rgba(26,111,255,0.5); background: linear-gradient(to bottom,#1a6fff,#0d3aaa); }
    100% { box-shadow: 0 0 28px rgba(6,182,212,1), 0 0 50px rgba(26,111,255,0.7); background: linear-gradient(to bottom,#06b6d4,#1a6fff); }
}
.rr-thumb {
    position: absolute;
    left: -12px; top: 6px;
    width: 12px; height: 16px;
    background: linear-gradient(to right, #0d2a5e, #162f6a);
    border-radius: 6px 0 0 6px;
    border: 1px solid rgba(26,111,255,0.4);
}

/* Beam from pointing finger */
.rr-beam {
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, #ffffff 0%, #06b6d4 30%, rgba(26,111,255,0.5) 70%, transparent 100%);
    border-radius: 4px;
    margin-top: 0;
    position: relative;
    transition: height 0.28s cubic-bezier(0.22,1,0.36,1);
}
.rr-beam.shoot {
    height: 130px;
    animation: beamBlink 0.09s step-end infinite;
    box-shadow: 0 0 8px #fff, 0 0 22px rgba(6,182,212,1), 0 0 55px rgba(26,111,255,0.7);
}
@keyframes beamBlink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.2; }
}
.rr-beam::after {
    content: "";
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.9), transparent 70%);
    box-shadow: 0 0 20px rgba(6,182,212,0.8);
    opacity: 0;
    transition: opacity 0.3s ease 0.65s;
}
.rr-beam.shoot::after { opacity: 1; }

/* ── Fold-open Cards ── */
.rr-cards-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 0;
}
.rr-card {
    background: rgba(8,18,48,0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--ac, #f4b000);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(90px) scale(0.96);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}
.rr-card.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px var(--ac,#f4b000) inset, 0 0 20px var(--glow,rgba(244,176,0,0.08));
}
.rr-card:hover {
    border-color: var(--ac, #f4b000);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 40px var(--glow, rgba(244,176,0,0.2));
    transform: translateY(-6px) scale(1.01) !important;
}

/* Lid (always visible header) */
.rr-card-lid {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 14px;
    cursor: default;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* Lid icon — starts small/rotated, pops in first */
.rr-lid-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--ac, #f4b000);
    flex-shrink: 0;
    transform: scale(0.4) rotate(-15deg);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.34,1.56,0.64,1) 0.1s,
                opacity 0.35s ease 0.1s;
}
.rr-card.open .rr-lid-icon {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

/* Lid title — slides in after icon */
.rr-card-lid span {
    font-size: 12px; font-weight: 700; color: #d8e8ff;
    flex: 1; line-height: 1.3;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.4s ease 0.28s, transform 0.4s ease 0.28s;
}
.rr-card.open .rr-card-lid span {
    opacity: 1;
    transform: translateX(0);
}

/* Arrow */
.rr-lid-arrow {
    color: var(--ac, #f4b000); font-size: 11px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease 0.38s, transform 0.5s ease;
}
.rr-card.open .rr-lid-arrow { opacity: 1; }

/* Body — reveals after lid, fades+slides up */
.rr-card-body {
    padding: 14px 14px 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease 0.52s, transform 0.55s ease 0.52s;
}
.rr-card.open .rr-card-body {
    opacity: 1;
    transform: translateY(0);
}

.rr-card-body p {
    font-size: 12px; color: rgba(190,210,250,0.7);
    line-height: 1.65; margin-bottom: 12px;
}
.rr-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.rr-list li {
    font-size: 11.5px; color: rgba(200,220,255,0.8);
    display: flex; align-items: center; gap: 7px; font-weight: 500;
}
.rr-list li i { color: var(--ac, #f4b000); font-size: 10px; flex-shrink: 0; }

.rr-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--ac, #f4b000);
    color: var(--ac, #f4b000);
    font-size: 11px; font-weight: 700;
    padding: 7px 14px; border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.rr-btn:hover {
    background: var(--ac, #f4b000); color: #04101f;
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1100px) {
    .rr-cards-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
    .rr-cards-row { grid-template-columns: 1fr 1fr; }
    .rr-arm-scene { display: none; }
    .rr-title { font-size: 28px; }
}
@media (max-width: 400px) {
    .rr-cards-row { grid-template-columns: 1fr; }
}
/* ── Card arrival flash ── */
@keyframes cardArrive {
    0%   { opacity: 0.8; }
    100% { opacity: 0; }
}
.rr-arrive-flash {
    position: absolute; inset: 0;
    border-radius: 16px;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--ac, rgba(244,176,0,0.3)), transparent 70%);
    pointer-events: none;
    animation: cardArrive 0.7s ease-out both;
}

/* Scan line on arm */
@keyframes scanLine {
    0%   { top: 0; opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}
.rr-scan {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #06b6d4, transparent);
    box-shadow: 0 0 8px rgba(6,182,212,0.8);
    animation: scanLine 1.8s ease-in-out infinite;
    border-radius: 1px;
}

/* Better arm scene height */
.rr-arm-scene { height: 240px; }

/* Card lid icon bigger */
.rr-lid-icon {
    width: 40px !important; height: 40px !important;
    font-size: 18px !important;
    box-shadow: 0 0 14px var(--glow, rgba(244,176,0,0.25));
    transition: box-shadow 0.3s;
}
.rr-card.open .rr-lid-icon {
    box-shadow: 0 0 22px var(--glow, rgba(244,176,0,0.5));
}
/* ── SVG Robot Arm ── */
.rr-arm-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-300px);
    opacity: 0;
    transition: transform 1.1s cubic-bezier(0.34,1.4,0.64,1), opacity 0.5s ease;
}
.rr-arm-wrap.drop {
    transform: translateY(0);
    opacity: 1;
}
.rr-svg-arm {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(26,111,255,0.5)) drop-shadow(0 0 8px rgba(6,182,212,0.4));
}
/* LED blink animations on SVG circles */
.svg-led {
    animation: svgLedBlink 1.4s ease-in-out infinite alternate;
}
.svg-led2 { animation-delay: 0.6s; }
.svg-led3 { animation-delay: 0.3s; }
@keyframes svgLedBlink {
    0%   { opacity: 0.3; }
    100% { opacity: 1; }
}
/* ============================================================
   DATA FLOW CENTER + ENHANCED CARDS
   ============================================================ */

/* Grid motion background */
.rr-section {
    position: relative;
    overflow: hidden;
}
.rr-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 50% 10%, rgba(26,111,255,0.13) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 90%, rgba(244,176,0,0.09) 0%, transparent 60%);
}
/* Animated grid overlay */
.rr-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(26,111,255,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26,111,255,0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 18s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes gridScroll {
    0%   { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Canvas for floating particles */
.rr-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Data center wrapper */
.rr-data-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

/* Pulsing node */
.rr-node {
    position: relative;
    width: 90px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0;
}
.rr-nr {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(26,111,255,0.5);
    animation: nodeRing 2.4s ease-out infinite;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%) scale(0.5);
}
.rr-nr1 { width: 90px;  height: 90px;  animation-delay: 0s;    border-color: rgba(6,182,212,0.7); }
.rr-nr2 { width: 130px; height: 130px; animation-delay: 0.6s;  border-color: rgba(26,111,255,0.5); }
.rr-nr3 { width: 175px; height: 175px; animation-delay: 1.2s;  border-color: rgba(244,176,0,0.35); }
.rr-nr4 { width: 220px; height: 220px; animation-delay: 1.8s;  border-color: rgba(26,111,255,0.2); }
@keyframes nodeRing {
    0%   { opacity: 1;   transform: translate(-50%,-50%) scale(0.4); }
    100% { opacity: 0;   transform: translate(-50%,-50%) scale(1.1); }
}

.rr-node-core {
    width: 70px; height: 70px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a7fff, #0a1e5a);
    border: 2px solid #06b6d4;
    box-shadow:
        0 0 0 4px rgba(6,182,212,0.15),
        0 0 30px rgba(26,111,255,0.8),
        0 0 70px rgba(6,182,212,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff;
    position: relative; z-index: 3;
    animation: corePulse 2s ease-in-out infinite;
    overflow: hidden;
}
@keyframes corePulse {
    0%,100% { box-shadow: 0 0 30px rgba(26,111,255,0.7), 0 0 70px rgba(6,182,212,0.3); }
    50%      { box-shadow: 0 0 50px rgba(26,111,255,1),   0 0 110px rgba(6,182,212,0.6); }
}
.rr-node-scan {
    position: absolute; left: 0; right: 0; top: -100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(6,182,212,0.3), transparent);
    animation: nodeScan 2s ease-in-out infinite;
}
@keyframes nodeScan {
    0%   { top: -100%; }
    100% { top: 150%; }
}

/* Data streams */
.rr-streams {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    max-width: 1100px;
    padding: 0 12px;
    gap: 16px;
    margin-top: 4px;
}
.rr-stream {
    height: 55px;
    position: relative;
    display: flex; justify-content: center;
    overflow: hidden;
}
.rr-stream::before {
    content: '';
    width: 2px; height: 100%;
    background: linear-gradient(to bottom, var(--sc, #1a6fff), transparent);
    opacity: 0.4;
}
.rr-stream::after {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 3px; height: 18px;
    border-radius: 3px;
    background: var(--sc, #1a6fff);
    box-shadow: 0 0 10px var(--sc, #1a6fff), 0 0 20px var(--sc, #1a6fff);
    animation: streamDrop 1s ease-in infinite;
    animation-delay: calc(var(--si) * 0.18s);
}
@keyframes streamDrop {
    0%   { top: 0%;   opacity: 1; }
    80%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ── 3D Hover Cards ── */
.rr-cards-row {
    position: relative; z-index: 2;
    perspective: 1000px;
}
.rr-card {
    transform-style: preserve-3d;
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.3s ease !important;
    will-change: transform, opacity;
}
/* Neon hover border */
.rr-card:hover {
    border-color: var(--ac, #f4b000) !important;
    box-shadow:
        0 0 0 1px var(--ac, #f4b000),
        0 0 20px var(--glow, rgba(244,176,0,0.4)),
        0 0 60px var(--glow, rgba(244,176,0,0.15)),
        0 25px 50px rgba(0,0,0,0.5) !important;
    transform: translateY(-8px) scale(1.02) !important;
}
/* Hide toggle arrow — content always visible */
.rr-lid-arrow { display: none; }

/* ==========================================================
   COMPREHENSIVE RESPONSIVE — ALL DEVICES
   Covers mobile (≤480px), tablet (≤768px, ≤1024px), desktop
   ========================================================== */

/* ── Large Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }

    /* Footer grid → 2 columns */
    .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    /* Capitol Solar section → stack */
    .cs-wrap { flex-direction: column; gap: 32px; align-items: center; }
    .cs-text { flex: unset; width: 100%; max-width: 620px; transform: none !important; opacity: 1 !important; }
    .cs-img-side { flex: unset; width: 100%; max-width: 620px; transform: none !important; opacity: 1 !important; }
    .cs-img-frame img { height: 320px; }
    .cs-title { font-size: 36px; }

    /* QDC panels → stack */
    .qdc-panel,
    .qdc-panel:nth-child(even) { flex-direction: column !important; gap: 32px; }
    .qdc-panel-right { flex: unset !important; width: 100%; }
    .qdc-img-wrap img { height: 280px; }
    .qdc-ptitle { font-size: 28px; }
}

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Footer CTA banner */
    .ft-header { padding: 32px 0; }
    .ft-header-inner { flex-direction: column; text-align: center; gap: 20px; }
    .ft-header-text h2 { font-size: 22px; }
    .ft-header-btns { justify-content: center; flex-wrap: wrap; }

    /* Footer main grid → single column */
    .ft-grid { grid-template-columns: 1fr; gap: 24px; }
    .ft-main { padding: 40px 0 24px; }
    .ft-bottom-inner { flex-direction: column; text-align: center; gap: 6px; }

    /* Services 3D */
    .services-3d { padding: 60px 0 50px; }
    .section-head { margin-bottom: 40px; }

    /* Enterprise / Stats */
    .section-divider { padding: 30px 16px 20px; }
    .stats-mega-row { padding: 24px 8px; flex-wrap: wrap; }
    .stat-mega { min-width: 50%; padding: 12px; }
    .stat-mega-num { font-size: 32px; }
    .stat-mega-divider { display: none; }

    /* Feature panels */
    .feat-panel { padding: 28px 20px; }
    .feat-panel-content { padding-right: 0 !important; }
    .feat-panel-3d-badge { top: 18px; right: 18px; width: 56px; height: 56px; }

    /* Capitol Solar */
    .cs-title { font-size: 28px; }
    .cs-desc { font-size: 13.5px; }
    .cs-stats { gap: 20px; flex-wrap: wrap; }
    .cs-img-frame img { height: 240px; }

    /* QDC */
    .qdc-section { padding: 56px 0 48px; }
    .qdc-title { font-size: 26px; }
    .qdc-ptitle { font-size: 24px; }
    .qdc-img-wrap img { height: 220px; }
    .qdc-showcase { gap: 48px; }
    .qdc-panel + .qdc-panel { padding-top: 48px; }

    /* Glassmorphism */
    .gm-services-section { padding: 50px 0 40px; }
    .gm-head { margin-bottom: 36px; }

    /* RR / Data flow */
    .rr-section { padding: 56px 0 48px; }
    .rr-title { font-size: 26px; }
    .rr-head { margin-bottom: 32px; }

    /* Hex section */
    .hex-section { padding: 56px 0 48px; }
    .hex-section-head { margin-bottom: 40px; }

    /* Scroll-to-top */
    #scrollTopBtn { bottom: 18px; right: 14px; width: 40px; height: 40px; font-size: 15px; }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
    .container { padding: 0 14px; }

    /* Footer */
    .ft-header-text h2 { font-size: 18px; }
    .ft-header-text p { font-size: 13px; }
    .ft-btn-primary, .ft-btn-outline { padding: 10px 16px; font-size: 12px; width: 100%; justify-content: center; }
    .ft-header-btns { flex-direction: column; width: 100%; }
    .ft-grid { gap: 20px; }
    .ft-desc { font-size: 12px; }
    .ft-socials { gap: 10px; }
    .ft-socials a { width: 38px; height: 38px; font-size: 13px; }

    /* Section titles */
    .section-title { font-size: 24px !important; }
    .gm-title { font-size: 22px !important; }
    .cs-title { font-size: 22px !important; }
    .qdc-title { font-size: 20px !important; }
    .rr-title { font-size: 20px !important; }

    /* Stats */
    .stat-mega { min-width: 100%; }
    .stat-mega-num { font-size: 28px; }

    /* Feature strip */
    .feature-strip { padding: 16px; gap: 12px; }
    .feature-strip-item { font-size: 12px; }

    /* Cards */
    .card-3d-inner { padding: 24px 18px 20px; }
    .card-3d-inner h3 { font-size: 15px; }
    .card-3d-inner p { font-size: 12px; }

    /* Capitol Solar */
    .cs-stats { gap: 16px; }
    .cs-btn { width: 100%; justify-content: center; }

    /* QDC */
    .qdc-ptitle { font-size: 20px; }
    .qdc-pdesc { font-size: 13px; }
    .qdc-service-card h4 { font-size: 14px; }

    /* RR cards row */
    .rr-cards-row { gap: 10px; }

    /* Hex compliance tags */
    .compliance-tags-row { gap: 8px; }
    .comp-tag { font-size: 11px; padding: 7px 14px; }
}
.rr-card-lid { border-bottom: 1px solid rgba(255,255,255,0.07); }