/* ========================================
   CSS Variables & Reset - Apple Style
   ======================================== */

:root {
    /* Light Mode (Default) */
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --bg-subtle: #fafafa;
    --accent-blue: #0071e3;
    --accent-blue-light: #5ac8fa;
    --accent-blue-dark: #004499;
    --accent-blue-subtle: rgba(0, 113, 227, 0.08);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-muted: #a1a1a6;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-lifted: 0 20px 60px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --interactive-transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    --interactive-hover-transform: translateY(-1px);
    --interactive-active-transform: translateY(0) scale(0.98);
    --button-surface-bg: rgba(0, 0, 0, 0.05);
    --button-surface-hover-bg: rgba(0, 0, 0, 0.08);
    --button-surface-active-bg: rgba(0, 0, 0, 0.1);
    --button-surface-border: rgba(0, 0, 0, 0.08);
    --button-surface-hover-border: rgba(0, 0, 0, 0.12);
    --button-surface-active-border: rgba(0, 0, 0, 0.16);
    --button-surface-shadow: none;
    --button-surface-shadow-hover: none;
    --button-surface-shadow-active: none;
    --button-primary-shadow: none;
    --button-primary-shadow-hover: none;
    --button-primary-shadow-active: none;
    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 30px;
    --radius-full: 50%;
    --glow-color-1: rgba(255, 255, 255, 0.06);
    --glow-color-2: rgba(0, 0, 0, 0.02);
    --glow-color-3: rgba(255, 255, 255, 0.04);
    --selection-bg: rgba(0, 113, 227, 0.2);
    --selection-color: #1d1d1f;
    --bg-page-start: #ffffff;
    --bg-page-end: #f2f2f4;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-white: #0d0d0d;
    --bg-light: #1c1c1e;
    --bg-subtle: #2c2c2e;
    --accent-blue: #2997ff;
    --accent-blue-light: #5ac8fa;
    --accent-blue-dark: #0071e3;
    --accent-blue-subtle: rgba(41, 151, 255, 0.15);
    --text-primary: #f5f5f7;
    --text-secondary: #98989d;
    --text-muted: #636366;
    --glass-bg: rgba(28, 28, 30, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-lifted: 0 20px 60px rgba(0, 0, 0, 0.6);
    --button-surface-bg: rgba(255, 255, 255, 0.08);
    --button-surface-hover-bg: rgba(255, 255, 255, 0.12);
    --button-surface-active-bg: rgba(255, 255, 255, 0.16);
    --button-surface-border: rgba(255, 255, 255, 0.1);
    --button-surface-hover-border: rgba(255, 255, 255, 0.16);
    --button-surface-active-border: rgba(255, 255, 255, 0.22);
    --button-surface-shadow: none;
    --button-surface-shadow-hover: none;
    --button-surface-shadow-active: none;
    --button-primary-shadow: none;
    --button-primary-shadow-hover: none;
    --button-primary-shadow-active: none;
    --glow-color-1: rgba(255, 255, 255, 0.03);
    --glow-color-2: rgba(255, 255, 255, 0.015);
    --glow-color-3: rgba(255, 255, 255, 0.025);
    --selection-bg: rgba(41, 151, 255, 0.3);
    --selection-color: #f5f5f7;
    --bg-page-start: #0d0d0d;
    --bg-page-end: #1c1c1e;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

/* Selection */
::selection {
    background: var(--selection-bg);
    color: var(--selection-color);
}

body {
    font-family: var(--font-main);
    background: linear-gradient(180deg, var(--bg-page-start) 0%, var(--bg-page-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-x: clip;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar,
.hero,
.experience,
.command-section,
.kiosk-section,
.footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

/* Force all sections to inherit body background */
section {
    background: transparent !important;
}

/* ========================================
   Background Effects - Soft Blue Gradients
   ======================================== */

.bg-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Soft blue ambient glow */
.bg-glow-avatar {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--glow-color-1) 0%, var(--glow-color-2) 40%, transparent 70%);
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    animation: glowPulse 8s ease-in-out infinite;
}

/* Subtle warm glow on right */
.bg-glow-right {
    width: 500px;
    height: 800px;
    background: radial-gradient(ellipse at center, var(--glow-color-3) 0%, transparent 70%);
    top: 0;
    right: -100px;
    filter: blur(80px);
}

/* Bottom soft blue */
.bg-glow-bottom {
    width: 1000px;
    height: 400px;
    background: radial-gradient(ellipse at center, var(--glow-color-2) 0%, transparent 70%);
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(60px);
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ========================================
   Navigation - Apple Style
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInDown 0.8s var(--ease-out-expo) forwards;
    animation-delay: 0.1s;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    height: 26px;
    width: auto;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

.nav-text-mobile {
    display: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    width: 100%;
}

/* ========================================
   Shared Interactive States
   ======================================== */

.nav-links a,
.theme-toggle,
.settings-button,
.play-button,
.settings-close,
.command-copy-btn,
.contact-button,
.fixed-social-link,
.footer-social-link,
.scroll-top,
.kiosk-link-btn,
.app-action-btn,
.add-app-btn,
.btn-cancel,
.btn-submit,
.category-btn,
.store-action-btn,
.detail-close,
.detail-cta {
    transition: var(--interactive-transition);
}

.nav-links a:hover,
.theme-toggle:hover,
.settings-button:hover,
.play-button:hover,
.settings-close:hover,
.command-copy-btn:hover,
.contact-button:hover,
.fixed-social-link:hover,
.footer-social-link:hover,
.scroll-top:hover,
.kiosk-link-btn:hover,
.app-action-btn:hover,
.add-app-btn:hover,
.btn-cancel:hover,
.btn-submit:hover,
.category-btn:hover,
.store-action-btn:hover,
.detail-close:hover,
.detail-cta:hover {
    transform: var(--interactive-hover-transform);
}

.nav-links a:active,
.theme-toggle:active,
.settings-button:active,
.play-button:active,
.settings-close:active,
.command-copy-btn:active,
.contact-button:active,
.fixed-social-link:active,
.footer-social-link:active,
.scroll-top:active,
.kiosk-link-btn:active,
.app-action-btn:active,
.add-app-btn:active,
.btn-cancel:active,
.btn-submit:active,
.category-btn:active,
.store-action-btn:active,
.detail-close:active,
.detail-cta:active {
    transform: var(--interactive-active-transform);
}

/* Nav Left - Main Navigation */
.nav-left {
    display: flex;
    align-items: center;
}

/* Nav Right - Utility Icons */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Nav Container */
.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ========================================
   Dark Mode Toggle Button
   ======================================== */

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--accent-blue-subtle);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ========================================
   Settings Button
   ======================================== */

.settings-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.settings-button:hover {
    color: var(--text-primary);
    background: var(--accent-blue-subtle);
}

.settings-button svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px 48px;
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    max-width: 1400px;
    width: 100%;
    align-items: center;
}

/* Hero Image Column */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: fadeInScale 1s var(--ease-out-expo) forwards;
    animation-delay: 0.4s;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Avatar container with soft shadow */
.avatar-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Soft blue glow behind avatar */
.avatar-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, var(--glow-color-1) 0%, var(--glow-color-2) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: avatarGlowPulse 4s ease-in-out infinite;
}

@keyframes avatarGlowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

.avatar-wrapper {
    position: relative;
    z-index: 2;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: #ffffff;
    animation: avatarFloat 6s ease-in-out infinite;
}

.avatar-wrapper img {
    border-radius: 50%;
}


/* Avatar transformation animation - Smoke Effect */
.avatar-wrapper.transforming {
    animation: smokeOut 0.5s ease-in forwards !important;
}

.avatar-wrapper.transforming img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-wrapper.appearing {
    animation: smokeIn 0.5s ease-out forwards !important;
}

@keyframes smokeOut {
    0% {
        filter: blur(0px);
        opacity: 1;
    }
    50% {
        filter: blur(8px);
        opacity: 0.6;
    }
    100% {
        filter: blur(20px);
        opacity: 0;
    }
}

@keyframes smokeIn {
    0% {
        filter: blur(20px);
        opacity: 0;
    }
    50% {
        filter: blur(8px);
        opacity: 0.6;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

/* Smoke particles */
.smoke-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: smokeParticle 0.8s ease-out forwards;
    z-index: 1;
}

@keyframes smokeParticle {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2) translateY(-30px);
    }
}

