/* ============================================
   TechHotelHub OS - Windows XP Style Portfolio
   ============================================ */

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

:root {
    --xp-blue: #0055E5;
    --xp-blue-dark: #003CA0;
    --xp-blue-light: #0078D7;
    --xp-green: #3C963C;
    --xp-taskbar: linear-gradient(to bottom, #1F5FC4, #1042A1, #0E3E9F, #1554CB);
    --xp-start-green: linear-gradient(to bottom, #3C963C, #2D7D2D);
    --xp-titlebar: linear-gradient(to bottom, #0058E6, #3A8CF2, #0058E6);
    --xp-titlebar-inactive: linear-gradient(to bottom, #7A96C4, #A0B8D8, #7A96C4);
    --xp-window-bg: #ECE9D8;
    --xp-window-border: #0054E3;
    --xp-sidebar-bg: linear-gradient(to bottom, #6B89BC, #4C6EA2);
    --font-system: 'Tahoma', 'Segoe UI', sans-serif;
    --shadow-window: 4px 4px 15px rgba(0,0,0,0.4);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-system);
    font-size: 12px;
    user-select: none;
    cursor: default;
}

/* ============================================
   BOOT SCREEN 
   ============================================ */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: bootFadeOut 0.5s ease-in 3.5s forwards;
}

.boot-content {
    text-align: center;
}

.boot-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    animation: bootPulse 2s ease-in-out infinite;
}

.windows-flag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    width: 56px;
    height: 56px;
    transform: rotate(-10deg);
}

.flag-piece {
    border-radius: 2px;
    animation: flagWave 1.5s ease-in-out infinite;
}

.flag-piece.red { background: #FF2E2E; animation-delay: 0s; }
.flag-piece.green { background: #38B938; animation-delay: 0.15s; }
.flag-piece.blue { background: #2E8AFF; animation-delay: 0.3s; }
.flag-piece.yellow { background: #FFD42E; animation-delay: 0.45s; }

@keyframes flagWave {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

.boot-title {
    color: white;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
}

.boot-xp {
    color: #FFD42E;
    font-weight: 700;
    font-size: 28px;
    vertical-align: super;
}

.boot-loading {
    width: 280px;
    margin: 0 auto;
}

.boot-progress {
    width: 100%;
    height: 20px;
    background: #1a1a2e;
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
    padding: 2px;
}

.boot-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2E8AFF, #38B938, #FFD42E);
    border-radius: 8px;
    width: 0%;
    animation: bootLoad 3s ease-in-out forwards;
}

@keyframes bootLoad {
    0% { width: 0%; }
    20% { width: 15%; }
    40% { width: 35%; }
    60% { width: 55%; }
    80% { width: 80%; }
    100% { width: 100%; }
}

.boot-text {
    color: #aaa;
    margin-top: 16px;
    font-size: 13px;
    animation: bootTextBlink 1s ease-in-out infinite;
}

@keyframes bootTextBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes bootFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

@keyframes bootPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ============================================
   DESKTOP
   ============================================ */
.desktop {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/wallpaper.png') center/cover no-repeat;
    z-index: 0;
}

/* ============================================
   DESKTOP ICONS
   ============================================ */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1;
}

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

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

.desktop-icon.selected {
    background: rgba(0,85,229,0.35);
    outline: 1px dotted rgba(255,255,255,0.6);
}

.desktop-icon .icon-image {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.4));
}

.desktop-icon .icon-label {
    color: white;
    font-size: 11px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9), 0 0 5px rgba(0,0,0,0.7);
    word-wrap: break-word;
    max-width: 72px;
    line-height: 1.3;
}

/* ============================================
   TASKBAR
   ============================================ */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: var(--xp-taskbar);
    display: flex;
    align-items: center;
    z-index: 9000;
    border-top: 1px solid #5B9BD5;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.3);
}

/* Start Button */
.start-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 14px 3px 8px;
    height: 32px;
    background: var(--xp-start-green);
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    font-family: var(--font-system);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
    transition: filter 0.1s;
}

.start-button:hover {
    filter: brightness(1.12);
}

.start-button:active {
    filter: brightness(0.9);
}

.start-flag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    width: 18px;
    height: 18px;
}

