/* =========================================
   Interactive CV — Main Styles
   Design: Simple · Modern · Elegant
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Design Tokens ─────────────────────── */
:root {
    --bg-base:       #070b14;
    --bg-surface:    #0e1525;
    --bg-surface2:   #162138;
    --bg-surface3:   #1d2b47;
    --border:        rgba(91, 141, 239, 0.16);
    --border-bright: rgba(91, 141, 239, 0.42);
    --accent:        #5b8def;
    --accent-bright: #7baeff;
    --text:          #e2e8f6;
    --text-muted:    #7a8fad;
    --text-dim:      #4a607d;
    --green:         #4ade80;
    --amber:         #fbbf24;
    --violet:        #a78bfa;
    --cyan:          #22d3ee;
    --red:           #ef4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    background: var(--bg-base);
    height: 100vh;
    color: var(--text);
}

/* ─── Screen Management ──────────────────── */
.screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* =========================================
   BOOT SCREEN
   ========================================= */
#boot-screen {
    background: var(--bg-base);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.boot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 580px;
    padding: 40px;
}

.boot-logo {
    text-align: center;
    margin-bottom: 28px;
    animation: logoFadeIn 0.8s ease;
}

.kali-dragon {
    display: inline-block;
    animation: dragonPulse 3s ease-in-out infinite;
}

.boot-branding {
    text-align: center;
    margin-bottom: 44px;
    animation: textFadeIn 1s ease 0.3s both;
}

.boot-branding h1 {
    color: var(--text);
    font-size: 34px;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: 5px;
    font-family: 'Inter', sans-serif;
}

.kali-text {
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.boot-edition {
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.boot-terminal {
    width: 100%;
    max-width: 480px;
    margin-bottom: 28px;
    padding: 18px 22px;
    background: rgba(14, 21, 37, 0.8);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.terminal-line {
    margin: 7px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: terminalFadeIn 0.4s ease forwards;
    opacity: 0;
}

.terminal-line:nth-child(1) { animation-delay: 0.8s; }
.terminal-line:nth-child(2) { animation-delay: 1.8s; }
.terminal-line:nth-child(3) { animation-delay: 2.8s; }

.terminal-prompt { color: var(--text-dim); }
.terminal-ok     { color: var(--green); font-weight: 600; }
.terminal-text   { color: var(--text); margin-left: 2px; }

.boot-loading {
    width: 100%;
    max-width: 480px;
}

.loading-bar-container {
    background: rgba(0, 0, 0, 0.35);
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.loading-bar {
    position: relative;
    height: 3px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-radius: 3px;
}

.loading-block {
    position: absolute;
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-bright), transparent);
    border-radius: 3px;
    animation: loadingMove 2.2s linear infinite;
}

.loading-block:nth-child(1) { animation-delay: 0s; }
.loading-block:nth-child(2) { animation-delay: 0.5s; }
.loading-block:nth-child(3) { animation-delay: 1s; }

/* =========================================
   LOGIN SCREEN
   ========================================= */
#login-screen {
    background: var(--bg-base);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-background {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 25% 35%, rgba(91, 141, 239, 0.09) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 75% 65%, rgba(167, 139, 250, 0.07) 0%, transparent 60%),
        url('../images/login-bg.png') center center / cover no-repeat,
        var(--bg-base);
}

.login-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
}

.login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 1;
}

.login-box {
    background: rgba(14, 21, 37, 0.78);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px;
    min-width: 420px;
    box-shadow:
        0 0 0 1px rgba(91, 141, 239, 0.06),
        0 28px 70px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    animation: fadeInUp 0.6s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.kali-logo-small {
    display: inline-block;
    margin-bottom: 14px;
    animation: dragonPulse 3s ease-in-out infinite;
}

.login-title {
    color: var(--text);
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.user-selection {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(91, 141, 239, 0.07);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.user-card:hover {
    background: rgba(91, 141, 239, 0.14);
    border-color: var(--border-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(91, 141, 239, 0.14);
}

.user-icon-wrapper { flex-shrink: 0; }

.user-avatar-image {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(91, 141, 239, 0.45);
    object-fit: cover;
}

.user-avatar {
    width: 56px; height: 56px;
    background: rgba(91, 141, 239, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(91, 141, 239, 0.4);
}

.user-info { flex: 1; text-align: left; }

.user-name {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 3px;
}

.user-subtitle {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 300;
}

.login-input-group {
    display: flex;
    gap: 8px;
}

.login-password {
    flex: 1;
    padding: 11px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.login-password:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.12);
}

.login-password::placeholder { color: var(--text-dim); }

.login-button {
    padding: 11px 20px;
    background: var(--accent);
    border: none;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-button:hover {
    background: var(--accent-bright);
    box-shadow: 0 4px 18px rgba(91, 141, 239, 0.45);
    transform: translateY(-1px);
}

.login-button:active { transform: translateY(0); }

.login-footer {
    position: absolute;
    bottom: 28px;
    right: 28px;
    z-index: 2;
}

.login-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(14, 21, 37, 0.65);
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-muted);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(10px);
}

.login-option:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.option-icon { display: flex; align-items: center; justify-content: center; }

/* =========================================
   DESKTOP
   ========================================= */
#desktop {
    background: url('../images/wallpaper.png') center center / cover no-repeat, var(--bg-base);
    position: relative;
    overflow: hidden;
}

/* Ambient glow layers */
#desktop::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 12% 20%, rgba(91, 141, 239, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 55% 55% at 88% 80%, rgba(167, 139, 250, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 45% 65% at 50% 50%, rgba(34, 211, 238, 0.04) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* Subtle grid overlay */
#desktop::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(91, 141, 239, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 141, 239, 0.045) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

/* ─── Desktop Icons ──────────────────────── */
.desktop-icons {
    position: relative;
    z-index: 1;
    padding: 22px 18px;
    display: grid;
    grid-template-columns: 84px;
    gap: 6px;
    height: calc(100vh - 52px);
    align-content: start;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px 8px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.2s ease;
    user-select: none;
    gap: 7px;
}

.desktop-icon:hover {
    background: rgba(91, 141, 239, 0.1);
    border-color: rgba(91, 141, 239, 0.22);
    backdrop-filter: blur(8px);
}

.desktop-icon.selected {
    background: rgba(91, 141, 239, 0.18);
    border-color: rgba(91, 141, 239, 0.48);
}

.icon-image {
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s ease;
}

.desktop-icon:hover .icon-image {
    transform: scale(1.06) translateY(-2px);
}

.icon-label {
    color: var(--text);
    font-size: 11px;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.6);
    word-wrap: break-word;
    max-width: 78px;
    font-weight: 400;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}

/* ─── Taskbar ────────────────────────────── */
.taskbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 52px;
    background: rgba(5, 8, 16, 0.93);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 1000;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(24px);
    gap: 8px;
}