/* Sparkles / Smoke container */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 50%;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: sparkle 0.6s ease forwards;
}

.sparkle:nth-child(1) { background: #ffd700; --angle: 0deg; }
.sparkle:nth-child(2) { background: #ff69b4; --angle: 45deg; }
.sparkle:nth-child(3) { background: #00ff00; --angle: 90deg; }
.sparkle:nth-child(4) { background: #00bfff; --angle: 135deg; }
.sparkle:nth-child(5) { background: #ff4500; --angle: 180deg; }
.sparkle:nth-child(6) { background: #9370db; --angle: 225deg; }
.sparkle:nth-child(7) { background: #ff1493; --angle: 270deg; }
.sparkle:nth-child(8) { background: #32cd32; --angle: 315deg; }

@keyframes sparkle {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--angle)) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--angle)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--angle)) scale(0) translateY(-40px);
    }
}

@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

/* ========================================
   Hero Content
   ======================================== */

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s;
}

.label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.description {
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.hero-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-blue);
    padding-left: 16px;
    margin-top: 12px;
}

/* ========================================
   Play Button - Apple Style
   ======================================== */

.play-button-container {
    margin-top: 16px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
}

.play-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: var(--accent-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.3);
}

.play-button:hover {
    background: #0077ed;
    box-shadow: 0 6px 30px rgba(0, 113, 227, 0.4);
}

