* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ubuntu-orange: #E95420;
    --ubuntu-purple: #772953;
    --ubuntu-dark: #2C001E;
    --ubuntu-aubergine: #77216F;
    --panel-bg: rgba(0, 0, 0, 0.7);
    --window-bg: #303030;
    --window-header: #3C3C3C;
    --window-border: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #999999;
    --accent: #E95420;
}

body {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ubuntu-dark) 0%, var(--ubuntu-purple) 50%, var(--ubuntu-aubergine) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-container {
    text-align: center;
    color: var(--text-light);
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-name {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
}

.password-field {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px;
    width: 300px;
    margin: 0 auto;
}

.password-field input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 16px;
    outline: none;
}

.password-field input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ubuntu-orange);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #d4470f;
}

.login-hint {
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.login-footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    color: var(--text-light);
}

.power-options {
    display: flex;
    gap: 15px;
}

.power-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}

.power-btn:hover {
    color: white;
}

.datetime {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Desktop */
.desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 75%, #0f0f23 100%);
    display: none;
}

.desktop.active {
    display: block;
}

/* Top Panel */
.top-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: var(--panel-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    color: var(--text-light);
    font-size: 13px;
    z-index: 100;
}

.panel-left .activities {
    padding: 4px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.panel-left .activities:hover {
    background: rgba(255, 255, 255, 0.1);
}

.panel-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.panel-right i {
    cursor: pointer;
    padding: 4px;
}

.panel-right i:hover {
    color: var(--ubuntu-orange);
}

#logoutBtn {
    color: #ff6b6b;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 50px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.15);
}

.desktop-icon.selected {
    background: rgba(255, 255, 255, 0.25);
}

.desktop-icon .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ubuntu-orange), #f97316);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.desktop-icon .icon.folder {
    background: linear-gradient(135deg, #facc15, #f59e0b);
}

.desktop-icon .icon.home {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.desktop-icon .icon.about {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.desktop-icon .icon.experience {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.desktop-icon .icon.skills {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.desktop-icon .icon.projects {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.desktop-icon .icon.contact {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.desktop-icon span {
    color: white;
    font-size: 11px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    max-width: 70px;
}

/* Windows */
.windows-container {
    position: fixed;
    top: 28px;
    left: 0;
    right: 0;
    bottom: 60px;
    pointer-events: none;
}

.window {
    position: absolute;
    min-width: 400px;
    min-height: 300px;
    background: var(--window-bg);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

.window.minimized {
    display: none;
}

.window-header {
    background: var(--window-header);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    cursor: move;
    user-select: none;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.window-control {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.window-control.close {
    background: #ff5f57;
}

.window-control.minimize {
    background: #ffbd2e;
}

.window-control.maximize {
    background: #28c840;
}

.window-control:hover {
    filter: brightness(1.2);
}

.window-title {
    flex: 1;
    color: var(--text-light);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-title i {
    font-size: 16px;
}

.window-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    color: var(--text-light);
    background: #2b2b2b;
}

/* File Explorer Style */
.file-explorer {
    display: flex;
    height: 100%;
}

.sidebar {
    width: 180px;
    background: #252525;
    padding: 10px 0;
    border-right: 1px solid #404040;
}

.sidebar-item {
    padding: 8px 15px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.sidebar-item.active {
    background: rgba(233, 84, 32, 0.2);
    color: var(--ubuntu-orange);
}

.file-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Content Styles */
.content-section h2 {
    color: var(--ubuntu-orange);
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid var(--ubuntu-orange);
    padding-bottom: 10px;
}

.content-section h3 {
    color: var(--text-light);
    margin: 15px 0 10px;
    font-size: 18px;
}

.content-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: #383838;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card .number {
    font-size: 32px;
    color: var(--ubuntu-orange);
    font-weight: bold;
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 5px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.expertise-card {
    background: #383838;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--ubuntu-orange);
}

.expertise-card i {
    font-size: 24px;
    color: var(--ubuntu-orange);
    margin-bottom: 10px;
}

.expertise-card h4 {
    color: var(--text-light);
    margin-bottom: 8px;
}

.expertise-card p {
    font-size: 13px;
    margin: 0;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    border-left: 2px solid var(--ubuntu-orange);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--ubuntu-orange);
    border-radius: 50%;
}

.timeline-item h4 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.timeline-item .date {
    color: var(--ubuntu-orange);
    font-size: 12px;
    margin-bottom: 5px;
}

.timeline-item .company {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.timeline-item ul {
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.timeline-item li {
    margin-bottom: 5px;
}

.skills-category {
    margin-bottom: 25px;
}

.skills-category h4 {
    color: var(--ubuntu-orange);
    margin-bottom: 15px;
    font-size: 16px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.skill-item {
    background: #383838;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.skill-item:hover {
    transform: translateY(-3px);
    background: #404040;
}

.skill-item i {
    font-size: 28px;
    color: var(--ubuntu-orange);
    margin-bottom: 8px;
}

.skill-item span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.project-card {
    background: #383838;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-3px);
}

.project-card h4 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.project-card p {
    font-size: 13px;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.project-tags span {
    background: var(--ubuntu-orange);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.contact-item {
    background: #383838;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.contact-item:hover {
    background: #404040;
}

.contact-item i {
    font-size: 24px;
    color: var(--ubuntu-orange);
}

.contact-item span {
    color: var(--text-light);
    font-size: 14px;
}

.education-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.education-card {
    background: #383838;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.education-card i {
    font-size: 32px;
    color: var(--ubuntu-orange);
}

.education-card h4 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.education-card p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.education-card .date {
    color: var(--ubuntu-orange);
    font-size: 12px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.cert-item {
    background: #383838;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cert-item i {
    font-size: 20px;
    color: var(--ubuntu-orange);
}

.cert-item span {
    font-size: 13px;
    color: var(--text-light);
}

/* Dock */
.dock {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dock-item {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.dock-item:hover {
    transform: scale(1.2) translateY(-5px);
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #252525;
}

::-webkit-scrollbar-thumb {
    background: #505050;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #606060;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-icons {
        flex-direction: row;
        flex-wrap: wrap;
        top: 40px;
        left: 10px;
        right: 10px;
        justify-content: center;
    }

    .window {
        min-width: 95vw;
        min-height: 60vh;
        left: 2.5vw !important;
        top: 40px !important;
    }

    .stat-grid,
    .expertise-grid,
    .skills-grid,
    .project-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}