.mini-flag {
    border-radius: 1px;
}

.mini-flag.red { background: #FF2E2E; }
.mini-flag.green { background: #38B938; }
.mini-flag.blue { background: #2E8AFF; }
.mini-flag.yellow { background: #FFD42E; }

/* Taskbar Items */
.taskbar-items {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 3px;
    overflow: hidden;
}

.taskbar-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    height: 26px;
    background: linear-gradient(to bottom, #3C89D0, #2A6CB5);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 3px;
    color: white;
    font-size: 11px;
    cursor: pointer;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.15s;
}

.taskbar-item:hover {
    background: linear-gradient(to bottom, #5AA0E0, #3C89D0);
}

.taskbar-item.active {
    background: linear-gradient(to bottom, #D6DDE5, #B8C7D6);
    color: #222;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
    border-color: rgba(0,0,0,0.3);
}

.taskbar-item .tb-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* System Tray */
.system-tray {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 100%;
    background: linear-gradient(to bottom, #0F8AEB, #0C6ABD);
    border-left: 1px solid rgba(255,255,255,0.15);
}

.tray-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.15s;
}

.tray-icon:hover {
    opacity: 1;
}

.tray-separator {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
}

.tray-clock {
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    min-width: 45px;
    text-align: center;
}

/* ============================================
   START MENU
   ============================================ */
.start-menu {
    position: fixed;
    bottom: 36px;
    left: 0;
    width: 380px;
    background: white;
    border: 2px solid #0054E3;
    border-radius: 8px 8px 0 0;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.4);
    z-index: 9500;
    overflow: hidden;
    animation: startMenuSlide 0.15s ease-out;
}

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

.start-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(to right, #1F5FC4, #3A8CF2);
    color: white;
}

.start-avatar {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    border: 2px solid white;
    object-fit: cover;
}

.start-username {
    font-size: 14px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.start-menu-body {
    display: flex;
    min-height: 260px;
}

.start-menu-left {
    flex: 1;
    padding: 8px 0;
    background: white;
    border-right: 1px solid #ddd;
}

.start-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.1s;
}

.start-item:hover {
    background: var(--xp-blue);
    color: white;
}

.start-separator {
    height: 1px;
    background: #ddd;
    margin: 6px 10px;
}

.start-menu-right {
    width: 140px;
    padding: 8px 0;
    background: linear-gradient(to bottom, #D4DCE7, #C3CDD9);
}

.start-right-item {
    padding: 6px 14px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #222;
    transition: background 0.1s;
}

.start-right-item:hover {
    background: var(--xp-blue);
    color: white;
}

.start-separator-right {
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 6px 10px;
}

.start-menu-footer {
    display: flex;
    justify-content: flex-end;
    padding: 6px 14px;
    background: linear-gradient(to right, #1F5FC4, #3A8CF2);
    border-top: 1px solid #0054E3;
}

.start-footer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 11px;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 3px;
    transition: background 0.1s;
}

.start-footer-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* ============================================
   WINDOWS
   ============================================ */
.window {
    position: absolute;
    min-width: 400px;
    min-height: 300px;
    background: var(--xp-window-bg);
    border: 3px solid var(--xp-window-border);
    border-radius: 8px 8px 0 0;
    box-shadow: var(--shadow-window);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: windowOpen 0.2s ease-out;
}

@keyframes windowOpen {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - 36px) !important;
    border-radius: 0;
    border-width: 0;
}

/* Title Bar */
.window-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 4px 8px;
    background: var(--xp-titlebar);
    border-radius: 6px 6px 0 0;
    cursor: move;
    min-height: 30px;
}

.window.maximized .window-titlebar {
    border-radius: 0;
}

.titlebar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.titlebar-icon {
    flex-shrink: 0;
}

.titlebar-text {
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.titlebar-buttons {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.titlebar-btn {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: filter 0.1s;
}

.minimize-btn {
    background: linear-gradient(to bottom, #3B85DC, #2C6FBF);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.maximize-btn {
    background: linear-gradient(to bottom, #3B85DC, #2C6FBF);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.close-btn {
    background: linear-gradient(to bottom, #CF4A3F, #B5342A);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.titlebar-btn:hover {
    filter: brightness(1.2);
}

.titlebar-btn:active {
    filter: brightness(0.85);
}

/* Toolbar */
.window-toolbar {
    display: flex;
    gap: 2px;
    padding: 3px 8px;
    background: var(--xp-window-bg);
    border-bottom: 1px solid #ACA899;
    font-size: 11px;
}

.toolbar-item {
    padding: 2px 8px;
    color: #333;
    cursor: pointer;
    border-radius: 2px;
}

.toolbar-item:hover {
    background: #C5D5E6;
    color: #000;
}

/* Address Bar */
.window-address-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: var(--xp-window-bg);
    border-bottom: 1px solid #ACA899;
    font-size: 11px;
}

.address-label {
    color: #333;
    font-weight: 600;
    flex-shrink: 0;
}

.address-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: white;
    border: 1px solid #7F9DB9;
    border-radius: 2px;
    color: #333;
    font-size: 11px;
}

.address-icon {
    flex-shrink: 0;
}

/* Window Content */
.window-content {
    flex: 1;
    overflow-y: auto;
    background: white;
}

/* Scrollbar styling */
.window-content::-webkit-scrollbar {
    width: 16px;
}

.window-content::-webkit-scrollbar-track {
    background: #F1EFE2;
    border-left: 1px solid #ACA899;
}

.window-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #C5D5E6, #98B4D2, #C5D5E6);
    border: 1px solid #618BB5;
    border-radius: 2px;
}

.window-content::-webkit-scrollbar-button {
    background: linear-gradient(to bottom, #E0E8F0, #B8C7D6);
    border: 1px solid #7A96C4;
    height: 16px;
}

/* Status Bar */
.window-statusbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 3px 10px;
    background: var(--xp-window-bg);
    border-top: 1px solid #ACA899;
    font-size: 11px;
    color: #555;
}

/* ============================================
   ABOUT ME CONTENT
   ============================================ */
.about-layout {
    display: flex;
    min-height: 100%;
}

/* Sidebar */
.about-sidebar {
    width: 200px;
    padding: 12px;
    background: var(--xp-sidebar-bg);
    border-right: 1px solid #5C7EB0;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 16px;
}

.sidebar-title {
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    color: white;
    text-decoration: none;
    font-size: 11px;
    border-radius: 3px;
    transition: background 0.15s;
    cursor: pointer;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.15);
}

.sidebar-detail {
    margin-bottom: 8px;
}

.detail-label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    margin-bottom: 2px;
}

.detail-value {
    color: white;
    font-size: 11px;
    font-weight: 600;
}

/* Main Content */
.about-main {
    flex: 1;
    padding: 16px 20px;
    background: white;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4ff, #e8eef8);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #d0d8e8;
}

.profile-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--xp-blue);
    box-shadow: 0 4px 12px rgba(0,85,229,0.2);
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--xp-blue), var(--xp-blue-light));
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.profile-title {
    font-size: 14px;
    color: var(--xp-blue);
    font-weight: 600;
    margin-bottom: 2px;
}

.profile-subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #EEF2FF, #DFE6F6);
    border: 1px solid #C5D0E6;
    border-radius: 12px;
    font-size: 11px;
    color: #3D5A80;
    font-weight: 600;
}