.play-button:active {
    transform: var(--interactive-active-transform);
}

.play-icon {
    width: 20px;
    height: 20px;
    color: white;
    margin-left: 2px;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .avatar-container {
        width: 320px;
        height: 320px;
    }

    .avatar-wrapper {
        width: 280px;
        height: 280px;
    }

    .avatar-glow {
        width: 280px;
        height: 280px;
    }

    .hero-content {
        align-items: center;
    }

    .description {
        text-align: center;
    }

    .navbar {
        padding: 16px 32px;
    }

    .hero {
        padding: 100px 32px 32px;
    }

    .bg-glow-avatar {
        left: 50%;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .navbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "logo . utilities"
            "nav nav nav";
        align-items: center;
        gap: 12px;
        padding: 14px 20px 12px;
    }

    .logo-container {
        grid-area: logo;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-left {
        grid-area: nav;
        width: 100%;
        min-width: 0;
    }

    .nav-right {
        grid-area: utilities;
        position: static;
        justify-content: flex-end;
    }

    .settings-button {
        position: static;
    }

    .theme-toggle {
        position: static;
        margin-left: 0;
    }

    .nav-links {
        width: 100%;
        gap: 8px;
        padding-bottom: 2px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 8px 12px;
        border-radius: 999px;
        background: transparent;
        white-space: nowrap;
    }

    .nav-text-full {
        display: none;
    }

    .nav-text-mobile {
        display: inline;
    }

    .nav-links a::after {
        display: block;
        left: 12px;
        bottom: 5px;
        width: calc(100% - 24px);
        opacity: 0;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: calc(100% - 24px);
        opacity: 1;
        transform: scaleX(1);
    }

    .nav-links a.active {
        color: var(--text-primary);
    }

    .hero {
        padding: 140px 20px 24px;
    }

    .avatar-container {
        width: 260px;
        height: 260px;
    }

    .avatar-wrapper {
        width: 220px;
        height: 220px;
    }

    .avatar-glow {
        width: 220px;
        height: 220px;
    }

    .description {
        font-size: 1.5rem;
    }

    .play-button {
        width: 56px;
        height: 56px;
    }

    .play-icon {
        width: 18px;
        height: 18px;
    }

    .bg-glow {
        filter: blur(40px);
    }

    .bg-glow-avatar {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 420px) {
    .navbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-links a {
        font-size: 0.72rem;
        padding: 8px 11px;
    }
}

/* ========================================
   Experience Section - Timeline
   ======================================== */

.experience {
    min-height: 100vh;
    padding: 120px 48px;
    background: var(--bg-subtle);
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px;
}

.experience-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 60px;
}

/* Scroll Reveal Animation */
.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Smooth Easing Curves */
:root {
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Fade In Animation Keyframes - Enhanced */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In utility classes */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
    animation-delay: 0.3s;
}

/* Hero Content - Label */
.hero-content .label {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
    animation-delay: 0.2s;
}

/* Hero Content - Name */
.hero-content .hero-name {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
    animation-delay: 0.4s;
}

/* Hero Content - Title */
.hero-content .hero-title {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
    animation-delay: 0.6s;
}

/* Hero Content - Location */
.hero-content .hero-meta {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
    animation-delay: 0.7s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-content .hero-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.2;
}

.hero-content .hero-location svg {
    color: var(--accent-blue);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

/* Hero Content - Description */
.hero-content .description {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
    animation-delay: 0.8s;
}

/* Hero Content - Quote */
.hero-content .hero-quote {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
    animation-delay: 1s;
}

/* Hero Image */
.hero-image {
    opacity: 0;
    animation: fadeInScale 1s var(--ease-out-expo) forwards;
    animation-delay: 0.3s;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-blue) 0%, var(--accent-blue) 80%, transparent 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 50px;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s var(--ease-out-expo) forwards;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.25s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }
.timeline-item:nth-child(4) { animation-delay: 0.55s; }

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

/* Section Label & Title - Enhanced */
.section-label {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
    animation-delay: 0.2s;
}

.section-title {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
    animation-delay: 0.4s;
}

/* Dot on the line */
.timeline-dot {
    position: absolute;
    left: -52px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 4px solid var(--bg-subtle);
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.timeline-content {
    background: var(--bg-white);
    padding: 28px 32px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.timeline-year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .experience {
        padding: 80px 24px;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .timeline-dot {
        left: -40px;
        width: 16px;
        height: 16px;
    }
    
    .timeline-content {
        padding: 20px 24px;
    }
}

/* ========================================
   Command Kiosk
   ======================================== */

.command-section {
    min-height: 80vh;
    padding: 120px 48px;
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px;
}

.command-container {
    max-width: 1200px;
    margin: 0 auto;
}

.command-intro {
    max-width: 720px;
    margin: -28px 0 48px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.command-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.command-card {
    display: grid;
    gap: 0;
    padding: 22px 4px;
    border-bottom: 1px solid var(--glass-border);
    background: transparent;
    transition: opacity 0.2s ease;
}

.command-card:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.97;
}

.command-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.command-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.command-badge {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.command-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--interactive-transition);
    box-shadow: var(--shadow-soft);
}

.command-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 113, 227, 0.18);
    color: var(--accent-blue);
}

