/* =========================================
   VARIABLES & THEME (Dark & Neon Green)
========================================= */
:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-panel: rgba(20, 20, 20, 0.6);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    
    /* Neon Green Theme */
    --theme-blue: #0088ff;
    --theme-blue-dim: rgba(0, 136, 255, 0.2);
    --theme-blue-glow: 0 0 10px rgba(0, 136, 255, 0.5), 0 0 20px rgba(0, 136, 255, 0.3);
    
    /* Gradients */
    --gradient-green: linear-gradient(135deg, #0088ff, #0055aa);
    
    /* Layout */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================================
   RESET & TYPOGRAPHY
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.highlight {
    color: var(--theme-blue);
    text-shadow: 0 0 10px rgba(0, 136, 255, 0.4);
}

/* =========================================
   BACKGROUND EFFECTS (Glassmorphism & Orbs)
========================================= */
#particles-js {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -2;
    background-color: var(--bg-dark);
}

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--theme-blue-dim);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 212, 255, 0.15); /* Cyan / Light blue effect */
    bottom: -20%;
    right: -10%;
    animation-delay: -10s;
}

.orb-small {
    width: 200px;
    height: 200px;
    background: var(--theme-blue-dim);
    top: -50px;
    right: -50px;
    filter: blur(60px);
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* =========================================
   UI COMPONENTS
========================================= */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--theme-blue);
    color: #000;
    box-shadow: 0 2px 10px rgba(0, 136, 255, 0.15);
}

.btn-primary:hover {
    background-color: #33aaff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.25);
}

.btn-secondary {
    background: #1a1a1a;
    color: var(--text-main);
    border: 1px solid #333;
}

.btn-secondary:hover {
    background: #222;
    border-color: #444;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--theme-blue);
    color: var(--theme-blue);
    background: rgba(0, 136, 255, 0.05);
}

.btn-block {
    width: 100%;
}

/* =========================================
   HEADER / NAVBAR
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 8px; /* Angles légèrement arrondis pour l'élégance */
    transition: var(--transition-fast);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--theme-blue);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    color: var(--theme-blue);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem; /* account for navbar */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--theme-blue-dim);
    color: var(--theme-blue);
    border: 1px solid rgba(0, 136, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Code Window (Hero Visual) */
.code-window {
    background: #111;
    border-radius: var(--radius-md);
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px var(--theme-blue-dim);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.window-header {
    background: #222;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

.window-body pre {
    margin: 0;
}

.keyword { color: #c678dd; }
.variable { color: #e5c07b; }
.property { color: #d19a66; }
.string { color: #98c379; }
.method { color: #61afef; }

/* =========================================
   SERVICES SECTION
========================================= */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--theme-blue);
    transition: height 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 136, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 15px var(--theme-blue-dim);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--theme-blue);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--gradient-green);
    color: var(--bg-darker);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   CONTACT SECTION
========================================= */
.cta-box {
    padding: 4rem;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.cta-box h2 {
    font-size: 2.5rem;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.contact-item i {
    color: var(--theme-blue);
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--theme-blue);
    box-shadow: 0 0 10px var(--theme-blue-dim);
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-main);
}

.footer-socials a:hover {
    background: var(--theme-blue);
    color: var(--bg-darker);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

/* =========================================
   ANIMATIONS (Scroll Reveal)
========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-description {
        margin: 0 auto 2.5rem auto;
    }
    
    .cta-box {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand p {
        margin: 1rem auto 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
}

/* Windows Desktop Styles */
.os-desktop-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.os-desktop-area {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 15px;
    overflow-x: auto;
}
.os-icon {
    width: 100px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    text-decoration: none;
}
.os-icon:hover {
    background: rgba(255,255,255,0.2);
}
.os-icon i.icon-type {
    font-size: 3.5rem;
    color: var(--theme-blue);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 0px;
}
.os-icon-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0px;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.os-icon .icon-label {
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,1);
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.os-icon-actions {
    position: absolute;
    top: -5px;
    right: -5px;
    display: none;
    z-index: 10;
}
.os-icon:hover .os-icon-actions {
    display: flex;
    gap: 5px;
}
.os-icon-actions button, .os-icon-actions .action-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    text-decoration: none;
}
.btn-delete-icon {
    background: #ff5f56;
    color: #fff;
}
.btn-copy-icon {
    background: var(--theme-blue);
    color: #000;
}
.os-taskbar {
    height: 50px;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
}
.os-start-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}
.os-start-btn:hover {
    color: var(--theme-blue);
    transform: scale(1.1);
}
.os-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: rgba(15,15,15,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: none;
    flex-direction: column;
    z-index: 100;
}
.os-window.active {
    display: flex;
}
.os-window-header {
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px 8px 0 0;
}
.os-window-header .title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}
.os-window-close {
    background: #ff5f56;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}
.os-window-content {
    padding: 20px;
}
/* Start Menu (Win11 Style) */
.os-start-menu {
    position: absolute;
    bottom: 60px;
    left: 10px;
    width: 750px;
    height: 600px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.os-start-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Header / Tabs */
.start-menu-header {
    display: flex;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
}
.start-menu-tab {
    padding: 10px 15px;
    font-size: 0.95rem;
    color: #aaa;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.start-menu-tab:hover {
    color: #fff;
}
.start-menu-tab.active {
    color: #fff;
    font-weight: 600;
    border-bottom: 3px solid var(--theme-blue);
}

/* Body (2 columns) */
.start-menu-body {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 30px;
}

/* Left Column (Recent) */
.start-menu-left {
    width: 250px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 20px;
}
.start-menu-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}
.start-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
}
.start-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
.start-menu-item i {
    font-size: 1.5rem;
    color: var(--theme-blue);
}
.start-menu-item.danger i {
    color: #ff5f56;
}

/* Right Column (Apps Grid) */
.start-menu-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.start-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.start-menu-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.start-menu-app:hover {
    background: rgba(255,255,255,0.1);
}
.start-menu-app:active {
    transform: scale(0.95);
}
.start-menu-app i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--theme-blue);
}
.start-menu-app span {
    font-size: 0.85rem;
    text-align: center;
}
/* Image Viewer */
.os-image-viewer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}
.os-image-viewer.active {
    display: flex;
}
.os-image-viewer img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.os-image-viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.os-image-viewer-close:hover {
    color: #ff5f56;
}

