/* #region ROOT */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding-top: 145px;
    background-color: #000;
    color: #f2f2f2;
}

section {
    padding-top: 5rem;
}

h1 {
    color: #ffffff;
    font-weight: 500;
    font-size: clamp(3.25rem, 9vw, 4rem);
}

h2 {
    display: flex;
    justify-content: center;
    font-family: 'Reem Kufi', sans-serif;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 2rem;
}

h3 {
    font-family: 'Outfit', arial, sans-serif;
    font-weight: 600;
    font-size: 20px;
}

p {
    font-family: 'Outfit', arial, sans-serif;
}

/* #endregion */

/* #region HEADER */
site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    /* expanded — at top of page */
    background-color: #fff;
    border-bottom: 1px solid #ececec;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

site-header img {
    display: block;
    height: 80px;
    /* expanded logo */
    width: auto;
    transition: height 0.3s ease;
}

site-header.scrolled {
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

site-header.scrolled img {
    height: 50px;
}

/* #endregion */

/* #region FOOTER */
footer {
    display: flex;
    flex-direction: column;
    padding: 5rem;
}

#social_media_container {
    margin-bottom: 1rem;
}

#copy_email_notice {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #1a1a1a;
    font-family: 'Outfit', arial, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    position: fixed;
    overflow: visible;
}

#copy_email_notice::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    padding: 2px;
    background: conic-gradient(from 0deg, #ff4d6d, #ff9f1c, #ffd166, #2ec4b6, #3a86ff, #9b5de5, #ff4d6d);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

#copy_email_notice.visible {
    opacity: 1;
    transform: translateY(0);
    animation: email-toast-glow 1.6s ease-in-out infinite;
}

@keyframes email-toast-glow {
    0%, 100% {
        text-shadow: 0 0 0 rgba(255, 186, 58, 0);
        letter-spacing: 0;
    }
    50% {
        text-shadow: 0 0 12px rgba(255, 186, 58, 0.35);
        letter-spacing: 0.02em;
    }
}

#copyright_content {
    white-space: nowrap;
    font-size: clamp(0.75rem, 2.6vw, 1rem);
}

#powered_by_container {
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

#powered_by_content {
    font-family: 'Reem Kufi', sans-serif;
    font-size: 0.9rem;
    color: #a8a8a8;
}

#powered_by_logo {
    content: url("assets/img/Tukyo_Logo.png");
    height: 20px;
    width: auto;
}

/* #endregion */

/* #region SIDEBAR */
site-sidebar.open .sidebar_backdrop {
    opacity: 1;
    visibility: visible;
}

site-sidebar.open .sidebar_panel {
    transform: translateX(0);
}

.sidebar_backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar_panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 450px;
    max-width: 85vw;
    height: 100%;
    padding: 3rem 1.5rem 2rem;
    background: #fff;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar_home,
.sidebar_menu a {
    text-decoration: none;
    font-family: 'Reem Kufi', sans-serif;
    transition: color 0.15s ease;
}

.sidebar_home {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1b1b1b;
    margin-bottom: 2rem;
}

.sidebar_heading {
    margin: 0 0 1rem;
    font-family: 'Reem Kufi', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2f4f4f;
}

.sidebar_menu {
    list-style: none;
    margin: 0;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar_menu a {
    color: #54595c;
    font-size: 1.15rem;
}

.sidebar_home:hover,
.sidebar_menu a:hover {
    color: rgb(216, 191, 28);
}

.nav_toggle {
    position: absolute;
    left: 5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav_toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #2f4f4f;
    border-radius: 2px;
}

.nav_toggle:focus,
.nav_toggle:focus-visible {
    outline: none;
}

.nav_toggle::-moz-focus-inner {
    border: 0;
}

/* #endregion */

/* #region RESUME */
#resume_content {
    display: flex;
    justify-content: center;
}

#resume_content img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#resume_content img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.resume_lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.resume_lightbox.open {
    opacity: 1;
    visibility: visible;
}

.resume_lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    transform: scale(0.97);
    transition: transform 0.3s ease;
}

.resume_lightbox.open img {
    transform: scale(1);
}

/* #endregion */

/* #region WORKS */
.works {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.work_text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.work_text p {
    text-align: center;
    color: #a8a8a8;
    margin-top: 0px;
}

div.work_button {
    display: flex;
    justify-content: center;
    align-items: center;
}

a.work_button {
    display: inline-block;
    padding: 17px 40px;
    border-radius: 10px;
    border: 0;
    background-color: rgb(255 242 152);
    letter-spacing: 1.5px;
    font-family: 'Reem Kufi', sans-serif;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: rgb(160 150 81) 0px 10px 0px 0px;
    color: rgb(85, 151, 230);
    cursor: pointer;
}

a.work_button:hover {
    box-shadow: rgb(134, 125, 67) 0px 10px 0px 0px;
}

a.work_button:active {
    background-color: rgb(255, 232, 79);
    box-shadow: rgb(134, 125, 67) 0px 0px 0px 0px;
    transform: translateY(5px);
    transition: 200ms;
}

a.work_button:focus-visible {
    outline: 3px solid #2f4f4f;
    outline-offset: 2px;
}

/* Gallery: grid of cards (home page Recent Works). */
.works.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.gallery .work {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.gallery .work_text h3 {
    margin: 0 0 0.35rem;
    text-align: center;
}

.gallery div.work_button {
    aspect-ratio: 20 / 10;
    border: 1px solid #333;
    border-radius: 12px;
}

.embed {
    position: relative;
    aspect-ratio: 20 / 10;
    border-radius: 12px;
    overflow: hidden;
}

.embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* #endregion */

/* #region CONTENT */
.container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1rem;
}

.row {
    flex-direction: row;
    gap: 2rem;
}

.center {
    display: flex;
    justify-content: center;
}

.work_sans {
    font-family: 'Reem Kufi', sans-serif;
}

.reel_column {
    flex: 1 1 0;
    min-width: 0;
}

.fullsize_text {
    text-align: center;
    align-self: center;
    margin-top: 1.25rem;
    margin-bottom: 3.5rem;
}

.fullsize_text h3 {
    margin: 0 0 0.35rem;
}

.fullsize_text p {
    margin: 0;
    color: #a8a8a8;
}

#intro_container {
    max-width: 725px;
}

#intro_content p {
    color: #c4c8ca;
    font-size: 18px;
    line-height: 1.8;
}

#hero_container {
    justify-content: center;
    gap: 1rem;
}

#reel_container {
    max-width: 960px;
    margin-block: 2rem;
}

#reel_container .embed {
    aspect-ratio: 16 / 9;
}

#hero_content h1 {
    margin-bottom: 0px;
}

#subhero_content {
    font-family: 'Outfit', arial, sans-serif;
    font-size: clamp(1.375rem, 5vw, 2.25rem);
}

#tagline {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    margin: 0px;
    color: #f2f2f2;
    font-weight: 300;
}

#wonder_woman_redesigns_container p {
    align-self: center;
    max-width: clamp(20rem, 60vw, 37.5rem);
}

/* #endregion */

/* #region RESPONSIVENESS */
@media (min-width: 720px) {
    .work {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    .work:nth-child(even)> :first-child {
        order: 2;
    }

    .works.gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery .work:nth-child(even)> :first-child {
        order: 0;
    }
}

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

    #resume_content img {
        max-width: 700px;
    }
}

@media (max-width: 719px) {
    .row:has(.reel_column) {
        flex-direction: column;
    }

    .sidebar_panel {
        width: 300px
    }

    .nav_toggle {
        left: 2rem;
    }
}

/* #endregion */