* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }
body { height: 100vh; background: url('images/background.jpg') no-repeat center center fixed; background-size: cover; overflow: hidden; }
#boot-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: black; display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 1s ease; }
#boot-screen img { max-width: 100%; max-height: 100%; }

/* --- TASKBAR --- */
.taskbar { position: fixed; bottom: 0; width: 100%; height: 48px; background: rgba(0, 70, 140, 0.5); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-top: 1px solid rgba(255, 255, 255, 0.3); display: flex; justify-content: space-between; align-items: center; z-index: 500; box-shadow: 0 -2px 10px rgba(0,0,0,0.3); }

.start-button { height: 100%; width: 62px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

.start-button:hover .start-icon {
    content: url('images/startHover.png');
    transform: scale(1.1); 
}

.start-button:active .start-icon { transform: scale(1.1); }

.start-icon { 
    max-height: 82%; max-width: 82%; 
    object-fit: contain; display: block;
    transition: transform 0.1s ease-out; 
}

/* --- TASKBAR APPS --- */
.taskbar-apps { display: flex; gap: 4px; height: 100%; align-items: center; margin-left: 10px; flex-grow: 1; }

.taskbar-icon { 
    position: relative; 
    width: 56px; 
    height: 85%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    border-radius: 4px; 
    
    background: rgba(255, 255, 255, 0.12); 
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 5px rgba(255,255,255,0.1);

    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, margin 0.25s, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1); 
}

.taskbar-icon img { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }

.taskbar-icon:hover { background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.45); box-shadow: inset 0 0 8px rgba(255,255,255,0.3); }

/* Front-most active app */
.taskbar-icon.active { background: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 15px rgba(255,255,255,0.5); }

/* --- STACKED GROUPING EFFECT (Windows 7 Style) --- */
.taskbar-icon.stacked {
    margin-right: 8px; /* Space for the two thin tabs */
}

/* Layer 1 (Middle Tab) */
.taskbar-icon.stacked::after {
    content: '';
    position: absolute;
    top: -1px; bottom: -1px; /* Match exact vertical bounds of the main icon */
    right: -4px; width: 4px; /* Sticks out exactly 4px */
    background: inherit; 
    border: inherit; 
    border-left: 1px solid rgba(0, 0, 0, 0.35); /* Crisp dark groove separator */
    border-radius: 0 4px 4px 0;
    z-index: -1;
}

/* Layer 2 (Back Tab) */
.taskbar-icon.stacked::before {
    content: '';
    position: absolute;
    top: -1px; bottom: -1px; /* Match exact vertical bounds of the main icon */
    right: -8px; width: 4px; /* Sticks out another 4px */
    background: inherit; 
    border: inherit; 
    border-left: 1px solid rgba(0, 0, 0, 0.35); /* Crisp dark groove separator */
    border-radius: 0 4px 4px 0;
    z-index: -2;
}