.command-copy-btn:active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 113, 227, 0.24);
}

.command-copy-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.command-copy-label {
    display: inline-block;
}

.command-copy-btn.copied {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.22);
}

.command-name {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

.command-description {
    margin: 0 0 12px;
    max-width: 72ch;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.command-code {
    margin-top: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow-x: auto;
}

[data-theme="dark"] .command-code {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.command-code code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

.command-empty {
    padding: 32px 20px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 1024px) {
    .command-intro {
        max-width: 640px;
    }
}

@media (max-width: 768px) {
    .command-section {
        padding: 80px 24px;
    }

    .command-intro {
        margin: -24px 0 32px;
        font-size: 1rem;
    }

    .command-card {
        padding: 18px 0;
    }

    .command-card-top {
        align-items: center;
        gap: 10px;
    }

    .command-meta {
        gap: 8px;
    }

    .command-copy-btn {
        padding: 8px 13px;
        font-size: 0.82rem;
    }

    .command-name {
        font-size: 1rem;
    }

    .command-description,
    .command-code code {
        font-size: 0.88rem;
    }
}

@media (max-width: 520px) {
    .command-card {
        padding: 16px 0;
    }

    .command-card-top {
        align-items: flex-start;
    }

    .command-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .command-copy-btn {
        min-height: 34px;
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 7px;
    }

    .command-code {
        padding: 11px 12px;
    }
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
    min-height: 60vh;
    padding: 120px 48px;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.contact-container {
    text-align: center;
    max-width: 600px;
}

.contact-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    margin-top: -40px;
}

.contact-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-small);
    transition: var(--transition-bounce);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.3);
}

.contact-button:hover {
    box-shadow: 0 6px 30px rgba(0, 113, 227, 0.4);
}

/* ========================================
   Fixed Social Links - Bottom Left (Desktop)
   ======================================== */

.fixed-socials {
    position: fixed;
    left: 32px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
}

.fixed-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.fixed-social-link:hover {
    background: var(--accent-blue);
    color: white;
}

.fixed-social-link svg {
    width: 18px;
    height: 18px;
}

