/* ============================================
   Arch Linux Style Website
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --arch-blue: #1793d1;
    --bg-dark: #0d1117;
    --bg-darker: #010409;
    --bg-light: #161b22;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --border-color: #30363d;
    --accent-color: #58a6ff;
    --success-color: #3fb950;
    --font-mono: 'Courier New', 'Consolas', 'Monaco', monospace;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    background-color: var(--bg-darker);
    border-bottom: 2px solid var(--arch-blue);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.logo .arch-logo {
    font-size: 1.5rem;
    color: var(--arch-blue);
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 2rem;
    flex: 1;
}

.nav-link[href="#login"],
.nav-link[href="#logout"] {
    margin-left: auto;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '$ ';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--arch-blue);
    border: 1px solid var(--arch-blue);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--arch-blue);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.prompt {
    color: var(--success-color);
    font-weight: bold;
}

/* ============================================
   Terminal
   ============================================ */

.terminal {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background-color: var(--bg-light);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-button.close {
    background-color: #ff5f56;
}

.terminal-button.minimize {
    background-color: #ffbd2e;
}

.terminal-button.maximize {
    background-color: #27c93f;
}

.terminal-title {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 1.5rem;
    font-size: 0.95rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.command {
    color: var(--accent-color);
    margin-left: 0.5rem;
}

.ascii-art {
    color: var(--arch-blue);
    margin: 1rem 0;
    font-size: 0.85rem;
}

/* Typing animation */
.typing {
    display: inline-block;
    border-right: 2px solid var(--arch-blue);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        border-color: var(--arch-blue);
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* ============================================
   Content Boxes
   ============================================ */

.content-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--arch-blue);
    padding: 2rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.content-box p {
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.bullet {
    color: var(--arch-blue);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ============================================
   Projects Grid
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--arch-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(23, 147, 209, 0.2);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.file-icon {
    font-size: 1.5rem;
}

.project-card h3 {
    color: var(--arch-blue);
    font-size: 1.3rem;
}

.project-card p {
    color: var(--text-secondary);
    margin: 1rem 0;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background-color: var(--bg-darker);
    color: var(--arch-blue);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--arch-blue);
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ============================================
   Contact Form
   ============================================ */

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--arch-blue);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--arch-blue);
}

.submit-btn {
    background-color: var(--arch-blue);
    color: var(--bg-dark);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--bg-darker);
    border-top: 2px solid var(--arch-blue);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.heart {
    color: #ff5f56;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.coffee {
    color: #a67c52;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .terminal-body {
        font-size: 0.85rem;
        padding: 1rem;
    }

    .ascii-art {
        font-size: 0.65rem;
    }
}

/* ============================================
   Scrollbar Styling
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--arch-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ============================================
   Boot Screen Animation
   ============================================ */

.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOutBoot 0.5s ease 3.5s forwards;
}

