/**
 * Guides 3D Page Styles - Orbital Menu UI
 *
 * @package    ComLink
 * @subpackage Theme/CSS
 * @since      1.0.0
 */

/* ==========================================
   CSS VARIABLES - ORBITAL
   ========================================== */

:root {
    /* Orbital dimensions */
    --orbital-container-size: 650px;
    --orbital-hub-size: 150px;
    --orbital-node-size: 110px;
    --orbital-radius: 240px;

    /* Colors - Theme */
    --orbital-bg: #0a0a1a;
    --orbital-accent-1: #00ff88;
    --orbital-accent-2: #00d4ff;
    --orbital-accent-3: #a855f7;
    --orbital-hub-gradient: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    --orbital-node-bg: rgba(255, 255, 255, 0.08);
    --orbital-node-bg-hover: rgba(255, 255, 255, 0.15);
    --orbital-node-border: rgba(255, 255, 255, 0.2);
    --orbital-node-border-hover: rgba(255, 255, 255, 0.4);
    --orbital-panel-bg: rgba(10, 10, 26, 0.95);
    --orbital-text-primary: #ffffff;
    --orbital-text-secondary: rgba(255, 255, 255, 0.7);
    --orbital-text-muted: rgba(255, 255, 255, 0.5);

    /* Animation */
    --orbital-transition-fast: 0.2s ease;
    --orbital-transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --orbital-transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */

body.comlink-guides-3d {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Segoe UI', sans-serif;
    background: #0a0a1a;
    color: white;
    overflow-x: hidden;
}

.comlink-guides-3d * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide Flatsome elements */
.comlink-guides-3d #wrapper,
.comlink-guides-3d .header-wrapper,
.comlink-guides-3d .footer-wrapper,
.comlink-guides-3d #header,
.comlink-guides-3d #footer {
    display: none !important;
}

/* ==========================================
   HEADER
   ========================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    padding: 10px 40px;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes logoBreathing {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1))
                drop-shadow(0 0 15px rgba(255, 255, 255, 0.9))
                drop-shadow(0 0 35px rgba(255, 255, 255, 0.7))
                drop-shadow(0 0 60px rgba(255, 255, 255, 0.5))
                drop-shadow(0 0 100px rgba(255, 255, 255, 0.3))
                drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1))
                drop-shadow(0 0 20px rgba(255, 255, 255, 1))
                drop-shadow(0 0 45px rgba(255, 255, 255, 0.85))
                drop-shadow(0 0 80px rgba(255, 255, 255, 0.65))
                drop-shadow(0 0 130px rgba(255, 255, 255, 0.4))
                drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    }
}

.header-logo img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
    animation: logoBreathing 3s ease-in-out infinite;
}

.header-logo:hover img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1))
            drop-shadow(0 0 25px rgba(255, 255, 255, 1))
            drop-shadow(0 0 50px rgba(255, 255, 255, 0.9))
            drop-shadow(0 0 90px rgba(255, 255, 255, 0.7))
            drop-shadow(0 0 140px rgba(255, 255, 255, 0.5))
            drop-shadow(0 5px 20px rgba(0, 0, 0, 0.6));
}

.site-header.scrolled .header-logo img {
    height: 50px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    transition: width 0.3s ease;
}

.header-nav a:hover {
    color: #00ff88;
}

.header-nav a:hover::after {
    width: 100%;
}

.header-nav a.active {
    color: #00ff88;
}

.header-nav a.active::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* ==========================================
   CONTENT WRAPPER
   ========================================== */

