@font-face {
    font-family: 'VideoPhreak';
    src: url('../VIDEOPHREAK.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futury Light';
    src: url('../Futury-Light.ttf') format('truetype');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

:root {
    --night: #07506c;
    --panel: rgba(217, 240, 255, 0.82);
    --panel-light: rgba(247, 252, 255, 0.92);
    --cyan: #0876b9;
    --pink: #4aa6d8;
    --lime: #075a91;
    --ink: #123954;
    --muted: #355a72;
    --line: rgba(255, 255, 255, 0.88);
}

html {
    scroll-behavior: smooth;
}

html body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    padding-top: 5rem;
    color: var(--ink);
    background-color: var(--night);
    background-image:
        radial-gradient(ellipse 95% 75% at 20% 0%, rgba(121, 238, 255, 0.82), transparent 72%),
        radial-gradient(ellipse 74% 90% at 108% 46%, rgba(180, 226, 100, 0.86), transparent 70%),
        radial-gradient(ellipse 86% 60% at 12% 112%, rgba(13, 105, 117, 0.95), transparent 72%),
        radial-gradient(ellipse 90% 44% at 66% 115%, transparent 61%, rgba(235, 255, 248, 0.44) 62%, rgba(226, 255, 243, 0.3) 65%, transparent 67%),
        radial-gradient(ellipse 88% 42% at 65% 117%, transparent 69%, rgba(208, 255, 235, 0.28) 70%, rgba(184, 255, 227, 0.18) 73%, transparent 75%),
        radial-gradient(ellipse 110% 50% at 50% 132%, rgba(226, 255, 248, 0.8), transparent 74%),
        radial-gradient(ellipse 82% 34% at 50% 124%, rgba(177, 255, 239, 0.52), transparent 72%),
        radial-gradient(ellipse 125% 44% at 50% 145%, rgba(169, 255, 230, 0.42), transparent 76%),
        linear-gradient(115deg, #087b9e 0%, #168eaa 43%, #4ca78d 73%, #91bb62 100%),
        linear-gradient(78deg, transparent 26%, rgba(227, 255, 255, 0.15) 26.2%, transparent 27.1%, transparent 43%, rgba(227, 255, 255, 0.12) 43.3%, transparent 44.2%, transparent 74%, rgba(227, 255, 255, 0.16) 74.3%, transparent 75.2%);
    background-attachment: fixed;
    font-family: 'Futury Light', 'Trebuchet MS', sans-serif;
}

body::before {
    position: fixed;
    z-index: 0;
    inset: -30%;
    background-image:
        radial-gradient(ellipse 7% 76% at 14% 34%, rgba(221, 255, 255, 0.58), transparent 78%),
        radial-gradient(ellipse 12% 88% at 29% 15%, rgba(112, 241, 247, 0.48), transparent 77%),
        radial-gradient(ellipse 5% 72% at 42% 34%, rgba(242, 255, 255, 0.66), transparent 80%),
        radial-gradient(ellipse 11% 90% at 56% 15%, rgba(129, 231, 222, 0.43), transparent 79%),
        radial-gradient(ellipse 6% 82% at 69% 29%, rgba(235, 255, 222, 0.62), transparent 79%),
        radial-gradient(ellipse 13% 96% at 83% 18%, rgba(209, 255, 163, 0.48), transparent 78%),
        radial-gradient(ellipse 5% 76% at 96% 35%, rgba(246, 255, 224, 0.58), transparent 80%),
        linear-gradient(108deg, transparent 10%, rgba(231, 255, 255, 0.08) 16%, transparent 19%, transparent 24%, rgba(235, 255, 255, 0.3) 24.3%, rgba(211, 255, 255, 0.08) 25%, transparent 26%, transparent 37%, rgba(233, 255, 255, 0.28) 37.3%, rgba(211, 255, 255, 0.07) 38%, transparent 39%, transparent 51%, rgba(228, 255, 241, 0.25) 51.3%, transparent 53%, transparent 66%, rgba(242, 255, 220, 0.27) 66.3%, rgba(228, 255, 220, 0.08) 67%, transparent 68%, transparent 81%, rgba(239, 255, 221, 0.3) 81.3%, transparent 83%, transparent 94%, rgba(229, 255, 255, 0.14) 94.3%, transparent 96%);
    background-size: 100% 100%;
    content: "";
    filter: blur(5px);
    opacity: 0.9;
    pointer-events: none;
    animation: vista-wisp-drift 18s ease-in-out infinite alternate;
    will-change: transform;
}

body > * {
    position: relative;
    z-index: 1;
}

@keyframes vista-wisp-drift {
    0% {
        transform: translate3d(-3%, 2%, 0) rotate(-2deg) scale(1.04);
    }

    50% {
        transform: translate3d(2%, -2%, 0) rotate(1.5deg) scale(1.09);
    }

    100% {
        transform: translate3d(3%, 2.5%, 0) rotate(2deg) scale(1.04);
    }
}

body p {
    color: var(--muted);
    line-height: 1.7;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    color: var(--ink);
    font-family: 'VideoPhreak', 'Zen Dots', 'Trebuchet MS', sans-serif;
    text-shadow: 0 0 18px rgba(102, 246, 255, 0.18);
}

body a {
    color: var(--cyan);
    text-decoration: underline;
    text-decoration-color: rgba(102, 246, 255, 0.55);
    text-underline-offset: 0.18em;
}

body a:hover {
    color: var(--pink);
    text-decoration-color: currentColor;
}

/* Shiny gradient navigation, like a classic personal homepage header. */
body .navbar {
    min-height: 4.25rem;
    padding: 0.65rem max(1rem, calc((100vw - 1140px) / 2));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(42, 117, 160, 0.75);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(214, 237, 250, 0.78) 44%, rgba(119, 178, 211, 0.86) 47%, rgba(220, 241, 252, 0.94)) !important;
    box-shadow: 0 5px 18px rgba(14, 58, 83, 0.28), inset 0 1px 0 #fff;
    backdrop-filter: blur(14px);
}

body .navbar-brand {
    margin-right: 1.5rem;
    color: #075a91;
    font-family: 'VideoPhreak', 'Zen Dots', 'Trebuchet MS', sans-serif;
    font-size: 1rem;
    text-shadow: 0 1px 0 #fff;
}

body .navbar-brand:hover {
    color: #043d68;
}

body .navbar-nav {
    gap: 0.3rem;
}

body .navbar .nav-link {
    position: relative;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(61, 128, 169, 0.42);
    border-radius: 0.55rem 0.55rem 0.2rem 0.2rem;
    color: #174b6d;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(180, 218, 241, 0.8));
    font-size: 1.05rem;
    text-decoration: none;
    text-shadow: 0 1px 0 #fff;
    box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(22, 68, 96, 0.14);
    transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

body .navbar .nav-link:hover,
body .navbar .nav-link:focus {
    border-color: rgba(255, 255, 255, 0.98);
    color: #063e66;
    background: linear-gradient(180deg, #fff, #d8f1ff 54%, #a9d8f2);
    box-shadow: inset 0 1px 0 #fff, 0 0 12px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(15, 70, 105, 0.2);
}

body .navbar .nav-item.active .nav-link {
    border-color: rgba(255, 255, 255, 0.98);
    color: #063e66;
    background: linear-gradient(180deg, #fff, #d6effd 58%, #b1dbf2);
    box-shadow: inset 0 1px 0 #fff, 0 0 10px rgba(255, 255, 255, 0.74), 0 1px 4px rgba(15, 70, 105, 0.18);
}

body .navbar-toggler {
    border-color: rgba(44, 112, 153, 0.7);
    background: linear-gradient(#fff, #b5d8ed);
}

body .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(35, 136, 194, 0.25);
}

.starter-template {
    margin: 2rem auto;
    padding: clamp(2rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 0.8rem;
    color: var(--ink);
    background: linear-gradient(145deg, rgba(247, 252, 255, 0.88), rgba(194, 226, 244, 0.84));
    box-shadow: 0 16px 38px rgba(15, 57, 78, 0.26), inset 0 1px 0 #fff, 0 0 0 1px rgba(78, 145, 180, 0.36);
    backdrop-filter: blur(16px);
}

.starter-template h1,
.page-header h1,
.contact-card h1 {
    color: #075b8d;
    text-shadow: 0 1px 0 #fff;
}

.starter-template p {
    max-width: 46rem;
    font-size: 1.2rem;
}

.about-profile {
    max-width: 1040px;
    margin: 2rem auto;
    padding: clamp(2rem, 6vw, 3.5rem) 1.5rem;
    border: 0;
    color: #fff;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    text-align: center;
}

.about-avatar-frame {
    position: relative;
    width: clamp(9rem, 28vw, 11rem);
    aspect-ratio: 1;
    margin: 0 auto 1.25rem;
    overflow: hidden;
    border: 6px solid transparent;
    border-radius: 0.65rem;
    background:
        linear-gradient(145deg, rgba(224, 255, 255, 0.42), rgba(176, 247, 215, 0.32)) padding-box,
        linear-gradient(135deg, #70bfc9 0%, #5aaba5 38%, #68a982 72%, #91b878 100%) border-box;
    box-shadow:
        0 0 0 1px rgba(35, 122, 145, 0.72),
        0 12px 24px rgba(0, 12, 24, 0.88),
        0 0 16px rgba(187, 255, 236, 0.36),
        inset 0 1px 0 #fff,
        inset 7px 0 7px -6px rgba(255, 255, 255, 0.76),
        inset -7px 0 7px -6px rgba(25, 101, 108, 0.46);
}

.about-avatar-frame::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 16% 88% at 0% 50%, rgba(232, 255, 255, 0.3), transparent 100%),
        radial-gradient(ellipse 16% 88% at 100% 50%, rgba(27, 105, 110, 0.22), transparent 100%),
        linear-gradient(145deg, rgba(226, 255, 255, 0.4) 0%, rgba(186, 250, 245, 0.2) 28%, transparent 53%),
        linear-gradient(180deg, rgba(199, 255, 253, 0.16), transparent 43%, rgba(94, 207, 183, 0.15));
    content: "";
    pointer-events: none;
}

.about-avatar-frame img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0.15rem;
    object-fit: cover;
    object-position: center 38%;
}

.about-profile h1 {
    margin: 0 0 0.6rem;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-shadow: 0 2px 8px rgba(13, 61, 77, 0.62);
}

.about-profile p {
    margin: 0 auto;
    color: #fff;
    text-shadow: 0 1px 5px rgba(13, 61, 77, 0.72);
}

.about-profile .about-role {
   margin-bottom: 0.85rem;
   font-size: 1.1rem;
}

.page-window {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 0.75rem;
    background: rgba(231, 246, 255, 0.8);
    box-shadow: 0 16px 38px rgba(15, 57, 78, 0.3), inset 0 1px 0 #fff, 0 0 0 1px rgba(78, 145, 180, 0.42);
    backdrop-filter: blur(16px);
}

.page-window-titlebar {
    min-height: 2.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0.45rem 0.35rem 1rem;
    border-bottom: 1px solid rgba(75, 141, 177, 0.62);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(226, 244, 255, 0.88) 45%, rgba(147, 195, 220, 0.9) 50%, rgba(211, 236, 250, 0.94));
    box-shadow: inset 0 1px 0 #fff, 0 1px 4px rgba(17, 69, 97, 0.16);
}

.page-window-title {
    overflow: hidden;
    color: #174b6d;
    font-size: 1rem;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 #fff;
    white-space: nowrap;
}

.page-window-close {
    width: 3rem;
    height: 1.9rem;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #9a3e35;
    border-radius: 0.35rem;
    color: #fff;
    background: linear-gradient(180deg, #ffb4a7 0%, #f87564 42%, #d93d32 55%, #ee6452 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 1px 3px rgba(74, 35, 29, 0.35);
    text-decoration: none;
    transition: filter 140ms ease, box-shadow 140ms ease;
}

.page-window-close span {
    position: relative;
    width: 0.78rem;
    height: 0.78rem;
    display: block;
    font-size: 0;
}

.page-window-close span::before,
.page-window-close span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.78rem;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    content: "";
    box-shadow: 0 1px 1px rgba(87, 25, 20, 0.72);
}

.page-window-close span::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.page-window-close span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.page-window-close:hover,
.page-window-close:focus-visible {
    color: #fff;
    background: linear-gradient(180deg, #ffd1c9 0%, #ff8a78 42%, #ec4a3e 55%, #ff7560 100%);
    box-shadow: inset 0 1px 0 #fff, 0 0 10px rgba(255, 255, 255, 0.85), 0 1px 4px rgba(74, 35, 29, 0.4);
    outline: 2px solid rgba(255, 255, 255, 0.88);
    outline-offset: 1px;
}

.page-window-body {
    padding: 2rem 1.25rem 3rem;
    background: linear-gradient(145deg, rgba(248, 253, 255, 0.78), rgba(194, 226, 244, 0.74));
}

.page-window-empty {
    min-height: clamp(14rem, 40vh, 30rem);
}

/* Skills and services */
.services-page {
    padding: 2rem 1rem 4rem;
}

.services-page .page-window-body {
    padding: 2rem 1.25rem 3rem;
}

.projects-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.projects-container .page-window {
    max-width: 100%;
}

.page-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.eyebrow {
    margin-bottom: 0.6rem;
    color: var(--lime) !important;
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.page-header h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 5vw, 4rem);
}

.lead {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.service_card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 0.75rem;
    color: var(--ink) !important;
    background: linear-gradient(145deg, rgba(248, 253, 255, 0.92), rgba(196, 228, 246, 0.86)) !important;
    box-shadow: 0 12px 25px rgba(12, 56, 78, 0.26), inset 0 1px 0 #fff, 0 0 0 1px rgba(78, 145, 180, 0.32);
    backdrop-filter: blur(12px);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service_card:hover {
    transform: translateY(-4px);
    border-color: #fff;
    box-shadow: 0 16px 30px rgba(12, 56, 78, 0.32), inset 0 1px 0 #fff, 0 0 18px rgba(232, 250, 255, 0.56);
}

.service_card figure {
    margin: 0 0 1rem;
}

.service_card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 0.4rem;
    box-shadow: 0 2px 8px rgba(25, 70, 94, 0.2);
}

.service_card figcaption {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.service_card h2 {
    margin: 0.5rem 0 0.75rem;
    color: #075b8d;
    font-size: 1.35rem;
}

.service_card p {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
}

.card-six {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Proposal page sections and in-page navigation */
.starter-template header nav {
    margin: 1.5rem 0 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 0.65rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(170, 214, 239, 0.76));
    box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(17, 69, 97, 0.16);
}

.starter-template header nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.starter-template header nav li a {
    display: block;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(61, 128, 169, 0.42);
    border-radius: 0.5rem 0.5rem 0.2rem 0.2rem;
    color: #174b6d;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(180, 218, 241, 0.82));
    box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(22, 68, 96, 0.14);
    text-decoration: none;
    text-shadow: 0 1px 0 #fff;
    transition: background 150ms ease, box-shadow 150ms ease;
}

.starter-template header nav li a:hover,
.starter-template header nav li a:focus {
    color: #063e66;
    background: linear-gradient(180deg, #fff, #d8f1ff 54%, #a9d8f2);
    box-shadow: inset 0 1px 0 #fff, 0 0 10px rgba(255, 255, 255, 0.8);
}

.starter-template section {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 0.65rem;
    background: linear-gradient(145deg, rgba(248, 253, 255, 0.72), rgba(193, 225, 243, 0.68));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 5px 14px rgba(17, 69, 97, 0.13);
    backdrop-filter: blur(10px);
    scroll-margin-top: 6rem;
}

.starter-template section h2 {
    color: #075b8d;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
}

/* Contact links */
.contact-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.contact-container .page-window {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 0;
    border-radius: 0;
    color: var(--ink);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.contact-card h2 {
    margin-bottom: 1rem;
}

.contact-links {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-links a {
    color: #075b8d;
    text-decoration: underline;
    text-decoration-color: rgba(7, 91, 141, 0.45);
    text-underline-offset: 0.2em;
}

.contact-links a:hover,
.contact-links a:focus-visible {
    color: #033b60;
    text-decoration-color: currentColor;
}

body footer {
    border-top: 1px solid rgba(255, 255, 255, 0.76);
    background: linear-gradient(180deg, rgba(224, 242, 252, 0.76), rgba(109, 166, 196, 0.8));
    text-align: center;
    box-shadow: 0 -3px 12px rgba(14, 58, 83, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

body footer p {
    margin-bottom: 0;
}

@media (max-width: 1000px) {
    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-header h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 767.98px) {
    html body {
        padding-top: 4.5rem;
    }

    body .navbar {
        padding: 0.6rem 1rem;
    }

    body .navbar-toggler {
        display: none;
    }

    body .navbar .navbar-collapse {
        display: block !important;
        flex-basis: 100%;
    }

    body .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.1rem;
    }

    body .navbar .nav-link {
        padding: 0.35rem 0.55rem;
        font-size: 0.98rem;
    }
}

@media (max-width: 600px) {
    .services {
        grid-template-columns: 1fr;
    }

    .lead {
        font-size: 1rem;
    }

    .contact-container {
        padding: 2rem 1rem 3rem;
    }

    .starter-template {
        padding: 1.5rem 1rem;
    }

    .page-window-body,
    .services-page .page-window-body {
        padding: 1.25rem 0.85rem 2rem;
    }

    .services-page,
    .projects-container {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body::before {
        animation: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
