/* ============================================
   macOS Style Portfolio - CSS Reset & Variables
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* macOS Color Palette */
    --macos-bg: #f5f5f7;
    --macos-window-bg: #ffffff;
    --macos-sidebar-bg: #f9f9f9;
    --macos-card-bg: #ffffff;
    --macos-border: #e5e5e5;
    --macos-text-primary: #1d1d1f;
    --macos-text-secondary: #6e6e73;
    --macos-accent: #007aff;
    --macos-accent-hover: #0051d5;
    --macos-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --macos-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --macos-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", 
               "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sf);
    background: var(--macos-bg);
    color: var(--macos-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* ============================================
   macOS Menu Bar (Separate, at Top of Page)
   ============================================ */

.macos-menubar-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(to bottom, #f6f6f6 0%, #ededed 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 13px;
    z-index: 2000;
}

.macos-menubar-top .menubar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.macos-menubar-top .menubar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

/* Apple Logo */
.macos-menubar-top .apple-logo {
    font-size: 18px;
    color: #1d1d1f;
    cursor: pointer;
    transition: color 0.2s ease;
}

.macos-menubar-top .apple-logo:hover {
    color: var(--macos-accent);
}

/* Menu Icons */
.macos-menubar-top .menu-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.macos-menubar-top .menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--macos-text-secondary);
    font-size: 12px;
}

.macos-menubar-top .menu-icon:hover {
    background: rgba(0, 0, 0, 0.05);
}

.macos-menubar-top .menu-icon.active {
    background: rgba(0, 122, 255, 0.1);
    color: var(--macos-accent);
}

/* Date/Time Display */
.macos-menubar-top .menubar-datetime {
    font-size: 13px;
    font-weight: 500;
    color: var(--macos-text-primary);
    padding: 0 8px;
    cursor: default;
}

/* Control Center Dropdown (from Menu Bar) */
.control-center-dropdown {
    position: fixed;
    top: 29px;
    right: 12px;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3000;
}

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

.control-center-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-group {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.control-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--macos-accent), var(--macos-accent-hover));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.control-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--macos-text-primary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--macos-accent);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

/* AirDrop Button */
.airdrop-btn {
    flex: 1;
    background: var(--macos-accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sf);
}

.airdrop-btn:hover {
    background: var(--macos-accent-hover);
    transform: translateY(-1px);
}

.airdrop-btn:active {
    transform: translateY(0);
}

/* ============================================
   macOS Window Container
   ============================================ */

.macos-window {
    max-width: 1400px;
    margin: 54px auto 30px auto;
    background: var(--macos-window-bg);
    border-radius: 12px;
    box-shadow: var(--macos-shadow-lg);
    overflow: hidden;
    border: 1px solid var(--macos-border);
}

/* ============================================
   Window Title Bar (Inside Window)
   ============================================ */

.titlebar {
    height: 60px;
    background: linear-gradient(to bottom, #fafafa 0%, #f0f0f0 100%);
    border-bottom: 1px solid var(--macos-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}

.traffic-lights {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 20px;
}

.traffic-lights span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.traffic-lights span:hover {
    opacity: 0.8;
}

.traffic-lights .close {
    background: #ff5f57;
}

.traffic-lights .minimize {
    background: #ffbd2e;
}

.traffic-lights .maximize {
    background: #28ca42;
}

.window-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--macos-text-primary);
    letter-spacing: 0.2px;
}

/* Mobile Menu Toggle Button - Hidden, not used */
.mobile-menu-toggle {
    display: none !important;
    visibility: hidden;
}

/* Profile in Title Bar */
.titlebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--macos-text-primary);
    letter-spacing: 0.1px;
}

.profile-role {
    font-size: 11px;
    font-weight: 400;
    color: var(--macos-text-secondary);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

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

.traffic-lights span:hover {
    filter: brightness(0.9);
    cursor: pointer;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--macos-text-primary);
    letter-spacing: 0.2px;
}

/* Profile in Title Bar (Settings App Style) */
.titlebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--macos-text-primary);
    letter-spacing: 0.1px;
}

.profile-role {
    font-size: 11px;
    font-weight: 400;
    color: var(--macos-text-secondary);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

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

/* ============================================
   Window Content Layout
   ============================================ */

.window-content {
    display: flex;
    height: calc(100vh - 84px);
    max-height: 900px;
}

/* ============================================
   Sidebar Navigation (macOS Finder Style)
   ============================================ */

.sidebar {
    width: 240px;
    background: var(--macos-sidebar-bg);
    border-right: 1px solid var(--macos-border);
    padding: 20px 12px;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin-bottom: 2px;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--macos-text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease;
    position: relative;
}

.sidebar nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--macos-accent);
    border-radius: 0 2px 2px 0;
    transition: height 0.15s ease;
}

.sidebar nav ul li a.active::before {
    height: 20px;
}

.sidebar nav ul li a i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: var(--macos-text-secondary);
}

.sidebar nav ul li a:hover {
    background: rgba(0, 0, 0, 0.04);
}

.sidebar nav ul li a.active {
    background: var(--macos-accent);
    color: white;
}

.sidebar nav ul li a.active i {
    color: white;
}

.sidebar-divider {
    height: 1px;
    background: var(--macos-border);
    margin: 16px 0;
}

/* Resume Button in Sidebar */
.resume-container {
    padding: 0;
}

.resume-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--macos-accent);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.resume-button:hover {
    background: var(--macos-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.resume-button:active {
    transform: translateY(0);
}

.resume-button i {
    font-size: 16px;
}

.resume-button span {
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Social Icons in Sidebar */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    color: var(--macos-text-secondary);
    font-size: 16px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.social-icons a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--macos-accent);
    border-color: var(--macos-border);
    text-decoration: none;
}

/* ============================================
   Control Center
   ============================================ */

.control-center {
    margin-top: 20px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--macos-border);
}

.control-center h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--macos-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.control-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--macos-border);
}

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

.control-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--macos-text-primary);
}

.control-label i {
    font-size: 14px;
    color: var(--macos-text-secondary);
    width: 18px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 42px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e5e5;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--macos-accent);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

/* Brightness Slider */
.brightness-slider {
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #e5e5e5, var(--macos-accent));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.brightness-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--macos-accent);
}