.content-wrapper {
    position: relative;
    z-index: 10;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px 60px;
    transition: min-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Collapsed State */
.hero.collapsed {
    min-height: auto;
    padding: 0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.hero-content {
    width: 100%;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero.collapsed .hero-content {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.hero .container {
    max-width: 600px;
}

/* Hero Entrance Animation */
.hero .badge,
.hero h1,
.hero .hero-subtitle,
.hero .hero-stats,
.hero .scroll-hint {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero .badge.visible { transition-delay: 0.1s; }
.hero h1.visible { transition-delay: 0.25s; }
.hero .hero-subtitle.visible { transition-delay: 0.4s; }
.hero .hero-stats.visible { transition-delay: 0.55s; }
.hero .scroll-hint.visible { transition-delay: 0.7s; }

.hero .badge.visible,
.hero h1.visible,
.hero .hero-subtitle.visible,
.hero .hero-stats.visible,
.hero .scroll-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero subtitle reset opacity for visible state */
.hero .hero-subtitle.visible {
    opacity: 0.8;
}

/* ==========================================
   COMPACT HEADER
   ========================================== */

.hero-compact {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 30px;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero.collapsed .hero-compact {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.compact-title {
    font-size: 1rem;
    font-weight: 700;
    color: #00ff88;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.compact-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
}

.compact-stats {
    display: flex;
    gap: 20px;
}

.compact-stats span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.compact-stats strong {
    color: #00d4ff;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 30px;
    font-size: 13px;
    color: #a855f7;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.comlink-guides-3d h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: white;
}

.comlink-guides-3d h1 span {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #00ff88;
}

.hero-stat-label {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 5px;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-hint span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-hint-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==========================================
   ORBITAL SECTION
   ========================================== */

.orbital-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.orbital-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Main Container */
.orbital-container {
    position: relative;
    width: var(--orbital-container-size);
    height: var(--orbital-container-size);
}

/* Orbital Ring Decorations */
.orbital-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--orbital-radius) * 2);
    height: calc(var(--orbital-radius) * 2);
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.orbital-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--orbital-radius) * 2 + 60px);
    height: calc(var(--orbital-radius) * 2 + 60px);
    transform: translate(-50%, -50%);
    border: 1px solid transparent;
    border-top-color: rgba(0, 255, 136, 0.3);
    border-right-color: rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: orbit-rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes orbit-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Inner rotating ring */
.orbital-ring-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--orbital-radius) * 2 - 40px);
    height: calc(var(--orbital-radius) * 2 - 40px);
    transform: translate(-50%, -50%);
    border: 1px solid transparent;
    border-bottom-color: rgba(168, 85, 247, 0.2);
    border-left-color: rgba(0, 255, 136, 0.15);
    border-radius: 50%;
    animation: orbit-rotate-reverse 25s linear infinite;
    pointer-events: none;
}

@keyframes orbit-rotate-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* ==========================================
   HUB CENTER
   ========================================== */

.hub-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: var(--orbital-hub-size);
    height: var(--orbital-hub-size);
    border-radius: 50%;
    background: var(--orbital-hub-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: pointer;
    transition: var(--orbital-transition-medium);
    box-shadow:
        0 0 60px rgba(0, 255, 136, 0.4),
        0 0 100px rgba(0, 212, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.hub-center.visible {
    transform: translate(-50%, -50%) scale(1);
}

.hub-center:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
        0 0 80px rgba(0, 255, 136, 0.6),
        0 0 120px rgba(0, 212, 255, 0.4),
        inset 0 0 40px rgba(255, 255, 255, 0.15);
}

/* Hub pulse ring */
.hub-center::before {
    content: '';
    position: absolute;
    width: calc(var(--orbital-hub-size) + 30px);
    height: calc(var(--orbital-hub-size) + 30px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.hub-icon {
    font-size: 2.8rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.hub-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--orbital-text-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hub-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    font-weight: 400;
}

/* ==========================================
   SVG CONNECTION LINES
   ========================================== */

.orbital-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.orbital-lines.visible {
    opacity: 1;
}

.orbital-lines line {
    stroke: url(#lineGradient);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.4;
    transition: var(--orbital-transition-medium);
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}

.orbital-lines.visible line {
    animation: draw-line 1s ease forwards;
}

.orbital-lines line:nth-child(2) { animation-delay: 0.1s; }
.orbital-lines line:nth-child(3) { animation-delay: 0.2s; }
.orbital-lines line:nth-child(4) { animation-delay: 0.3s; }
.orbital-lines line:nth-child(5) { animation-delay: 0.4s; }
.orbital-lines line:nth-child(6) { animation-delay: 0.5s; }

@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}

.orbital-lines line.highlight {
    stroke-width: 3;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.8));
}

.orbital-lines line.dim {
    opacity: 0.15;
}

/* ==========================================
   ORBITAL NODES
   ========================================== */

.orbital-node {
    position: absolute;
    width: var(--orbital-node-size);
    height: var(--orbital-node-size);
    transform: translate(-50%, -50%) scale(0);
    z-index: 5;
    opacity: 0;
}

.orbital-node.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: var(--orbital-transition-bounce);
}

/* Floating animation */
.orbital-node.visible {
    animation: float 4s ease-in-out infinite;
}

.orbital-node:nth-child(1) { animation-delay: 0s; }
.orbital-node:nth-child(2) { animation-delay: 0.6s; }
.orbital-node:nth-child(3) { animation-delay: 1.2s; }
.orbital-node:nth-child(4) { animation-delay: 1.8s; }
.orbital-node:nth-child(5) { animation-delay: 2.4s; }

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-8px) scale(1);
    }
}

.orbital-node:hover {
    animation-play-state: paused;
}

.node-content {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--orbital-node-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--orbital-node-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--orbital-transition-medium);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism shine */
.node-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 60%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.node-content:hover::before {
    transform: rotate(45deg) translateX(100%);
}

.node-content:hover {
    background: var(--orbital-node-bg-hover);
    border-color: var(--orbital-node-border-hover);
    transform: scale(1.12);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 255, 136, 0.2);
}

.orbital-node.active {
    z-index: 300;
}

.orbital-node.active .node-content {
    background: rgba(0, 255, 136, 0.25);
    border-color: rgba(0, 255, 136, 0.6);
    transform: scale(1.15);
    box-shadow:
        0 0 50px rgba(0, 255, 136, 0.4),
        0 0 80px rgba(0, 212, 255, 0.2);
}

