/* ========================================
   macOS Tahoe Liquid Glass + Windows 8 Tiles
   Portfolio Design System
======================================== */

/* ========================================
   CSS Variables & Design Tokens
======================================== */
:root {
    /* Liquid Glass Colors */
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-bg-hover: rgba(255, 255, 255, 0.18);
    --glass-bg-active: rgba(255, 255, 255, 0.22);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-border-hover: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.18);
    --glass-blur: blur(40px) saturate(180%);
    --glass-blur-heavy: blur(60px) saturate(200%);

    /* Accent colors - Monochromatic */
    --accent-blue: #a0a0a0;
    --accent-purple: #888888;
    --accent-pink: #b0b0b0;
    --accent-orange: #999999;
    --accent-green: #aaaaaa;
    --accent-teal: #9a9a9a;
    --accent-indigo: #858585;
    --accent-red: #b5b5b5;

    /* Gradients - Monochromatic */
    --gradient-hero: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
    --gradient-about: linear-gradient(135deg, #606060 0%, #404040 100%);
    --gradient-skills: linear-gradient(135deg, #505050 0%, #303030 100%);
    --gradient-experience: linear-gradient(135deg, #5c5c5c 0%, #3c3c3c 100%);
    --gradient-projects: linear-gradient(135deg, #555555 0%, #353535 100%);
    --gradient-apps: linear-gradient(135deg, #585858 0%, #383838 100%);
    --gradient-contact: linear-gradient(135deg, #525252 0%, #323232 100%);
    --gradient-blog: linear-gradient(135deg, #4f4f4f 0%, #2f2f2f 100%);
    --gradient-cv: linear-gradient(135deg, #686868 0%, #484848 100%);
    --gradient-github: linear-gradient(135deg, #565656 0%, #363636 100%);
    --gradient-social: linear-gradient(135deg, #5a5a5a 0%, #3a3a3a 100%);
    --gradient-music: linear-gradient(135deg, #4e4e4e 0%, #2e2e2e 100%);
    --gradient-cava: linear-gradient(135deg, #545454 0%, #343434 90%, #424242 100%);

    /* Background */
    --bg-primary: #0a0a0a;
    --bg-mesh-1: #1a1a1a;
    --bg-mesh-2: #151515;
    --bg-mesh-3: #202020;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;

    /* Spacing */
    --tile-gap: 16px;
    --tile-radius: 22px;

    /* Transitions */
    --spring: cubic-bezier(0.16, 1, 0.3, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: dark;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.90)), url('images/wp9084948-old-windows-wallpapers.jpg') center/cover no-repeat fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.6;
}

/* Hide scrollbar but keep scroll functionality */
body::-webkit-scrollbar {
    display: none;
}

body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ========================================
   Animated Background Blobs
======================================== */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4a4a4a, #2a2a2a);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #606060, #404040);
    top: 50%;
    right: -15%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #505050, #303030);
    bottom: -10%;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #555555, #353535);
    top: 30%;
    left: 50%;
    animation-delay: -15s;
    animation-duration: 28s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, -60px) scale(1.1); }
    50% { transform: translate(-40px, 80px) scale(0.95); }
    75% { transform: translate(60px, 40px) scale(1.05); }
}

/* ========================================
   Top Bar (macOS Menu Bar)
======================================== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(20, 20, 20, 0.35);
    backdrop-filter: blur(50px) saturate(150%);
    -webkit-backdrop-filter: blur(50px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
}

.topbar-left, .topbar-center, .topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-left {
    flex: 1;
}

.topbar-center {
    flex: 1;
    justify-content: center;
}

.topbar-right {
    flex: 1;
    justify-content: flex-end;
}

.apple-icon {
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.topbar-name {
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.topbar-dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-green { background: var(--accent-green); }
.dot-yellow { background: var(--accent-orange); }
.dot-red { background: var(--accent-red); }

/* ========================================
   Desktop / Main Area
======================================== */
.desktop {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 60px 0 120px;
    display: flex;
    align-items: center;
}

/* ========================================
   Tiles Container (Windows 8 Grid)
======================================== */
.tiles-container {
    display: grid;
    grid-template-rows: repeat(3, 180px);
    grid-auto-flow: column dense;
    grid-auto-columns: 180px;
    gap: var(--tile-gap);
    width: 100%;
    padding: 0 40px;
    overflow-x: auto;
    overflow-y: hidden;
    perspective: 1200px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tiles-container::-webkit-scrollbar {
    display: none;
}

/* ========================================
   Tile Base Styles (Liquid Glass)
======================================== */
.tile {
    position: relative;
    border-radius: var(--tile-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s var(--spring);
    transform-style: preserve-3d;
    will-change: transform;
}

.tile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    z-index: 0;
    transition: all 0.5s var(--spring);
}

.tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0.15;
    z-index: 0;
    transition: opacity 0.5s var(--spring);
}

/* Tile gradient overlays per type */
.tile-hero::after { background: var(--gradient-hero); opacity: 0.25; }
.tile-about::after { background: var(--gradient-about); opacity: 0.2; }
.tile-skills::after { background: var(--gradient-skills); opacity: 0.2; }
.tile-experience::after { background: var(--gradient-experience); opacity: 0.2; }
.tile-projects::after { background: var(--gradient-projects); opacity: 0.2; }
.tile-apps::after { background: var(--gradient-apps); opacity: 0.2; }
.tile-contact::after { background: var(--gradient-contact); opacity: 0.2; }
.tile-blog::after { background: var(--gradient-blog); opacity: 0.2; }
.tile-cv::after { background: var(--gradient-cv); opacity: 0.2; }
.tile-github::after { background: var(--gradient-github); opacity: 0.2; }
.tile-social::after { background: var(--gradient-social); opacity: 0.2; }
.tile-music::after { background: var(--gradient-music); opacity: 0.2; }
.tile-cava::after { background: var(--gradient-cava); opacity: 0.2; }

/* Tile glow effect */
.tile-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.5s var(--spring);
    pointer-events: none;
}

.tile-hero .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(74, 74, 74, 0.3), transparent 70%); }
.tile-about .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(96, 96, 96, 0.3), transparent 70%); }
.tile-skills .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(80, 80, 80, 0.3), transparent 70%); }
.tile-experience .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(92, 92, 92, 0.3), transparent 70%); }
.tile-projects .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(85, 85, 85, 0.3), transparent 70%); }
.tile-apps .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(88, 88, 88, 0.3), transparent 70%); }
.tile-contact .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(82, 82, 82, 0.3), transparent 70%); }
.tile-blog .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(79, 79, 79, 0.3), transparent 70%); }
.tile-cv .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(104, 104, 104, 0.3), transparent 70%); }
.tile-github .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(86, 86, 86, 0.3), transparent 70%); }
.tile-social .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(90, 90, 90, 0.3), transparent 70%); }
.tile-music .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(78, 78, 78, 0.3), transparent 70%); }
.tile-cava .tile-glow { background: radial-gradient(circle at 50% 50%, rgba(84, 84, 84, 0.3), transparent 70%); }