/* Content Sections */
.content-section {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(to bottom, #F8F8F6, #EDE9DA);
    border-bottom: 1px solid #e0e0e0;
}

.section-header h2 {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
}

.section-body {
    padding: 14px 18px;
}

.section-body p {
    font-size: 12px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 8px;
}

.section-body p:last-child {
    margin-bottom: 0;
}

.section-body a {
    color: var(--xp-blue);
    text-decoration: none;
}

.section-body a:hover {
    text-decoration: underline;
}

/* Experience Items */
.experience-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.experience-item:last-child {
    border-bottom: none;
}

.exp-dot {
    width: 10px;
    height: 10px;
    background: var(--xp-blue);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 0 3px rgba(0,85,229,0.15);
}

.exp-content h3 {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.exp-company {
    font-size: 12px;
    color: var(--xp-blue);
    font-weight: 600;
    margin-bottom: 2px;
}

.exp-date {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}

.exp-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 6px;
}

.exp-list {
    list-style: none;
    padding: 0;
}

.exp-list li {
    font-size: 11px;
    color: #555;
    padding: 3px 0 3px 16px;
    position: relative;
    line-height: 1.5;
}

.exp-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--xp-blue);
    font-weight: 700;
}

/* Fun Section */
.fun-section .section-body {
    background: linear-gradient(135deg, #FFF5F5, #FFF0F0);
}

.fun-section .section-body em {
    font-size: 13px;
    color: #555;
}

/* Quote Blocks */
.quote-block {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-left: 3px solid #FF6B6B;
    background: rgba(255,107,107,0.04);
    border-radius: 0 6px 6px 0;
}

.quote-block p {
    margin-bottom: 4px !important;
}

.quote-author {
    font-size: 11px !important;
    color: #888 !important;
    font-weight: 600;
}

/* ============================================
   PROJECTS CONTENT
   ============================================ */
.projects-content {
    background: #f5f5f0;
}

.projects-intro {
    padding: 24px 28px 8px;
}

.projects-intro h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.projects-intro p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px 28px 24px;
}