.start-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(91, 141, 239, 0.12);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0 16px;
    height: 36px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.start-button:hover {
    background: rgba(91, 141, 239, 0.22);
    border-color: var(--border-bright);
    box-shadow: 0 0 18px rgba(91, 141, 239, 0.18);
}

.start-button:active {
    background: rgba(91, 141, 239, 0.28);
    transform: scale(0.98);
}

.start-logo {
    width: 16px; height: 16px;
    flex-shrink: 0;
}

.taskbar-divider {
    width: 1px;
    height: 26px;
    background: var(--border);
    flex-shrink: 0;
}

.taskbar-windows {
    flex: 1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 0 4px;
}

.taskbar-windows::-webkit-scrollbar { height: 0; }

.taskbar-window {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(91, 141, 239, 0.07);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
    height: 36px;
    min-width: 130px;
    max-width: 190px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

.taskbar-window:hover {
    background: rgba(91, 141, 239, 0.14);
    border-color: var(--border-bright);
    color: var(--text);
}

.taskbar-window.active {
    background: rgba(91, 141, 239, 0.2);
    border-color: rgba(91, 141, 239, 0.5);
    color: var(--text);
    box-shadow: 0 0 14px rgba(91, 141, 239, 0.18);
}

.taskbar-window-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    height: 36px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 9px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.tray-icons {
    display: flex;
    gap: 8px;
}

.tray-icon {
    font-size: 16px;
    cursor: pointer;
    opacity: 0.65;
    transition: all 0.2s ease;
}

.tray-icon:hover {
    opacity: 1;
    transform: scale(1.12);
}

.clock {
    padding-left: 10px;
    border-left: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
    text-align: right;
}

.clock-time {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.clock-date {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
}

/* ─── Start Menu ─────────────────────────── */
.start-menu {
    position: fixed;
    bottom: 58px;
    left: 10px;
    width: 390px;
    background: rgba(11, 17, 32, 0.96);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(91, 141, 239, 0.06),
        0 28px 72px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(28px);
    display: none;
    z-index: 999;
    overflow: hidden;
}

.start-menu.active {
    display: block;
    animation: slideUp 0.22s ease;
}

.start-menu-header {
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.13) 0%, rgba(122, 142, 255, 0.07) 100%);
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.start-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.start-user-avatar {
    width: 42px; height: 42px;
    background: rgba(91, 141, 239, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(91, 141, 239, 0.38);
    flex-shrink: 0;
}

.start-user-name {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.start-menu-body {
    display: flex;
}

.start-menu-left {
    flex: 1;
    padding: 8px 0;
}

.start-menu-right {
    width: 160px;
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.18);
    border-left: 1px solid var(--border);
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 18px;
    cursor: pointer;
    transition: all 0.18s ease;
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.start-menu-item:hover {
    background: rgba(91, 141, 239, 0.14);
    color: var(--text);
    padding-left: 22px;
}

.menu-icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.start-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 18px;
}

.start-menu-footer {
    background: rgba(0, 0, 0, 0.22);
    padding: 10px;
    border-top: 1px solid var(--border);
}

.start-footer-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 9px;
    padding: 9px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(239, 68, 68, 0.75);
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-footer-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.38);
    color: #ef4444;
}

.start-footer-btn:active { transform: scale(0.98); }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes logoFadeIn {
    from { opacity: 0; transform: scale(0.88) translateY(-12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes dragonPulse {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(91, 141, 239, 0.5)); }
    50%       { filter: drop-shadow(0 0 26px rgba(123, 174, 255, 0.85)); }
}

@keyframes textFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes terminalFadeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes loadingMove {
    0%   { left: -90px; }
    100% { left: calc(100% + 90px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(14px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