/* Tile hover */
.tile:hover {
    transform: translateY(-6px) scale(1.02);
}

.tile:hover::before {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover);
}

.tile:hover::after {
    opacity: 0.3;
}

.tile:hover .tile-glow {
    opacity: 1;
}

/* Tile active/pressed */
.tile:active {
    transform: translateY(-2px) scale(0.98);
    transition-duration: 0.1s;
}

/* ========================================
   Tile Sizes (Windows 8 Layout)
======================================== */
.tile-large {
    grid-column: span 2;
    grid-row: span 2;
}

.tile-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.tile-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.tile-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* ========================================
   Tile Content
======================================== */
.tile-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
}

/* Non-hero tiles: bottom-left aligned */
.tile:not(.tile-hero) .tile-content {
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
}

/* Projects tile: fill content vertically */
.tile-projects .tile-content {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 8px;
    overflow: hidden;
}

.tile-projects .tile-title {
    margin-bottom: 0;
}

/* Contact and Social tiles: centered */
.tile-contact .tile-content,
.tile-social .tile-content {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.tile-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s var(--bounce);
}

.tile:hover .tile-icon {
    transform: scale(1.15) translateY(-4px);
}

.tile-large .tile-icon {
    font-size: 3.5rem;
}

.tile-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tile-large .tile-title {
    font-size: 1.75rem;
}

