:root {
    --primary: #0ff4e0;
    --primary-dark: #0abfb0;
    --accent: #1a6b7a;
    --bg-deep: #030a0f;
    --bg-mid: #071520;
    --surface: rgba(10, 40, 60, 0.45);
    --surface-hover: rgba(15, 60, 85, 0.55);
    --glass-border: rgba(15, 244, 224, 0.12);
    --glass-border-hover: rgba(15, 244, 224, 0.3);
    --text: #e0f4f1;
    --text-dim: #7fb8b0;
    --text-muted: #3d6e68;
    --danger: #ff4d6a;
    --warning: #ffc44d;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text);
    cursor: none;
}

/* ── Custom Cursor ── */
#cursor-glow {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 244, 224, 0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: screen;
}

#cursor-glow.hovering {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(15, 244, 224, 0.2) 0%, transparent 70%);
}

/* ── Background Canvas ── */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#node-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* ── Navbar ── */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 56px;
    background: rgba(3, 10, 15, 0.55);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border);
}

#main-nav, #main-nav * {
    cursor: default;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(15, 244, 224, 0.3));
}

.nav-brand {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-tabs {
    display: flex;
    gap: 4px;
}

.nav-tab {
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 7px 20px;
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all var(--transition-fast);
    letter-spacing: 0.3px;
}

.nav-tab:hover {
    color: var(--primary);
    border-color: var(--glass-border);
    background: rgba(15, 244, 224, 0.04);
}

.nav-tab:active {
    transform: scale(0.97);
}

/* ── Language Toggle (inside nav) ── */
#lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(15, 244, 224, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all var(--transition-fast);
    font-family: var(--font);
}

#lang-toggle:hover {
    border-color: var(--glass-border-hover);
    color: var(--primary);
    background: rgba(15, 244, 224, 0.1);
}

.lang-label {
    font-family: 'Noto Sans Arabic', var(--font);
}

/* ── Camera Container ── */
#camera {
    position: fixed;
    inset: 0;
    z-index: 3;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    pointer-events: none;
}

#camera > * {
    pointer-events: auto;
}

/* ── Central Logo Node ── */
#logo-node {
    position: fixed;
    z-index: 5;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: logoEntrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
}

@keyframes logoEntrance {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

#logo-node::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary-dark), var(--primary));
    animation: spin 6s linear infinite;
    opacity: 0.6;
    z-index: -1;
    filter: blur(1px);
}

#logo-node::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bg-deep);
    z-index: -1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(15, 244, 224, 0.4));
    transition: filter var(--transition), transform var(--transition);
}

#logo-node:hover #logo-img {
    filter: drop-shadow(0 0 30px rgba(15, 244, 224, 0.7));
    transform: scale(1.08);
}

.node-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    opacity: 0;
    animation: pulse-ring 3s ease-out infinite;
}

.node-pulse.delay {
    animation-delay: 1.5s;
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ── Dynamic Nodes ── */
#nodes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.service-node {
    position: absolute;
    pointer-events: all;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow var(--transition);
    will-change: transform, opacity;
}

.service-node.visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.5s ease,
                box-shadow var(--transition);
}

.service-node.exit {
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

.node-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.node-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(15, 244, 224, 0.08) 0%, transparent 70%);
}

.service-node:hover .node-circle {
    border-color: var(--glass-border-hover);
    background: var(--surface-hover);
    box-shadow: 0 0 30px rgba(15, 244, 224, 0.15), inset 0 0 20px rgba(15, 244, 224, 0.05);
    transform: scale(1.1);
}

.node-icon {
    font-size: 26px;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(15, 244, 224, 0.3));
}

.node-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    transition: color var(--transition);
    text-align: center;
    max-width: 120px;
}

.service-node:hover .node-label {
    color: var(--primary);
}

/* Sub-service nodes */
.sub-node .node-circle {
    width: 54px;
    height: 54px;
    background: rgba(8, 30, 45, 0.6);
    border-color: rgba(15, 244, 224, 0.08);
}

.sub-node .node-icon {
    font-size: 18px;
}

.sub-node .node-label {
    font-size: 9px;
    max-width: 100px;
}

/* Certification nodes */
.cert-node .node-circle {
    width: 42px;
    height: 42px;
    background: rgba(6, 20, 35, 0.7);
    border-color: rgba(255, 196, 77, 0.15);
}

.cert-node:hover .node-circle {
    border-color: rgba(255, 196, 77, 0.4);
    box-shadow: 0 0 25px rgba(255, 196, 77, 0.12);
}

.cert-node .node-icon {
    font-size: 14px;
}

.cert-node .node-label {
    font-size: 8px;
    color: var(--warning);
    max-width: 90px;
    opacity: 0.8;
}

/* ── Node centering ── */
.service-node {
    transform-origin: center center;
    margin-left: -35px;
    margin-top: -45px;
}

