/* #region [Header Altering] */
    header {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        margin-bottom: 2rem;
    }

    .index-head {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
    }

    .header-logo-link {
        display: flex;
        align-items: center;
        margin-left: 1rem;
        margin-bottom: 1rem;
    }

    .logo,
    .header-logo-img {
        max-width: 150px;
        width: auto;
        height: auto;
        display: block;
    }

    @media (min-width: 768px) {
        .logo,
        .header-logo-img {
            max-width: 180px;
        }
    }

    @media (min-width: 1025px) {
        .logo,
        .header-logo-img {
            max-width: 250px;
        }
    }
/* #endregion */
/* #region [video altering] */
    #current-demo-reel-title,
    #current-demo-reel-date {
        text-align: center;
    }

    .video-container {
        aspect-ratio: 16 / 9;
        width: 100%;
        padding: 2rem;
    }
    .video-container iframe {
        width: 100%;
        height: 100%;
    }
    iframe {
        border: none;
    }
/* #endregion */
/* #region [Top Navigation Links] */
    :root {
        --nav-link-bg: #339AFF;
        --nav-link-hover-end: #DD33FF;
    }
    a[target="_blank"]::after {
        content: "↗";
        display: inline-block;
        margin-left: 0.3em;
        font-size: 0.85em;
    }
    /* Reset */
    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

    body {
    font-family: sans-serif;
    }

    /* Navbar container */
    .main-links {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    background: var(--nav-link-bg);
    color: white;
    min-width: 0;
    }

    /* Menu button (mobile only) */
    .menu-toggle {
    display: block;
    flex: 1 1 auto;
    width: auto;
    padding: 1rem;
    color: white;
    border: none;
    font-size: 1.2rem;
    text-align: left;
    cursor: pointer;
    background-color: var(--nav-link-bg);
    transition: background-color 0.4s ease;
    }

    .menu-toggle:hover {
    background-color: var(--nav-link-hover-end);
    }

    /* Nav links list */
    .nav-links {
    list-style: none;
    display: none; /* hidden by default on mobile */
    flex: 1 1 100%;
    flex-direction: column;
    width: 100%;
    }

    /* When open, show dropdown */
    .nav-links.open {
    display: flex;
    }

    /* Each link box */
    .nav-links li {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    }

    .nav-links li a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: white;
    background-color: var(--nav-link-bg);
    transition: background-color 0.4s ease;
    }

    .nav-links li a:hover {
    background-color: var(--nav-link-hover-end);
    }

    /* Tablet/Desktop layout */
    @media (min-width: 768px) {
    .menu-toggle {
        display: none; /* hide button */
    }

    .main-links {
        flex-wrap: nowrap;
    }

    .nav-links {
        display: flex !important; /* always visible */
        flex: 1 1 auto;
        flex-direction: row;
        justify-content: space-around;
        max-height: none;
    }

    .nav-links li {
        border: none;
        flex: 1;
    }

    .nav-links li a {
        text-align: center;
        border-right: 1px solid rgba(255, 255, 255, 0.25);
    }

    .nav-links li:last-child a {
        border-right: none;
    }
    }
    /* Nav links list (mobile default) */
    .nav-links {
    list-style: none;
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    width: 100%;
    
    /* Start collapsed */
    max-height: 0;
    overflow: hidden;
    
    /* Smooth transition */
    transition: max-height 0.4s ease-out;
    }

    /* When open, expand smoothly */
    .nav-links.open {
    max-height: 500px; /* large enough to fit all links */
    }

    /* Each link box */
    .nav-links li {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    }

    .nav-links li a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: white;
    background-color: var(--nav-link-bg);
    transition: background-color 0.4s ease;
    }

    .nav-links li a:hover {
    background-color: var(--nav-link-hover-end);
    }

    /* Tablet/Desktop layout */
    @media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .main-links {
        flex-wrap: nowrap;
    }

    .nav-links {
        flex: 1 1 auto;
        max-height: none;   /* no restriction */
        flex-direction: row;
        justify-content: space-around;
    }

    .nav-links li {
        border: none;
        flex: 1;
    }

    .nav-links li a {
        text-align: center;
        border-right: 1px solid rgba(255, 255, 255, 0.25);
    }

    .nav-links li:last-child a {
        border-right: none;
    }
    }
/* #endregion */
/* #region [About Skillset Table] */
    .about-me-img {
        display: block;
        max-width: 150px;
        width: auto;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
        border-radius: 50%;
    }

    #about-me {
        text-align: center;
        margin-bottom: 1rem;
    }

    .skills {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .skills > h2 {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 2rem;
    }

    .skill-group {
        align-self: start;
    }

    .skills h3 {
        font-size: 16px;
        font-weight: 500;
        margin: 0 0 0.75rem;
    }

    .skills h4 {
        font-size: 14px;
        font-weight: 500;
        margin: 0 0 0.5rem;
    }

    .skills li {
        font-size: 14px;
        font-weight: 400;
    }

    .skills ul {
        margin: 0;
        padding-left: 1.25rem;
    }

    .skill-group > div {
        margin-bottom: 0.75rem;
    }

    .skill-group > div:last-child {
        margin-bottom: 0;
    }

    @media (min-width: 768px) {
        .skills {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 1025px) {
        .skills {
            grid-template-columns: repeat(3, 1fr);
        }
    }

/* #endregion */
/* #region [Bottom Navigation Links] */
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    main {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .add-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        width: 100%;
        margin-top: auto;
        background: var(--nav-link-bg);
        color: white;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }

    .add-links > p {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-width: 10rem;
        padding: 1rem;
        margin: 0;
        font-weight: bold;
        border-right: 1px solid rgba(255, 255, 255, 0.25);
        background: var(--nav-link-bg);
    }

    .add-links ul {
        list-style: none;
        display: flex;
        flex: 1;
        flex-direction: row;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
    }

    .add-links li {
        flex: 1;
        min-width: 8rem;
        border-right: 1px solid rgba(255, 255, 255, 0.25);
    }

    .add-links li:last-child {
        border-right: none;
    }

    .add-links a {
        display: block;
        padding: 1rem;
        text-align: center;
        text-decoration: none;
        color: white;
        background-color: var(--nav-link-bg);
        transition: background-color 0.4s ease;
    }

    .add-links a:hover {
        background-color: var(--nav-link-hover-end);
    }

    @media (min-width: 768px) {
        .add-links {
            flex-wrap: nowrap;
        }

        .add-links ul {
            flex-wrap: nowrap;
        }
    }
/* #endregion */
/* #region [Overall Page Styling] */
    .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    footer {
        margin-top: 2rem;
    }

    body {
        margin: 1rem;
    }

    @media (min-width: 768px) {
        body {
            margin: 2rem;
        }
    }

    @media (min-width: 1025px) {
        body {
            margin: 3rem;
        }
    }
    .under-construction-img {
        display: block;
        width: auto;
        height: auto;
        margin: 2rem;
        border-radius: 10px;
    }
/* #endregion */
