html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    border: 0;
    padding: 0;
    color: #CFCFCF;
    background-color: #1a1a1a;
    text-align: center;
    font-family: robotoregular, 'Roboto', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #60C689;
}

p {
    font-size: 1.1rem;
    color: #b8b8b8;
    line-height: 1.8;
}

strong {
    font-size: 1.15rem;
    color: #60C689;
}

li {
    font-size: 1.1rem;
    color: #CFCFCF;
}

h1 {
    font-size: 3.5rem;
    color: #60C689;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 2.5rem;
    color: #60C689;
}

h6 {
    font-size: 1rem;
    color: #6e6e6e;
    letter-spacing: 0.04em;
}

#about, #portfolio, #contact {
    scroll-margin-top: 70px;
}

.navbar-link {
    transition: color 0.2s;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
}

.navbar-link:hover {
    color: #60C689 !important;
}

.intro {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.backgroundVideo {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
}

.intro-h1 {
    font-size: 5rem;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.06em;
    margin: 0;
    padding: 0;
    color: #ffffff;
}

.intro-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 1);
    margin: 10px 0 24px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0 14px;
    row-gap: 4px;
}

.intro-role {
    white-space: nowrap;
}

.intro-role-sep {
    opacity: 0.5;
}

.intro-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 40px;
}

.intro-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    transition: color 0.2s;
    letter-spacing: 0.08em;
}

.intro-link:hover {
    color: #60C689;
}

.intro-li {
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 2px 2px #000000;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.siteSection {
    width: 70%;
    max-width: 70%;
    margin: 40px auto;
    padding: 44px 36px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: border-color 0.35s;
}

.siteSection:hover {
    border-color: rgba(96, 198, 137, 0.14);
}

.siteSection.project {
    background: rgba(32, 32, 32, 0.9);
    border-radius: 0;
    height: 100%;
    margin-bottom: 0;
    border-width: 0;
}

.siteSection-row {
    width: 70%;
    max-width: 70%;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
}

.siteSection-row > .siteSection {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    margin: 0;
}

.siteSection-row > #about {
    flex: 2 1 0;
}

.siteSection-row > #about > .container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.siteSection-row > #about > .container > p {
    margin: auto 0;
}

@media (max-width: 991px) {
    .siteSection-row {
        width: 90%;
        max-width: 90%;
        flex-direction: column;
    }
}

.sectionHeader {
    margin: 0 auto 24px;
}

.sectionHeader-text {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sectionHeader-text::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #60C689, #3da868);
    margin: 10px auto 0;
    border-radius: 2px;
}

.skills-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: center;
    padding: 8px 0;
}

.skill-group {
    min-width: 160px;
}

.skill-group-title {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #60C689;
    margin-bottom: 10px;
    font-weight: bold;
    opacity: 0.8;
    text-align: center;
}

.skill-tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.skill-tag {
    background: rgba(96, 198, 137, 0.07);
    border: 1px solid rgba(96, 198, 137, 0.25);
    color: #a0d9b4;
    padding: 5px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(96, 198, 137, 0.16);
    border-color: rgba(96, 198, 137, 0.55);
    color: #c5edcf;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 20px 24px;
    height: 100%;
    text-align: left;
    transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
    background: rgba(96, 198, 137, 0.03);
    border-color: rgba(96, 198, 137, 0.22);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

a:hover .project-image {
    box-shadow: 0 6px 28px rgba(96, 198, 137, 0.18);
}

.project-header {
    font-size: 1.4rem;
    color: #e0e0e0;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.04em;
    margin: 14px 0 8px 0;
}

.project-text {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.7;
    margin: 0;
}

.badge.text-bg-primary {
    background-color: rgba(96, 198, 137, 0.1) !important;
    color: #7fd9a3 !important;
    border: 1px solid rgba(96, 198, 137, 0.22);
    font-weight: 400;
    letter-spacing: 0.03em;
}

.contact-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    text-decoration: none;
}

.contact-icon-link:hover {
    border-color: rgba(96, 198, 137, 0.2);
    background: rgba(96, 198, 137, 0.04);
    transform: translateY(-4px);
}

.contact-icon-link img {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.contact-icon-link:hover img {
    opacity: 1;
}

.contact-icon-label {
    font-size: 0.65rem;
    color: #555;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer {
    background-color: rgba(12, 12, 12, 1);
}

.mobile-intro {
    display: none;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }

    .intro-h1 {
        font-size: 2.5rem !important;
    }

    .siteSection {
        width: 90%;
        max-width: 90%;
        padding: 28px 18px;
    }

    a {
        font-size: 0.75rem;
    }

    p {
        font-size: 0.9rem;
    }

    .project-card {
        margin-bottom: 8px;
    }

    .intro-nav {
        flex-direction: column;
        gap: 10px;
    }

    .intro-subtitle {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}

@media screen and (max-width: 400px) {
    h1 {
        font-size: 2rem !important;
    }
}

.tdLeft {
    padding: 6px 12px;
    color: #60C689;
    text-align: right;
    font-size: 0.95rem;
}

.tdRight {
    padding: 6px 12px;
    text-align: left;
    color: #CFCFCF;
    font-size: 0.95rem;
}

.itch-io-frame {
    --itch-io-frame-size: 2;
    width: calc(552px * var(--itch-io-frame-size));
    height: calc(167px * var(--itch-io-frame-size));
}

@keyframes fadeOut {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

.fadeOut {
    animation: fadeOut .5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 1
    }
    to {
        opacity: 0
    }
}

.fadeIn {
    animation: fadeIn .5s forwards;
}

@keyframes fadeOutDown {
    0% {
        opacity: 0;
        top: -25px
    }
    100% {
        opacity: 1;
        top: 0
    }
}

.fadeOutDown {
    animation: fadeOutDown .5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 1;
        top: 0
    }
    to {
        opacity: 0;
        top: -25px
    }
}

.fadeInUp {
    animation: fadeInUp .5s forwards;
}

.fadeInUpFast {
    animation: fadeInUp .01s forwards;
}

@font-face {
    font-family: 'robotoblack';
    src: url('font/roboto-black-webfont.woff2') format('woff2'),
    url('font/roboto-black-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotobold';
    src: url('font/roboto-bold-webfont.woff2') format('woff2'),
    url('font/roboto-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotolight';
    src: url('font/roboto-light-webfont.woff2') format('woff2'),
    url('font/roboto-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* CODE BLOCKS */
.code-block {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #60C689;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #e6e6e6;
    overflow-x: auto;
    text-align: left;
    white-space: pre;
}

.code-block .kw {
    color: #60C689;
}

.code-block .ty {
    color: #82c4ff;
}

.code-block .str {
    color: #e5b975;
}

.code-block .num {
    color: #d18ad1;
}

.code-block .cm {
    color: #6a8a6a;
    font-style: italic;
}

/* MODULE FAMILY LIST */
.module-families {
    list-style: none;
    padding: 0;
    margin: 12px 0 4px;
    text-align: left;
}

.module-families li {
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.module-families li:last-child {
    border-bottom: none;
}

.module-families .family-label {
    display: inline-block;
    min-width: 150px;
    color: #60C689;
    font-weight: bold;
}

@font-face {
    font-family: 'robotomedium';
    src: url('font/roboto-medium-webfont.woff2') format('woff2'),
    url('font/roboto-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotoregular';
    src: url('font/roboto-regular-webfont.woff2') format('woff2'),
    url('font/roboto-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotothin';
    src: url('font/roboto-thin-webfont.woff2') format('woff2'),
    url('font/roboto-thin-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