.sub-node {
    margin-left: -30px;
    margin-top: -38px;
}

.cert-node {
    margin-left: -25px;
    margin-top: -32px;
}

/* ── Glass Panels ── */
.glass-panel {
    position: fixed;
    z-index: 20;
    background: rgba(6, 22, 35, 0.75);
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.4;
}

.glass-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
}

/* Info panel — bottom center (default) */
#info-panel {
    left: 50%;
    bottom: 100px;
    top: auto;
    right: auto;
    transform: translateX(-50%);
    width: min(520px, 88vw);
    max-height: 22vh;
    padding: 18px 24px;
    overflow-y: auto;
}

#info-panel.panel-top {
    bottom: auto;
    top: 70px;
}

#info-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px) scale(0.95);
}

#info-panel.panel-top.hidden {
    transform: translateX(-50%) translateY(-20px) scale(0.95);
}

#panel-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

#panel-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

#panel-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
}

#panel-content .panel-type {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-family: var(--mono);
}

#panel-content p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 16px;
}

#panel-content .cert-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#panel-content .cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 196, 77, 0.08);
    border: 1px solid rgba(255, 196, 77, 0.15);
    font-size: 10px;
    font-weight: 600;
    font-family: var(--mono);
    color: var(--warning);
}

/* ── Modal Panels (About, Contact) ── */
.modal-panel {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(680px, 90vw);
    max-height: 85vh;
    padding: 40px;
    overflow-y: auto;
}

.modal-panel.hidden {
    transform: translate(-50%, -45%) scale(0.92);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all var(--transition-fast);
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.modal-body h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.glass-card {
    background: rgba(10, 40, 60, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all var(--transition);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    background: rgba(10, 40, 60, 0.5);
    transform: translateY(-2px);
}

.about-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.about-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-dim);
}

.stats-row {
    display: flex;
    justify-content: space-around;
    padding: 24px 0;
    border-top: 1px solid var(--glass-border);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--mono);
}

.stat-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Contact Form */
.contact-subtitle {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(10, 30, 50, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    transition: all var(--transition-fast);
    outline: none;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 244, 224, 0.08);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237fb8b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-group select option {
    background: var(--bg-mid);
    color: var(--text);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    border: none;
    border-radius: var(--radius-sm);
    color: var(--bg-deep);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 244, 224, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ── Footer ── */
#site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    background: rgba(3, 10, 15, 0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--glass-border);
}

#site-footer, #site-footer * {
    cursor: default;
}

#site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

#site-footer a:hover {
    color: var(--primary);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(15, 244, 224, 0.2));
}

.footer-brand-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1.2;
}

.footer-tagline {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    display: block;
}

.footer-contact-col {
    display: flex;
    gap: 24px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--mono);
    letter-spacing: 0.3px;
}

.footer-item svg {
    color: var(--primary);
    opacity: 0.45;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: var(--glass-border-hover);
    color: var(--primary);
    background: rgba(15, 244, 224, 0.06);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 32px;
    border-top: 1px solid rgba(15, 244, 224, 0.06);
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 0.3px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-dot {
    color: var(--text-muted);
    opacity: 0.4;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

/* ── Backdrop overlay ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 10, 15, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 18;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* ── RTL Support ── */
.rtl {
    font-family: 'Noto Sans Arabic', var(--font);
}

.rtl .node-label,
.rtl .panel-type,
.rtl #panel-content p,
.rtl #panel-content h3,
.rtl .modal-body,
.rtl .contact-form,
.rtl .about-card p,
.rtl .about-card h3,
.rtl .stat-label,
.rtl .nav-tab,
.rtl .nav-brand,
.rtl .footer-item,
.rtl .footer-tagline,
.rtl .footer-bottom,
.rtl .footer-legal {
    font-family: 'Noto Sans Arabic', var(--font);
}

.rtl .form-group label {
    font-family: 'Noto Sans Arabic', var(--font);
    text-align: right;
}

.rtl .form-group input,
.rtl .form-group select,
.rtl .form-group textarea {
    font-family: 'Noto Sans Arabic', var(--font);
    text-align: right;
    direction: rtl;
}

.rtl .form-group select {
    background-position: left 14px center;
    padding-left: 36px;
    padding-right: 16px;
}

.rtl .submit-btn {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.rtl #panel-close {
    right: auto;
    left: 14px;
}

.rtl .modal-close {
    right: auto;
    left: 16px;
}

.rtl .contact-subtitle {
    text-align: right;
}

/* ── Touch devices ── */
@media (hover: none) {
    #cursor-glow { display: none; }
    html, body { cursor: auto; }
    .service-node, #logo-node { cursor: pointer; }
}

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .modal-panel {
        width: min(640px, 92vw);
        padding: 32px;
    }

    .node-circle {
        width: 58px;
        height: 58px;
    }

    .sub-node .node-circle {
        width: 46px;
        height: 46px;
    }

    .cert-node .node-circle {
        width: 36px;
        height: 36px;
    }

    .node-label {
        font-size: 10px;
    }

    .sub-node .node-label {
        font-size: 8px;
    }

    .cert-node .node-label {
        font-size: 7px;
    }

    #info-panel {
        width: min(480px, 92vw);
        padding: 18px 22px;
    }

    .service-node {
        margin-left: -30px;
        margin-top: -40px;
    }

    .sub-node {
        margin-left: -26px;
        margin-top: -34px;
    }

    .cert-node {
        margin-left: -22px;
        margin-top: -28px;
    }

    #logo-img {
        width: 65px;
        height: 65px;
    }

    .nav-tab {
        padding: 6px 16px;
        font-size: 12px;
    }

    .footer-top {
        padding: 12px 20px;
        gap: 16px;
    }

    .footer-contact-col {
        gap: 16px;
    }

    .footer-item {
        font-size: 10px;
    }

    .footer-bottom {
        padding: 6px 20px;
    }

    .social-link {
        width: 30px;
        height: 30px;
    }
}

