/* macOS Portfolio Styles */
:root {
    /* Light mode variables */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --window-bg: rgba(255, 255, 255, 0.95);
    --window-header-bg: rgba(240, 240, 240, 0.8);
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: rgba(255, 255, 255, 0.2);
    --dock-bg: rgba(255, 255, 255, 0.2);
    --topbar-bg: rgba(40, 40, 40, 0.8);
    
    /* Your custom wallpaper as default */
    --wallpaper-url: url('/static/portfolio/images/wallpapers/wallpaper1-dark.jpg');
}

[data-theme="dark"] {
    /* Dark mode variables */
    --primary-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --window-bg: rgba(30, 30, 30, 0.95);
    --window-header-bg: rgba(50, 50, 50, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: rgba(100, 100, 100, 0.3);
    --dock-bg: rgba(50, 50, 50, 0.4);
    --topbar-bg: rgba(30, 30, 30, 0.8);
    
    /* Same wallpaper for dark mode (you can add more wallpapers later) */
    --wallpaper-url: url('/static/portfolio/images/wallpapers/wallpaper1-dark.jpg');
}

body {
    background: var(--wallpaper-url);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Top Menu Bar */
.top-bar {
    background: var(--topbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 32px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.left-controls {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* System Menu Button */
.system-menu {
    position: relative;
}

.menu-button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
}

.menu-button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--window-bg);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10001;
}

.menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.menu-item:hover {
    background: rgba(0, 123, 255, 0.1);
}

.menu-item.separator {
    height: 1px;
    padding: 0;
    background: var(--border-color);
    cursor: default;
}

/* Menu icon styles */
.menu-icon-svg {
    width: 16px;
    height: 16px;
    object-fit: contain;
    pointer-events: none;
    color: var(--text-primary);
}

.menu-icon {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

/* Window Control Button Enhanced Styles */
.control-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    opacity: 0.8;
}

.control-button:hover {
    transform: scale(1.1);
    opacity: 1;
}

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

.control-button.close:hover::after {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #8b0000;
    font-weight: bold;
}

.control-button.maximize {
    background: #28ca42;
}

.control-button.maximize:hover::after {
    content: '⤢';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6px;
    color: #006400;
    font-weight: bold;
}

.center-title {
    font-weight: 600;
    color: white !important;
    font-size: 13px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.right-status {
    font-family: -apple-system, BlinkMacSystemFont, monospace;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main Content Area */
.desktop {
    margin-top: 32px;
    min-height: calc(100vh - 32px);
    padding: 20px;
    position: relative;
}

/* macOS Window Style */
.mac-window {
    background: var(--window-bg);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    width: 700px;
    max-width: 90vw;
    position: absolute;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    visibility: hidden;
    z-index: 1000;
}

.mac-window.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    visibility: visible;
}

.mac-window:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.window-header {
    background: var(--window-header-bg);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: move;
    user-select: none;
}

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

.window-title {
    margin-left: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.window-content {
    padding: 30px;
    color: var(--text-primary);
}

/* Window States */
.mac-window.maximized {
    position: fixed;
    top: 32px;
    left: 0 !important;
    right: 0;
    bottom: 0;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0;
    z-index: 999;
    transition: all 0.3s ease;
    transform: none !important;
}

.mac-window.dragging {
    transition: none !important;
    user-select: none;
    cursor: move;
    will-change: transform;
    pointer-events: none;
}

.mac-window.dragging .window-header {
    cursor: move;
    pointer-events: auto;
}

.mac-window.dragging * {
    pointer-events: none;
}

.mac-window.closed {
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mac-window.active {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Dock Styles */
.dock {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dock-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    align-items: center;
}

.dock-item {
    width: 52px;
    height: 52px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    border: none;
    padding: 2px;
}

.dock-item:hover {
    transform: translateY(-8px) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #007aff;
    border-radius: 50%;
}

/* Icon styles for dock and Apple logo */
.dock-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    pointer-events: none;
    border-radius: 10px;
}

.apple-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
}

/* Status icons are now always white for consistency */

.emoji-fallback {
    font-size: 28px;
    pointer-events: none;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 0;
}

.profile-section .profile-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 28px;
    text-align: center;
}

.profile-section .profile-name {
    font-size: 24px;
    margin-bottom: 6px;
}

.profile-section .profile-title {
    font-size: 14px;
    margin-bottom: 12px;
}

.profile-section p {
    font-size: 13px;
    line-height: 1.4;
}

/* Enhanced Profile Section Styles */
.profile-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.profile-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.profile-description em {
    color: #667eea;
    font-style: normal;
    font-weight: 500;
}

.research-highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 4px solid var(--primary-gradient);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.research-highlight h6 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
}

.publication-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: color 0.3s ease;
}

.publication-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.skill-tag.ai-ml {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Skills and Projects */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.skill-card {
    background: var(--window-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.skill-level {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 1s ease;
}

/* Clickable card styling for projects */
.clickable-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: #007AFF;
}

.clickable-card:active {
    transform: translateY(-2px);
}

/* Contact Form Enhancements */
.form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 1);
}

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Success/Error Messages */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(40, 202, 66, 0.1);
    color: #28ca42;
    border: 1px solid rgba(40, 202, 66, 0.2);
}

