:root {
    --bg: #0a0a0b;
    --bg-subtle: #111113;
    --surface: #17171a;
    --surface-hover: #1d1d21;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --text: #fafafa;
    --text-secondary: #b4b4bd;
    --text-muted: #92929c;
    --accent-1: #818cf8;
    --accent-2: #a78bfa;
    --accent-3: #ec4899;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    --glow: 0 0 80px rgba(99, 102, 241, 0.15);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --radius: 18px;
    --radius-sm: 10px;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

:where(a, button):focus-visible {
    outline: 3px solid #a5b4fc;
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.7rem 1rem;
    color: #0a0a0b;
    background: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

#ios-apps,
#web-projects,
#about {
    scroll-margin-top: 96px;
}

/* ─── Noise Texture Overlay ─── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ─── Layout Container ─── */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ─── Header ─── */
header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.04em;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface);
}

.nav-links a.active {
    color: var(--text);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--border);
}

/* ─── Hero Section ─── */
.hero {
    padding: 4.5rem 0 3.75rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 100%);
    height: 400px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.15rem, 5vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero h1 .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero .hero-eyebrow {
    width: fit-content;
    margin: 0 auto 1rem;
    padding: 0.35rem 0.75rem;
    color: #d8dcff;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(165, 180, 252, 0.18);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-button,
.featured-action,
.about-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-button {
    padding: 0.65rem 1rem;
}

.hero-button-primary,
.featured-action {
    color: #09090b;
    background: #fff;
    border: 1px solid #fff;
}

.hero-button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-hover);
}

/* ─── Section Titles ─── */
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-1);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-heading .section-label,
.section-heading .section-title {
    margin-bottom: 0;
}

.section-heading .section-label {
    margin-bottom: 0.35rem;
}

.section-count {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding-bottom: 0.1rem;
    white-space: nowrap;
}

.web-tools-heading {
    margin-top: 4rem;
}

/* ─── Featured Project ─── */
.featured-section {
    padding: 0 0 4.5rem;
}

.featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 15%, rgba(99, 102, 241, 0.13), transparent 34%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.featured-visual {
    min-height: 430px;
    overflow: hidden;
    background: #12191f;
}

.featured-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.featured-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.featured-title-row h2 {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.featured-copy > p:not(.section-label) {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

.featured-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.3rem 0 1.6rem;
    list-style: none;
}

.featured-points li {
    padding: 0.35rem 0.65rem;
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.featured-action {
    padding: 0.65rem 1rem;
}

/* ─── Apps Grid ─── */
.apps-section {
    padding-bottom: 4.5rem;
}

.web-projects-section {
    padding-top: 0.5rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
}

.ios-apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.web-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.018), transparent 42%), var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    font: inherit;
    text-align: left;
}

.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
    border-color: var(--border-hover);
}

.app-card:hover::before {
    opacity: 1;
}

.app-icon-stage {
    position: relative;
    min-height: 240px;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
}

.app-icon-stage::before,
.app-icon-stage::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    z-index: -1;
}

.app-icon-stage::before {
    width: 175px;
    height: 175px;
    top: -45px;
    right: -35px;
    background: rgba(255, 255, 255, 0.13);
}

.app-icon-stage::after {
    width: 145px;
    height: 145px;
    bottom: -60px;
    left: -25px;
    background: rgba(0, 0, 0, 0.15);
}

.app-icon-stage-palabrita {
    background: linear-gradient(145deg, #f6c44b 0%, #d95a25 100%);
}

.app-icon-stage-beenstamp {
    background: linear-gradient(145deg, #74d4ed 0%, #2676c9 100%);
}

.app-icon-stage-fitness {
    background: linear-gradient(145deg, #5e2d8a 0%, #170e2a 100%);
}

.app-icon-stage-poker {
    background: linear-gradient(145deg, #ef5b43 0%, #411326 100%);
}

.app-icon-stage-borderclock {
    background: linear-gradient(145deg, #1b55d9 0%, #031039 100%);
}

.app-icon-stage-roamline {
    background: linear-gradient(145deg, #bcefe5 0%, #f8d9b3 100%);
}

.app-icon {
    width: 58%;
    height: auto;
    max-width: 142px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 27%;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
}

.ios-app-card:hover .app-icon {
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 23px 45px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.app-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-subtle);
    position: relative;
    overflow: hidden;
}

.app-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--surface), transparent);
    pointer-events: none;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover .app-screenshot {
    transform: scale(1.03);
}

.app-info {
    padding: 1.25rem 1.4rem 1.4rem;
}

.app-info h3 {
    font-size: 1.06rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
}

.app-title-row h3 {
    margin-bottom: 0;
}

.platform-mark {
    flex: 0 0 auto;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(129, 140, 248, 0.26);
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.45rem;
}

.platform-marks {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex: 0 0 auto;
}

.platform-mark-web {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.2);
}

.platform-mark-pilot {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(251, 191, 36, 0.24);
}

.external-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.2s, transform 0.2s;
}

.app-card:hover .external-arrow {
    color: var(--text);
    transform: translate(2px, -2px);
}

.app-info h3 .emoji {
    font-size: 1.2rem;
}

.app-info p {
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.58;
    margin: 0;
}

.app-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b9a7ff;
    background: rgba(139, 92, 246, 0.13);
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 0.75rem;
}

