* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-image: url('wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 13px;
    color: white;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-bar span {
    margin-right: 1.5rem;
    cursor: pointer;
}

.language-switch {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.language-switch:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-switch span {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
}

.active-lang {
    color: #fff;
}

.inactive-lang {
    color: rgba(255, 255, 255, 0.5);
}

#clock {
    margin-left: auto;
    margin-right: 0;
    font-weight: 500;
}

.weather-widget {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 240px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.25rem;
    color: white;
    z-index: 900;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.weather-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.weather-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.weather-location {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.weather-temp {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.weather-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.weather-details {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-detail {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 12px;
    opacity: 0.9;
}

.dock {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dock-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 24px;
    color: white;
    position: relative;
}

.dock-icon:hover {
    transform: scale(1.2) translateY(-10px);
}

.dock-icon.about { background: linear-gradient(135deg, #667eea, #764ba2); }
.dock-icon.globe { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.dock-icon.terminal { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.dock-icon.calendar { background: linear-gradient(135deg, #fa709a, #fee140); }
.dock-icon.mail { background: linear-gradient(135deg, #a8edea, #fed6e3); }

.window {
    position: absolute;
    width: 700px;
    max-width: 90vw;
    height: 500px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    opacity: 0.9;

}

.window.active {
    display: flex;
    opacity: 1;
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.window-header {
    height: 40px;
    background: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    cursor: move;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.window-control.close { 
    background: #ff5f57;
}
.window-control.minimize { 
    background: #febc2e;
}
.window-control.maximize { 
    background: #28c840;
}

.window-control.close:hover {
    background: #ff4136;
}
.window-control.minimize:hover {
    background: #f5a623;
}
.window-control.maximize:hover {
    background: #1fb834;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.window-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #ffffff;
}

.window-body::-webkit-scrollbar,
.content::-webkit-scrollbar,
.terminal-body::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.window-body::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track,
.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.window-body::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb,
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.window-body::-webkit-scrollbar-thumb:hover,
.content::-webkit-scrollbar-thumb:hover,
.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.window-body,
.content,
.terminal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

.sidebar {
    width: 180px;
    background: rgba(246, 246, 248, 0.7);
    backdrop-filter: blur(20px);
    padding: 0.75rem 0.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.sidebar-title {
    font-size: 11px;
    font-weight: 600;
    color: #86868b;
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-item {
    padding: 0.4rem 0.75rem;
    margin: 0.15rem 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s;
}

.sidebar-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.sidebar-item.active {
    background: #007AFF;
    color: white;
}

.sidebar-item .icon {
    width: 16px;
    text-align: center;
}

.content {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    color: #1d1d1f;
    background: #ffffff;
}

.content h2 {
    font-size: 24px;
    margin-bottom: 1rem;
    color: #000000;
}

.content h3 {
    font-size: 18px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #666;
}

.content ul {
    margin-left: 1.5rem;
    color: #666;
}

.content li {
    margin: 0.5rem 0;
}

.terminal-body {
    background: #1e1e1e;
    padding: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.terminal-content {
    padding: 1.5rem;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #d4d4d4;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 1.5rem;
}

.prompt {
    color: #4a9eff;
    font-weight: normal;
}

.command {
    color: #d4d4d4;
}

.terminal-section {
    margin: 1.2rem 0 1.5rem 0;
}

.section-title {
    color: #ffffff;
    font-weight: normal;
    margin-bottom: 0.5rem;
    font-size: 13px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-left: 0.5rem;
}

.skill-tag {
    color: #4ec9b0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    font-size: 13px;
}

.skill-tag::before {
    content: '• ';
    color: #4ec9b0;
}

.skill-tag::after {
    content: ' ';
}

.cursor-blink {
    color: #d4d4d4;
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card-new {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1.5px solid #e5e5e7;
    transition: all 0.2s;
}

.project-card-new:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #d1d1d6;
}

.tech-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.contact-info {
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 0.3rem;
}

.contact-info p {
    margin: 0.3rem 0;
    font-size: 16px;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    border: 1.5px solid;
}

.linkedin-button {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.linkedin-button:hover {
    background: #005885;
    border-color: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.github-button {
    background: #24292e;
    color: white;
    border-color: #24292e;
}

.github-button:hover {
    background: #1a1e22;
    border-color: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
}

.social-button svg {
    flex-shrink: 0;
}