@font-face{
    font-family: "Nunito-Regular";
    src: url("../font/Nunito/Nunito-Regular.ttf");
    font-display: swap;
}
@font-face{
    font-family: "Nunito-Bold";
    src: url("../font/Nunito/Nunito-Bold.ttf");
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
/* Dark mode fade */
html.dark::before {
  opacity: 0.75;
  filter: brightness(0.6);
}
html.dark {
    --bg: #202730;
    --text-color: #d3dae0;
    --text-color2: #8B8A99;
}

:root {
    --font-regular: "Nunito-Regular", "Nunito", sans-serif;
    --font-bold: "Nunito-Bold", "Nunito", sans-serif;

    --text-tiny: 0.85rem;       /* 13.6px*/
    --text-small: 1rem;         /* 16px */
    --text-regular: 1.125rem;   /* 18px */
    --text-big: 1.5rem;         /* 24px */
    --text-header: 2.5rem;      /* 40px */

    --bg: #E8EBEE;
    --text-color: #202730;
    --text-color2: #8B8A99;

}

h1 { font-size: var(--text-header); }
h2 { font-size: var(--text-big); } 


body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg);
    cursor: url("../image/cursor-default.svg"), auto;
    margin: 0;
}

/* Texture layer */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../image/landing-background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    opacity: 10;
    transition: opacity 0.6s ease;
}

/* Make sure content sits above */
body > * {
    position: relative;
    z-index: 1;
}
main {
    text-align: center;
} 

#landing{
    font-family: "Nunito-Bold";
}
#landing .gameboy {
    background: var(--bg);
    width: 62%;
    border-radius: 10px 10px 0px 0px;
    padding: 2% 3% 3% 3%; /* padding around the content */
    margin: auto;
}

nav { /* navigation bar */
    position: relative;
    padding: 0px 5px 20px 5px; /* top right bottom left */

    display: flex;
    gap: 20px;  /* gap between text  */

}
/* dark mode */
#theme-toggle {
    width: 25px;
    height: 25px;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
    background: transparent;
    background-color: var(--bg);
    cursor: url("../image/cursor-pointer.svg"), auto;

    margin-right: -14px;
    z-index: 90;
}
#theme-toggle img {
    width: 100%;
    height: 100%;
    object-fit:contain;

    display:block;
}
#theme-toggle:hover {
    transform: scale(1.1);
}
#theme-toggle::after {
    content: attr(data-tooltip) "\A" attr(data-desc);
    white-space: pre;
    max-width: 500px;
    height: auto;
    position: absolute;

    background: var(--text-color);
    color: var(--text-color2);
    font-family: var(--font-regular);
    font-size: var(--text-small);
    padding: 10px 16px;
    border-radius: 12px;
    text-align: center;
    pointer-events: none;

    bottom: -55px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
#theme-toggle:hover::after {
    opacity: 1; 
    transform: translateX(-50%) translateY(0);
}
a {
    color: var(--text-color2);
    text-decoration: none;
    font-weight: bold;
    cursor: url("../image/cursor-pointer.svg"), auto;
}
a.landing,
a.projects,
a.about,
a.contact {
    font-size: clamp(var(--text-small), 3vw, var(--text-regular)); /*scale down nav buttons based on screen size*/
}
a.landing:hover,
a.projects:hover,
a.about:hover,
a.contact:hover {
    color: var(--text-color);
}
#landing a.landing {
    margin-right: auto; 
}

