@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ✨ DARK THEME COLOR PALETTE ✨ */
:root {
    --background: url('bg.jpg');
    --window-bg: rgba(40, 40, 40, 0.6);
    --dock-bg: rgba(30, 30, 30, 0.4);
    --text-color: #e0e0e0;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --sidebar-bg: rgba(255, 255, 255, 0.05);
    --hover-bg: rgba(0, 122, 255, 0.3);
    --card-bg: rgba(255, 255, 255, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    cursor: default;
}

.hidden {
    display: none !important;
}

/* 1. Desk Setup */
.desk-container {
    width: 100%;
    height: 100vh;
    background: url('space.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    transition: opacity 0.5s ease-in-out;
}

.macbook {
    position: relative;
    transform: rotateX(25deg) rotateZ(0deg) scale(0.8);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    cursor: pointer;
}

.macbook:hover {
    transform: rotateX(15deg) scale(0.85);
}

.macbook img {
    width: 700px;
    filter: drop-shadow(0 30px 20px rgba(0,0,0,0.4));
}

.macbook .click-to-open {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.macbook:hover .click-to-open {
    opacity: 1;
}

/* Zoomed-in State */
.container.zoomed-in .desk-container {
    opacity: 0;
    pointer-events: none;
}

.container.zoomed-in .desktop-container {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* 2. Desktop Environment */
.desktop-container {
    width: 100%;
    height: 100vh;
    background: var(--background) center/cover no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1.5);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    pointer-events: none;
}

/* Top Menu Bar */
.top-menu-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 28px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-color);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.left-menu {
    display: flex;
    align-items: center;
}

.left-menu .app-name {
    font-weight: 600;
}

.right-menu .battery-status {
    margin-right: 15px;
}

/* Apple Menu & Shutdown Button */
.apple-menu {
    position: relative;
    display: flex;
    align-items: center;
}
.apple-menu .fa-apple {
    font-size: 18px;
    margin-right: 15px;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
}
.apple-menu:hover .fa-apple {
    background-color: rgba(255, 255, 255, 0.2);
}
.dropdown-menu {
    position: absolute;
    top: 28px;
    left: 0;
    background: rgba(40, 40, 40, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    list-style: none;
    padding: 5px;
    width: 200px;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.dropdown-menu li {
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.dropdown-menu li:hover {
    background-color: #007aff; /* macOS blue */
    color: white;
}

/* Windows */
.window {
    position: absolute;
    width: 800px;
    height: 500px;
    top: 100px;
    left: calc(50% - 400px);
    background: var(--window-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: both;
    min-width: 400px;
    min-height: 300px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.window.maximized {
    top: 28px !important; /* Below menu bar */
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 28px) !important; /* Full height minus menu bar */
    border-radius: 0;
    resize: none;
}


.window-header {
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    cursor: move;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls .control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.close { background-color: #ff5f56; }
.control.minimize { background-color: #ffbd2e; }
.control.maximize { background-color: #27c93f; }

.window-title {
    flex-grow: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.window-body {
    flex-grow: 1;
    display: flex;
    color: var(--text-color);
    overflow: hidden;
}

.sidebar {
    width: 200px;
    background: var(--sidebar-bg);
    padding: 20px 0;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    border-radius: 5px;
    margin: 2px 8px;
}

.sidebar ul li.active, .sidebar ul li:hover {
    background: var(--hover-bg);
}

.sidebar ul li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.content {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
}

.content-section hr { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 15px 0;}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.skill-item {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.skill-item i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

/* Projects Window */
.project-body {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    overflow-y: auto;
}

.project-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.project-card h4 { margin-bottom: 10px; }

/* Contact Window */
.contact-body {
    padding: 25px;
}
.contact-body a {
    display: block; 
    color: var(--text-color);
    text-decoration: none; 
    padding: 8px 0;
    transition: color 0.2s ease;
}
.contact-body a i {
    margin-right: 12px;
    width: 20px;
}
.contact-body a:hover {
    color: #fff; 
}


/* ✨ GLASS DOCK STYLING ✨ */
.dock {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    padding: 8px;
    height: 70px;
    background: var(--dock-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 22px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px var(--shadow-color);
    z-index: 1000;
}

.dock-item {
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    /* font-size: 28px; REMOVED/OVERRIDDEN for image icons */
    /* color: #fff; REMOVED/OVERRIDDEN for image icons */
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), margin-bottom 0.2s ease;
    cursor: pointer;
    position: relative;
    /* Optional: Add a subtle background to make the icons pop more */
    background-color: rgba(255, 255, 255, 0.1); 
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* NEW: Style for the custom image icons */
.dock-icon {
    width: 100%; /* Make image fill the dock-item container */
    height: 100%;
    object-fit: contain; /* Ensure the entire icon is visible without cropping */
    border-radius: 10px; /* Match the dock-item rounding */
}
/* END NEW STYLES */


.dock-item:hover {
    transform: scale(1.2) translateY(-10px);
    margin: 0 10px;
}

.dock-item[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 75px;
    background-color: rgba(0,0,0,0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
}

/* Dock Item "Is Open" Indicator */
.dock-item::before {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 6px;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dock-item.is-open::before {
    opacity: 1;
}

/* Shutdown Confirmation Overlay */
.overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.shutdown-dialog {
    background: var(--window-bg);
    backdrop-filter: blur(25px);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}
.shutdown-dialog h4 {
    font-size: 18px;
    margin-bottom: 8px;
}
.shutdown-dialog p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}
.dialog-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 10px;
    font-weight: 500;
    transition: background-color 0.2s;
}
#confirm-shutdown {
    background-color: #007aff;
    color: white;
}
#confirm-shutdown:hover {
    background-color: #0a84ff;
}
#cancel-shutdown {
    background-color: #555;
    color: white;
}
#cancel-shutdown:hover {
    background-color: #666;
}

/* --- BOOT SCREEN STYLING (NEW) --- */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black; /* Traditional Mac boot background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Ensure it's on top of everything */
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#boot-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.boot-logo {
    color: white;
    font-size: 5rem;
    margin-bottom: 50px;
    animation: pulse 1.5s infinite alternate;
}

.boot-loader {
    width: 250px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 1.5px;
    position: relative;
    overflow: hidden;
}

.boot-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: white;
    border-radius: 1.5px;
    /* Animation: Moves the white bar from left to right over 3s */
    animation: load-bar 3s linear forwards;
}

/* Keyframe Animations */
@keyframes load-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes pulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}
/*n*/




