/* ============================================
   D4rkStar//Lasse – Modern Redesign
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: #050510;
    color: #e0e0e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

b { color: #ffffff; }
i { color: #a0a0c0; }

/* --- CANVAS BACKGROUND --- */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050510; }
::-webkit-scrollbar-thumb { background: #7b2ff7; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9b5ff7; }

/* --- GLASS CARD --- */
.glass-card {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(123, 47, 247, 0.15);
    border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform, box-shadow;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(123, 47, 247, 0.12);
    border-color: rgba(123, 47, 247, 0.35);
}

/* --- SCROLL ANIMATIONS --- */
.animate-ready .fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.animate-ready .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-ready .slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}
.animate-ready .slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-ready .slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}
.animate-ready .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-ready .scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}
.animate-ready .scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(5, 5, 16, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 47, 247, 0.1);
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 16, 0.95);
    padding: 10px 40px;
}

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.nav-logo span {
    color: #7b2ff7;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7b2ff7;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover {
    color: #fff;
}

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

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-burger.active span:nth-child(2) {
    opacity: 0;
}
.nav-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(5, 5, 16, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

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

.mobile-link {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #7b2ff7;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #7b2ff7;
    border: 1px solid rgba(123, 47, 247, 0.4);
    background: rgba(123, 47, 247, 0.08);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .accent {
    color: #7b2ff7;
    display: inline-block;
    animation: accentPulse 2.5s ease-in-out infinite;
}

@keyframes accentPulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(123, 47, 247, 0.3); }
    50% { opacity: 0.6; text-shadow: 0 0 30px rgba(123, 47, 247, 0.6); }
}

.hero-slogan {
    font-size: 18px;
    color: #a0a0c0;
    margin-bottom: 40px;
}

.hero-slogan .coffee {
    color: #c8a87c;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #7b2ff7, #5b1fd7);
    color: #fff;
    box-shadow: 0 4px 20px rgba(123, 47, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123, 47, 247, 0.5);
}

.btn-ghost {
    background: transparent;
    color: #c0c0e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 10px;
}

.btn-outline {
    background: transparent;
    color: #b0b0d0;
    border: 1px solid rgba(123, 47, 247, 0.3);
}

.btn-outline:hover {
    background: rgba(123, 47, 247, 0.1);
    border-color: #7b2ff7;
    color: #fff;
}

.btn-outline.active {
    background: rgba(123, 47, 247, 0.15);
    border-color: #7b2ff7;
    color: #d0b8ff;
}

.btn-icon {
    font-size: 16px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #7b2ff7;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 12px;
    letter-spacing: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid #444;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: #7b2ff7;
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes scrollDot {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(10px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 20px;
}

.section-dark {
    background: rgba(8, 8, 20, 0.5);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #7b2ff7;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: #888;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    font-size: 16px;
    color: #b0b0c0;
    margin-bottom: 24px;
    line-height: 1.8;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    border-color: #7b2ff7;
    color: #d0b8ff;
    background: rgba(123, 47, 247, 0.1);
    transform: translateY(-2px);
}

.tag-sm { padding: 3px 10px; font-size: 11px; }

.tag-glow {
    border-color: rgba(0, 245, 160, 0.3);
    color: #00f5a0;
}

.tag-security {
    border-color: rgba(247, 127, 0, 0.3);
    color: #f77f00;
}

.tag-hardware {
    border-color: rgba(230, 57, 70, 0.3);
    color: #e63946;
}

/* About Card */
.about-card {
    padding: 0;
    overflow: hidden;
}

.about-card-header {
    padding: 16px 24px;
    background: rgba(0, 245, 160, 0.05);
    border-bottom: 1px solid rgba(0, 245, 160, 0.15);
    font-size: 14px;
    font-weight: 600;
    color: #00f5a0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card-body {
    padding: 20px 24px;
}

.about-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 14px;
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.project-card {
    padding: 30px;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.card-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 47, 247, 0.1);
    border-radius: 14px;
    flex-shrink: 0;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.card-subtitle {
    font-size: 13px;
    color: #666;
    font-family: 'JetBrains Mono', monospace;
}

.card-desc {
    color: #999;
    font-size: 15px;
    margin-bottom: 16px;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: #666;
}

.card-footer .mono {
    color: #7b2ff7;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.status-online {
    background: rgba(0, 245, 160, 0.1);
    color: #00f5a0;
    border: 1px solid rgba(0, 245, 160, 0.25);
}

/* ============================================
   EXPANDABLE PANELS
   ============================================ */
.expandable-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.4s ease, margin-top 0.5s ease;
    opacity: 0;
    padding: 0 20px;
    background: rgba(8, 8, 25, 0.6);
    border-radius: 14px;
    margin-top: 0;
    border: 1px solid transparent;
}

.expandable-panel#projects-list {
    max-height: 1000px;
    opacity: 1;
    padding: 20px;
    margin-top: 14px;
    border: 1px solid rgba(123, 47, 247, 0.1);
}