#landing .screen-frame {
    position: relative;
    background: #202730;
    border-radius: 18px;
    padding: 4% 6% 4% 8%;
    margin: auto;
    border: 3px solid #0b0f14;
    overflow: hidden;
}
#landing .powerbutton {
    position: absolute;
    left: 1.5%;
    top: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5vw;
    z-index: 3;
    color: var(--bg)
}
#landing .powerbutton p {
    margin: 0;
    font-size: clamp(0.4rem, 1vw, 0.75rem);
    font-weight: 300;
    color: var(--text-color2);
}
#landing .power-icon {
    position: relative;
    width: 3.5vw; 
    height: 2vw; 
    min-width: 28px;
    min-height: 16px;
}
#landing .power-dot {
    position: absolute;
    width: 1.2vw; 
    height: 1.2vw; 
    min-width: 10px;
    min-height: 10px;

    left: 0;
    top: 50%;
    transform: translateY(-20%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffb3a8 0%, #ff6a5e 35%, #e6453d 65%, #b91f1a 100%);
    box-shadow:
        0 0 0 3px rgba(255,255,255,0.08),
        0 0 8px rgba(255, 90, 90, 0.45);
}
#landing .wave {
    position: absolute;
    top: 70%;

    border: 0.2vw solid #8b8a99;
    border-left: none;
    border-top: none;
    border-bottom: none;
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0.95;
}
#landing .wave-1 { left: 45%; width: 0.4vw; height: 1.1vw; min-width: 4px; min-height: 10px; }
#landing .wave-2 { left: 60%; width: 0.4vw; height: 1.1vw; min-width: 4px; min-height: 10px; }
#landing .wave-3 { left: 75%; width: 0.4vw; height: 1.1vw; min-width: 4px; min-height: 10px; }

#landing .hero-slideshow {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    border: 2px solid #0b0f14;
    overflow: hidden;
    margin: auto;
    z-index: 2;
}
#landing .hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
#landing .hero-slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}
#landing .hero-slides img.active {
    opacity: 1;
}
#landing .control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    background: #202730;
    color: #E8EBEE;
    border: none;
    padding: 1rem;
    cursor: pointer;

    opacity: .15;
    transition: all 0.3s ease;
    z-index: 5;
}
/* LEFT button */
#landing .prev {
    left: 20px;
    transform: translateY(-50%) translateX(-20px);
}
/* RIGHT button */
#landing .next {
    right: 20px;
    transform: translateY(-50%) translateX(20px);
}
/* Hover state */
#landing .hero-slideshow:hover .prev {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    cursor: url("../image/cursor-pointer.svg"), auto;
}

#landing .hero-slideshow:hover .next {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    cursor: url("../image/cursor-pointer.svg"), auto;
}

    #landing .hero-title {
        font-size: var(--text-header);
        color: var(--text-color2);
        position: relative;
        top: 1vw;
        
        margin: auto;
        text-align: center;
}
#landing .hero-role {
    font-style: normal;
    font-size: var(--text-small);  /* smaller text */
    padding-left: min(8em, 4%); /*chooses the padding size based on screensize */
}
#landing .perklist {
    display:flex;
    flex-direction: row; /* stack the perk points vertically */
    align-items: center; 
    justify-content: center;
    margin-top:16px;
}
#landing .perkpoints {
    font-size: var(--text-small);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 0;
}
#landing .arrow-down {
    padding: 0px 1.5vw 0px 1.5vw;
    color: var(--text-color);
    scale: 150%;
    opacity: 20%;
}



.section-title { /*all section headers */
    font-family: var(--font-bold);
    font-size: var(--text-header);
    display: inline-block; /* keeps it tight around text */
    color: var(--text-color2);
    border-radius: 50px;
    border: 3px solid var(--text-color2); /* border-width + border-style + color */
    padding: 0px 20px;
    margin-bottom: 40px;
    line-height: normal;
}

#projects { /* projects segment all projects */
    position: relative;
    background: var(--bg);
    width: 100%;
}
#projects .company-header {
    font-family: var(--font-regular);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    width: 95vw;
}   
#projects .company {
    font-size:  var(--text-small);
    justify-content: left;
}
#projects .company-bar {
    width: 80%;
    height: 3px;
    background-color: var(--text-color2);
    margin-left: 20px;
    margin-top: 22px;
}