/* Hide fixed socials on mobile, show footer socials instead */
@media (max-width: 768px) {
    .fixed-socials {
        display: none;
    }
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 24px 48px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

/* Dark mode footer */
[data-theme="dark"] .footer {
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.footer-socials {
    display: none;
}

/* Show footer socials only on mobile */
@media (max-width: 768px) {
    .footer-socials {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 16px;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0;
    }
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.footer-social-link:hover {
    background: var(--accent-blue);
    color: white;
}

.footer-social-link svg {
    width: 16px;
    height: 16px;
}

/* Responsive for fixed socials */
@media (max-width: 768px) {
    .fixed-socials {
        left: 16px;
        gap: 16px;
    }
    
    .fixed-social-link {
        width: 36px;
        height: 36px;
    }
    
    .fixed-social-link svg {
        width: 16px;
        height: 16px;
    }
}

/* Responsive for new sections */
@media (max-width: 768px) {
    .experience,
    .contact {
        padding: 80px 24px;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-dot {
        left: -30px;
        width: 14px;
        height: 14px;
    }
    
    .timeline-content {
        padding: 20px 24px;
    }
    
    .contact-description {
        font-size: 1rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.hidden {
    opacity: 0;
    visibility: hidden;
}

.visible {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Scroll to Top Button
   ======================================== */

.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent-blue);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    box-shadow: var(--shadow-lifted);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Settings Modal
   ======================================== */

.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-modal.active {
    opacity: 1;
    visibility: visible;
}

.settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.settings-panel {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-lifted);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.settings-modal.active .settings-panel {
    transform: scale(1) translateY(0);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--glass-border);
}

.settings-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.settings-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.settings-close:hover {
    background: var(--accent-blue-subtle);
    color: var(--text-primary);
}

.settings-close svg {
    width: 18px;
    height: 18px;
}

.settings-content {
    padding: 24px;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.color-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--text-primary);
    transform: scale(1.1);
}

/* Mobile settings */
@media (max-width: 640px) {
    .settings-panel {
        width: 95%;
        max-height: 90vh;
    }
    
    .color-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

/* ========================================
   Apps Management Section
   ======================================== */

.kiosk-section {
    min-height: 100vh;
    padding: 120px 48px;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px;
}

.kiosk-container {
    max-width: 1200px;
    margin: 0 auto;
}

.kiosk-header {
    margin-bottom: 18px;
}

.kiosk-label {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent-blue);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kiosk-title {
    margin: 14px 0 0;
    font-size: clamp(1.65rem, 2.3vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.kiosk-controls {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.kiosk-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-secondary);
}

.kiosk-search svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.kiosk-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 0.95rem;
    padding: 12px 32px 12px 0;
}

.kiosk-search input::placeholder {
    color: var(--text-secondary);
}

.kiosk-search-clear {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.kiosk-search-clear:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.kiosk-search-clear svg {
    width: 14px;
    height: 14px;
}

.kiosk-controls .category-filter {
    margin-bottom: 0;
}

.kiosk-controls .category-btn {
    padding: 6px 16px;
    font-size: 0.82rem;
}

.kiosk-grid {
    display: grid;
    margin-top: 2px;
}

.kiosk-item {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--glass-border);
    transition: opacity 0.2s ease;
}

.kiosk-item:hover {
    opacity: 0.96;
}

.kiosk-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}

.kiosk-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.kiosk-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.kiosk-info {
    min-width: 0;
}

.kiosk-name {
    margin: 0 0 6px;
    font-size: 1.04rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

.kiosk-category {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.kiosk-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

.kiosk-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.kiosk-link-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.kiosk-link-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent-blue);
}

.portable-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.setup-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.kiosk-empty {
    padding: 32px 20px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    text-align: center;
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}

.apps-section {
    min-height: 100vh;
    padding: 120px 48px;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px;
}

.apps-container {
    max-width: 1000px;
    margin: 0 auto;
}

.apps-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.6;
}

/* Add App Button */
.add-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-medium);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 24px;
}

.add-app-btn svg {
    width: 18px;
    height: 18px;
}

/* Sync Status */
.sync-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius-large);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    margin-left: 16px;
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff9500;
    animation: pulse 2s infinite;
}

.sync-status.connected .sync-dot {
    background: #34c759;
    animation: none;
}