/* ── Responsive: Mobile ── */
@media (max-width: 600px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .stat {
        flex: 0 0 40%;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 9px;
    }

    .modal-panel {
        width: 96vw;
        max-height: 90vh;
        padding: 20px;
        border-radius: 12px;
    }

    .modal-body h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .about-card {
        padding: 14px;
    }

    .about-card h3 {
        font-size: 13px;
    }

    .about-card p {
        font-size: 11px;
    }

    .contact-subtitle {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 10px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .submit-btn {
        padding: 12px 24px;
        font-size: 13px;
        align-self: stretch;
        justify-content: center;
    }

    /* Navbar mobile */
    #main-nav {
        padding: 0 14px;
        height: 50px;
    }

    .nav-brand {
        display: none;
    }

    .nav-logo {
        width: 26px;
        height: 26px;
    }

    .nav-tab {
        padding: 5px 12px;
        font-size: 11px;
    }

    #lang-toggle {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Info panel mobile */
    #info-panel {
        left: 6px;
        right: 6px;
        bottom: 90px;
        width: auto;
        max-height: 25vh;
        transform: translateX(0);
        padding: 14px;
        border-radius: 12px;
    }

    #info-panel.panel-top {
        bottom: auto;
        top: 56px;
    }

    #info-panel.hidden {
        transform: translateY(20px) scale(0.95);
    }

    #info-panel.panel-top.hidden {
        transform: translateY(-20px) scale(0.95);
    }

    #panel-content h3 {
        font-size: 15px;
    }

    #panel-content p {
        font-size: 12px;
    }

    /* Nodes mobile */
    .node-circle {
        width: 46px;
        height: 46px;
    }

    .sub-node .node-circle {
        width: 38px;
        height: 38px;
    }

    .cert-node .node-circle {
        width: 32px;
        height: 32px;
    }

    .node-icon {
        font-size: 20px;
    }

    .sub-node .node-icon {
        font-size: 14px;
    }

    .cert-node .node-icon {
        font-size: 11px;
    }

    .node-label {
        font-size: 8px;
        max-width: 70px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    .sub-node .node-label {
        font-size: 7px;
        max-width: 60px;
    }

    .cert-node .node-label {
        font-size: 6px;
        max-width: 55px;
    }

    .service-node {
        margin-left: -24px;
        margin-top: -34px;
        gap: 3px;
    }

    .sub-node {
        margin-left: -20px;
        margin-top: -30px;
    }

    .cert-node {
        margin-left: -18px;
        margin-top: -26px;
    }

    #logo-img {
        width: 50px;
        height: 50px;
    }

    .node-pulse {
        inset: -4px;
    }

    /* Footer mobile */
    .footer-top {
        flex-direction: column;
        padding: 10px 16px;
        gap: 10px;
        align-items: center;
    }

    .footer-brand {
        gap: 8px;
    }

    .footer-logo {
        width: 22px;
        height: 22px;
    }

    .footer-brand-name {
        font-size: 12px;
    }

    .footer-tagline {
        font-size: 9px;
    }

    .footer-contact-col {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .footer-item {
        font-size: 9px;
    }

    .footer-social {
        gap: 8px;
    }

    .social-link {
        width: 28px;
        height: 28px;
    }

    .social-link svg {
        width: 14px;
        height: 14px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
        padding: 6px 16px;
        text-align: center;
        font-size: 9px;
    }
}

/* ── Loading animation ── */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 80px;
    height: 80px;
    animation: loadPulse 1.5s ease-in-out infinite;
}

@keyframes loadPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.loading-bar {
    width: 120px;
    height: 2px;
    background: rgba(15, 244, 224, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    animation: loadBar 1.2s ease-in-out infinite;
}

@keyframes loadBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}