.project-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--xp-blue-light);
}

.project-img {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: #f0f0f0;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    background: rgba(0,0,0,0.65);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.project-info {
    padding: 14px 16px;
}

.project-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.project-tagline {
    font-size: 11px;
    color: var(--xp-blue);
    font-weight: 600;
    margin-bottom: 6px;
}

.project-desc {
    font-size: 11px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.project-tech span {
    padding: 2px 8px;
    background: linear-gradient(135deg, #EEF2FF, #E0E8F8);
    border: 1px solid #C5D0E6;
    border-radius: 10px;
    font-size: 10px;
    color: #3D5A80;
    font-weight: 600;
}

/* ============================================
   HIRE ME / CONTRÁTAME CONTENT
   ============================================ */
.hire-content {
    background: #f8f9fa;
}

/* Hero */
.hire-hero {
    padding: 32px 28px;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: white;
}

.hire-hero h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hire-hero p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    max-width: 600px;
}

.hire-cta-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hire-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: var(--font-system);
}

.hire-btn.primary {
    background: linear-gradient(135deg, #34A853, #2D8C4E);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 12px rgba(52,168,83,0.3);
}

.hire-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52,168,83,0.45);
}

.hire-btn.secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
}

.hire-btn.secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Services Section */
.hire-section {
    padding: 24px 28px;
}

.hire-section h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.service-card {
    padding: 18px 16px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-color: var(--xp-blue-light);
}

.service-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.service-card p {
    font-size: 11px;
    color: #666;
    line-height: 1.6;
}

/* Collaboration List */
.collab-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collab-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.collab-item:hover {
    border-color: var(--xp-blue-light);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.collab-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--xp-blue);
    opacity: 0.25;
    line-height: 1;
    flex-shrink: 0;
    min-width: 36px;
}

.collab-content h3 {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.collab-content p {
    font-size: 11px;
    color: #666;
    line-height: 1.6;
}

/* Hire Footer CTA */
.hire-footer-cta {
    padding: 28px;
    background: linear-gradient(135deg, #f0f4ff, #e8eef8);
    border-top: 1px solid #d0d8e8;
    text-align: center;
}

.cta-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.cta-content p {
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
}

.hire-footer-cta .hire-cta-buttons {
    justify-content: center;
}

.hire-footer-cta .hire-btn.primary {
    background: linear-gradient(135deg, var(--xp-blue), var(--xp-blue-light));
    box-shadow: 0 4px 12px rgba(0,85,229,0.3);
}

.hire-footer-cta .hire-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(0,85,229,0.45);
}

.hire-footer-cta .hire-btn.secondary {
    background: white;
    color: #333;
    border: 1px solid #d0d8e8;
}

.hire-footer-cta .hire-btn.secondary:hover {
    background: #f5f5f5;
}

/* ============================================
   SKILLS CONTENT
   ============================================ */
.skills-content {
    background: #f5f5f0;
}

.skills-intro {
    padding: 24px 28px 12px;
}

.skills-intro h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.skills-intro p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.folders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 12px 28px 24px;
}