/* Top Friends Bar */
.os-top-hover-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    z-index: 200;
}
.os-top-bar {
    position: absolute;
    top: 0;
    left: 50%;
    min-width: 250px;
    max-width: 90%;
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
    border-radius: 0 0 40px 40px;
    transform: translate(-50%, -100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 199;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    gap: 20px;
    overflow-x: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.os-top-bar::-webkit-scrollbar {
    height: 4px;
}
.os-top-bar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}
.os-top-hover-area:hover ~ .os-top-bar,
.os-top-bar:hover {
    transform: translate(-50%, 0);
}
.os-top-friend {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
    min-width: 60px;
    flex-shrink: 0;
}
.os-top-friend:hover {
    transform: scale(1.1);
}
.os-top-friend img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--theme-blue);
    margin-bottom: 0px;
}
.os-top-friend span {
    font-size: 0.7rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 60px;
}


/* Context Menu */
#os-context-menu {
    position: fixed;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    padding: 5px;
    min-width: 200px;
    z-index: 9999;
    display: none;
    flex-direction: column;
}
.context-menu-item {
    padding: 10px 15px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    transition: background 0.2s;
}
.context-menu-item:hover {
    background: rgba(0, 136, 255, 0.2);
}
.context-menu-item.danger:hover {
    background: rgba(255, 95, 86, 0.2);
    color: #ff5f56;
}
.context-menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 5px 0;
}


/* OS Dialog (Prompt/Confirm replacement) */
.os-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.os-dialog {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 350px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: #fff;
    transform: scale(0.9);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.os-dialog.active {
    transform: scale(1);
}
.os-dialog-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.os-dialog-input {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    color: #fff;
    margin-bottom: 20px;
    outline: none;
}
.os-dialog-input:focus {
    border-color: var(--theme-blue);
}
.os-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* OS Folder Window */
.os-folder-window {
    position: absolute;
    top: 100px;
    left: 100px;
    width: 600px;
    height: 400px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    z-index: 100;
    resize: both;
    overflow: hidden;
    min-width: 300px;
    min-height: 200px;
}
.os-folder-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}
.os-folder-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.os-folder-controls {
    display: flex;
    gap: 8px;
}
.os-folder-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}
.os-folder-btn:hover { transform: scale(1.1); }
.os-folder-btn.close { background-color: #ff5f56; }
.os-folder-btn.minimize { background-color: #ffbd2e; }
.os-folder-btn.maximize { background-color: #27c93f; }

.os-folder-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(var(--desktop-icon-size, 60px) + 20px), 1fr));
    gap: 15px;
    align-content: start;
    justify-items: center;
}