.expandable-panel.open {
    max-height: 1000px;
    opacity: 1;
    padding: 20px;
    margin-top: 14px;
    border: 1px solid rgba(123, 47, 247, 0.1);
}

/* Ensure progress bars animate when panel opens */
.expandable-panel.open .progress-bar {
    width: var(--progress, 0%) !important;
}

/* Smooth transition for progress bars */
.progress-bar {
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   TABLES
   ============================================ */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.modern-table th {
    text-align: left;
    padding: 10px 12px;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #c0c0c0;
    transition: background 0.2s ease;
}

.modern-table tr:hover td {
    background: rgba(123, 47, 247, 0.04);
}

.modern-table.compact td,
.modern-table.compact th {
    padding: 8px 10px;
}

.row-inactive td {
    color: #555 !important;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.status-active {
    background: rgba(0, 245, 160, 0.1);
    color: #00f5a0;
    border: 1px solid rgba(0, 245, 160, 0.25);
}

.status-inactive {
    background: rgba(255, 107, 107, 0.08);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.status-unused {
    background: rgba(255, 209, 102, 0.08);
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.2);
}

/* Pulse Dots */
.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00f5a0;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-dot-sm {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00f5a0;
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-dot-sm.offline {
    background: #ff6b6b;
    animation-name: pulseRed;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(0, 245, 160, 0); }
}

@keyframes pulseRed {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(255, 107, 107, 0); }
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.storage-item {
    margin-bottom: 16px;
}

.storage-item:last-child {
    margin-bottom: 0;
}

.storage-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #7b2ff7, #00b4d8);
    width: 0;
    transition: width 1.5s ease-out;
}

.progress-bar.animate {
    width: var(--progress, 0%);
}

.progress-bar.bar-red {
    background: linear-gradient(90deg, #e63946, #ff6b6b);
}

/* ============================================
   FLOW STEPS
   ============================================ */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid #7b2ff7;
    font-size: 14px;
    color: #c0c0c0;
    transition: background 0.3s ease;
}

.flow-step:hover {
    background: rgba(123, 47, 247, 0.08);
}

.flow-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 47, 247, 0.2);
    color: #7b2ff7;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.panel-note {
    margin-top: 14px;
    font-size: 13px;
    color: #888;
}

/* Modern List */
.modern-list {
    list-style: none;
    padding: 0;
}

.modern-list li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: #b0b0c0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modern-list li:last-child {
    border-bottom: none;
}

.modern-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #7b2ff7;
    font-size: 12px;
}

/* Network Tree */
.network-tree {
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #a0a0c0;
    line-height: 2;
    white-space: pre;
    overflow-x: auto;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    width: 100%;
    display: block;
    align-self: flex-start;
}

/* ============================================
   SECURITY GRID
   ============================================ */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-content: center;
}

.security-grid.centered-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.security-card {
    padding: 30px;
    text-align: center;
}

.security-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.security-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.security-card p {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}

/* ============================================
   HARDWARE
   ============================================ */
.hardware-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.hardware-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.hw-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    background: rgba(123, 47, 247, 0.15);
    color: #7b2ff7;
    border: 1px solid rgba(123, 47, 247, 0.3);
    margin-bottom: 14px;
}

.hw-badge-red {
    background: rgba(230, 57, 70, 0.15);
    color: #e63946;
    border-color: rgba(230, 57, 70, 0.3);
}

.hardware-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.hw-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.hw-specs {
    margin-bottom: 12px;
}

.hw-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #c0c0c0;
}

.hw-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #7b2ff7;
    font-weight: 600;
    min-width: 50px;
}

.hw-warning {
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(255, 209, 102, 0.06);
    border: 1px solid rgba(255, 209, 102, 0.15);
    border-radius: 10px;
    font-size: 13px;
    color: #ffd166;
    line-height: 1.6;
}