.brightness-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--macos-accent);
}

/* AirDrop Button */
.airdrop-btn {
    width: 100%;
    padding: 8px 12px;
    background: var(--macos-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.airdrop-btn:hover {
    background: var(--macos-accent-hover);
}

.airdrop-btn:active {
    transform: scale(0.98);
}

/* ============================================
   Main Content Area
   ============================================ */

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px 48px;
    background: #fafafa;
}

.content-section {
    margin-bottom: 48px;
    scroll-margin-top: 80px;
}

.content-section:last-child {
    margin-bottom: 24px;
}

.section-card {
    background: var(--macos-card-bg);
    border-radius: 12px;
    padding: 36px;
    box-shadow: var(--macos-shadow-sm);
    border: 1px solid var(--macos-border);
    animation: fadeInUp 0.4s ease-out;
}

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

/* ============================================
   Typography
   ============================================ */

h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--macos-text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--macos-text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--macos-border);
}

h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--macos-text-primary);
    margin-bottom: 12px;
}

h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

h3 a:hover {
    color: var(--macos-accent);
}

h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--macos-text-primary);
    margin-top: 16px;
    margin-bottom: 8px;
}

p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--macos-text-secondary);
    margin-bottom: 12px;
}

.section-description {
    font-size: 15px;
    color: var(--macos-text-secondary);
    margin-bottom: 24px;
}

.role {
    font-size: 14px;
    color: var(--macos-text-secondary);
    margin-bottom: 12px;
}

/* ============================================
   Cards & Containers
   ============================================ */

.education-container,
.experiment-container,
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* ============================================
   Clickable Cards (Education, Experiments, Volunteering)
   ============================================ */

.clickable-card {
    cursor: pointer;
    transition: all 0.25s ease;
}

.clickable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.clickable-card h3 a {
    pointer-events: none;
}

/* ============================================
   Project Card Clickable Styling
   ============================================ */

.project-box.card {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.project-box.card::after {
    content: '\f35d'; /* External link icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 16px;
    color: var(--macos-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-box.card:hover::after {
    opacity: 0.6;
}

.project-box.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 122, 255, 0.2);
    border-color: var(--macos-accent);
}

/* ============================================
   Budapest Experience Section
   ============================================ */

.budapest-timeline {
    margin-top: 24px;
}

.budapest-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.budapest-flag {
    font-size: 48px;
    flex-shrink: 0;
}

.budapest-info h3 {
    color: var(--macos-text-primary);
    font-size: 18px;
    margin-bottom: 8px;
}

.budapest-duration {
    font-size: 15px;
    font-weight: 600;
    color: var(--macos-accent);
    margin-bottom: 4px;
}

.budapest-dates {
    font-size: 13px;
    color: var(--macos-text-secondary);
}

.budapest-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.budapest-section {
    background: #fafafa;
    border: 1px solid var(--macos-border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: all 0.3s ease;
}

.budapest-section:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.budapest-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--macos-accent), var(--macos-accent-hover));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.budapest-details {
    flex: 1;
}

.budapest-details h4 {
    color: var(--macos-text-primary);
    font-size: 16px;
    margin-bottom: 12px;
}

.budapest-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.budapest-details ul li {
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
    font-size: 14px;
    color: var(--macos-text-secondary);
    line-height: 1.6;
}

.budapest-details ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--macos-accent);
    font-weight: bold;
}

.budapest-details ul li strong {
    color: var(--macos-text-primary);
    font-weight: 600;
}

.budapest-highlights {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 24px;
    margin-top: 12px;
}

.budapest-highlights h4 {
    color: var(--macos-text-primary);
    font-size: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.highlight-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
}

.highlight-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--macos-accent);
    margin-bottom: 4px;
}

.highlight-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--macos-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.card {
    background: #fafafa;
    border: 1px solid var(--macos-border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(0, 122, 255, 0.3);
    background: #ffffff;
}

.card::after {
    content: '→';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
    color: var(--macos-text-secondary);
    opacity: 0;
    transition: all 0.25s ease;
}

.card:hover::after {
    opacity: 1;
    right: 16px;
}

.card h3 {
    color: var(--macos-text-primary);
    margin-bottom: 8px;
    padding-right: 30px;
}

.card p {
    font-size: 14px;
    line-height: 1.5;
}

.card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Lists
   ============================================ */

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

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--macos-border);
    font-size: 15px;
    color: var(--macos-text-secondary);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li strong {
    color: var(--macos-text-primary);
    font-weight: 600;
}

.card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.card ul li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: var(--macos-text-secondary);
    border: none;
}

.card ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--macos-accent);
    font-weight: bold;
}

/* ============================================
   Skill Tags
   ============================================ */

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 12px;
}

.skill-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

/* Soft, Eye-Friendly Color Palette - Pastel & Muted Tones */
.skill-tag.python { 
    background: #e3f2fd; 
    color: #1565c0; 
    border: 1px solid #bbdefb;
}

.skill-tag.r { 
    background: #e1f5fe; 
    color: #0277bd; 
    border: 1px solid #b3e5fc;
}

.skill-tag.js,
.skill-tag.javascript { 
    background: #fff8e1; 
    color: #f57f17; 
    border: 1px solid #ffecb3;
}

.skill-tag.swift { 
    background: #ffe0b2; 
    color: #e65100; 
    border: 1px solid #ffccbc;
}

.skill-tag.datascience { 
    background: #ede7f6; 
    color: #4527a0; 
    border: 1px solid #d1c4e9;
}

.skill-tag.elasticsearch { 
    background: #e0f7fa; 
    color: #00695c; 
    border: 1px solid #b2ebf2;
}

.skill-tag.dotnet { 
    background: #f3e5f5; 
    color: #6a1b9a; 
    border: 1px solid #e1bee7;
}

.skill-tag.unrealengine { 
    background: #eceff1; 
    color: #37474f; 
    border: 1px solid #cfd8dc;
}

.skill-tag.firebase { 
    background: #ffebee; 
    color: #c62828; 
    border: 1px solid #ffcdd2;
}

.skill-tag.openai { 
    background: #f1f8e9; 
    color: #558b2f; 
    border: 1px solid #dcedc8;
}