.node-icon {
    font-size: 2rem;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
}

.node-content:hover .node-icon {
    transform: scale(1.1) translateY(-2px);
}

.node-title {
    font-size: 0.7rem;
    color: var(--orbital-text-primary);
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
    padding: 0 10px;
    max-width: 100%;
}

.node-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--orbital-hub-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.4);
    animation: count-pulse 2s ease-in-out infinite;
}

@keyframes count-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

/* ==========================================
   NODE PANEL
   ========================================== */

.node-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    min-width: 280px;
    max-width: 320px;
    background: #16213e;
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 136, 0.5);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--orbital-transition-medium);
    z-index: 200;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(0, 255, 136, 0.2);
    pointer-events: auto;
}

.orbital-node.active .node-panel {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.orbital-node.active .node-panel * {
    pointer-events: auto;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.panel-header-icon {
    font-size: 1.5rem;
}

.panel-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.panel-header-count {
    margin-left: auto;
    background: rgba(0, 255, 136, 0.2);
    color: var(--orbital-accent-1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.panel-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

.panel-list::-webkit-scrollbar {
    width: 4px;
}

.panel-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.panel-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 2px;
}

.panel-list li {
    margin-bottom: 4px;
}

.panel-list li:last-child {
    margin-bottom: 0;
}

.panel-list a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    transition: var(--orbital-transition-fast);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    background: rgba(255, 255, 255, 0.08);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.panel-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--orbital-hub-gradient);
    transform: scaleY(0);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.panel-list a:hover {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding-left: 20px;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.panel-list a:hover::before {
    transform: scaleY(1);
}

.panel-list a .arrow {
    margin-left: auto;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--orbital-transition-fast);
}

.panel-list a:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Close button */
.panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--orbital-text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--orbital-transition-fast);
    font-size: 1rem;
}

.panel-close:hover {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
}

/* Panel Backdrop (for mobile) */
.panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--orbital-transition-medium);
}

.panel-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   FOOTER
   ========================================== */

.comlink-guides-3d footer {
    padding: 60px 40px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section .office-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    color: #a855f7;
}

.footer-section .office-icon svg {
    width: 100%;
    height: 100%;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #00ff88;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
    color: white;
    text-decoration: none;
    display: block;
}

.footer-section a:hover {
    color: #00ff88;
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.6;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 900px) {
    .header-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .header-nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .site-header {
        padding: 15px 20px;
    }

    .comlink-guides-3d h1 {
        font-size: 38px;
    }

    /* Panel căn giữa màn hình cho tablet */
    .node-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.8) !important;
        width: calc(100vw - 60px);
        max-width: 380px;
    }

    .orbital-node.active .node-panel {
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

@media (max-width: 768px) {
    :root {
        --orbital-container-size: 500px;
        --orbital-hub-size: 120px;
        --orbital-node-size: 90px;
        --orbital-radius: 180px;
    }

    .node-title {
        font-size: 0.6rem;
    }

    .node-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.8) !important;
        width: calc(100vw - 40px);
        max-width: 350px;
        min-width: auto;
        padding: 20px;
    }

    .orbital-node.active .node-panel {
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .comlink-guides-3d footer {
        padding: 40px 20px 20px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 540px) {
    :root {
        --orbital-container-size: 100vw;
        --orbital-hub-size: 100px;
        --orbital-node-size: 75px;
        --orbital-radius: 140px;
    }

    .orbital-section {
        padding: 40px 10px;
    }

    .node-title {
        font-size: 0.5rem;
        padding: 0 5px;
    }

    .node-icon {
        font-size: 1.5rem;
    }

    .node-count {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
        top: 5px;
        right: 5px;
    }

    .hub-icon {
        font-size: 2rem;
    }

    .hub-title {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .hub-subtitle {
        font-size: 0.65rem;
    }

    .node-panel {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        width: calc(100vw - 40px);
        max-width: 350px;
        min-width: auto;
        transform: translate(-50%, -50%) scale(0.8) !important;
    }

    .orbital-node.active .node-panel {
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .orbital-container::after,
    .orbital-ring-inner {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero.collapsed {
        top: 60px;
    }

    .comlink-guides-3d h1 {
        font-size: 32px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .scroll-hint {
        display: none;
    }

    /* Compact header mobile */
    .hero-compact {
        padding: 12px 15px;
        gap: 12px;
    }

    .compact-title {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .compact-stats {
        gap: 12px;
    }

    .compact-stats span {
        font-size: 0.8rem;
    }
}

/* ==========================================
   MOBILE PANEL - ATTACHED TO BODY
   ========================================== */

/* Panel khi được move ra body trên mobile */
body > .node-panel.mobile-panel {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    z-index: 10000;
    width: calc(100vw - 40px);
    max-width: 350px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body > .node-panel.mobile-panel.visible {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