.alert-danger {
    background: rgba(255, 95, 87, 0.1);
    color: #ff5f57;
    border: 1px solid rgba(255, 95, 87, 0.2);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.timeline .mb-4 {
    position: relative;
    padding-left: 30px;
}

.timeline .mb-4::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

/* Loading Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Better Badge Styles */
.badge {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Enhanced Card Hover Effects */
.skill-card:hover .skill-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.mac-window {
    opacity: 0;
}

.mac-window.fade-in-up {
    opacity: 1;
}

/* App content icon styles */
.app-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.inline-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

.skill-svg {
    width: 32px;
    height: 32px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Dark mode adjustments for profile avatar */
[data-theme="dark"] .profile-avatar {
    border-color: rgba(138, 180, 248, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .profile-avatar:hover {
    border-color: rgba(138, 180, 248, 0.5);
    box-shadow: 0 6px 20px rgba(138, 180, 248, 0.4);
}

.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.contact-info {
    margin: 16px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.file-list {
    list-style: none;
    padding-left: 0;
}

.file-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* Simplified Finder Styles */
.finder-simple {
    padding: 0;
}

.finder-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.finder-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.finder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.finder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.finder-item:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.finder-file-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
}

.finder-file-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.finder-file-type {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
}

.finder-status {
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

/* Responsive Finder */
@media (max-width: 768px) {
    .finder-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .finder-file-icon {
        width: 40px;
        height: 40px;
    }
    
    .finder-file-name {
        font-size: 12px;
    }
    
    .finder-file-type {
        font-size: 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Add subtle shadow to active windows */
.mac-window.active {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

/* Status bar icon styles */
.status-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    pointer-events: none;
}

/* Control Center button styling */
.control-center-btn {
    pointer-events: auto !important;
    cursor: pointer;
    transition: opacity 0.2s ease;
    filter: invert(1) !important;
    background: transparent !important;
}

.control-center-btn:hover {
    opacity: 0.7;
}

.time-display {
    font-family: -apple-system, BlinkMacSystemFont, monospace;
    font-size: 12px;
    margin-left: 15px;
    color: white !important;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

/* WiFi SVG icon coloring - kept for backwards compatibility */

.battery-fallback {
    font-size: 14px;
}

/* Remove white backgrounds from PNG icons */
.dock-icon, 
.status-icon, 
.apple-logo,
.app-icon,
.inline-icon,
.skill-svg,
.profile-avatar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure transparent backgrounds for all icons */
img[src$=".png"] {
    background: transparent !important;
    border: none !important;
}

/* Specific fixes for problematic icons */
.dock-item img,
.right-status img,
.menu-button img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* SVG icon color inheritance - only for specific SVG icons */
.menu-icon-svg,
.dock-item[data-app="contact"] .dock-icon[src$=".svg"] {
    color: var(--text-primary);
}

/* Ensure contact SVG icon adapts to theme */
.dock-item[data-app="contact"] .dock-icon[src$=".svg"] {
    color: inherit;
}

/* Ensure Apple logo PNGs have transparent backgrounds */
.apple-logo,
img[src*="apple-logo"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Resume Section Styles */
.resume-section {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
}

.resume-section h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.resume-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resume-pdf {
    border: none;
    border-radius: 8px 8px 0 0;
    display: block;
}

.resume-actions {
    padding: 16px;
    background: var(--window-header-bg);
    display: flex;
    gap: 12px;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

/* Dark mode adjustments for resume */
[data-theme="dark"] .resume-section {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .resume-actions {
    background: var(--window-header-bg);
}

/* Compact Resume Section Styles */
.resume-section-compact {
    margin: 0;
    padding: 0;
}

.resume-section-compact h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
}

.resume-container-compact {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.resume-actions-compact {
    padding: 10px 12px;
    background: var(--window-header-bg);
    display: flex;
    gap: 8px;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.resume-actions-compact .btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 6px 12px;
}

/* Resume responsiveness for maximized windows */
.mac-window.maximized .resume-iframe {
    height: 70vh !important;
    min-height: 600px;
}

.mac-window.maximized .resume-container-compact {
    height: calc(70vh + 60px);
    display: flex;
    flex-direction: column;
}

.mac-window.maximized .resume-actions-compact {
    margin-top: auto;
}

/* Skills Preview Styles */
.skills-preview h5 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

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

.skill-tag {
    background: var(--primary-gradient);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments for compact resume */
[data-theme="dark"] .resume-actions-compact {
    background: var(--window-header-bg);
}

/* Responsive resume */
@media (max-width: 768px) {
    .resume-pdf {
        height: 400px;
    }
    
    .resume-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .resume-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .resume-actions-compact iframe {
        height: 300px;
    }
    
    .resume-actions-compact {
        flex-direction: column;
        gap: 6px;
    }
    
    .resume-actions-compact .btn {
        width: 100%;
        justify-content: center;
        font-size: 12px;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    .profile-section .profile-name {
        font-size: 20px;
    }
    
    .profile-section .profile-title {
        font-size: 13px;
    }
}

/* System Preferences Styles */
.system-preferences-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.system-preferences-header h4 {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.25rem;
}

.preference-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.preference-section:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05) !important;
}

.preference-section h6 {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.preference-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.theme-info {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-info .badge {
    text-transform: capitalize;
    font-size: 0.75rem;
}

/* Ensure text is visible in both light and dark modes */
[data-theme="light"] .preference-section {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .preference-section h6,
[data-theme="light"] .info-item span:first-child {
    color: #333 !important;
}

[data-theme="light"] .preference-section p,
[data-theme="light"] .info-item span:last-child {
    color: #666 !important;
}

[data-theme="dark"] .preference-section h6,
[data-theme="dark"] .info-item span:first-child {
    color: #ffffff !important;
}

[data-theme="dark"] .preference-section p,
[data-theme="dark"] .info-item span:last-child {
    color: #cccccc !important;
}

.time-separator {
    margin: 0 8px;
    opacity: 0.6;
    font-weight: 300;
    color: white !important;
}

.wallpaper-grid {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.wallpaper-grid::-webkit-scrollbar {
    width: 6px;
}

.wallpaper-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.wallpaper-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.wallpaper-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.wallpaper-grid .btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.wallpaper-grid .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.info-grid .info-item {
    transition: all 0.2s ease;
}

.info-grid .info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 0.25rem;
}

.preference-section .btn-primary {
    background: var(--primary-gradient);
    border: none;
    transition: all 0.3s ease;
}

.preference-section .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.preference-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.preference-section .btn-outline-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.5);
    color: #ff6b6b;
    transform: translateY(-1px);
}

/* System Preferences responsive design */
@media (max-width: 768px) {
    .system-preferences-header {
        text-align: center;
    }
    
    .system-preferences-header img {
        width: 24px;
        height: 24px;
    }
    
    .system-preferences-header h4 {
        font-size: 1.1rem;
    }
    
    .preference-section {
        margin-bottom: 1rem;
    }
    
    .wallpaper-grid {
        max-height: 150px;
    }
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-gif {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-animation {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.loading-text h3 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.loading-text p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.desktop-content {
    display: none;
}

/* Loading Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Loading screen responsive design */
@media (max-width: 768px) {
    .loading-apple-logo {
        width: 60px;
        height: 60px;
    }
    
    .loading-animation {
        width: 80px;
        height: 80px;
    }
    
    .loading-text h3 {
        font-size: 1.5rem;
    }
    
    .loading-text p {
        font-size: 0.9rem;
    }
}