.tile-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.tile-large .tile-subtitle {
    font-size: 1rem;
}

/* Hero profile photo */
.hero-profile {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 30px rgba(120, 120, 120, 0.4);
    margin-bottom: 10px;
    flex-shrink: 0;
}

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

.tile-large .hero-profile {
    width: 90px;
    height: 90px;
    border-width: 3px;
}

/* Live info badge on hero tile */
.tile-live-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent-green);
}

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

/* Hero stats row */
.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mini tags on skill tile */
.tile-mini-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.tile-mini-tags span {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Counter on project tile */
.tile-counter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
}

.counter-num {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #888888, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.counter-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   Tile entrance animations
======================================== */
.tile {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    animation: tileEntrance 0.8s var(--spring) forwards;
}

.tile:nth-child(1) { animation-delay: 0.1s; }
.tile:nth-child(2) { animation-delay: 0.2s; }
.tile:nth-child(3) { animation-delay: 0.3s; }
.tile:nth-child(4) { animation-delay: 0.4s; }
.tile:nth-child(5) { animation-delay: 0.5s; }
.tile:nth-child(6) { animation-delay: 0.55s; }
.tile:nth-child(7) { animation-delay: 0.6s; }
.tile:nth-child(8) { animation-delay: 0.65s; }
.tile:nth-child(9) { animation-delay: 0.7s; }
.tile:nth-child(10) { animation-delay: 0.75s; }
.tile:nth-child(11) { animation-delay: 0.8s; }
.tile:nth-child(12) { animation-delay: 0.85s; }
.tile:nth-child(13) { animation-delay: 0.9s; }

@keyframes tileEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   App Overlay & Window
======================================== */
.app-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    pointer-events: none;
    opacity: 0;
    transition: all 0.5s var(--spring);
}

.app-overlay.active {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: auto;
    opacity: 1;
}

.app-window {
    width: 90vw;
    max-width: 960px;
    max-height: 85vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(25, 25, 25, 0.55);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    transition: all 0.5s var(--spring);
}

.app-overlay.active .app-window {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Window chrome (macOS title bar) */
.window-chrome {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    user-select: none;
}

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

.win-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: transparent;
}

.win-close { background: #a0a0a0; }
.win-minimize { background: #909090; }
.win-maximize { background: #888888; }

.win-btn:hover {
    color: rgba(0, 0, 0, 0.6);
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.window-actions {
    flex: 0 0 70px;
}

/* Window body */
.window-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.window-body::-webkit-scrollbar {
    width: 6px;
}

.window-body::-webkit-scrollbar-track {
    background: transparent;
}

.window-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* ========================================
   Glass Card (Reusable Component)
======================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.4s var(--spring);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Glass pill (buttons/tags) */
.glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s var(--spring);
    cursor: pointer;
}

.glass-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ========================================
   App Content Styles - Welcome
======================================== */
.app-welcome {
    text-align: center;
    padding: 40px 20px;
}

.glowing-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, #808080 0%, #606060 50%, #707070 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.welcome-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    padding: 24px 32px;
    text-align: center;
    min-width: 140px;
}

.stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.stat-lbl {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ========================================
   App Content Styles - About
======================================== */
.about-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.photo-frame {
    padding: 8px;
    overflow: hidden;
}

.photo-frame img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.about-info h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #888888, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-intro {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.about-info p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.about-highlights {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.highlight-icon {
    font-size: 1.2rem;
}

/* ========================================
   App Content Styles - Skills
======================================== */
.app-skills h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #909090, #707070);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.skill-card {
    padding: 24px;
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.skill-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.skill-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    width: 0%;
    transition: width 1.2s var(--spring);
}

.tech-cloud h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    font-size: 0.8rem;
    padding: 6px 14px;
}

/* ========================================
   App Content Styles - Projects
======================================== */
.app-projects h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #888888, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-scroll {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    overflow: hidden;
}

