:root {
    --bg-dark: #070B14;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-glass: rgba(10, 15, 29, 0.65);
    --accent-cyan: #00E5FF;
    --accent-cyan-glow: rgba(0, 229, 255, 0.35);
    --accent-purple: #A855F7;
    --accent-purple-glow: rgba(168, 85, 247, 0.35);
    --accent-amber: #F59E0B;
    --accent-emerald: #10B981;
    --border-color: rgba(0, 229, 255, 0.18);
    --border-hover: rgba(0, 229, 255, 0.6);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* Glassmorphism Header */
.portal-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    transition: all 0.3s ease;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.3rem;
    font-weight: 900;
    box-shadow: 0 0 18px var(--accent-cyan-glow);
}

.brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #FFF;
}

.brand-name span {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.brand-tag {
    font-size: 0.65rem;
    color: var(--accent-purple);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Cyber Badges & Buttons */
.btn-cyber-primary {
    background: linear-gradient(135deg, #00E5FF, #00B4D8);
    color: #050B14 !important;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(0, 229, 255, 0.35);
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-cyber-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.55);
    color: #000 !important;
}

.btn-cyber-outline {
    background: rgba(15, 23, 42, 0.6);
    color: #FFF !important;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-cyber-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan) !important;
    box-shadow: 0 0 15px var(--accent-cyan-glow);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 65px 0 50px 0;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #FFF 20%, var(--accent-cyan) 60%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 580px;
}

/* Tech Stats Bar */
.tech-stats-bar {
    display: flex;
    gap: 25px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 2px;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Hologram Box Showcase (Visual interactive) */
.hero-box-display {
    position: relative;
    width: 100%;
    height: 420px;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.15) 0%, rgba(10, 15, 29, 0) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.hologram-circle {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1.5px dashed rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    animation: rotateHolo 20s linear infinite;
}

.hologram-circle-inner {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 50%;
    animation: rotateHoloReverse 15s linear infinite;
}

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

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

.box-hero-card {
    position: relative;
    z-index: 5;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid var(--accent-cyan);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px var(--accent-cyan-glow);
    max-width: 340px;
    width: 90%;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.4s ease;
}

.box-hero-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.03);
}

.box-hero-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #F59E0B, #EF4444);
    color: #FFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

/* Feature Grid */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 26px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-cyan-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* Diagnosis Section (Bác Sĩ Kỹ Thuật Box) */
.diagnosis-section {
    background: rgba(10, 15, 29, 0.9);
    border: 1.5px solid rgba(0, 229, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    margin: 50px 0;
}

.diagnosis-select {
    background: #0F172A;
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #FFF;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
}

.diagnosis-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.diagnosis-result-box {
    background: #090E1A;
    border: 1px dashed rgba(0, 229, 255, 0.4);
    border-radius: 12px;
    padding: 24px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Product Showcase Grid */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2);
    transform: translateY(-4px);
}

.product-thumb {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
    background: #000;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-price {
    color: var(--accent-amber);
    font-size: 1.2rem;
    font-weight: 800;
    font-family: monospace;
}

/* Footer */
.portal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #050811;
    padding: 50px 0 25px 0;
    margin-top: 80px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-box-display {
        margin-top: 40px;
        height: 350px;
    }
}