.folder-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.folder-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    border-color: #4A90D9;
}

.folder-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.folder-svg {
    width: 36px;
    height: 36px;
}

.folder-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}

.folder-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.folder-body li {
    font-size: 11px;
    color: #555;
    margin-bottom: 6px;
    padding-left: 14px;
    position: relative;
    line-height: 1.4;
}

.folder-body li::before {
    content: "•";
    color: #4A90D9;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ============================================
   BLOG CONTENT
   ============================================ */
.blog-content {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.blog-icon-large {
    font-size: 64px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.blog-hero h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.blog-hero p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.blog-topics {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #eee;
}

.blog-topics h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.topic-tag {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #9C27B0;
    border: 1px solid #E1BEE7;
    box-shadow: 0 2px 4px rgba(156,39,176,0.1);
}

.subscribe-box {
    margin-top: 30px;
}

.subscribe-box p {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    /* Boot Screen - Mobile OS Style */
    .boot-logo { flex-direction: column; }
    .windows-flag { display: none; }
    .boot-logo::before {
        content: 'thh.';
        background: linear-gradient(135deg, #0055E5, #34A853);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 60px;
        font-weight: 800;
        margin-bottom: 20px;
        display: block;
        font-family: -apple-system, system-ui, sans-serif;
    }
    .boot-xp { display: none; }
    .boot-title { font-size: 24px; font-family: -apple-system, sans-serif; }
    
    /* Mobile Status Bar */
    .mobile-status-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 24px;
        color: white;
        font-family: -apple-system, system-ui, sans-serif;
        font-weight: 600;
        font-size: 13px;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 99;
        text-shadow: 0 1px 3px rgba(0,0,0,0.8);
        pointer-events: none;
    }

    .msb-icons {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Hide XP Taskbar & Start Menu */
    .taskbar, .start-menu {
        display: none !important;
    }

    /* Mobile Home Screen Grid */
    .desktop-icons {
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px 12px;
        padding: 20px;
        flex-direction: row;
        justify-content: start;
        align-content: start;
    }

    .desktop-icon {
        width: 100%;
        padding: 0;
        cursor: pointer;
    }

    .desktop-icon:hover, .desktop-icon.selected {
        background: transparent;
        outline: none;
    }

    .desktop-icon:active {
        opacity: 0.7;
    }

    /* iOS Style Squircle Icons */
    .desktop-icon .icon-image {
        width: 60px;
        height: 60px;
        background: white;
        border-radius: 14px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        margin: 0 auto 8px auto;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        padding: 0;
    }

    /* Specific gradients for the mobile app icons to look premium */
    #icon-about .icon-image { background: linear-gradient(135deg, #FFB75E, #ED8F03); }
    #icon-projects .icon-image { background: linear-gradient(135deg, #F2CA5C, #E3B84A); }
    #icon-skills .icon-image { background: linear-gradient(135deg, #4A90D9, #2A6CB5); }
    #icon-contact .icon-image { background: linear-gradient(135deg, #E8E8E8, #C4C4C4); }
    #icon-hire .icon-image { background: linear-gradient(135deg, #34A853, #2D8C4E); }
    #icon-blog .icon-image { background: linear-gradient(135deg, #AB47BC, #7B1FA2); }
    #icon-recycle .icon-image { background: linear-gradient(135deg, #888, #555); }
    
    /* Resize internal SVGs slightly */
    .desktop-icon .icon-image svg {
        transform: scale(0.9);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    }
    
    /* Make SVGs white in the colorful backgrounds */
    #icon-about .icon-image svg *,
    #icon-projects .icon-image svg *,
    #icon-skills .icon-image svg *,
    #icon-hire .icon-image svg *,
    #icon-blog .icon-image svg *,
    #icon-recycle .icon-image svg * {
        fill: white !important;
        stroke: white !important;
    }

    .desktop-icon .icon-label {
        font-family: -apple-system, system-ui, sans-serif;
        font-size: 11px;
        font-weight: 500;
        text-shadow: 0 1px 3px rgba(0,0,0,0.8);
        max-width: 100%;
        color: white;
    }

    /* Windows as Mobile Apps */
    .window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        z-index: 10000 !important;
        background: #f2f2f7; /* iOS standard background */
        font-family: -apple-system, system-ui, sans-serif;
        display: none;
    }

    .window[style*="display: flex"] {
        animation: appSlideUp 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards !important;
    }

    @keyframes appSlideUp {
        from { transform: translateY(100vh); }
        to { transform: translateY(0); }
    }

    /* Mobile Header (replaces titlebar) */
    .window-titlebar {
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid rgba(0,0,0,0.1) !important;
        min-height: 54px !important;
        padding: 0 15px !important;
        justify-content: center !important;
        position: relative !important;
        border-radius: 0 !important;
        cursor: default !important;
    }

    .titlebar-left {
        width: 100%;
        justify-content: center;
        gap: 0;
    }

    .titlebar-icon {
        display: none !important; /* hide XP icon */
    }

    .titlebar-text {
        color: #000 !important;
        font-family: -apple-system, system-ui, sans-serif !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        text-shadow: none !important;
        flex: 1;
        text-align: center;
    }

    .titlebar-buttons {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: auto !important;
    }

    .minimize-btn, .maximize-btn {
        display: none !important;
    }

    /* Style Close Button as iOS 'Back' */
    .close-btn {
        background: transparent !important;
        box-shadow: none !important;
        color: #007AFF !important;
        width: auto !important;
        height: auto !important;
        border: none !important;
        font-family: -apple-system, system-ui, sans-serif !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        padding: 5px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .close-btn svg {
        display: none !important;
    }

    .close-btn::before {
        content: '< Volver'; /* iOS back arrow style */
        display: inline-block;
        font-size: 16px;
    }

    /* Hide unneeded XP things */
    .window-toolbar, .window-address-bar, .window-statusbar {
        display: none !important;
    }

    /* Content Area */
    .window-content {
        height: calc(100% - 54px) !important;
        -webkit-overflow-scrolling: touch;
        background: transparent !important; /* Inherit #f2f2f7 from window */
    }

    /* Specific Module Responsive Adjustments */
    .about-layout {
        flex-direction: column;
    }

    .about-sidebar {
        width: 100%;
        background: white;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 20px;
    }

    .sidebar-title {
        color: #888;
        border-bottom: none;
        text-shadow: none;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }

    .sidebar-link {
        color: #007AFF;
        background: #f2f2f7;
        margin-bottom: 8px;
        border-radius: 10px;
        padding: 12px 14px;
        font-size: 15px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .sidebar-link svg {
        margin-right: 12px;
        fill: #007AFF;
    }
    
    .sidebar-link svg circle { stroke: #007AFF; fill: none; }
    .sidebar-link svg text, .sidebar-link svg path { fill: #007AFF; stroke: none; }

    .sidebar-link:hover {
        background: #e5e5ea;
    }

    .profile-header {
        border-radius: 0;
        border: none;
        background: white;
        margin-bottom: 0;
        padding-top: 30px;
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        border: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin: 0 auto 16px auto;
    }

    .profile-name { font-size: 24px; }
    .profile-title { font-size: 15px; }

    .profile-tags {
        justify-content: center;
        margin-top: 10px;
    }

    .content-section {
        border: none;
        border-radius: 12px;
        background: white;
        margin: 16px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    .section-header {
        background: transparent;
        border-bottom: 1px solid #eee;
    }

    .about-main {
        padding: 0;
        background: transparent;
    }
    
    /* Projects and Folders Grid Mobile */
    .projects-grid, .folders-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .project-card {
        border-radius: 16px; 
        border: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    /* Hire Me Mobile */
    .hire-hero {
        padding: 40px 20px;
        text-align: center;
    }
    
    .hire-cta-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 12px;
    }
    
    .service-card {
        border-radius: 12px;
        border: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        margin-bottom: 0;
    }

    .collab-item {
        border-radius: 12px;
        border: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
}

/* ============================================
   SELECTION & DRAG
   ============================================ */
.desktop.selecting {
    cursor: crosshair;
}

.selection-rect {
    position: absolute;
    border: 1px solid rgba(0,85,229,0.6);
    background: rgba(0,85,229,0.15);
    z-index: 50;
    pointer-events: none;
}