.ios-app-card {
    cursor: pointer;
}

.card-click-target {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}

.ios-app-card:focus-within {
    outline: 3px solid rgba(129, 140, 248, 0.8);
    outline-offset: 4px;
}

.app-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
    padding-top: 1.25rem;
}

.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 0.8rem;
    border-radius: 9px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card-action-primary {
    color: #0a0a0b;
    background: #fff;
    border: 1px solid #fff;
}

.card-action-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-hover);
}

.web-project-card .card-action {
    pointer-events: none;
}

/* ─── Web Tool Visuals ─── */
.tool-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.travel-visual {
    background: #10191d;
}

.travel-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 11, 0.32), transparent 38%);
    pointer-events: none;
}

.travel-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), filter 0.45s;
}

.app-card:hover .travel-card-image {
    transform: scale(1.025);
    filter: saturate(1.04) contrast(1.01);
}

.web-project-card .app-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 170px;
}

.web-project-card .app-tag {
    align-self: flex-start;
    margin-top: auto;
}

/* ─── About ─── */
.about-section {
    padding: 1rem 0 5rem;
}

.about-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
    padding: clamp(1.75rem, 5vw, 3rem);
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent 48%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.about-card h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.about-card > div:first-child > p:last-child {
    max-width: 650px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.about-links a {
    padding: 0.5rem 0.8rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-hover);
    font-size: 0.8rem;
}

/* ─── App Detail Modal ─── */
.app-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: min(calc(100% - 3rem), 570px);
    max-width: none;
    max-height: calc(100dvh - 3rem);
    margin: auto;
    overflow: hidden;
    padding: 4rem 0 0;
    color: var(--text);
    background: linear-gradient(145deg, rgba(30, 30, 34, 0.99), rgba(17, 17, 19, 0.995));
    border: 1px solid var(--border-hover);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), var(--glow);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-modal[open] {
    display: block;
}