/* Entry/Exit Animations */
@keyframes icon-pop {
    0% { opacity: 0; transform: translateY(48px); } 
    100% { opacity: 1; transform: translateY(0); }
}
.taskbar-icon.entering {
    animation: icon-pop 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.taskbar-icon.closing {
    transform: translateY(48px) !important; 
    opacity: 0 !important; 
    pointer-events: none; 
}


.system-tray { padding: 0 15px; height: 100%; display: flex; align-items: center; color: white; text-shadow: 0 0 3px black; font-size: 12px; text-align: right; cursor: pointer; transition: background 0.2s; user-select: none; flex-shrink: 0; }
.system-tray:hover { background: rgba(255,255,255,0.1); }
#clock #time { font-weight: bold; }

/* --- START MENU --- */
#start-menu { position: fixed; bottom: 48px; left: 0; width: 480px; height: 580px; background: linear-gradient(135deg, rgba(30, 80, 150, 0.65), rgba(10, 40, 90, 0.7)); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 0 8px 0 0; z-index: 1000; padding: 8px 0px 6px 6px; box-shadow: 0 0 20px rgba(0,0,0,0.6); transition: transform 0.25s ease, opacity 0.25s ease; user-select: none; }
.start-menu-hidden { transform: translateY(30px); opacity: 0; pointer-events: none; }
.start-menu-content { display: flex; height: 100%; }
.start-left { width: 57%; background: white; padding: 2px 0; display: flex; flex-direction: column; border-radius: 5px; margin: 2px; overflow: hidden; }
.start-item { width: 100%; display: flex; align-items: center; padding: 10px 15px; cursor: pointer; transition: background 0.1s; color: #222; font-size: 14px; }
.start-item:hover { background: linear-gradient(to bottom, #eaf6ff, #d8eaff); }
.start-item img { width: 36px; height: 36px; margin-right: 12px; object-fit: contain; flex-shrink: 0; }
.start-right { width: 43%; padding: 5px 0; display: flex; flex-direction: column; align-items: flex-start; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.user-profile { width: 100%; display: flex; flex-direction: column; align-items: center; margin-bottom: 15px; padding: 0 15px; }
.profile-frame { width: 72px; height: 72px; background: rgba(255, 255, 255, 0.2); padding: 5px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); border: 1px solid rgba(255, 255, 255, 0.4); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.profile-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.user-name { font-weight: 400; font-size: 16px; margin-top: 2px; }
.start-right-links { width: 100%; display: flex; flex-direction: column; }
.start-right-links a { display: block; width: 100%; color: white; text-decoration: none; padding: 8px 15px; font-size: 14px; transition: background 0.1s; }
.start-right-links a:hover { background: rgba(255, 255, 255, 0.15); }

/* --- OTHER UI ELEMENTS --- */
#calendar-widget { position: fixed; bottom: 48px; right: 0; width: 320px; background: linear-gradient(135deg, rgba(30, 80, 150, 0.65), rgba(10, 40, 90, 0.7)); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 8px 0 0 0; z-index: 1000; padding: 15px; box-shadow: 0 0 20px rgba(0,0,0,0.6); color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.8); transition: transform 0.25s ease, opacity 0.25s ease; user-select: none; }
.widget-hidden { transform: translateY(30px); opacity: 0; pointer-events: none; }
.widget-clock-area { text-align: center; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; }
#big-clock-time { font-size: 32px; font-weight: 300; }
#big-clock-day { font-size: 14px; opacity: 0.9; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font-size: 12px; }
.calendar-grid div { padding: 5px; border-radius: 3px; }
.calendar-grid .today { background: rgba(255,255,255,0.3); outline: 1px solid white; }

.desktop-icons { position: absolute; top: 20px; left: 0; z-index: 5; display: flex; flex-direction: column; gap: 25px; user-select: none; }
.icon { width: 140px; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; color: white; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); font-size: 13px; }
.icon img { width: 60px; display: block; margin: 0 auto 5px; filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.4)); transition: transform 0.2s ease; }
.icon span { width: 100%; display: block; line-height: 1.2; word-wrap: break-word; }
.icon:hover img { transform: scale(1.1); } 

.scene { display: none; height: 100vh; width: 100vw; position: absolute; top: 0; left: 0; z-index: 10; pointer-events: none; }
.scene.active { display: block; }

.window-aero { pointer-events: auto; background: rgba(0, 150, 160, 0.25); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 12px; padding: 8px; padding-top: 0; box-shadow: 0 10px 40px rgba(0,0,0,0.4); position: absolute; user-select: none; display: flex; flex-direction: column; min-width: 320px; min-height: 240px; }
.title-bar-aero { display: flex; justify-content: space-between; align-items: center; padding: 0 0 0 5px; color: white; font-size: 14px; text-shadow: 0 0 5px black; cursor: grab; height: 34px; flex-shrink: 0; }
.title-left { display: flex; align-items: center; }
.aero-controls { display: flex; height: 100%; align-items: flex-start; z-index: 110; }
.btn-close-aero { width: 48px; height: 24px; border: 1px solid #701010; border-top: none; border-radius: 0 0 4px 4px; background: linear-gradient(to bottom, #e39090 0%, #d15a5a 45%, #c63333 50%, #9d1a1a 100%); color: white; font-size: 15px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 1px rgba(255,255,255,0.4); transition: filter 0.2s; margin-right: 4px; }
.btn-close-aero:hover { filter: brightness(0.7) contrast(1.2); }

.menu-bar { 
    background: linear-gradient(to bottom, #fcfdfe 0%, #edf2f8 48%, #e1e7ed 50%, #edf3f8 100%); 
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.9);
    padding: 2px 8px; 
    font-size: 12px; 
    display: flex; 
    align-items: center; 
    gap: 2px; 
    border: 1px solid #7f9db9; 
    border-bottom: 1px solid #b6bccc; 
    border-radius: 5px 5px 0 0; 
    color: #1e395b; 
    flex-shrink: 0; 
    position: relative; 
    z-index: 110; 
}
.menu-bar span { cursor: pointer; padding: 3px 6px; display: block; border: 1px solid transparent; border-radius: 4px; transition: background 0.1s, border 0.1s; }
.menu-bar span:hover, .menu-bar span.active { 
    background: linear-gradient(to bottom, #eaf6fd 0%, #d9f0fc 45%, #bee6fd 50%, #a7d9f5 100%); 
    border: 1px solid #7da2ce; 
    box-shadow: inset 0 0 1px rgba(255,255,255,0.8);
    outline: none; 
}

/* Dropdown CSS for Notepad menu */
.menu-dropdown { position: relative; display: flex; align-items: center; }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: -8px; background: #fdfdfd; min-width: 150px;
    /* UPDATED: Added border-radius for rounded corners */
    border: 1px solid #97b5c6; border-radius: 4px; box-shadow: 2px 2px 5px rgba(0,0,0,0.2); z-index: 1000; padding: 2px 0;
}
.dropdown-content.show { display: block; }
.dropdown-content div { padding: 4px 14px; font-size: 12px; color: #333; cursor: pointer; display: flex; align-items: center; }
.dropdown-content div:hover { background: #cce8ff; }

.title-icon { width: 16px; height: 16px; margin-right: 5px; vertical-align: middle; object-fit: contain; }
.window-content { background: white; border: 1px solid #7f9db9; border-top: none; flex-grow: 1; overflow: auto; border-radius: 0; }

.notepad .window-content { border-radius: 0 0 5px 5px; }

.text-box { padding: 20px; font-size: 20px; color: #222; line-height: 1.4; user-select: text; outline: none; }

/* MEDIA PLAYER AREA */
.photo-area { background: black; min-height: 150px; display: flex; align-items: center; justify-content: center; flex-grow: 1; overflow: hidden; padding: 0; }
.main-photo { width: 100%; height: 100%; object-fit: contain; }

.photo-controls { 
    background: linear-gradient(to bottom, #e3eef9, #b1cbe4); 
    display: flex; justify-content: center; align-items: center; 
    gap: 6px; 
    padding: 12px; 
    border: 1px solid #7f9db9; 
    border-top: none; 
    border-radius: 0 0 5px 5px; 
    flex-shrink: 0; position: relative; 
}

/* Fullscreen Button */
.fullscreen-btn {
    position: absolute; 
    left: 20px; 
    width: 28px; 
    height: 28px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    border-radius: 8px; 
    transition: background 0.15s, transform 0.1s;
}
.fullscreen-btn:hover { background: rgba(255,255,255,0.4); }
.fullscreen-btn:active { transform: scale(0.95); }
.fullscreen-btn svg { width: 22px; height: 22px; fill: none; stroke: #333; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0px rgba(255,255,255,0.8)); }

/* Base button properties */
.control-circle { 
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: filter 0.15s, transform 0.15s ease-out; 
}

/* Custom Center Play/Pause Button */
.control-circle.play-pause {
    width: 38px; height: 38px; border-radius: 50%; 
    background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 50%), radial-gradient(circle at center, rgb(80, 210, 255) 0%, rgb(0, 30, 180) 100%); 
    background-blend-mode: screen, normal; 
    border: 1px solid rgb(0, 30, 180); 
    box-shadow: inset 0 2px 2px rgba(255,255,255,0.8), inset 0 -1px 2px rgba(0,0,0,0.3), 0 3px 5px rgba(0,0,0,0.5); 
    z-index: 2; 
}
.control-circle.play-pause svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4)); }

/* Custom Windows 7 Glassy Oval Previous/Next Buttons */
.control-circle.previous, .control-circle.next {
    width: 46px; height: 26px; 
    background: linear-gradient(to bottom, #eef1f4 0%, #ced4d9 45%, #bac2c8 50%, #dde2e6 100%);
    background-blend-mode: normal;
    border: 1px solid #9baab5; 
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.8), 0 1px 3px rgba(0,0,0,0.2); 
    z-index: 1;
}

/* Asymmetrical radii for the "hugging" pill shape */
.control-circle.previous { border-radius: 13px 4px 4px 13px; }
.control-circle.next { border-radius: 4px 13px 13px 4px; }

/* Force blue SVG symbols and crisp inset shadow */
.control-circle.previous svg, .control-circle.next svg { 
    width: 16px; height: 16px; 
    filter: drop-shadow(0 1px 0px rgba(255,255,255,0.8)); 
}
.control-circle.previous svg path, .control-circle.next svg path {
    fill: #004eb3 !important; 
}

.control-circle:hover { filter: brightness(1.1) contrast(1.1); }
.control-circle:active, .control-circle.pressed { transform: translateY(1px) scale(0.95); filter: brightness(0.9); }
.control-circle.disabled { filter: grayscale(1) opacity(0.5); cursor: not-allowed; }
.control-circle.disabled:hover { filter: grayscale(1) opacity(0.5); }
.control-circle.disabled:active { transform: none; }
.photo-info { position: absolute; right: 20px; font-size: 14px; font-weight: 600; color: #333; user-select: none; }

/* --- SWIPE ANIMATIONS --- */
@keyframes swipe-next { 0% { transform: translateX(50px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes swipe-prev { 0% { transform: translateX(-50px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.swipe-next { animation: swipe-next 0.3s ease-out backwards; } 
.swipe-prev { animation: swipe-prev 0.3s ease-out backwards; } 

/* Resizers & Window Positions */
.resizer { position: absolute; z-index: 100; }
.resizer.t { top: 0; left: 0; right: 52px; height: 6px; cursor: n-resize; }
.resizer.b { bottom: 0; left: 0; right: 0; height: 8px; cursor: s-resize; }
.resizer.l { left: 0; top: 0; bottom: 0; width: 8px; cursor: w-resize; }
.resizer.r { right: 0; top: 0; bottom: 0; width: 8px; cursor: e-resize; }
.resizer.tl { top: 0; left: 0; width: 14px; height: 14px; cursor: nw-resize; }
.resizer.tr { top: 0; right: 0; width: 14px; height: 14px; cursor: ne-resize; }
.resizer.bl { bottom: 0; left: 0; width: 14px; height: 14px; cursor: sw-resize; }
.resizer.br { bottom: 0; right: 0; width: 14px; height: 14px; cursor: se-resize; }

/* --- Welcome Scene --- */
.welcome-window { 
    top: 80px; 
    left: calc(50vw - 530px); 
    width: 630px; 
    height: 420px; 
    z-index: 2; 
}

/* --- About Me Scene --- */
.aboutme-notepad { 
    top: 170px; 
    left: calc(50vw - 540px); 
    width: 760px; 
    height: 450px; 
    z-index: 3; 
}

.aboutme-viewer { 
    top: 40px; 
    left: calc(50vw + 200px); 
    width: 420px; 
    height: 480px; 
    z-index: 1; 
}

/* --- Fiserv Internship Scene --- */
.notepad-right { 
    top: 60px; 
    left: calc(50vw - 550px); 
    width: 670px; 
    height: 620px; 
    z-index: 2; 
}

.viewer-left { 
    top: 100px; 
    left: calc(50vw + 160px); 
    width: 480px; 
    height: 550px; 
    z-index: 1; 
}

/* --- Black Box Internship Scene --- */
.viewer-right { 
    top: 30px; 
    left: calc(50vw - 540px); 
    width: 420px; 
    height: 480px; 
    z-index: 1; 
}

.notepad-left { 
    top: 130px; 
    left: calc(50vw - 90px); 
    width: 730px; 
    height: 550px; 
    z-index: 2; 
}