.skill-tag.vr { 
    background: #fce4ec; 
    color: #c2185b; 
    border: 1px solid #f8bbd0;
}

.skill-tag.unity { 
    background: #e8eaf6; 
    color: #283593; 
    border: 1px solid #c5cae9;
}

.skill-tag.ai { 
    background: #e8f5e9; 
    color: #2e7d32; 
    border: 1px solid #c8e6c9;
}

.skill-tag.ml { 
    background: #e0f2f1; 
    color: #00695c; 
    border: 1px solid #b2dfdb;
}

.skill-tag.numpy { 
    background: #fff3e0; 
    color: #e65100; 
    border: 1px solid #ffe0b2;
}

.skill-tag.pandas { 
    background: #fff9c4; 
    color: #f57f17; 
    border: 1px solid #fff59d;
}

.skill-tag.crawling { 
    background: #fce4ec; 
    color: #ad1457; 
    border: 1px solid #f8bbd0;
}

.skill-tag.network { 
    background: #e0f7fa; 
    color: #00838f; 
    border: 1px solid #b2ebf2;
}

.skill-tag.csharp { 
    background: #f3e5f5; 
    color: #7b1fa2; 
    border: 1px solid #e1bee7;
}

.skill-tag.mysql { 
    background: #e8eaf6; 
    color: #3949ab; 
    border: 1px solid #c5cae9;
}

.skill-tag.angular { 
    background: #ffebee; 
    color: #d32f2f; 
    border: 1px solid #ffcdd2;
}

.skill-tag.flask { 
    background: #f1f8e9; 
    color: #33691e; 
    border: 1px solid #dcedc8;
}

.skill-tag.playwright { 
    background: #ede7f6; 
    color: #4527a0; 
    border: 1px solid #d1c4e9;
}

.skill-tag.twilio { 
    background: #fce4ec; 
    color: #c2185b; 
    border: 1px solid #f8bbd0;
}

.skill-tag.asyncio { 
    background: #e1f5fe; 
    color: #01579b; 
    border: 1px solid #b3e5fc;
}

.skill-tag.docker { 
    background: #e3f2fd; 
    color: #1565c0; 
    border: 1px solid #bbdefb;
}

.skill-tag.postgresql {
    background: #e8eaf6;
    color: #283593;
    border: 1px solid #c5cae9;
}

.skill-tag.react {
    background: #e6f2ff;
    color: #0969da;
    border: 1px solid #bfdcff;
}

.skill-tag.typescript {
    background: #eaf2fb;
    color: #2a5a99;
    border: 1px solid #c3d9f0;
}

.skill-tag.tailwind {
    background: #e6f9ff;
    color: #0e7490;
    border: 1px solid #b3ecfb;
}

.skill-tag.supabase {
    background: #e6f9f0;
    color: #157347;
    border: 1px solid #b8ecd3;
}

.skill-tag.vercel {
    background: #f0f0f0;
    color: #27272a;
    border: 1px solid #d4d4d8;
}

.skill-tag.gemini {
    background: #f3ecfd;
    color: #6d28d9;
    border: 1px solid #ddc8f7;
}

.skill-tag.qdrant {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f6c6c2;
}

.skill-tag.fastapi {
    background: #e3f6f2;
    color: #047857;
    border: 1px solid #bfe8de;
}

.skill-tag.restapi {
    background: #eef0fd;
    color: #4338ca;
    border: 1px solid #c7ccf7;
}

.skill-tag.langchain {
    background: #fdf1e0;
    color: #a16207;
    border: 1px solid #f5dcac;
}

.skill-tag.faiss {
    background: #fce7f3;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.skill-tag.ef { 
    background: #f3e5f5; 
    color: #6a1b9a; 
    border: 1px solid #e1bee7;
}

.skill-tag.xgboost { 
    background: #fff3e0; 
    color: #e65100; 
    border: 1px solid #ffe0b2;
}

.skill-tag.sqlite { 
    background: #e0f7fa; 
    color: #00695c; 
    border: 1px solid #b2ebf2;
}

/* Additional Skills - New Colors */
.skill-tag.tensorflow { 
    background: #fff3e0; 
    color: #ef6c00; 
    border: 1px solid #ffe0b2;
}

.skill-tag.nlp { 
    background: #e8f5e9; 
    color: #388e3c; 
    border: 1px solid #c8e6c9;
}

.skill-tag.datavis { 
    background: #e1f5fe; 
    color: #0277bd; 
    border: 1px solid #b3e5fc;
}

.skill-tag.excel { 
    background: #e8f5e9; 
    color: #2e7d32; 
    border: 1px solid #c8e6c9;
}

.skill-tag.powerbi { 
    background: #fff8e1; 
    color: #f9a825; 
    border: 1px solid #ffecb3;
}

.skill-tag.tableau { 
    background: #e3f2fd; 
    color: #1976d2; 
    border: 1px solid #bbdefb;
}

.skill-tag.communication { 
    background: #fce4ec; 
    color: #c2185b; 
    border: 1px solid #f8bbd0;
}

.skill-tag.problemsolving { 
    background: #ede7f6; 
    color: #5e35b1; 
    border: 1px solid #d1c4e9;
}

.skill-tag.teamwork { 
    background: #e0f2f1; 
    color: #00897b; 
    border: 1px solid #b2dfdb;
}

.skill-tag.adaptability { 
    background: #fff3e0; 
    color: #fb8c00; 
    border: 1px solid #ffe0b2;
}

.skill-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Date Styling
   ============================================ */

.date {
    font-size: 13px;
    color: var(--macos-text-secondary);
    margin-top: 12px;
    font-weight: 500;
}

/* ============================================
   Volunteering Section - Full Width Horizontal Panel
   ============================================ */

.content-section.full-width {
    margin-left: -48px;
    margin-right: -48px;
}

/* ============================================
   Volunteering Section (Simplified)
   ============================================ */

.volunteering-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.volunteering-box {
    background: #fafafa;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid var(--macos-border);
    transition: all 0.25s ease;
}

.volunteering-box:hover {
    background: #ffffff;
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.volunteering-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--macos-text-primary);
}