.project-img {
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--spring);
}

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

.project-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.project-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ptag {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-weight: 500;
}

.project-link {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
    padding: 6px 16px;
}

/* ========================================
   App Content Styles - Apps
======================================== */
.app-apps h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #959595, #757575);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    align-items: flex-start;
}

.app-item-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.app-item-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.app-item-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.app-item-links {
    display: flex;
    gap: 8px;
}

.app-item-links .glass-pill {
    font-size: 0.8rem;
    padding: 6px 14px;
}

/* ========================================
   App Content Styles - Contact
======================================== */
.app-contact h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #8a8a8a, #707070);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    padding: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(150, 150, 150, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-send {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
    background: rgba(150, 150, 150, 0.2);
    border-color: rgba(180, 180, 180, 0.3);
}

.btn-send:hover {
    background: rgba(180, 180, 180, 0.3);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    transition: all 0.3s var(--spring);
}

.contact-link:hover {
    transform: translateX(8px);
}

.cl-icon {
    font-size: 1.5rem;
}

.cl-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ========================================
   App Content Styles - CV
======================================== */
.app-cv {
    text-align: center;
    padding: 40px 20px;
}

.app-cv h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #a0a0a0, #808080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cv-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    max-width: 360px;
    margin: 32px auto;
    text-align: left;
}

.cv-doc-icon {
    font-size: 3rem;
}

.cv-doc-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cv-doc-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cv-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-cv {
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(150, 150, 150, 0.12);
    border-color: rgba(180, 180, 180, 0.25);
}

.btn-cv:hover {
    background: rgba(180, 180, 180, 0.25);
}

/* ========================================
   Dock (macOS style bottom bar)
======================================== */
.dock {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    padding: 8px 12px;
    border-radius: 22px;
    background: rgba(20, 20, 20, 0.35);
    backdrop-filter: blur(50px) saturate(150%);
    -webkit-backdrop-filter: blur(50px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dock-container {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.dock-separator {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 6px;
    align-self: center;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: 14px;
    transition: all 0.3s var(--bounce);
    position: relative;
}

.dock-item:hover {
    transform: translateY(-8px) scale(1.15);
    background: rgba(255, 255, 255, 0.08);
}

.dock-item:active {
    transform: translateY(-4px) scale(1.05);
}

.dock-icon {
    font-size: 1.6rem;
    transition: transform 0.3s var(--bounce);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.dock-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s var(--spring);
    white-space: nowrap;
}

.dock-item:hover .dock-label {
    opacity: 1;
    transform: translateY(0);
}

/* Dock magnification effect for neighbors */
.dock-item.neighbor {
    transform: translateY(-4px) scale(1.08);
}

/* Active dot indicator on dock */
.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-primary);
}

/* Minimized indicator — pulsing dot */
.dock-item.has-minimized::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-primary);
    animation: minimizedPulse 1.5s ease-in-out infinite;
}

@keyframes minimizedPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

/* ========================================
   Window close animation
======================================== */
.app-overlay.closing .app-window {
    transform: scale(0.85) translateY(30px);
    opacity: 0;
}

.app-overlay.closing {
    opacity: 0;
}

/* ========================================
   Window Minimize / Maximize (PC only)
======================================== */

/* Maximized: full screen window */
.app-window.maximized {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
    transition: all 0.4s var(--spring);
}

/* Minimized: shrink to dock */
.app-overlay.minimized {
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s var(--spring);
}

.app-overlay.minimized .app-window {
    transform: scale(0.3) translateY(80vh);
    opacity: 0;
    transition: all 0.4s var(--spring);
}

/* Restoring from minimized */
.app-overlay.restoring {
    pointer-events: auto;
    opacity: 1;
    transition: all 0.4s var(--spring);
}

.app-overlay.restoring .app-window {
    transform: scale(1) translateY(0);
    opacity: 1;
    transition: all 0.4s var(--spring);
}

/* Draggable window cursor */
.window-chrome.draggable {
    cursor: grab;
}

.window-chrome.draggable:active {
    cursor: grabbing;
}

