@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background: 
        /* Main cyber grid with perspective */
        linear-gradient(0deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        /* Secondary perspective grid */
        linear-gradient(0deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px),
        /* Cyber city skyline silhouettes */
        linear-gradient(180deg, transparent 60%, rgba(0, 30, 60, 0.3) 70%, rgba(0, 20, 40, 0.5) 80%, rgba(0, 10, 20, 0.7) 90%, rgba(0, 5, 10, 0.9) 100%),
        /* Building shapes */
        radial-gradient(ellipse 200px 300px at 15% 85%, rgba(0, 40, 80, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 150px 400px at 35% 88%, rgba(0, 50, 100, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 180px 350px at 65% 87%, rgba(0, 45, 90, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 120px 280px at 85% 86%, rgba(0, 35, 70, 0.4) 0%, transparent 50%),
        /* Atmospheric layers */
        radial-gradient(ellipse at top, rgba(0, 100, 200, 0.1) 0%, rgba(0, 50, 100, 0.05) 30%, transparent 60%),
        /* Base gradient */
        linear-gradient(180deg, #000510 0%, #001020 20%, #002040 40%, #001530 60%, #000815 80%, #000000 100%);
    background-size: 
        50px 50px,
        50px 50px,
        200px 200px,
        200px 200px,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%;
    background-position:
        0 0,
        0 0,
        0 0,
        0 0,
        center bottom,
        15% bottom,
        35% bottom,
        65% bottom,
        85% bottom,
        center top,
        center center;
    background-attachment: fixed;
    color: #00ffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Cyber city atmosphere and scan lines */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Horizontal scan lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0, 255, 255, 0.02) 3px,
            rgba(0, 255, 255, 0.02) 4px
        ),
        /* Building window lights */
        radial-gradient(2px 2px at 15% 75%, #00ffff, transparent),
        radial-gradient(2px 2px at 17% 70%, #00ffff, transparent),
        radial-gradient(2px 2px at 13% 80%, #00ffff, transparent),
        radial-gradient(2px 2px at 35% 78%, #ff00ff, transparent),
        radial-gradient(2px 2px at 37% 72%, #ff00ff, transparent),
        radial-gradient(2px 2px at 33% 82%, #ff00ff, transparent),
        radial-gradient(2px 2px at 65% 76%, #00ff00, transparent),
        radial-gradient(2px 2px at 67% 73%, #00ff00, transparent),
        radial-gradient(2px 2px at 63% 81%, #00ff00, transparent),
        radial-gradient(2px 2px at 85% 74%, #ffff00, transparent),
        radial-gradient(2px 2px at 87% 79%, #ffff00, transparent),
        radial-gradient(2px 2px at 83% 77%, #ffff00, transparent);
    animation: scanlines 12s linear infinite, cityLights 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Floating data streams and atmospheric particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Data streams */
        linear-gradient(45deg, transparent 40%, rgba(0, 255, 255, 0.1) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 0, 255, 0.08) 50%, transparent 70%),
        /* Atmospheric particles */
        radial-gradient(1px 1px at 25% 30%, #00ffff, transparent),
        radial-gradient(1px 1px at 75% 20%, #00ff00, transparent),
        radial-gradient(1px 1px at 45% 40%, #ff00ff, transparent),
        radial-gradient(1px 1px at 65% 25%, #ffff00, transparent);
    background-size: 200% 200%, 200% 200%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    animation: dataStreams 20s linear infinite, atmosphereFloat 25s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

@keyframes scanlines {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes cityLights {
    0%, 100% { opacity: 0.8; }
    25% { opacity: 1; }
    50% { opacity: 0.6; }
    75% { opacity: 0.9; }
}

@keyframes dataStreams {
    0% { 
        background-position: -200% -200%, 200% 200%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
        opacity: 0.3;
    }
    50% { 
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
        opacity: 0.8;
    }
    100% { 
        background-position: 200% 200%, -200% -200%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
        opacity: 0.3;
    }
}

@keyframes atmosphereFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.4;
    }
    25% { 
        transform: translateY(-8px) translateX(3px);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-12px) translateX(-5px);
        opacity: 0.3;
    }
    75% { 
        transform: translateY(-5px) translateX(8px);
        opacity: 0.6;
    }
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-20px) translateX(10px); }
    66% { transform: translateY(-10px) translateX(-10px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
}

h1 {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 900;
    text-align: center;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff00, #ffff00);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2);
    position: relative;
    margin-bottom: 2rem;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Glass morphism container */
.glass-container {
    background: rgba(0, 20, 35, 0.25);
    backdrop-filter: blur(30px);
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 255, 255, 0.15);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Clean cyber accent line */
.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    opacity: 0.6;
}

/* Subtle data stream animation */
.glass-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.02) 50%, transparent 70%);
    animation: dataStream 8s linear infinite;
    pointer-events: none;
}

@keyframes dataStream {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

/* Subtitle styling */
.subtitle {
    font-size: 1.2rem;
    color: rgba(0, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 1rem;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Grid layout for glass boxes */
.glass-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1400px;
    width: 100%;
}

/* Make software pane wider */
.glass-box.software {
    min-width: 400px;
}

.glass-box {
    background: rgba(0, 15, 30, 0.2);
    backdrop-filter: blur(25px);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 15px rgba(0, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 255, 255, 0.08);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-box:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 255, 0.25);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(0, 255, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 255, 255, 0.12);
}

/* Individual box themes */
.glass-box.system {
    border-color: rgba(0, 255, 0, 0.2);
    background: rgba(0, 25, 15, 0.2);
}

.glass-box.system:hover {
    border-color: rgba(0, 255, 0, 0.35);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(0, 255, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 255, 0, 0.12);
}

.glass-box.software {
    border-color: rgba(255, 0, 255, 0.2);
    background: rgba(25, 0, 25, 0.2);
}

.glass-box.software:hover {
    border-color: rgba(255, 0, 255, 0.35);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(255, 0, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 0, 255, 0.12);
}

.glass-box.console {
    border-color: rgba(255, 255, 0, 0.2);
    background: rgba(25, 25, 0, 0.2);
}

.glass-box.console:hover {
    border-color: rgba(255, 255, 0, 0.35);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(255, 255, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 0, 0.12);
}

/* Clean accent line for boxes */
.glass-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.3;
}

.glass-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.glass-box.system h2 {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.glass-box.software h2 {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.glass-box.console h2 {
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.glass-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

/* System information styling */
.system-info {
    text-align: left;
    font-family: 'Courier New', monospace;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: rgba(0, 255, 0, 0.05);
    border-left: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .label {
    color: #00ff00;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 60px;
}

.info-row .value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-family: 'Orbitron', monospace;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

/* File Navigator styling */
.file-navigator {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255, 0, 255, 0.2);
    overflow: hidden;
}

.navigator-header {
    background: rgba(255, 0, 255, 0.1);
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-controls {
    display: flex;
    gap: 0.25rem;
}

.nav-btn {
    background: rgba(255, 0, 255, 0.2);
    border: 1px solid rgba(255, 0, 255, 0.3);
    color: #ff00ff;
    width: 24px;
    height: 24px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.7rem;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 0, 255, 0.3);
    border-color: rgba(255, 0, 255, 0.5);
    color: #ffffff;
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-icon {
    font-weight: bold;
}

.address-bar {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 3px;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
}

.address-text {
    color: #ff00ff;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 0, 255, 0.3);
}

.navigator-content {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.directory-listing {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255, 0, 255, 0.08);
}

.folder-item:hover {
    background: rgba(255, 0, 255, 0.15);
}

.item-icon {
    margin-right: 0.75rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.item-name {
    color: #00ffff;
    font-weight: 600;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.3);
    margin-bottom: 0.1rem;
}

.folder-item .item-name {
    color: #ff00ff;
    text-shadow: 0 0 2px rgba(255, 0, 255, 0.3);
}

.item-desc {
    color: rgba(150, 150, 150, 0.8);
    font-size: 0.68rem;
    line-height: 1.2;
    opacity: 0.7;
}

.loading {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.navigator-error {
    padding: 2rem;
    text-align: center;
    color: #ff6666;
}

.error-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.error-message {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.error-detail {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Glass elements visible immediately */
.glass-container,
.glass-box {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .glass-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .glass-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .glass-box {
        padding: 1.5rem 1rem;
    }
    
    .glass-box.software {
        min-width: auto;
    }
    
    .glass-box h2 {
        font-size: 1.5rem;
    }
    
    .directory-tree {
        font-size: 0.7rem;
    }
    
    .tree-branch {
        min-width: 45px;
    }
}

/* Visitor Analytics Styling */
.glass-box.analytics {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    min-height: 300px;
}

.visitor-analytics {
    margin: 1rem 0;
}

.visitor-analytics .loading {
    text-align: center;
    color: rgba(0, 255, 255, 0.7);
    font-style: italic;
    padding: 2rem;
}

.refresh-btn {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 255, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-top: 10px;
    width: 100%;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 200, 255, 0.2));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.visitor-analytics .visitor-stats {
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    color: #00ffff;
}

.visitor-analytics .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
}

.visitor-analytics .stat-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.visitor-analytics .stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.visitor-analytics .stat-label {
    font-size: 0.8em;
    color: rgba(0, 255, 255, 0.7);
    margin-top: 5px;
}

.visitor-analytics .stats-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 15px 0;
}

.visitor-analytics .stat-section h4 {
    color: #00ffff;
    margin-bottom: 8px;
    font-size: 0.9em;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.visitor-analytics .stat-section ul {
    list-style: none;
    padding: 0;
}

.visitor-analytics .stat-section li {
    padding: 3px 0;
    font-size: 0.8em;
    color: rgba(0, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.visitor-analytics .stats-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    font-size: 0.7em;
    color: rgba(0, 255, 255, 0.6);
}