/* AN OS — a console-inspired portfolio, built on the existing content styles. */
:root { --gutter: clamp(22px, 5vw, 84px); --white: #f4f7ff; }
body { background: #030710; }
.main-os { --scene-rgb: 48, 104, 225; min-height: 100dvh; overflow: clip; background: #030710; }
.main-os[data-page="projects"] { --scene-rgb: 104, 82, 216; }
.main-os[data-page="clients"] { --scene-rgb: 159, 113, 65; }
.main-os[data-page="skills"] { --scene-rgb: 31, 139, 148; }
.main-os[data-page="mma"] { --scene-rgb: 170, 48, 78; }
.main-os[data-page="experience"] { --scene-rgb: 94, 119, 168; }
.main-os[data-page="contact"] { --scene-rgb: 42, 118, 184; }
.console-backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(120deg, #050a15, #060e20 55%, #02050b); }
.scene-light { position: absolute; inset: -15%; background: radial-gradient(ellipse at 72% 48%, rgba(var(--scene-rgb), .37), transparent 52%); transition: background 600ms ease; }
.scene-orbit { position: absolute; width: 1250px; height: 660px; right: -355px; top: 165px; border: 1px solid rgba(147, 189, 255, .19); border-radius: 50%; transform: rotate(-29deg); box-shadow: 0 -28px 80px -45px rgba(var(--scene-rgb), .8), inset 0 2px 30px -24px #b8dbff; }
.orbit-two { width: 1410px; height: 765px; right: -385px; top: 130px; border-color: rgba(147, 189, 255, .09); }
.orbit-three { width: 1570px; height: 880px; right: -410px; top: 95px; border-color: rgba(147, 189, 255, .055); }
.scene-mark { position: absolute; top: 270px; right: 8%; color: rgba(167, 203, 255, .1); font-size: clamp(220px, 25vw, 430px); font-weight: 800; font-style: italic; letter-spacing: -.12em; line-height: 1; text-shadow: 0 12px 70px rgba(var(--scene-rgb), .14); transform: rotate(-9deg); user-select: none; transition: opacity 400ms ease; }
.main-os:not([data-page="home"]) .scene-mark { opacity: .22; }
.ambient-particles { position: fixed; overflow: hidden; opacity: .6; }

/* The small system bar stays out of the way of the tile launcher. */
.topbar { position: sticky; top: 0; z-index: 30; min-height: 98px; padding: 0 var(--gutter); gap: 42px; background: none; backdrop-filter: none; border: 0; flex-wrap: nowrap; align-items: center; transition: background-color .25s; }
.main-os.is-scrolled .topbar { background-color: #050b18ee; backdrop-filter: blur(16px); }
.brand-button { border: 0; background: none; color: white; text-align: left; cursor: pointer; padding: 7px 0; }
.brand .brand-logo { display: grid; place-items: center; width: 35px; height: 35px; margin: 0; color: #edf5ff; font-size: 11px; border-color: #a8c1e0; }
.brand .brand-name { color: #e9f1ff; font-size: 14px; font-weight: 600; letter-spacing: 3px; line-height: 1.3; margin: 0; }
.brand-name small { display: block; color: #8b9cb8; font-size: 6px; letter-spacing: 1.3px; margin-top: 4px; }
.system-tabs { display: flex; gap: 27px; align-items: center; }
.system-tab { border: 0; padding: 12px 0; background: none; color: #8290a8; font-size: 18px; font-weight: 500; cursor: pointer; transition: color .2s; }
.system-tab:hover, .system-tab.active { color: #f4f7ff; }
.system-tab.active { text-shadow: 0 0 22px #b0d0ff55; }
.header-right { gap: 23px; font-size: 14px; white-space: nowrap; }
.availability { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #afbdd3; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #7de2bd; box-shadow: 0 0 12px #7de2bd44; flex: 0 0 5px; }
.utility-button, .profile-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; cursor: pointer; color: #dae6fa; }
.utility-button { font-size: 19px; }
.utility-button:hover { color: white; }
.profile-button { border: 1px solid #7087aa; border-radius: 50%; background: linear-gradient(140deg, #324d74, #152139); font-size: 11px; font-weight: 600; }
#clock { font-variant-numeric: tabular-nums; font-weight: 300; }

/* Visual launcher: the selected tile has the console's bright focus frame. */
.dashboard-navigation { position: relative; z-index: 20; padding: 5px calc(var(--gutter) - 7px) 0; max-width: 1868px; margin: 0 auto; }
.main-nav { display: flex; align-items: flex-start; gap: 17px; width: 100%; height: 165px; margin: 0; padding: 9px 7px 10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-btn, .nav-btn.active, .nav-btn:hover { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; flex: 0 0 86px; width: 86px; height: 147px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; white-space: normal; transition: flex-basis .28s ease, width .28s ease; }
.nav-btn.active { flex-basis: 126px; width: 126px; }
.tile-art { position: relative; display: grid; place-items: center; width: 80px; height: 80px; border: 1px solid #b2ccf12b; border-radius: 15px; box-shadow: 0 12px 25px #0005; overflow: hidden; flex-shrink: 0; color: #eef5ff; transition: width .28s ease, height .28s ease, border-color .2s, transform .2s, box-shadow .2s; }
.tile-art > i { font-size: 29px; text-shadow: 0 4px 15px #0004; }
.tile-monogram { font-size: 28px; font-weight: 700; letter-spacing: -2px; }
.tile-index { position: absolute; top: 8px; right: 9px; font-size: 8px; color: #ffffff70; letter-spacing: 1px; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.tile-home { background: radial-gradient(circle at 80% 10%, #4b87e9, transparent 70%), linear-gradient(135deg, #244976, #07172b); }
.tile-projects { background: linear-gradient(145deg, #5d56ad, #1b1c49); }
.tile-clients { background: linear-gradient(145deg, #96704c, #33261d); }
.tile-skills { background: linear-gradient(145deg, #347a86, #122d39); }
.tile-mma { background: #282e49; }
.tile-experience { background: linear-gradient(145deg, #687a96, #243044); }
.tile-contact { background: linear-gradient(145deg, #3973c5, #162b51); }
.nav-btn.active .tile-art { width: 112px; height: 112px; border-color: #c7dcff; outline: 2px solid #f3f7ff; outline-offset: 4px; box-shadow: 0 0 0 7px #b9d7ff08, 0 0 30px #87b8ff27, 0 16px 28px #0005; }
.nav-btn.active .tile-art > i { font-size: 38px; }
.nav-btn.active .tile-monogram { font-size: 39px; }
.nav-btn:hover:not(.active) .tile-art { transform: translateY(-3px); border-color: #bccff0a6; }
.nav-btn:focus-visible { outline: none; }
.nav-btn:focus-visible .tile-art { outline: 2px solid white; outline-offset: 4px; }
.tile-label { display: block; margin-top: 13px; font-size: 11px; line-height: 1.3; font-weight: 400; color: #93a4bf; }
.nav-btn.active .tile-label { color: white; font-size: 13px; }

/* A large selected experience, with room for the atmospheric background. */
.page-container { position: relative; padding: 28px var(--gutter) 110px; min-height: calc(100dvh - 268px); }
.page { max-width: 1700px; scroll-margin-top: 25px; }
.page.active-page { animation: console-page-enter .4s ease both; }
@keyframes console-page-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.dashboard-hero { max-width: 650px; padding: 4px 0 10px; }
.hero-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #a3b8d7; font-size: 9px; font-weight: 500; letter-spacing: 1.6px; }
.hero-kicker-divider { height: 9px; width: 1px; background: #547095; margin: 0 3px; }
.hero h1 { font-size: clamp(66px, 6.5vw, 100px); font-weight: 300; letter-spacing: -4.8px; line-height: .96; margin-top: 22px; }
.hero h1 span { color: #eef4ff; }
.hero-role { font-size: 17px; font-weight: 400; color: #c8d8f0; margin-top: 23px; letter-spacing: .15px; }
.hero-description { max-width: 485px; font-size: 15px; line-height: 1.8; color: #9eafc9; margin-top: 12px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-actions .primary-btn { margin: 0; min-height: 47px; padding: 13px 25px; font-size: 13px; font-weight: 500; gap: 27px; border-radius: 28px; }
.launch-btn { color: #152137; background: #edf4ff; border-color: #edf4ff; box-shadow: 0 3px 18px #cee0ff16; }
.launch-btn:hover { background: white; border-color: white; box-shadow: 0 0 0 3px #edf4ff25; }
.secondary-btn { background: #e0ebff0b; border-color: #bdd0eb3d; color: #e2ecfd; }
.secondary-btn:hover { background: #c2d9ff1a; border-color: #b8d0f4; }
.page-heading { margin-bottom: 34px; }
.page-heading h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.1; letter-spacing: -2.7px; }
.page-heading p { max-width: 680px; margin-top: 17px; font-size: 15px; color: #adbed5; }
.eyebrow { font-size: 9px; letter-spacing: 1.8px; color: #aac7ed; }

/* Real projects are presented like a small game library. */
.featured-section { margin-top: 38px; max-width: 1080px; }
.featured-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.featured-heading h2 { font-size: 15px; font-weight: 500; color: #dbe6f7; }
.all-projects-button { background: none; border: 0; color: #9eb1cd; font-size: 11px; min-height: 36px; padding: 0; cursor: pointer; }
.all-projects-button i { margin-left: 12px; }
.all-projects-button:hover { color: white; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.featured-game { min-width: 0; border-radius: 12px; }
.game-cover { position: relative; height: 165px; overflow: hidden; border: 1px solid #a1bce033; border-radius: 12px; box-shadow: 0 12px 30px #0003; transition: transform .25s, border-color .25s; }
.game-cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 24%; transition: transform .5s; }
.game-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #01081265, transparent 45%); pointer-events: none; }
.game-cover-arrow { position: absolute; z-index: 1; right: 11px; bottom: 11px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #ffffff44; border-radius: 50%; background: #0c152666; color: #edf4ff; font-size: 9px; }
.featured-game:hover .game-cover { transform: translateY(-3px); border-color: #deecff; }
.featured-game:hover img { transform: scale(1.035); }
.game-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding: 13px 1px 0; }
.game-caption h3 { font-size: 13px; font-weight: 500; color: #e0e9f8; }
.game-caption > span { font-size: 7px; color: #8b9db9; letter-spacing: 1px; }
.quick-links { margin-top: 35px; gap: 10px 25px; }
.quick-link { font-size: 11px; color: #9eb0cb; }
.home-section { max-width: 850px; margin-top: 38px; padding-top: 30px; }
.section-title { font-size: 25px; }
.feedback-shell { background: #0b192a66; }
.testimonial-card p { font-size: 15px; }
.feedback-slider { display: grid; }
.testimonial-card { position: relative; grid-area: 1 / 1; }
.project-card:hover { transform: translateY(-3px); }
.project-image { border-color: #9cbae033; box-shadow: 0 16px 32px #0003; }
.project-card:hover .project-image { border-color: #d5e7ffb3; }
.project-info h2 { font-size: 21px; }
.project-info p { font-size: 14px; }
.filter-btn { min-height: 40px; color: #b2c1d7; }
.filter-btn.active { color: #10213c; background: #e7effc; }
.client-card, .service-dropdown, .experience-dropdown { background-color: #0a152966; }
.skill-card { background-color: #0b182b70; }
.contact-form, .contact-item { background-color: #0b172b70; }

/* A quiet control strip completes the console frame. */
.bottom-controls { z-index: 40; left: 0; right: 0; bottom: 0; min-height: 68px; padding: 10px var(--gutter); background: linear-gradient(0deg, #040812fa, #040812eb 65%, transparent); color: #91a3bf; font-size: 10px; }
.keyboard-hints { gap: 8px; }
.keyboard-hints .key:not(:first-child) { margin-left: 10px; }
.key { border-color: #b1caeb36; color: #c5d4e9; padding: 4px 7px; font-size: 9px; }
.console-status { display: flex; align-items: center; gap: 12px; font-size: 10px; color: #8c9eb9; }
#section-counter { font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.console-status-divider { height: 10px; width: 1px; background: #ffffff20; }
#return-boot { display: flex; align-items: center; gap: 9px; color: #b4c4dc; font-size: 10px; }
#return-boot:hover { color: white; }
.touch-hint { display: none; }

/* Profile-style welcome, with no forced delay. */
.boot-screen { background: radial-gradient(ellipse at 60% 60%, #19375d66, transparent 55%), radial-gradient(ellipse at 30% 15%, #3e2e3c33, transparent 50%), #050910; }
.boot-system-name { font-size: 8px; color: #8d9db5; letter-spacing: 3px; margin-bottom: 20px; }
.boot-heading { font-size: clamp(28px, 4vw, 44px); font-weight: 300; letter-spacing: -1px; margin-bottom: 48px; }
.boot-logo { width: 118px; height: 118px; border: 2px solid #d5e9ff; background: radial-gradient(circle at 25% 10%, #4d77b4, #14253f 70%); box-shadow: 0 0 0 6px #e6f1ff0c, 0 20px 70px #00142b; animation: bootPulse 4s ease-in-out infinite; }
.boot-logo span { font-size: 33px; letter-spacing: -2px; font-weight: 600; }
.boot-logo:hover { box-shadow: 0 0 0 6px #e6f1ff24, 0 0 50px #6ab3ff22; }
.boot-profile { font-size: 15px; margin-top: 25px; color: #dbe6f8; }
.boot-message { margin-top: 44px; font-size: 12px; color: #9caec8; }
.boot-controls { font-size: 9px; color: #6c829f; margin-top: 13px; letter-spacing: .7px; }

@media (min-width: 1600px) {
  .page-container { padding-top: 40px; }
  .featured-section { margin-top: 48px; max-width: 1180px; }
  .game-cover { height: 185px; }
}
@media (max-width: 1150px) {
  .topbar { flex-wrap: nowrap; gap: 28px; min-height: 90px; }
  .availability { display: none; }
  .main-nav { margin: 0; width: 100%; order: initial; }
  .page-container { padding-top: 20px; }
  .scene-mark { right: 5%; top: 315px; font-size: 300px; }
  .hero h1 { font-size: 78px; }
  .game-cover { height: 145px; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; }
  .topbar { padding: 0 var(--gutter); gap: 24px; min-height: 82px; align-items: center; }
  .brand-name { display: none !important; }
  .brand .brand-logo { width: 33px; height: 33px; }
  .system-tabs { gap: 22px; }
  .system-tab { font-size: 16px; }
  .header-right { gap: 15px; font-size: 12px; }
  .profile-button { display: none; }
  .utility-button { width: 30px; height: 36px; font-size: 17px; }
  .dashboard-navigation { padding-top: 0; }
  .main-nav { height: 145px; gap: 13px; margin: 0; padding: 9px 7px 10px; }
  .nav-btn, .nav-btn:hover { flex-basis: 73px; width: 73px; height: 127px; padding: 0; }
  .nav-btn.active { flex-basis: 105px; width: 105px; }
  .tile-art { width: 68px; height: 68px; border-radius: 12px; }
  .nav-btn.active .tile-art { width: 94px; height: 94px; }
  .tile-art > i { font-size: 25px; }
  .nav-btn.active .tile-art > i { font-size: 33px; }
  .tile-label { font-size: 10px; margin-top: 12px; }
  .nav-btn.active .tile-label { font-size: 12px; }
  .tile-index { font-size: 7px; }
  .page-container { padding: 23px var(--gutter) 100px; }
  .scene-mark { right: -30px; top: 310px; font-size: 230px; opacity: .45; }
  .scene-orbit { right: -850px; top: 200px; opacity: .6; }
  .orbit-two { right: -880px; top: 165px; }
  .orbit-three { right: -910px; top: 130px; }
  .hero-kicker { font-size: 8px; gap: 8px; letter-spacing: 1.2px; }
  .hero-kicker-divider { margin: 0; }
  .hero h1 { font-size: clamp(54px, 10vw, 76px); letter-spacing: -3.5px; margin-top: 22px; line-height: .98; }
  .hero-role { font-size: 15px; margin-top: 20px; }
  .hero-description { font-size: 14px; max-width: 430px; }
  .hero-actions { gap: 10px; margin-top: 22px; }
  .hero-actions .primary-btn { padding: 12px 18px; gap: 14px; font-size: 12px; min-height: 44px; }
  .featured-section { margin-top: 30px; }
  .featured-heading { margin-bottom: 12px; }
  .featured-heading h2 { font-size: 14px; }
  .featured-grid { display: flex; gap: 15px; overflow-x: auto; padding: 5px 4px 14px; margin: 0 -4px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #597da633 transparent; }
  .featured-game { flex: 0 0 245px; scroll-snap-align: start; }
  .game-cover { height: 145px; }
  .game-caption { align-items: flex-start; flex-direction: column; gap: 6px; }
  .quick-links { margin-top: 22px; gap: 5px 20px; }
  .home-section { margin-top: 32px; padding-top: 26px; }
  .section-title { font-size: 23px; }
  .page-heading h1 { font-size: 44px; letter-spacing: -2px; }
  .page-heading p { font-size: 14px; }
  .projects-grid { gap: 34px; }
  .bottom-controls { min-height: 62px; padding: 9px var(--gutter); justify-content: space-between; }
  .touch-hint { display: block; font-size: 9px; }
  .console-status { display: none; }
  .keyboard-hints { display: none; }
  #return-boot { font-size: 9px; }
}
@media (max-width: 390px) {
  :root { --gutter: 20px; }
  .topbar { gap: 20px; }
  .header-right { gap: 7px; }
  .system-tabs { gap: 16px; }
  .system-tab { font-size: 15px; }
  .hero h1 { font-size: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