/* Mobile: hide minimize/maximize buttons */
@media (max-width: 900px) {
    .win-minimize,
    .win-maximize {
        display: none;
    }
}

/* ========================================
   Content fade-in animations inside windows
======================================== */
.app-content h2,
.app-content h1,
.app-content p,
.app-content .glass-card,
.app-content .glass-pill,
.app-content form {
    opacity: 0;
    transform: translateY(16px);
    animation: contentFadeIn 0.6s var(--spring) forwards;
}

.app-content h1, .app-content h2 { animation-delay: 0.1s; }
.app-content p:first-of-type, .section-desc { animation-delay: 0.15s; }
.app-content .glass-card:nth-child(1) { animation-delay: 0.2s; }
.app-content .glass-card:nth-child(2) { animation-delay: 0.25s; }
.app-content .glass-card:nth-child(3) { animation-delay: 0.3s; }
.app-content .glass-card:nth-child(4) { animation-delay: 0.35s; }
.app-content form { animation-delay: 0.2s; }

@keyframes contentFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 900px) {
    .dock {
        display: none;
    }

    .desktop {
        padding: 50px 16px 20px;
        align-items: flex-start;
        justify-content: center;
    }

    .tiles-container {
        grid-template-rows: unset;
        grid-auto-flow: row;
        grid-auto-columns: unset;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
        max-width: 500px;
        padding: 0;
        overflow-x: visible;
        overflow-y: visible;
    }

    .tiles-container::-webkit-scrollbar {
        display: unset;
    }

    .tile-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .tile-wide {
        grid-column: span 2;
    }

    .app-window {
        width: 95vw;
        max-height: 90vh;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .photo-frame img {
        height: 250px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-img img {
        height: 200px;
    }

    .contact-layout {
        max-width: 100%;
    }

    .glowing-title {
        font-size: 1.8rem;
    }

    .window-body {
        padding: 24px 16px;
    }

    .music-player {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .tiles-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
        gap: 10px;
    }

    .tile-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .tile-content {
        padding: 14px;
    }

    .tile-icon {
        font-size: 2rem;
    }

    .tile-large .tile-icon {
        font-size: 2.5rem;
    }

    .tile-title {
        font-size: 0.95rem;
    }

    .tile-large .tile-title {
        font-size: 1.2rem;
    }

    .tile-subtitle {
        font-size: 0.75rem;
    }

    .desktop {
        padding: 50px 10px 20px;
    }

    .dock {
        display: none;
    }

    .welcome-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 200px;
    }

    .about-highlights {
        flex-direction: column;
    }

    .glowing-title {
        font-size: 1.3rem;
    }

    .app-content h2,
    .app-skills h2,
    .app-projects h2,
    .app-apps h2,
    .app-contact h2,
    .app-cv h2,
    .about-info h2 {
        font-size: 1.4rem;
    }

    .app-window {
        width: 98vw;
        max-height: 92vh;
        border-radius: 16px;
    }

    .window-body {
        padding: 16px 12px;
    }

    .hero-profile {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }

    .hero-stats {
        gap: 16px;
        margin-top: 12px;
        padding-top: 10px;
    }

    .hero-stat-number {
        font-size: 1.1rem;
    }

    .hero-stat-label {
        font-size: 0.6rem;
    }

    .project-mini-card {
        padding: 10px;
        gap: 6px;
    }

    .project-mini-img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .project-mini-name {
        font-size: 0.75rem;
    }

    .project-mini-tags span {
        font-size: 0.55rem;
        padding: 2px 5px;
    }

    .tile-projects-carousel {
        margin-top: 6px;
    }

    .cava-visualizer {
        height: 200px;
    }

    .cv-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cv-actions .btn-cv {
        text-align: center;
    }

    .social-grid {
        gap: 12px;
    }

    .social-card {
        padding: 16px 14px;
        gap: 12px;
    }

    .social-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        font-size: 1.8rem;
    }

    .social-icon svg {
        width: 36px;
        height: 36px;
    }

    .social-info h3 {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .social-info p {
        font-size: 0.75rem;
    }

    .app-social h2 {
        font-size: 1.5rem;
    }

    .app-social .section-desc {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
}

/* ========================================
   Wave bars animation on Cava tile
======================================== */
.tile-wave-preview {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 32px;
    margin-top: 12px;
}

.wave-bar {
    width: 6px;
    height: 50%;
    background: linear-gradient(180deg, rgba(180, 180, 180, 0.8), rgba(120, 120, 120, 0.5));
    border-radius: 3px;
    animation: waveAnimation 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes waveAnimation {
    0%, 100% { height: 30%; opacity: 0.6; }
    50% { height: 90%; opacity: 1; }
}

/* ========================================
   App Content Styles - Social Networks
======================================== */
.app-social h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #999999, #797979);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 601px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 24px;
    transition: all 0.4s var(--spring);
    text-decoration: none;
    color: inherit;
}

.social-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.social-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    transition: all 0.4s var(--spring);
}

.social-instagram .social-icon {
    background: linear-gradient(135deg, #707070, #606060, #808080);
    color: white;
}

.social-facebook .social-icon {
    background: #757575;
    color: white;
}

.social-twitter .social-icon {
    background: #808080;
    color: white;
}

.social-linkedin .social-icon {
    background: #6a6a6a;
    color: white;
}

.social-card:hover .social-icon {
    transform: scale(1.15) rotate(5deg);
}

.social-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.social-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   App Content Styles - Experience Timeline
======================================== */
.app-experience h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #8c8c8c, #6c6c6c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}

.timeline-item {
    position: relative;
    padding: 24px 24px 24px 50px;
    transition: all 0.4s var(--spring);
}

.timeline-item:hover {
    transform: translateY(-4px) scale(1.01);
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 32px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #888888, #666666);
    box-shadow: 0 0 0 4px rgba(136, 136, 136, 0.2);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 25.5px;
    top: 44px;
    bottom: -20px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 4px;
}

/* ========================================
   App Content Styles - Blog
======================================== */
.app-blog h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #7f7f7f, #5f5f5f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.blog-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.4s var(--spring);
}

.blog-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-category {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-link {
    margin-top: 8px;
    font-size: 0.85rem;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
    font-weight: 600;
    transition: all 0.3s var(--spring);
}

.blog-link:hover {
    transform: translateX(4px);
}

/* ========================================
   App Content Styles - Music Player
======================================== */
.app-music h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #858585, #555555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.music-player {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 32px;
    margin-bottom: 24px;
}

.music-artwork {
    position: relative;
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

.vinyl-spin {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #858585, #555555);
    border: 3px solid rgba(255, 255, 255, 0.15);
    animation: spin 3s linear infinite;
}

.vinyl-spin::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
}

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

.music-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.track-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.track-artist {
    font-size: 1rem;
    color: var(--text-secondary);
}

.track-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #858585, #555555);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s var(--spring);
    color: var(--text-primary);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.control-play {
    width: 64px;
    height: 64px;
    background: rgba(150, 150, 150, 0.25);
    border-color: rgba(180, 180, 180, 0.35);
}

.control-play:hover {
    background: rgba(180, 180, 180, 0.35);
}

.playlist-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s var(--spring);
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.playlist-item.active {
    background: rgba(150, 150, 150, 0.15);
    border-color: rgba(180, 180, 180, 0.3);
}

.track-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 24px;
    text-align: center;
}