#projects .project-segment {  
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px; /* spacing between cards */
    width: 100%; /* allow the container to expand fully */
    max-width: 100%; /* optional: caps the row width on large screens */
    margin-left: 1%;
    margin-right: 1%;
    margin-top: 1%;
    
    overflow: visible;
    padding-bottom: 100px;
}
#projects .project-segment > * {
    flex: 1 1 350px;       /* base size smaller */
    max-width: 250px;
    aspect-ratio: 297 / 358;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}
#projects .project-segment > a::after {
    content: attr(data-tooltip) "\A" attr(data-desc);
    white-space: pre;
    max-width: 500px;
    height: auto;
    position: absolute;

    background: var(--text-color);
    color: var(--text-color2);
    font-family: var(--font-regular);
    font-size: var(--text-small);
    padding: 10px 16px;
    border-radius: 12px;
    text-align: center;
    pointer-events: none;

    bottom: -55px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
#projects .project-segment > a:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

#projects .project-segment > a:hover {
    transform: scale(1.08);
    z-index: 10; 
}

.project-superfuse {background-image: url("../image/superfuse/tex_projectridge_superfuse.webp"); }
.project-voraxis { background-image: url("../image/Voraxis/tex_projectridge_voraxis.webp"); }
.project-playland {background-image: url("../image/playland/tex_projectridge_playland.webp"); }
.project-nimblehold { background-image: url("../image/Nimblehold/tex_projectridge_nimblehold.webp"); }

.project-superfuse:hover,
.project-voraxis:hover,
.project-playland:hover,
.project-nimblehold:hover{
    transform: scale(1.08); 
}

/* GLOBAL BOX-SIZING */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ABOUT SECTION */
#about {
    font-family: var(--font-regular);
    width: 100%;
    min-height: 800px;
    position: relative;
    background: var(--bg);
    padding: 40px 20px;
}

/* FLEX CONTAINER */
#about .about-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}

.gameboy-speaker{
    position:absolute;
    width: 200px;
    height: 200px;
    
    right: 0;
    background-image: url("../image/gameboy-speaker.webp");
    background-size: contain;
    margin-right: 20px;
    margin-bottom: -80px;
}

/* ABOUT ME / IMAGE */
#about .about-me {
    width: 420px;
    max-width: 100%;
    color: var(--text-color);
    text-align: right;
    transform: translateY(-15px);
    margin-left: 40px;
}

#about .selfie {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 520px;
    border-radius: 20px;
    object-fit: cover;
    display: block;
}

/* TOOLS ICONS */
#about .about-tools {
    display: inline-flex;
    flex-wrap: wrap;
    text-align: right;
    gap: 8px;
}

#about .about-tools > div {
    width: 35px;
    height: 35px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* TOOL ICONS */
.tool-xd        { background-image: url("../image/tools/tool-xd.webp"); }
.tool-photoshop { background-image: url("../image/tools/tool-ps.webp"); }
.tool-illustrator { background-image: url("../image/tools/tool-ai.webp"); }
.tool-miro      { background-image: url("../image/tools/tool-miro.webp"); }
.tool-jira      { background-image: url("../image/tools/tool-jira.webp"); }
.tool-p4        { background-image: url("../image/tools/tool-p4.webp"); }
.tool-unreal    { background-image: url("../image/tools/tool-unreal.webp"); }
.tool-godot     { background-image: url("../image/tools/tool-godot.webp"); } 

/* RECOMMENDATION HEAD */
#about .recommendation-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* TITLE VERTICAL */
#about .recommendation-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0 0 16px;
    font-size: var(--text-regular);
    letter-spacing: 1px;
    color: var(--text-color2);
}

/* VERTICAL BAR */
#about .recommendation-bar {
    width: 3px;
    height: 290px;
    background-color: var(--text-color2);
}

/* WRAPPER */
.recommendation-wrapper {
    flex: 1;
    width: 100%;
    max-width: 800px;
}
/* SLIDER */
.recommendation-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.recommendation-slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}
.slide {
    flex: 0 0 100%;
    width: 100%;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}
.slide.active {
    opacity: 1;
}