.volunteering-box .date {
    font-size: 13px;
    color: var(--macos-text-secondary);
    margin-bottom: 4px;
}

.volunteering-box .location {
    font-size: 13px;
    color: var(--macos-accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.volunteering-box h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--macos-text-primary);
    margin-bottom: 10px;
    margin-top: 16px;
}

.volunteering-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.volunteering-box ul li {
    font-size: 13px;
    color: var(--macos-text-secondary);
    line-height: 1.6;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.volunteering-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--macos-accent);
    font-weight: bold;
}

.volunteering-box .skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.volunteering-box .skills-tags .skill-tag {
    display: inline-block;
    padding: 4px 10px;
    background: white;
    border: 1px solid var(--macos-border);
    color: var(--macos-text-secondary);
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.volunteering-box .skills-tags .skill-tag:hover {
    border-color: var(--macos-accent);
    color: var(--macos-accent);
    background: rgba(0, 122, 255, 0.05);
}

/* ============================================
   Skills Simple Layout
   ============================================ */

.skills-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.skill-group-simple {
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--macos-border);
    transition: all 0.25s ease;
}

.skill-group-simple:hover {
    background: #ffffff;
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.skill-group-simple h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--macos-text-primary);
    margin-bottom: 12px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-block;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--macos-border);
    color: var(--macos-text-secondary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    border-color: var(--macos-accent);
    color: var(--macos-accent);
    background: rgba(0, 122, 255, 0.05);
    transform: translateY(-2px);
}

/* Keep old styles for backwards compatibility if needed */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.skill-category {
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--macos-border);
    transition: all 0.25s ease;
}

.skill-category:hover {
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.skill-category h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--macos-text-primary);
    margin-bottom: 14px;
}

.skill-category h4 i {
    color: var(--macos-accent);
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
    position: relative;
}

.skill-badge[data-level="advanced"] {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.skill-badge[data-level="intermediate"] {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #6b21a8;
    border: 1px solid #d8b4fe;
}

.skill-badge[data-level="beginner"] {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.skill-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* ============================================
   Hobbies Grid
   ============================================ */

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.hobby-item {
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--macos-border);
    text-align: center;
    transition: all 0.25s ease;
    cursor: default;
}

.hobby-item:hover {
    background: white;
    border-color: var(--macos-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hobby-item i {
    font-size: 32px;
    color: var(--macos-accent);
    margin-bottom: 12px;
}

.hobby-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--macos-text-primary);
    margin-bottom: 4px;
}

.hobby-item p {
    font-size: 12px;
    color: var(--macos-text-secondary);
    margin: 0;
}

/* ============================================
   Contact Section - Clean macOS Style
   ============================================ */

#contact {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    border: none;
}

#contact .section-card {
    background: #fafafa;
    border: 1px solid var(--macos-border);
    box-shadow: none;
    padding: 32px;
    border-radius: 12px;
}

#contact h2 {
    color: var(--macos-text-primary);
    text-align: left;
    font-size: 24px;
    margin-bottom: 8px;
    border-bottom: none;
    padding-bottom: 0;
}

#contact .section-description {
    text-align: left;
    font-size: 14px;
    color: var(--macos-text-secondary);
    margin-bottom: 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.contact-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--macos-border);
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contact-card:hover {
    background: #ffffff;
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.contact-card i {
    font-size: 32px;
    color: var(--macos-accent);
    margin-bottom: 12px;
    transition: all 0.25s ease;
}

.contact-card:hover i {
    transform: scale(1.08);
}

.contact-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--macos-text-primary);
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 13px;
    color: var(--macos-text-secondary);
    margin: 0;
    font-weight: 400;
}

/* ============================================
   Project Modal
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--macos-border);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--macos-text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    font-size: 24px;
    color: var(--macos-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: #e0e0e0;
    color: var(--macos-text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-body #modalDescription {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--macos-text-primary);
}

.modal-body .modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn.github-btn {
    background: #24292e;
    color: white;
}

.modal-btn.github-btn:hover {
    background: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 41, 46, 0.4);
}

.modal-btn.github-btn i {
    font-size: 16px;
}

.modal-btn.primary {
    background: var(--macos-accent);
    color: white;
}

.modal-btn.primary:hover {
    background: var(--macos-accent-hover);
}

.modal-btn.secondary {
    background: #f0f0f0;
    color: var(--macos-text-primary);
}

/* ============================================
   CV Viewer Modal
   ============================================ */

.cv-modal .cv-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: 1200px;
}

.cv-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
}