.track-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.track-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   App Content Styles - Cava Visualizer
======================================== */
.app-cava h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #8a8a8a, #6a6a6a, #7a7a7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cava-visualizer {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#audioCanvas {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.cava-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.cava-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 100%;
    width: 100%;
    max-width: 600px;
}

.cava-bar {
    flex: 1;
    max-width: 12px;
    background: linear-gradient(180deg, #8a8a8a, #6a6a6a);
    border-radius: 6px 6px 0 0;
    transition: height 0.1s ease;
    box-shadow: 0 0 10px rgba(150, 150, 150, 0.5);
}

.cava-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.cava-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(150, 150, 150, 0.15);
    border-color: rgba(180, 180, 180, 0.25);
}

.cava-btn:hover {
    background: rgba(180, 180, 180, 0.25);
}

.cava-presets {
    display: flex;
    gap: 8px;
}

.preset-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.preset-btn.active {
    background: rgba(180, 180, 180, 0.25);
    border-color: rgba(200, 200, 200, 0.4);
}

.cava-info {
    padding: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cava-info strong {
    color: var(--text-primary);
}

/* ========================================
   Selection & Scrollbar
======================================== */
::selection {
    background: rgba(150, 150, 150, 0.3);
    color: white;
}

/* ========================================
   Mini Projects Carousel in Tile
======================================== */
.tile-projects-carousel {
    position: relative;
    flex: 1;
    width: 100%;
    margin-top: 6px;
    overflow: hidden;
    min-height: 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    pointer-events: auto;
}

.project-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s var(--spring);
    width: 100%;
    height: 100%;
}