.storage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.storage-header span:first-child {
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.storage-header .mono {
    flex-shrink: 0;
    white-space: nowrap;
}


/* ============================================
   USB SECTION
   ============================================ */
.usb-section {
    margin-top: 20px;
}

.usb-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.usb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.usb-card {
    padding: 24px;
}

.usb-card p {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.usb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.usb-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    flex: 1;
}

.usb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.usb-dot.green {
    background: #00f5a0;
    box-shadow: 0 0 8px rgba(0, 245, 160, 0.4);
}

.usb-dot.red {
    background: #ff6b6b;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}

.usb-size {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #7b2ff7;
    padding: 2px 10px;
    border-radius: 50px;
    border: 1px solid rgba(123, 47, 247, 0.3);
    background: rgba(123, 47, 247, 0.08);
}

/* ============================================
   SUMMARY
   ============================================ */
.summary-box {
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.summary-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 40% 40%, rgba(123, 47, 247, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 60% 60%, rgba(0, 180, 216, 0.04) 0%, transparent 50%);
    animation: summaryGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes summaryGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, -15px) rotate(3deg); }
}

.summary-box .section-tag {
    position: relative;
    z-index: 1;
}

.summary-box .section-title {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.summary-text {
    font-size: 16px;
    color: #999;
    max-width: 650px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.summary-stat:hover {
    background: rgba(123, 47, 247, 0.08);
    border-color: rgba(123, 47, 247, 0.25);
    transform: translateY(-4px);
}

.summary-stat-icon {
    font-size: 28px;
}

.summary-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #7b2ff7;
    font-family: 'JetBrains Mono', monospace;
}

.summary-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-highlight {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 14px 28px;
    border-radius: 14px;
    background: rgba(123, 47, 247, 0.1);
    border: 1px solid rgba(123, 47, 247, 0.3);
    color: #d0b8ff;
    font-size: 15px;
    font-weight: 600;
    animation: highlightGlow 3s ease-in-out infinite alternate;
}

@keyframes highlightGlow {
    0% { box-shadow: 0 0 10px rgba(123, 47, 247, 0.1); }
    100% { box-shadow: 0 0 30px rgba(123, 47, 247, 0.2); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 50px 20px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.footer-logo .accent {
    color: #7b2ff7;
}

.footer p {
    color: #666;
    font-size: 14px;
    margin-bottom: 6px;
}

.footer-copy {
    margin-top: 20px;
    font-size: 12px;
    color: #444;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .security-grid {
        grid-template-columns: 1fr;
    }

    .hardware-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .navbar {
        padding: 14px 20px;
    }

    .hero {
        padding: 100px 16px 50px 16px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-stats {
        gap: 16px;
    }

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

    .section {
        padding: 60px 16px;
    }

    .project-card {
        padding: 22px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-pill {
        margin-left: 0;
    }

    .usb-grid {
        grid-template-columns: 1fr;
    }

    .summary-stats {
        gap: 16px;
    }

    .summary-stat {
        min-width: 100px;
        padding: 14px 16px;
    }

    .summary-box {
        padding: 30px 20px;
    }

    .modern-table th:nth-child(3),
    .modern-table td:nth-child(3) {
        display: none;
    }

    .flow-steps {
        gap: 8px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-slogan {
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 4px 14px;
    }

    .summary-stats {
        flex-direction: column;
        align-items: center;
    }

    .card-actions {
        flex-direction: column;
    }

    .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* ===== MOBILE FIX – FINAL v3 ===== */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.navbar {
    max-width: 100vw;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    /* Slide-Animationen komplett entschärfen */
    .animate-ready .slide-in-left,
    .animate-ready .slide-in-right {
        transform: none !important;
        opacity: 0;
        transition: opacity 0.7s ease-out !important;
    }

    .animate-ready .slide-in-left.visible,
    .animate-ready .slide-in-right.visible {
        transform: none !important;
        opacity: 1;
    }

    .animate-ready .scale-in {
        transform: none !important;
        opacity: 0;
        transition: opacity 0.6s ease-out !important;
    }

    .animate-ready .scale-in.visible {
        transform: none !important;
        opacity: 1;
    }

    .network-tree {
        font-size: 10px;
        max-width: 100%;
    }

    .expandable-panel {
        overflow-x: auto;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .about-info-row {
        flex-direction: column;
        gap: 4px;
    }

    .hw-spec-row {
        flex-direction: column;
        gap: 2px;
    }
}
