:root { /* main theme color */
    --bg: #000;
    --text: #fff;
    --accent: #f84444;
    --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
    --accent-border: color-mix(in srgb, var(--accent) 45%, transparent);
    --accent-glow: color-mix(in srgb, var(--accent) 24%, transparent);
    --soft-border: rgba(255, 255, 255, 0.3);
    --selection: rgba(255, 255, 255, 0.2);
    --panel: rgba(255, 255, 255, 0.04);
}

html,
body {
    width: 100%;
    min-height: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background-color: var(--bg);
    font-family: Manrope, "Segoe UI", Arial, sans-serif;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 35px;
    font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

p {
    margin: 0 0 25px;
    font-size: 19px;
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:focus {
    color: var(--accent);
    text-decoration: none;
}

.accent {
    color: var(--accent);
}

.container {
    width: min(1170px, calc(100% - 40px));
    margin: 0 auto;
}

.navbar {
    position: relative;
    min-height: 50px;
}

.navbar-fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.btn-lg {
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.3333333;
    border-radius: 6px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

.navbar-brand {
    padding: 0;
    color: var(--text);
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    font-size: 1.8rem;
    letter-spacing: 1px;
    line-height: 0.95;
    text-transform: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.16);
}

.navbar-email {
    color: var(--text);
    font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.14);
}

.navbar-custom {
    margin-bottom: 0;
    border-bottom: 1px solid var(--soft-border);
    background: #000;
    font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
    text-transform: uppercase;
}

.navbar-email:hover,
.navbar-email:focus {
    color: var(--text);
}

.brand-heading {
    /* Keep name on a single responsive line */
    font-size: clamp(36px, 8vw, 100px);
    font-family: "Space Mono", monospace;
    letter-spacing: 0.5px;
    text-transform: none;
    text-shadow: 0 0 22px var(--accent-glow);
    font-weight: 700;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.content-section {
    padding-top: 100px;
}

.main-copy {
    max-width: 980px;
    margin: 0 auto;
}

.big-red-box {
    margin: 8px 0 38px;
    padding: 20px 22px;
    border: 1px solid var(--accent-border);
    background: linear-gradient(145deg, var(--accent-soft), var(--panel));
}

.big-red-box h4,
.tile-tech h4 {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.big-red-box p {
    margin-bottom: 18px;
}

.accomplishments-list li {
    margin-bottom: 10px;
    font-size: 17px;
}

.btn-default {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-default:focus {
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    border-color: var(--accent);
    outline: 0;
}

.banner-social-buttons {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: center;
}

.banner-social-buttons li {
    margin: 0;
}

.banner-social-buttons .btn {
    min-width: 170px;
}

.tile-track {
    position: absolute;
    inset: 0 auto 0 0;
    display: flex;
    width: max-content;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    transform: translateZ(0);
    /* Intro collage speed: lower value = faster scroll, higher value = slower scroll */
    animation: tileScroll 240s linear infinite;
}

.tile-strip {
    /* One full deck set from index.html; styles.css clones this strip once for infinite looping */
    display: flex;
    flex: 0 0 auto;
    height: 100%;
}

.tile-deck {
    flex: 0 0 100vw;
    height: 100%;
    background-image: var(--tile-image);
    background-repeat: repeat;
    background-size: 34% auto;
    background-position: 0 0;
    opacity: 0.16;
    filter: saturate(0.9) contrast(1.05);
}

.intro {
    width: 100%;
    min-height: 38vh;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 40%),
        radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 45%),
        linear-gradient(135deg, #020202 0%, #090909 35%, #050505 100%);
}

.intro::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 50% 85%, color-mix(in srgb, var(--accent) 24%, transparent) 0%, rgba(248, 68, 68, 0) 62%);
    background-size: 44px 44px, 44px 44px, auto;
    opacity: 0.32;
    pointer-events: none;
}

@keyframes tileScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.intro-body {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.tech-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
    margin-bottom: 3em;
}

.tech-row i {
    position: relative;
    font-size: 40px;
}

.tech-row i::after {
    content: attr(data-name);
    position: absolute;
    left: 50%;
    bottom: -36px;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .tile-track {
        animation: none !important;
    }
}

footer {
    padding: 50px 0;
}

footer .container {
    text-align: center;
}

footer p {
    margin: 0;
}

::selection,
::-moz-selection {
    text-shadow: none;
    background: var(--selection);
}

/* Tech Skills Icons */
.devicon-javascript-plain {
    color: #ffff00;
}

.devicon-html5-plain {
    color: #f06529;
}

.devicon-css3-plain {
    color: #1572b6;
}

.devicon-nodejs-plain {
    color: #3c873a;
}

.devicon-github-plain {
    color: #fff;
}

.devicon-git-plain {
    color: #f1502f;
}

.devicon-mongodb-plain {
    color: #47a248;
}

.devicon-netlify-plain {
    color: #00C7B7;
}

.devicon-vscode-plain {
    color: #007acc;
}

@media (min-width: 768px) {
    p {
        margin: 0 0 35px;
        font-size: 21px;
        line-height: 1.6;
    }

    .intro {
        min-height: 64vh;
    }

    .intro-body {
        padding: 0;
    }

    .brand-heading {
        /* larger screens use clamp above; keep no-wrap */
        font-size: clamp(48px, 10vw, 100px);
        white-space: nowrap;
    }

    .content-section {
        padding-top: 50px;
    }

    .navbar {
        min-height: 0;
    }

    .navbar-custom {
        padding: 20px 0;
        border-bottom: 0;
        letter-spacing: 1px;
        background: transparent;
        transition: padding 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
    }

    .navbar-custom.top-nav-collapse {
        padding: 8px 0;
        border-bottom: 1px solid var(--soft-border);
        background: #000;
    }
}

@media (max-width: 1199px) {
    .banner-social-buttons {
        margin-top: 15px;
    }
}

@media (max-width: 767px) {
    .container {
        width: calc(100% - 30px);
    }

    .navbar-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
        gap: 6px;
    }

    .navbar-brand {
        font-size: 2.2rem;
    }

    .navbar-email {
        font-size: 1.45rem;
    }

    .intro {
        min-height: 46vh;
    }

    .intro-body {
        padding: 80px 0;
    }

    .brand-heading {
        font-size: 54px;
        line-height: 1.05;
    }

    .content-section {
        padding-top: 70px;
    }

    .banner-social-buttons li {
        display: inline-flex;
        margin-bottom: 12px;
        padding: 0;
    }

    .banner-social-buttons li:last-child {
        margin-bottom: 0;
    }

    .banner-social-buttons .btn {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .tech-row {
        gap: 14px;
    }
}