/* RECOMMENDATION CARD */
.recommendation-card {
    width: 90%;
    height: min(520px, 80vh);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
    background: var(--bg) 0.5;
    overflow: hidden;
}
/* QUOTE */
.recommendation-quote {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.65;
    color: var(--text-color);
    text-align: left;
    padding-right: 8px;
    font-size: var(--text-small);
}
.recommendation-quote blockquote {
    margin: 0;
}
.recommendation-quote p {
    margin: 0 0 16px;
}
.recommendation-quote p:last-child {
    margin-bottom: 0;
}

/* AUTHOR */
.recommendation-author {
    min-width: 0;
    padding-top: 12px;
    align-items: flex-end;
    border-top: 2px solid var(--text-color2);
    display: flex;
    gap: 16px;
}
.recommendation-author-meta {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 4px;
    color: var(--text-color2);
}
.recommendation-author strong {
    font-size: var(--text-small);
    line-height: 1.35;
    color: var(--text-color);
    word-break: break-word;
    
}
.recommendation-author span {
    font-size: var(--text-small);
    line-height: 1.45;
    color: var(--text-color);
    word-break: break-word;
}

/* NEXT BUTTON */
.recommendation-next {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    background: var(--text-color);
    color: var(--bg);
    padding: 10px 16px;
    cursor: url("../image/cursor-pointer.svg"), auto;
    transition: background 0.2s ease, transform 0.2s ease;
}
.recommendation-next:hover {
    background: var(--text-color);
    transform: translateY(-1px);
}
.recommendation-next:focus-visible {
    outline: 2px solid var(--text-color2);
    outline-offset: 2px;
}

/* SCROLLBAR */
.recommendation-quote::-webkit-scrollbar {
    width: 8px;
}
.recommendation-quote::-webkit-scrollbar-thumb {
    background: var(--text-color2);
    border-radius: 999px;
}
.recommendation-quote::-webkit-scrollbar-track {
    background: transparent;
}

#contact {  /* contact segment */   
    font-family: var(--font-regular);
    background: #202730;
    color: var(--text-color2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px;

}
    #contact .contact-segment {
        margin-top: -20px;
}
    #contact .contact-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap:40px;
}
    #contact .contact-links img {
        object-fit: contain;
        transition: transform 0.2s ease;
}
#contact .contact-links img:hover {
    transform: scale(1.1);
}
#contact .contact-links > a {
    position: relative;
    display: inline-block;
}

#contact .contact-links > a::after {
    content: attr(data-tooltip);
    position: absolute;

    bottom: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);

    background: var(--text-color);
    color: var(--text-color2);
    font-size: var(--text-small);
    padding: 10px 16px;
    border-radius: 12px;

    white-space: pre;
    pointer-events: none;

    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#contact .contact-links > a:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0%);
}

body > footer {
    font-family: var(--font-regular);
    background: #202730;
    color: var(--text-color2);
    display: flex;
    width: 100%;
    padding: 40px 24px;
}

/* ============ TABLET — 768px ============ */
@media (max-width: 768px) {
    #landing .gameboy {
        width: 90%; /* increase width for smaller screens */
        padding: 5%; /* adjust padding for better spacing */
}
    #landing .hero-title {
        font-size: var(--text-big);
}
    #landing .hero-role {
        font-size: var(--text-small);
        padding-left: 16;
        text-align: center;
}
    #about {
        min-height: unset;      /* remove the fixed tall height */
}
    #about .about-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #about .about-me { width: min(100%, 420px); text-align: left; }
    #about .recommendation-head { flex-direction: row; gap: 12px; }
    #about .recommendation-title { writing-mode: initial; transform: none; margin-bottom: -20px; }
    #about .recommendation-bar { display: none; }
    .recommendation-wrapper { max-width: 90%; }
}