.project-mini-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.project-mini-img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s var(--spring);
}

.project-mini-card:hover .project-mini-img {
    transform: scale(1.08) rotate(3deg);
}

.project-mini-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.project-mini-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    max-width: 100%;
}

.project-mini-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.project-mini-tags span {
    font-size: 0.6rem;
    padding: 2px 7px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ========================================
   CAVA Visualizer in Tile (Web Audio API)
======================================== */
.tile-cava {
    cursor: default;
    overflow: hidden;
}

.tile-cava:hover {
    transform: translateY(-4px) scale(1.01);
}

.tile-cava-content {
    padding: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    height: 100%;
    overflow: hidden;
}

.cava-bars-container {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 100%;
    height: 100%;
    padding: 0 6px 6px;
}

.cava-bar {
    flex: 1;
    min-width: 0;
    border-radius: 3px 3px 0 0;
    height: 4px;
    transition: height 80ms ease-out;
    will-change: height;
}

/* Gradient coloring per bar position like CAVA - Monochromatic */
.cava-bars-container .cava-bar {
    background: linear-gradient(180deg, 
        rgba(180, 180, 180, 0.95) 0%, 
        rgba(140, 140, 140, 0.8) 35%, 
        rgba(100, 100, 100, 0.6) 70%, 
        rgba(60, 60, 60, 0.5) 100%
    );
    box-shadow: 0 0 6px rgba(180, 180, 180, 0.4);
}

/* ========================================
   Mini Music Controls in Tile
======================================== */
.tile-music {
    cursor: default;
}

.tile-music:hover {
    transform: translateY(-4px) scale(1.01);
}

.tile-music-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px;
    height: 100%;
    padding: 16px 18px !important;
    overflow: hidden;
}

.tile-player-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.album-mini {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(150, 150, 150, 0.12);
    border: 2px solid rgba(180, 180, 180, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(200, 200, 200, 0.9);
    transition: all 0.4s var(--spring);
}

.album-mini.spinning {
    animation: disc-spin 3s linear infinite;
}

@keyframes disc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tile-track-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    width: 100%;
}

.tile-track-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-music-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(150, 150, 150, 0.25);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(180, 180, 180, 0.4);
    color: var(--text-primary);
    transition: all 0.3s var(--spring);
    cursor: pointer;
}

.tile-music-btn:hover {
    background: rgba(180, 180, 180, 0.3);
    border-color: rgba(200, 200, 200, 0.5);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(180, 180, 180, 0.3);
}

.tile-music-btn:active {
    transform: scale(0.95);
}

.tile-volume-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    flex-shrink: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0 2px;
    box-sizing: border-box;
}

.vol-icon {
    color: rgba(255, 255, 255, 0.6);
    min-width: 16px;
    flex-shrink: 0;
}

.tile-volume-slider {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
}

.tile-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b0b0b0, #808080);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    border: none;
}

.tile-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, #c0c0c0, #909090);
}

.tile-volume-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.tile-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b0b0b0, #808080);
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tile-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, #c0c0c0, #909090);
}

.tile-vol-value {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    min-width: 24px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

#audioPlayer {
    display: none;
}

/* ========================================\n   Reduced Motion\n======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .blob {
        animation: none;
    }
}