.cv-modal .cv-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cv-modal .download-btn {
    padding: 8px 16px;
    background: var(--macos-accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.cv-modal .download-btn:hover {
    background: var(--macos-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.cv-viewer-body {
    padding: 0;
    height: calc(90vh - 80px);
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

#cvIframe {
    width: 100%;
    height: 100%;
    border: none;
}

.cv-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--macos-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cv-loading p {
    color: var(--macos-text-secondary);
    font-size: 14px;
}

.modal-btn.secondary:hover {
    background: #e0e0e0;
}

/* ============================================
   Scrollbar Styling (macOS Style)
   ============================================ */

.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================
   Dark Mode Styles
   ============================================ */

body.dark-mode {
    --macos-bg: #1a1a1a;
    --macos-window-bg: #2d2d2d;
    --macos-sidebar-bg: #252525;
    --macos-card-bg: #333333;
    --macos-border: #404040;
    --macos-text-primary: #f5f5f7;
    --macos-text-secondary: #a1a1a6;
    --macos-accent: #0a84ff;
    --macos-accent-hover: #409cff;
    background: #1a1a1a;
    color: #f5f5f7;
}

/* Dark mode menu bar */
body.dark-mode .macos-menubar-top {
    background: linear-gradient(to bottom, #2d2d2d 0%, #252525 100%);
    border-bottom: 1px solid #404040;
}

body.dark-mode .apple-logo,
body.dark-mode .menu-icon,
body.dark-mode .menubar-datetime {
    color: #f5f5f7;
}

/* Dark mode window */
body.dark-mode .macos-window {
    background: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-mode .titlebar {
    background: linear-gradient(to bottom, #3a3a3a 0%, #2d2d2d 100%);
    border-bottom: 1px solid #404040;
}

body.dark-mode .window-title,
body.dark-mode .profile-name,
body.dark-mode .profile-role {
    color: #f5f5f7;
}

/* Dark mode sidebar */
body.dark-mode .sidebar {
    background: #252525;
    border-right: 1px solid #404040;
}

body.dark-mode .sidebar nav ul li a {
    color: #f5f5f7;
}

body.dark-mode .sidebar nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .sidebar nav ul li a.active {
    background: rgba(10, 132, 255, 0.2);
    color: #0a84ff;
}

/* Dark mode main content */
body.dark-mode .main-content {
    background: #2d2d2d;
}

body.dark-mode .section-card,
body.dark-mode .card {
    background: #333333;
    border: 1px solid #404040;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #f5f5f7;
}

body.dark-mode p,
body.dark-mode li {
    color: #d1d1d6;
}

body.dark-mode .section-description {
    color: #a1a1a6;
}

/* Dark mode skill tags - darker backgrounds with brighter text */
body.dark-mode .skill-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #e4e4e4;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .skill-tag.python { 
    background: rgba(33, 150, 243, 0.15); 
    color: #64b5f6; 
    border: 1px solid rgba(100, 181, 246, 0.3);
}

body.dark-mode .skill-tag.r { 
    background: rgba(3, 169, 244, 0.15); 
    color: #4fc3f7; 
    border: 1px solid rgba(79, 195, 247, 0.3);
}

body.dark-mode .skill-tag.js,
body.dark-mode .skill-tag.javascript { 
    background: rgba(255, 193, 7, 0.15); 
    color: #ffd54f; 
    border: 1px solid rgba(255, 213, 79, 0.3);
}

body.dark-mode .skill-tag.swift { 
    background: rgba(255, 87, 34, 0.15); 
    color: #ff8a65; 
    border: 1px solid rgba(255, 138, 101, 0.3);
}

body.dark-mode .skill-tag.datascience { 
    background: rgba(103, 58, 183, 0.15); 
    color: #b39ddb; 
    border: 1px solid rgba(179, 157, 219, 0.3);
}

body.dark-mode .skill-tag.elasticsearch { 
    background: rgba(0, 150, 136, 0.15); 
    color: #4db6ac; 
    border: 1px solid rgba(77, 182, 172, 0.3);
}

body.dark-mode .skill-tag.dotnet { 
    background: rgba(156, 39, 176, 0.15); 
    color: #ce93d8; 
    border: 1px solid rgba(206, 147, 216, 0.3);
}

body.dark-mode .skill-tag.unrealengine { 
    background: rgba(96, 125, 139, 0.15); 
    color: #b0bec5; 
    border: 1px solid rgba(176, 190, 197, 0.3);
}

body.dark-mode .skill-tag.firebase { 
    background: rgba(244, 67, 54, 0.15); 
    color: #ef5350; 
    border: 1px solid rgba(239, 83, 80, 0.3);
}

body.dark-mode .skill-tag.openai { 
    background: rgba(139, 195, 74, 0.15); 
    color: #aed581; 
    border: 1px solid rgba(174, 213, 129, 0.3);
}

body.dark-mode .skill-tag.vr { 
    background: rgba(233, 30, 99, 0.15); 
    color: #f06292; 
    border: 1px solid rgba(240, 98, 146, 0.3);
}

body.dark-mode .skill-tag.unity { 
    background: rgba(63, 81, 181, 0.15); 
    color: #7986cb; 
    border: 1px solid rgba(121, 134, 203, 0.3);
}

body.dark-mode .skill-tag.ai { 
    background: rgba(76, 175, 80, 0.15); 
    color: #81c784; 
    border: 1px solid rgba(129, 199, 132, 0.3);
}

body.dark-mode .skill-tag.ml { 
    background: rgba(0, 150, 136, 0.15); 
    color: #4db6ac; 
    border: 1px solid rgba(77, 182, 172, 0.3);
}

body.dark-mode .skill-tag.numpy { 
    background: rgba(255, 152, 0, 0.15); 
    color: #ffb74d; 
    border: 1px solid rgba(255, 183, 77, 0.3);
}

body.dark-mode .skill-tag.pandas { 
    background: rgba(255, 235, 59, 0.15); 
    color: #fff176; 
    border: 1px solid rgba(255, 241, 118, 0.3);
}

body.dark-mode .skill-tag.crawling { 
    background: rgba(233, 30, 99, 0.15); 
    color: #f06292; 
    border: 1px solid rgba(240, 98, 146, 0.3);
}

body.dark-mode .skill-tag.network { 
    background: rgba(0, 188, 212, 0.15); 
    color: #4dd0e1; 
    border: 1px solid rgba(77, 208, 225, 0.3);
}

body.dark-mode .skill-tag.csharp { 
    background: rgba(142, 36, 170, 0.15); 
    color: #ba68c8; 
    border: 1px solid rgba(186, 104, 200, 0.3);
}

body.dark-mode .skill-tag.mysql { 
    background: rgba(63, 81, 181, 0.15); 
    color: #7986cb; 
    border: 1px solid rgba(121, 134, 203, 0.3);
}

body.dark-mode .skill-tag.angular { 
    background: rgba(244, 67, 54, 0.15); 
    color: #e57373; 
    border: 1px solid rgba(229, 115, 115, 0.3);
}

body.dark-mode .skill-tag.flask { 
    background: rgba(104, 159, 56, 0.15); 
    color: #9ccc65; 
    border: 1px solid rgba(156, 204, 101, 0.3);
}

body.dark-mode .skill-tag.playwright { 
    background: rgba(103, 58, 183, 0.15); 
    color: #b39ddb; 
    border: 1px solid rgba(179, 157, 219, 0.3);
}

body.dark-mode .skill-tag.twilio { 
    background: rgba(233, 30, 99, 0.15); 
    color: #f48fb1; 
    border: 1px solid rgba(244, 143, 177, 0.3);
}

body.dark-mode .skill-tag.asyncio { 
    background: rgba(33, 150, 243, 0.15); 
    color: #64b5f6; 
    border: 1px solid rgba(100, 181, 246, 0.3);
}

body.dark-mode .skill-tag.docker { 
    background: rgba(3, 169, 244, 0.15); 
    color: #4fc3f7; 
    border: 1px solid rgba(79, 195, 247, 0.3);
}

body.dark-mode .skill-tag.postgresql { 
    background: rgba(63, 81, 181, 0.15); 
    color: #7986cb; 
    border: 1px solid rgba(121, 134, 203, 0.3);
}

body.dark-mode .skill-tag.entityframework { 
    background: rgba(142, 36, 170, 0.15); 
    color: #ba68c8; 
    border: 1px solid rgba(186, 104, 200, 0.3);
}

body.dark-mode .skill-tag.xgboost { 
    background: rgba(255, 152, 0, 0.15); 
    color: #ffb74d; 
    border: 1px solid rgba(255, 183, 77, 0.3);
}

body.dark-mode .skill-tag.sqlite { 
    background: rgba(0, 188, 212, 0.15); 
    color: #4dd0e1; 
    border: 1px solid rgba(77, 208, 225, 0.3);
}

/* Dark mode - Additional Skills */
body.dark-mode .skill-tag.tensorflow { 
    background: rgba(255, 152, 0, 0.15); 
    color: #ffb74d; 
    border: 1px solid rgba(255, 183, 77, 0.3);
}

body.dark-mode .skill-tag.nlp { 
    background: rgba(76, 175, 80, 0.15); 
    color: #81c784; 
    border: 1px solid rgba(129, 199, 132, 0.3);
}

body.dark-mode .skill-tag.datavis { 
    background: rgba(3, 169, 244, 0.15); 
    color: #4fc3f7; 
    border: 1px solid rgba(79, 195, 247, 0.3);
}

body.dark-mode .skill-tag.excel { 
    background: rgba(76, 175, 80, 0.15); 
    color: #81c784; 
    border: 1px solid rgba(129, 199, 132, 0.3);
}

body.dark-mode .skill-tag.powerbi { 
    background: rgba(255, 193, 7, 0.15); 
    color: #ffd54f; 
    border: 1px solid rgba(255, 213, 79, 0.3);
}

body.dark-mode .skill-tag.tableau { 
    background: rgba(33, 150, 243, 0.15); 
    color: #64b5f6; 
    border: 1px solid rgba(100, 181, 246, 0.3);
}

body.dark-mode .skill-tag.communication { 
    background: rgba(233, 30, 99, 0.15); 
    color: #f48fb1; 
    border: 1px solid rgba(244, 143, 177, 0.3);
}

body.dark-mode .skill-tag.problemsolving { 
    background: rgba(103, 58, 183, 0.15); 
    color: #b39ddb; 
    border: 1px solid rgba(179, 157, 219, 0.3);
}

body.dark-mode .skill-tag.teamwork { 
    background: rgba(0, 150, 136, 0.15); 
    color: #4db6ac; 
    border: 1px solid rgba(77, 182, 172, 0.3);
}

body.dark-mode .skill-tag.adaptability {
    background: rgba(255, 152, 0, 0.15);
    color: #ffb74d;
    border: 1px solid rgba(255, 183, 77, 0.3);
}

body.dark-mode .skill-tag.react {
    background: rgba(9, 105, 218, 0.15);
    color: #79b8ff;
    border: 1px solid rgba(121, 184, 255, 0.3);
}

body.dark-mode .skill-tag.typescript {
    background: rgba(49, 120, 198, 0.15);
    color: #7ab0e8;
    border: 1px solid rgba(122, 176, 232, 0.3);
}

body.dark-mode .skill-tag.tailwind {
    background: rgba(56, 189, 248, 0.15);
    color: #67d4f7;
    border: 1px solid rgba(103, 212, 247, 0.3);
}

body.dark-mode .skill-tag.supabase {
    background: rgba(62, 207, 142, 0.15);
    color: #6fdba8;
    border: 1px solid rgba(111, 219, 168, 0.3);
}

body.dark-mode .skill-tag.vercel {
    background: rgba(255, 255, 255, 0.12);
    color: #d4d4d8;
    border: 1px solid rgba(212, 212, 216, 0.25);
}

body.dark-mode .skill-tag.gemini {
    background: rgba(124, 58, 237, 0.15);
    color: #b794f6;
    border: 1px solid rgba(183, 148, 246, 0.3);
}

body.dark-mode .skill-tag.qdrant {
    background: rgba(179, 38, 30, 0.15);
    color: #f28b82;
    border: 1px solid rgba(242, 139, 130, 0.3);
}

body.dark-mode .skill-tag.fastapi {
    background: rgba(5, 150, 105, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(110, 231, 183, 0.3);
}

body.dark-mode .skill-tag.restapi {
    background: rgba(67, 56, 202, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(165, 180, 252, 0.3);
}

body.dark-mode .skill-tag.langchain {
    background: rgba(161, 98, 7, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

body.dark-mode .skill-tag.faiss {
    background: rgba(190, 24, 93, 0.15);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.3);
}

/* Dark mode links and buttons */
body.dark-mode a {
    color: #0a84ff;
}

body.dark-mode .resume-button {
    background: #0a84ff;
    color: white;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
}

body.dark-mode .resume-button:hover {
    background: #0066cc;
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.4);
}

/* Dark mode skills section */
body.dark-mode .skill-group-simple {
    background: #333333;
    border: 1px solid #404040;
}

body.dark-mode .skill-group-simple:hover {
    background: #3a3a3a;
    border-color: rgba(10, 132, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .skill-group-simple h4 {
    color: #f5f5f7;
}

/* Dark mode hobbies section */
body.dark-mode .hobby-item {
    background: #333333;
    border: 1px solid #404040;
}

body.dark-mode .hobby-item:hover {
    background: #3a3a3a;
    border-color: #0a84ff;
}

body.dark-mode .hobby-item i {
    color: #0a84ff;
}

body.dark-mode .hobby-item h4 {
    color: #f5f5f7;
}

body.dark-mode .hobby-item p {
    color: #a1a1a6;
}

/* Dark mode contact section */
body.dark-mode #contact .section-card {
    background: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-mode #contact h2 {
    color: #f5f5f7;
}

body.dark-mode #contact .section-description {
    color: #a1a1a6;
}

/* Dark mode contact cards */
body.dark-mode .contact-card {
    background: #333333;
    border: 1px solid #404040;
}

body.dark-mode .contact-card:hover {
    background: #3a3a3a;
    border-color: #0a84ff;
}

body.dark-mode .contact-card i {
    color: #0a84ff;
}

body.dark-mode .contact-card h4 {
    color: #f5f5f7;
}

body.dark-mode .contact-card p {
    color: #a1a1a6;
}

/* Dark mode control center */
body.dark-mode .control-center-dropdown {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid #404040;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dark-mode .control-group {
    background: rgba(51, 51, 51, 0.8);
    border: 1px solid #404040;
}

body.dark-mode .control-label {
    color: #f5f5f7;
}

body.dark-mode .control-center-item {
    border-bottom: 1px solid #404040;
}

body.dark-mode .control-center-item span {
    color: #f5f5f7;
}

body.dark-mode .toggle-slider {
    background-color: #404040;
}

body.dark-mode .toggle-switch input:checked + .toggle-slider {
    background-color: #0a84ff;
}

/* Dark mode modal */
body.dark-mode .modal {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .modal-content {
    background: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-mode .modal-header {
    border-bottom: 1px solid #404040;
}

body.dark-mode .modal-header h3 {
    color: #f5f5f7;
}

body.dark-mode .modal-close {
    background: #404040;
    color: #f5f5f7;
}

body.dark-mode .modal-close:hover {
    background: #4a4a4a;
}

body.dark-mode .modal-body #modalDescription {
    color: #d1d1d6;
}

body.dark-mode .modal-btn.secondary {
    background: #404040;
    color: #f5f5f7;
}

body.dark-mode .modal-btn.secondary:hover {
    background: #4a4a4a;
}

/* CV Modal Dark Mode */
body.dark-mode .cv-modal .download-btn {
    background: #0a84ff;
}

body.dark-mode .cv-modal .download-btn:hover {
    background: #0066cc;
}

body.dark-mode .cv-viewer-body {
    background: #2d2d2d;
}

body.dark-mode .cv-loading {
    background: #2d2d2d;
}

body.dark-mode .cv-loading p {
    color: #d1d1d6;
}

/* Dark mode h3 links */
body.dark-mode h3 a {
    color: #f5f5f7;
}

body.dark-mode h3 a:hover {
    color: #0a84ff;
}

/* Dark mode scrollbar */
body.dark-mode .sidebar::-webkit-scrollbar-thumb,
body.dark-mode .main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .sidebar::-webkit-scrollbar-thumb:hover,
body.dark-mode .main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .macos-window {
        margin-top: 44px; /* Adjusted for smaller menu bar */
    }
    
    .window-content {
        height: calc(100vh - 92px);
    }
    
    .main-content {
        padding: 24px;
    }
    
    .content-section.full-width {
        margin-left: -24px;
        margin-right: -24px;
    }
    
    .volunteering-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .skills-grid,
    .skills-simple-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .education-container,
    .experiment-container,
    .project-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Remove body padding on mobile */
    body {
        overflow-x: hidden;
    }
    
    /* Menu bar responsive */
    .macos-menubar-top {
        height: 40px;
        padding: 0 8px;
        font-size: 11px;
    }
    
    .macos-window {
        border-radius: 0;
        box-shadow: none;
        margin: 40px 0 0 0;
        width: 100%;
        max-width: 100%;
    }
    
    .apple-logo {
        font-size: 14px;
    }
    
    .menubar-left,
    .menubar-right {
        gap: 6px;
    }
    
    .titlebar {
        height: 48px;
        padding: 0 12px;
    }
    
    /* Hide "Kayra's Portfolio" text on mobile */
    .window-title {
        display: none;
    }
    
    /* Show profile picture on mobile */
    .titlebar-profile {
        display: flex;
    }
    
    .titlebar-profile .profile-info {
        display: none; /* Hide text but keep avatar */
    }
    
    .titlebar-profile .profile-avatar {
        display: block;
    }
    
    .titlebar-profile .profile-avatar img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }
    
    .menubar-center {
        display: none;
    }
    
    .menubar-datetime {
        font-size: 10px;
        padding: 0 4px;
    }
    
    .menu-icons {
        gap: 4px;
    }
    
    .menu-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .control-center-dropdown {
        right: 4px;
        top: 42px;
        width: 260px;
    }
    
    /* Layout responsive */
    .window-content {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 88px);
        max-height: none;
        position: relative;
        overflow-x: hidden;
    }
    
    /* Hide sidebar completely on mobile - no toggle button */
    .sidebar {
        display: none !important;
    }
    
    .sidebar-divider {
        display: none;
    }
    
    .resume-container,
    .social-icons {
        display: none;
    }
    
    /* Main content takes full width since sidebar is hidden */
    .main-content {
        padding: 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
    }
    
    /* Hide "Welcome to My Portfolio" heading on mobile */
    #overview h1 {
        display: none;
    }
    
    .content-section {
        margin-bottom: 24px;
    }
    
    .content-section.full-width {
        margin-left: -16px;
        margin-right: -16px;
    }
    
    /* Grid responsive */
    .skills-grid,
    .skills-simple-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .volunteering-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hobbies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .education-container,
    .experiment-container,
    .project-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Typography responsive */
    h1 {
        font-size: 26px;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 17px;
        line-height: 1.4;
    }
    
    h4 {
        font-size: 15px;
    }
    
    p, li {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .section-card {
        padding: 20px 16px;
    }
    
    .section-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Cards more compact */
    .card {
        padding: 16px;
    }
    
    /* Skill tags responsive */
    .skill-tag {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .skills {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px auto;
        max-height: 90vh;
    }
    
    /* CV Modal responsive */
    .cv-modal .cv-modal-content {
        width: 95vw;
        max-width: 95vw;
        max-height: 90vh;
    }
    
    .cv-modal .modal-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .cv-modal .modal-header h3 {
        font-size: 16px;
        flex: 1 1 100%;
    }
    
    .cv-modal .cv-modal-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .cv-modal .download-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .cv-modal .modal-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    
    .cv-viewer-body {
        height: calc(90vh - 100px);
    }
    
    /* Date styling */
    .date {
        font-size: 12px;
    }
    
    /* Lists */
    ul li {
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    /* Menu bar even smaller */
    .macos-menubar-top {
        height: 36px;
        padding: 0 6px;
    }
    
    .macos-window {
        margin-top: 36px;
    }
    
    .titlebar {
        height: 44px;
        padding: 0 8px;
    }
    
    /* Keep window title hidden on small phones too */
    .window-title {
        display: none;
    }
    
    /* Keep profile avatar visible and slightly smaller */
    .titlebar-profile .profile-avatar img {
        width: 28px;
        height: 28px;
    }
    
    .control-center-dropdown {
        top: 38px;
        width: 240px;
        right: 2px;
    }
    
    /* Traffic lights smaller */
    .traffic-lights {
        gap: 6px;
        left: 12px;
    }
    
    .traffic-lights span {
        width: 10px;
        height: 10px;
    }
    
    /* Main content padding */
    .main-content {
        padding: 12px;
    }
    
    .section-card {
        padding: 16px 12px;
    }
    
    .content-section {
        margin-bottom: 20px;
    }
    
    /* Typography extra small */
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    h4 {
        font-size: 14px;
    }
    
    p, li {
        font-size: 13px;
    }
    
    /* Skill tags smaller */
    .skill-tag {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    /* Hobbies single column */
    .hobbies-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Cards more compact */
    .card {
        padding: 14px;
    }
    
    .education-box ul,
    .experiment-box ul,
    .volunteering-box ul {
        padding-left: 18px;
    }
    
    /* Contact cards */
    .contact-card {
        padding: 14px;
    }
    
    /* Modal extra small */
    .modal-content {
        width: 95%;
        padding: 16px 12px;
    }
}

/* ============================================
   Blog Section Styles
   ============================================ */

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.blog-card {
    background: var(--macos-card-bg);
    border: 1px solid var(--macos-border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 122, 255, 0.2);
    border-color: var(--macos-accent);
}

.blog-card::after {
    content: '↗';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 18px;
    color: var(--macos-accent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.blog-card:hover::after {
    opacity: 1;
}

.blog-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--macos-text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--macos-text-secondary);
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-date::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--macos-text-secondary);
    border-radius: 50%;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--macos-accent);
    color: white;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.blog-excerpt {
    flex-grow: 1;
    font-size: 14px;
    color: var(--macos-text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Featured Posts Styling */
.featured-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-posts .blog-card {
    padding: 16px 20px !important;
    background: var(--macos-card-bg) !important;
    border: 1px solid var(--macos-border) !important;
    border-left: 3px solid var(--macos-accent) !important;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.featured-posts .blog-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.featured-posts .blog-card::before {
    content: '✨ Featured';
    display: block;
    font-size: 12px;
    color: var(--macos-text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.featured-posts .blog-card::after {
    display: none;
}

.featured-posts .blog-card-header {
    display: block;
}

.featured-posts .blog-card h3,
.featured-posts .blog-card-title {
    color: var(--macos-text-primary) !important;
    font-size: 16px !important;
    font-weight: 600;
    margin: 0 0 8px 0 !important;
}

.featured-posts .blog-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.featured-posts .blog-card-date {
    font-size: 13px;
    color: var(--macos-text-secondary);
}

.featured-posts .category-tag {
    background: transparent !important;
    color: var(--macos-accent) !important;
    border: 1px solid var(--macos-accent);
    padding: 2px 8px;
    font-size: 11px;
}

.featured-posts .blog-excerpt {
    display: none;
}

@media (max-width: 768px) {
    .featured-posts .blog-card {
        padding: 14px 16px !important;
    }

    .featured-posts .blog-card-title {
        font-size: 15px !important;
    }
}

/* Blog Post Page Styles */
.blog-post-card {
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-card h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--macos-text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-post-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--macos-border);
    margin-bottom: 32px;
}

.blog-post-date {
    font-size: 14px;
    color: var(--macos-text-secondary);
}

.blog-post-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--macos-accent);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.blog-post-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--macos-text-primary);
}

.blog-post-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--macos-text-primary);
}

.blog-post-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--macos-text-primary);
}

.blog-post-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
}

.blog-post-content p {
    margin-bottom: 16px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.blog-post-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.blog-post-content pre {
    background: var(--macos-sidebar-bg);
    border: 1px solid var(--macos-border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.blog-post-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    background: var(--macos-sidebar-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--macos-accent);
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    color: var(--macos-text-primary);
}

/* Blog Categories */
.blog-categories {
    padding: 12px;
}

.blog-categories h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--macos-text-primary);
    margin-bottom: 8px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--macos-text-secondary);
    transition: all 0.15s ease;
    text-decoration: none;
}

.category-btn:hover {
    background: var(--macos-sidebar-bg);
    color: var(--macos-text-primary);
}

.category-btn.active {
    background: var(--macos-accent);
    color: white;
}

/* Blog Post Navigation */
.blog-post-meta {
    padding: 12px 0;
}

.post-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.post-meta-label {
    font-size: 11px;
    color: var(--macos-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.post-meta-value {
    font-size: 13px;
    color: var(--macos-text-primary);
    font-weight: 500;
}

.blog-navigation {
    padding: 12px 0;
}

.nav-item {
    margin-bottom: 16px;
}

.nav-label {
    display: block;
    font-size: 11px;
    color: var(--macos-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--macos-accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    padding: 6px 8px;
    border-radius: 6px;
}

.nav-link:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: translateX(4px);
}

.next-post .nav-link {
    justify-content: flex-end;
}

.next-post .nav-link:hover {
    transform: translateX(-4px);
}

/* Loading State */
.blog-loading,
.blog-post-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    gap: 16px;
    color: var(--macos-text-secondary);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--macos-border);
    border-top-color: var(--macos-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Blog Main Content Scrolling */
.blog-main-content {
    display: flex;
    flex-direction: column;
}

.blog-post-main-content {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.featured-posts-container {
    margin-bottom: 48px;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-posts {
        grid-template-columns: 1fr;
    }

    .blog-post-card {
        padding: 24px;
    }

    .blog-post-card h1 {
        font-size: 24px;
    }

    .blog-post-content {
        font-size: 14px;
    }
}