/* ============ MOBILE — 600px ============ */
@media (max-width: 600px) {
    #landing .gameboy {
    width: 100%; /* increase width for smaller screens */
    border-radius:0px;
}
    }
    #landing .hero-title {
        font-size: var(--text-big);
    }
    #landing .hero-role {
        font-size: var(--text-small);
        padding-left: 16;
        text-align: center;
    }
    #landing .perkpoints {
        gap: 24px;              /* tighten up perk list */
    }

    .gameboy-speaker {
        display: none;          /* too large on small screens */
    }
    #landing .arrow-down {
        display: none;
    }

    #contact .contact-links {
        gap: 20px;              /* tighten icon spacing */
    }

    #contact .contact-links img {
        width: 48px;
        height: 48px;
    }

    #contact .contact-links > a::after {
        bottom: auto;
        top: -50px;             /* flip tooltip above icons on mobile */
        transform: translateX(-50%) translateY(-6px);
    }

    #contact .contact-links > a:hover::after {
        transform: translateX(-50%) translateY(0);
    }
}

/* ============ SMALL PHONE — 500px ============ */
@media (max-width: 500px) {
    nav {
        max-width: 100%;
        gap: 6px;
        padding: 0px;
    }
        #theme-toggle {
        width: 25px;
        height: 25px;
        position: relative;

        margin-right: 0px;
    }
    a.landing,
    a.projects,
    a.about,
    a.contact {
        font-family: var(--font-bold);
        font-size: var(--text-small);
    }
    #landing .powerbutton {
        display: none;
    }
    #landing .hero-title {
        font-size: var(--text-small);
    }
    #landing .hero-role {
        font-size: var(--text-small);
        padding-left: 16;
        text-align: center;
    }

    .section-title {
    font-size: var(--text-big);
    }

    #projects .company-bar {
        display:none;
    }
    #projects .project-segment{
        padding-bottom: 0px;
    }
    #projects .project-segment > * {
        flex: 1 1 40%;
        max-width: 200px;
    }

    #about {
        padding: 16px;
    }
    #landing .perkpoints {
        gap: 24px;
        font-size: var(--text-small);
        max-width: 50%; 
    }

    #about .about-me {
        max-width: 90%;
        text-align: left;
        margin-left: 0px
    }
    .recommendation-wrapper {
        max-width: 100%;
    }
    .recommendation-card {
        width: 100%
    }

    #contact .contact-links {
        gap: 12px;
    }
    #contact .contact-links img {
        width: 40px;
        height: 40px;
    }
}
    /* ============ SMALL PHONE — 400px ============ */
@media (max-width: 410px) {
    nav {
        gap: 6px;
        padding: 0px;
        padding-bottom: 4px;
    }
        #theme-toggle {
        width: 20px;
        height: 20px;
        position: relative;

        margin-right: 0px;
    }
    #theme-toggle::after {
    display:none;
    }
    a.landing,
    a.projects,
    a.about,
    a.contact {
        font-family: var(--font-regular);
        font-size: var(--text-tiny);
        margin:auto;
    }
    #landing .powerbutton {
        display: none;
    }
    #landing .hero-title {
        font-size: var(--text-small);
    }
    #landing .hero-role {
        font-size: var(--text-tiny);
        padding-left: 16;
        display: block;
        text-align: center;
    }
    #gameboy {}
    .section-title {
    font-size: var(--text-regular);
    }

    #projects .company-bar {
        display:none;
    }
    #projects .project-segment{
        padding-bottom: 0px;
    }
    #projects .project-segment > * {
        flex: 1 1 50%;
        max-width: 250px;
    }

    #about {
        padding: 16px;
    }
    #landing .perkpoints {
        gap: 24px;
        font-size: var(--text-tiny);
        max-width: 50%; 
    }

    #about .about-me {
        max-width: 90%;
        text-align: left;
        margin-left: 0px
    }
    .recommendation-wrapper {
        max-width: 100%;
    }
    .recommendation-card {
        width: 100%
    }

    #contact .contact-links {
        gap: 12px;
    }
    #contact .contact-links img {
        width: 40px;
        height: 40px;
    }
}