.modal-scroll {
    max-height: calc(100dvh - 7rem - 2px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 2rem 2rem;
}

.app-modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.app-modal.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    z-index: 1;
    top: 0.75rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    background: #27272b;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover,
.modal-close:focus-visible {
    color: var(--text);
    background: #36363b;
}

.modal-close svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.modal-header > div {
    min-width: 0;
}

.modal-app-icon {
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 24%;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.modal-eyebrow {
    color: #a5b4fc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-modal h2 {
    margin: 0.2rem 0 0.15rem;
    font-size: 1.65rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.7;
}

.modal-release {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.modal-update {
    margin-bottom: 1.65rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.modal-update h3 {
    margin: 0 0 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.modal-update p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

.modal-features {
    display: grid;
    gap: 0.65rem;
    margin: 1.3rem 0 1.65rem;
    padding: 0;
    list-style: none;
}

.modal-features li {
    position: relative;
    padding-left: 1.35rem;
    color: #d4d4d8;
    font-size: 0.86rem;
}

.modal-features li::before {
    content: '';
    position: absolute;
    left: 0.1rem;
    top: 0.56rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #ec4899);
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.55);
}

.modal-actions {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.store-button,
.website-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 650;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.pilot-status {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0.7rem 1rem;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.store-button {
    gap: 0.55rem;
    padding: 0.5rem 1rem;
    color: #09090b;
    background: #fff;
}

.apple-mark {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.75rem;
    line-height: 1;
}

.store-button span:last-child {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    line-height: 1.05;
}

.store-button small {
    font-size: 0.58rem;
    font-weight: 500;
    margin-bottom: 0.14rem;
}

.website-button {
    padding: 0.7rem 1rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-hover);
    font-size: 0.85rem;
}

.store-button:hover,
.website-button:hover {
    transform: translateY(-2px);
}

.website-button:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
}

/* ─── Footer ─── */
footer {
    padding: 2.75rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

footer .social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

footer .social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

footer .social-links a:hover {
    color: var(--text);
}

/* ─── Portfolio Page Styles ─── */
.page-header {
    padding: 3rem 0 2rem;
}

.page-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding-bottom: 3rem;
}

.video-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: var(--bg-subtle);
    display: block;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.video-wrapper:hover .video-thumbnail {
    opacity: 0.8;
    transform: scale(1.03);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.video-wrapper:hover .play-button {
    background: var(--accent-1);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    width: 22px;
    height: 22px;
    fill: white;
    margin-left: 3px;
}

.video-info {
    padding: 1.25rem;
}

.video-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.video-year {
    font-size: 0.7rem;
    color: var(--accent-2);
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 7px;
    border-radius: 6px;
    margin-left: 8px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.video-info p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.channel-link {
    text-align: center;
    padding: 2rem 0 4rem;
}

.channel-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.05);
    transition: all 0.2s;
}

.channel-link a:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
}

@media (hover: hover) {
    .hero-button:hover,
    .featured-action:hover,
    .about-links a:hover,
    .card-action:hover {
        transform: translateY(-2px);
    }
    .hero-button-secondary:hover,
    .about-links a:hover,
    .card-action-secondary:hover {
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(255, 255, 255, 0.24);
    }
    .featured-card:hover .featured-visual img {
        transform: scale(1.025);
    }
}

/* ─── Responsive ─── */
@media (max-width: 800px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    .featured-visual {
        min-height: 340px;
        max-height: 460px;
    }
    .featured-copy {
        padding: 2rem;
    }
    .about-card {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .about-links {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .app-image-container {
        height: 200px;
        aspect-ratio: auto;
    }
    .app-icon-stage {
        min-height: 200px;
    }
    .card-action {
        flex: 1 1 auto;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .logo {
        font-size: 1.15rem;
    }
    .nav-links a {
        padding: 0.45rem 0.5rem;
        font-size: 0.75rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-button {
        width: 100%;
    }
    .featured-section {
        padding-bottom: 3.5rem;
    }
    .featured-visual {
        min-height: 0;
        aspect-ratio: 1;
    }
    .featured-copy {
        padding: 1.5rem;
    }
    .featured-title-row {
        align-items: flex-start;
    }
    .apps-grid {
        grid-template-columns: 1fr;
    }
    .section-heading {
        align-items: flex-start;
    }
    .app-icon-stage {
        min-height: 230px;
    }
    .web-project-card .app-info {
        min-height: 150px;
    }
    .app-modal {
        inset: auto 0 0;
        width: 100%;
        max-height: 92dvh;
        margin: 0;
        border-radius: 24px 24px 0 0;
    }
    .modal-scroll {
        max-height: calc(92dvh - 4rem - 2px);
        padding: 0 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    }
    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
    }
    .modal-header {
        align-items: flex-start;
        gap: 1rem;
        padding-right: 0;
    }
    .modal-app-icon {
        width: 76px;
        height: 76px;
    }
    .app-modal h2 {
        font-size: 1.35rem;
    }
    .modal-actions {
        flex-direction: column;
    }
    .store-button,
    .website-button {
        width: 100%;
    }
}

@media (max-width: 360px) {
    header {
        padding: 0.75rem 0;
    }
    .logo {
        font-size: 1.05rem;
    }
    .nav-links a[href="#about"],
    .nav-links a[href="index.html#about"] {
        display: none;
    }
    .nav-links a {
        padding-inline: 0.45rem;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .section-heading {
        gap: 0.5rem;
    }
    .section-count {
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .app-card:hover,
    .video-card:hover,
    .store-button:hover,
    .website-button:hover,
    .hero-button:hover,
    .featured-action:hover,
    .about-links a:hover,
    .ios-app-card:hover .app-icon,
    .app-card:hover .app-screenshot,
    .featured-card:hover .featured-visual img {
        transform: none;
    }
}