/* --- CHAT MESSENGER STYLES --- */
.taskbar-icon-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; transition: all 0.2s; position: relative; }
.taskbar-icon-btn:hover { background: rgba(255,255,255,0.1); }
.chat-widget-container { position: absolute; bottom: 50px; right: 20px; z-index: 10000; font-family: 'Outfit', sans-serif; }
.chat-unread-badge { position: absolute; background: #ff3366; color: white; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #1e1e24; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.chat-unread-badge.pulse-anim { animation: chatBadgePulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes chatBadgePulse { 0% { transform: scale(1); } 50% { transform: scale(1.5); } 100% { transform: scale(1); } }
.chat-panel { position: absolute; bottom: 10px; right: 0; width: 340px; height: 480px; background: rgba(20, 20, 28, 0.85); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05); overflow: hidden; display: flex; flex-direction: column; z-index: 1; animation: chatPopUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes chatPopUp { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.chat-views-wrapper { flex: 1; display: flex; width: 100%; position: relative; }
.chat-view { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; background: transparent; }

/* --- TEXT LOGO --- */
.text-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.text-logo:hover {
    transform: scale(1.05) translateY(-2px);
}
.text-logo .logo-top {
    font-size: 32px;
    margin-bottom: 0px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    transform: skewX(-12deg);
    display: inline-block;
    transform-style: preserve-3d;
}
.text-logo .logo-top span {
    display: inline-block;
    transform-style: preserve-3d;
}
.text-logo .logo-top .text-white {
    animation: spin3D_D 9s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}
.text-logo .logo-top .text-theme {
    animation: spin3D_G 11s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3s infinite;
}
@keyframes spin3D_D {
    0%, 90% { transform: perspective(500px) rotateY(0deg); }
    100% { transform: perspective(500px) rotateY(360deg); }
}
@keyframes spin3D_G {
    0%, 88% { transform: perspective(500px) rotateY(0deg); }
    100% { transform: perspective(500px) rotateY(-360deg); }
}
.text-logo .logo-bottom {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.text-logo .logo-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 25px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    transform: skewX(-20deg);
    filter: blur(3px);
    animation: shineSweep 4s infinite;
    mix-blend-mode: overlay;
}
@keyframes shineSweep {
    0%, 20% { left: -100%; }
    40%, 100% { left: 150%; }
}
.text-white { color: #fff; }
.text-theme { color: var(--theme-blue); text-shadow: 0 0 10px var(--theme-blue-dim); }
a.logo { text-decoration: none; }
.chat-header { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,0.2); }
.chat-header h3 { margin: 0; font-size: 16px; font-weight: 600; color: white; display: flex; align-items: center; gap: 8px; }
.chat-header h3 i { color: var(--theme-blue); font-size: 20px; }
.chat-close-btn, .chat-back-btn { background: transparent; border: none; color: #aaa; font-size: 20px; cursor: pointer; transition: color 0.2s; padding: 0; display: flex; }
.chat-close-btn:hover, .chat-back-btn:hover { color: white; }
.chat-body { flex: 1; overflow-y: auto; padding: 10px 0; }
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.chat-friend-item { display: flex; align-items: center; padding: 12px 20px; cursor: pointer; transition: background 0.2s; position: relative; }
.chat-friend-item:hover { background: rgba(255,255,255,0.05); }
.chat-avatar-wrapper { position: relative; margin-right: 15px; }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); }
.chat-status-dot { position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #1a1a24; }
.chat-status-dot.online { background-color: #4ade80; box-shadow: 0 0 5px #4ade80; }
.chat-status-dot.offline { background-color: #888; }
.chat-friend-name { font-size: 15px; font-weight: 500; color: #eee; flex: 1; }
.chat-item-badge { background: var(--theme-blue); color: white; font-size: 11px; font-weight: bold; padding: 2px 8px; border-radius: 10px; }
.chat-current-friend { display: flex; align-items: center; gap: 10px; flex: 1; margin-left: 10px; }
.chat-current-friend .chat-avatar { width: 32px; height: 32px; border-width: 1px; }
.chat-friend-info h4 { margin: 0; font-size: 14px; font-weight: 600; color: white; }
.chat-messages-container { padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble-wrapper { display: flex; max-width: 85%; }
.chat-bubble { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.4; word-break: break-word; }
.chat-them { align-self: flex-start; }
.chat-them .chat-bubble { background: rgba(255,255,255,0.1); color: #ddd; border-bottom-left-radius: 4px; }
.chat-me { align-self: flex-end; }
.chat-me .chat-bubble { background: var(--theme-blue); color: white; border-bottom-right-radius: 4px; box-shadow: 0 4px 10px var(--theme-blue-dim); }
.chat-footer { padding: 15px; border-top: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.2); }
#chat-form { display: flex; gap: 10px; background: rgba(0,0,0,0.3); border-radius: 20px; padding: 4px; border: 1px solid rgba(255,255,255,0.1); }
#chat-input { flex: 1; background: transparent; border: none; outline: none; color: white; padding: 8px 15px; font-size: 14px; font-family: 'Outfit', sans-serif; }
.chat-send-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--theme-blue); border: none; color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s; }
.chat-send-btn:hover { transform: scale(1.1); }
.chat-loading, .chat-empty { text-align: center; color: #888; padding: 30px 20px; font-size: 14px; font-style: italic; }