@keyframes fadeOutBoot {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.boot-content {
    width: 90%;
    max-width: 800px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* BIOS Section */
.bios-section {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInBios 0.3s ease 0.2s forwards;
}

@keyframes fadeInBios {
    to {
        opacity: 1;
    }
}

.bios-text {
    margin: 0.3rem 0;
    color: #ccc;
    animation: typeWriter 0.5s steps(40) forwards;
}

.bios-text:nth-child(1) {
    animation-delay: 0.3s;
}

.bios-text:nth-child(2) {
    animation-delay: 0.5s;
}

.bios-text:nth-child(3) {
    animation-delay: 0.7s;
}

.bios-text:nth-child(4) {
    animation-delay: 0.9s;
}

.bios-text:nth-child(5) {
    animation-delay: 1.1s;
    color: #1793d1;
}

/* Boot Section */
.boot-section {
    opacity: 0;
    animation: fadeInBoot 0.3s ease 1.5s forwards;
}

@keyframes fadeInBoot {
    to {
        opacity: 1;
    }
}

.boot-line {
    margin: 0.15rem 0;
    color: #ddd;
    font-size: 0.85rem;
    opacity: 0;
    animation: showBootLine 0.1s ease forwards;
}

.boot-line:nth-child(1) {
    animation-delay: 1.6s;
    color: #1793d1;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.boot-line:nth-child(2) {
    animation-delay: 1.8s;
}

.boot-line:nth-child(3) {
    animation-delay: 2s;
}

.boot-line:nth-child(4) {
    animation-delay: 2.2s;
}

.boot-line:nth-child(5) {
    animation-delay: 2.4s;
}

.boot-line:nth-child(6) {
    animation-delay: 2.6s;
}

.boot-line:nth-child(7) {
    animation-delay: 2.8s;
}

.boot-line:nth-child(8) {
    animation-delay: 3s;
}

.boot-line:nth-child(9) {
    animation-delay: 3.2s;
}

@keyframes showBootLine {
    to {
        opacity: 1;
    }
}

.ok {
    color: #3fb950;
    font-weight: bold;
}

.welcome-text {
    color: #1793d1 !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    margin-top: 0.5rem !important;
}

/* Hide main content during boot */
body .container {
    opacity: 0;
    animation: fadeInMain 0.5s ease 3.5s forwards;
}

@keyframes fadeInMain {
    to {
        opacity: 1;
    }
}

/* ============================================
   File Sharing Section
   ============================================ */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--success-color);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.breadcrumb-path {
    color: var(--arch-blue);
    margin-left: 0.5rem;
}

.breadcrumb-path .folder-part {
    cursor: pointer;
    transition: color 0.3s ease;
}

.breadcrumb-path .folder-part:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Folder Actions */
.folder-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.folder-btn {
    background-color: var(--bg-darker);
    border: 1px solid var(--arch-blue);
    color: var(--arch-blue);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.folder-btn:hover {
    background-color: var(--arch-blue);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.folder-btn:active {
    transform: translateY(0);
}

.file-upload-area {
    margin-bottom: 2rem;
}

.upload-terminal {
    background-color: var(--bg-darker);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-terminal:hover {
    border-color: var(--arch-blue);
    background-color: rgba(23, 147, 209, 0.05);
}

.upload-terminal.drag-over {
    border-color: var(--arch-blue);
    background-color: rgba(23, 147, 209, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.upload-terminal h3 {
    color: var(--arch-blue);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.upload-terminal p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.upload-btn {
    background-color: var(--arch-blue);
    color: var(--bg-dark);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 147, 209, 0.3);
}

.upload-btn:active {
    transform: translateY(0);
}

/* File List */
.file-list-container {
    margin: 2rem 0;
}

.file-list-title {
    color: var(--arch-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.file-list {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.empty-state {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.empty-state p {
    margin-bottom: 0.3rem;
}

.empty-message {
    color: var(--arch-blue);
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

.file-item,
.folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.folder-item {
    border-left: 3px solid var(--arch-blue);
    cursor: pointer;
}

.folder-item:hover {
    border-color: var(--arch-blue);
    background-color: rgba(23, 147, 209, 0.15);
    transform: translateX(5px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.file-item:hover {
    border-color: var(--arch-blue);
    background-color: rgba(23, 147, 209, 0.1);
    transform: translateX(5px);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.file-icon-display {
    font-size: 1.5rem;
}

.file-details {
    flex: 1;
}

.file-name {
    color: var(--text-primary);
    font-weight: bold;
    display: block;
    margin-bottom: 0.2rem;
}

.file-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.file-action-btn {
    background-color: transparent;
    border: 1px solid var(--arch-blue);
    color: var(--arch-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-action-btn:hover {
    background-color: var(--arch-blue);
    color: var(--bg-dark);
}

.file-action-btn.delete {
    border-color: #ff5f56;
    color: #ff5f56;
}

.file-action-btn.delete:hover {
    background-color: #ff5f56;
    color: var(--bg-dark);
}

/* File Stats */
.file-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--arch-blue);
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stat-value {
    color: var(--arch-blue);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Progress Bar for Upload */
.upload-progress {
    margin-top: 1rem;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    display: none;
}

.upload-progress.active {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--arch-blue), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Create Folder Dialog */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.dialog-box {
    background-color: var(--bg-dark);
    border: 2px solid var(--arch-blue);
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
}

.dialog-header {
    color: var(--arch-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.dialog-body {
    margin: 1.5rem 0;
}

.dialog-input {
    width: 100%;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.dialog-input:focus {
    outline: none;
    border-color: var(--arch-blue);
}

.dialog-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.dialog-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dialog-btn.primary {
    background-color: var(--arch-blue);
    color: var(--bg-dark);
    border-color: var(--arch-blue);
}

.dialog-btn.primary:hover {
    background-color: var(--accent-color);
}

.dialog-btn.secondary {
    background-color: transparent;
    color: var(--text-secondary);
}

.dialog-btn.secondary:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}