.sync-status.error .sync-dot {
    background: #ff3b30;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* App Card */
.app-card {
    background: var(--bg-white);
    border-radius: var(--radius-large);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-icon svg {
    width: 24px;
    height: 24px;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.app-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-url {
    font-size: 0.75rem;
    color: var(--accent-blue);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-url:hover {
    text-decoration: underline;
}

/* App Actions */
.app-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.app-action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-small);
    border: none;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.app-action-btn svg {
    width: 16px;
    height: 16px;
}

.app-action-btn:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.app-action-btn.delete:hover {
    background: #ff3b3020;
    color: #ff3b30;
}

/* No Apps Message */
.no-apps {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Last Update */
.last-update {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

/* ========================================
   App Modal
   ======================================== */

.app-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.app-modal.active {
    opacity: 1;
    visibility: visible;
}

.app-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.app-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-lifted);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.app-modal.active .app-modal-content {
    transform: scale(1) translateY(0);
}

.app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.app-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.app-modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-small);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.app-modal-close:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.app-modal-close svg {
    width: 20px;
    height: 20px;
}

/* App Form */
.app-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-medium);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-subtle);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input[type="color"] {
    padding: 4px;
    height: 44px;
    cursor: pointer;
}

/* Checkbox Group */
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #1d1d1f;
}

[data-theme="dark"] .checkbox-group label {
    color: #f5f5f7;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #007aff;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.btn-cancel,
.btn-submit {
    padding: 12px 24px;
    border-radius: var(--radius-medium);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-cancel {
    background: var(--bg-subtle);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-cancel:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.btn-submit {
    background: var(--accent-blue);
    border: none;
    color: white;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .kiosk-section {
        padding: 72px 20px;
    }

    .kiosk-title {
        font-size: 1.65rem;
    }

    .kiosk-controls {
        gap: 10px;
        margin-bottom: 18px;
    }

    .kiosk-search {
        min-height: 46px;
        padding: 0 13px;
    }

    .kiosk-item {
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        gap: 12px;
        padding: 16px 0;
    }

    .kiosk-number {
        display: inline-flex;
        min-width: 20px;
        font-size: 0.72rem;
    }

    .kiosk-icon {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    .kiosk-info {
        min-width: 0;
    }

    .kiosk-name {
        font-size: 0.98rem;
    }

    .kiosk-category {
        font-size: 0.82rem;
    }

    .kiosk-actions {
        justify-content: flex-end;
        gap: 8px;
    }

    .kiosk-link-btn {
        width: 40px;
        height: 40px;
    }

    .apps-section {
        padding: 80px 24px;
    }
    
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .add-app-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .kiosk-search {
        min-height: 44px;
        padding: 0 12px;
    }

    .kiosk-search input {
        font-size: 0.9rem;
    }

    .kiosk-controls .category-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
    }

    .kiosk-item {
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        gap: 12px 14px;
        padding: 14px 0;
    }

    .kiosk-number,
    .kiosk-icon,
    .kiosk-info,
    .kiosk-actions {
        grid-column: auto;
        grid-row: auto;
    }

    .kiosk-number {
        display: inline-flex;
        min-width: 18px;
        font-size: 0.68rem;
    }

    .kiosk-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .kiosk-icon img {
        width: 28px;
        height: 28px;
    }

    .kiosk-name {
        font-size: 0.94rem;
    }

    .kiosk-category {
        font-size: 0.78rem;
    }

    .kiosk-actions {
        justify-content: flex-end;
        gap: 8px;
        padding-left: 0;
    }

    .kiosk-link-btn {
        width: 36px;
        height: 36px;
    }

    .kiosk-link-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 400px) {
    .kiosk-section {
        padding: 68px 18px;
    }

    .kiosk-title {
        font-size: 1.5rem;
    }

    .kiosk-item {
        gap: 10px 12px;
    }

    .kiosk-number {
        min-width: 16px;
        font-size: 0.64rem;
    }

    .kiosk-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .kiosk-actions {
        justify-content: flex-end;
        padding-left: 0;
    }

    .kiosk-link-btn {
        width: 34px;
        height: 34px;
    }
}

/* ========================================
   Apple App Store Style
   ======================================== */

.apps-section {
    min-height: 100vh;
    padding: 120px 48px;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px;
}

.apps-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.category-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

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

[data-theme="dark"] .category-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .category-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .category-btn.active {
    background: var(--accent-blue);
    color: white;
}

/* Store Grid - Apple App Store Style */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* Store Card */
.store-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.store-card-image {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.store-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.store-card-content {
    padding: 12px;
}

.store-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-card-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.store-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-card-version {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.store-card-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: var(--accent-blue-subtle);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Store Card Actions */
.store-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.store-card:hover .store-card-actions {
    opacity: 1;
}

.store-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.store-action-btn svg {
    width: 14px;
    height: 14px;
}

.store-action-btn:hover {
    background: white;
    transform: scale(1.1);
}

.store-action-btn.delete:hover {
    background: #ff3b30;
    color: white;
}

/* Add App Button */
.add-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-medium);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 24px;
}

.add-app-btn svg {
    width: 18px;
    height: 18px;
}

/* Last Update */
.last-update {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

/* No Apps Message */
.no-apps {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   App Detail Modal (App Store Style)
   ======================================== */

.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.detail-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.detail-modal.active .detail-content {
    transform: scale(1) translateY(0);
}

.detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10;
}

.detail-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.detail-close svg {
    width: 18px;
    height: 18px;
}

.detail-header {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, var(--accent-blue-subtle), transparent);
}

.detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    flex: 1;
    min-width: 0;
}

.detail-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.detail-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.detail-divider {
    opacity: 0.5;
}

.detail-body {
    padding: 0 24px 24px;
}

.detail-description {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.detail-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.detail-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
    color: white;
}

.detail-cta svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Unified Button States
   ======================================== */

.command-copy-btn,
.fixed-social-link,
.footer-social-link,
.kiosk-link-btn,
.btn-cancel,
.category-btn:not(.active),
.store-action-btn,
.detail-close {
    background: var(--button-surface-bg);
    border: 1px solid var(--button-surface-border);
    box-shadow: var(--button-surface-shadow);
}

[data-theme="dark"] .category-btn:not(.active) {
    background: var(--button-surface-bg);
    border: 1px solid var(--button-surface-border);
    box-shadow: var(--button-surface-shadow);
}

.theme-toggle:hover,
.settings-button:hover,
.command-copy-btn:not(.copied):hover,
.fixed-social-link:hover,
.footer-social-link:hover,
.kiosk-link-btn:hover,
.btn-cancel:hover,
.category-btn:not(.active):hover,
.store-action-btn:hover,
.detail-close:hover {
    background: var(--button-surface-hover-bg);
    border-color: var(--button-surface-hover-border);
    box-shadow: var(--button-surface-shadow-hover);
    color: var(--text-primary);
}

[data-theme="dark"] .category-btn:not(.active):hover {
    background: var(--button-surface-hover-bg);
    border-color: var(--button-surface-hover-border);
    box-shadow: var(--button-surface-shadow-hover);
    color: var(--text-primary);
}

.theme-toggle:active,
.settings-button:active,
.command-copy-btn:not(.copied):active,
.fixed-social-link:active,
.footer-social-link:active,
.kiosk-link-btn:active,
.btn-cancel:active,
.category-btn:not(.active):active,
.store-action-btn:active,
.detail-close:active {
    background: var(--button-surface-active-bg);
    border-color: var(--button-surface-active-border);
    box-shadow: var(--button-surface-shadow-active);
}

[data-theme="dark"] .category-btn:not(.active):active {
    background: var(--button-surface-active-bg);
    border-color: var(--button-surface-active-border);
    box-shadow: var(--button-surface-shadow-active);
}

.command-copy-btn.copied,
.category-btn.active {
    box-shadow: var(--button-primary-shadow);
}

.play-button,
.contact-button,
.scroll-top,
.btn-submit,
.detail-cta,
.add-app-btn {
    background: var(--accent-blue);
    box-shadow: var(--button-primary-shadow);
}

.play-button:hover,
.contact-button:hover,
.scroll-top:hover,
.btn-submit:hover,
.detail-cta:hover,
.add-app-btn:hover {
    background: var(--accent-blue);
    box-shadow: var(--button-primary-shadow-hover);
    color: #ffffff;
}

.play-button:active,
.contact-button:active,
.scroll-top:active,
.btn-submit:active,
.detail-cta:active,
.add-app-btn:active {
    background: var(--accent-blue);
    box-shadow: var(--button-primary-shadow-active);
    color: #ffffff;
}

.store-action-btn.delete,
.store-action-btn.delete:hover,
.store-action-btn.delete:active {
    color: #ff3b30;
}
