:root {
    --accent-color: #00ff88;
    --card-height: 35vh;
    --card-width: calc(var(--card-height) / 1.6);
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: black;
    font-family: 'Roboto', sans-serif;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(images/2444.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: absolute;
    left: 50%;
    top: 3em;
    width: 95%;
    height: 93vh;
    transform: translate(-50%, 0);
    overflow-y: auto;
    scrollbar-width: none;
}

.container::-webkit-scrollbar {
    display: none;
    width: 0;
    background: transparent;
}

.container .lander {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: none;
    width: 100%;
    height: 100%;
}

.lander .content {
    opacity: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: row;
    display: flex;
    padding: 20px;
    margin-top: 8vh;
    margin-bottom: 8vh;
    z-index: 1;
    gap: 2rem;
}

.lander .content .photo {
    width: 12rem;
    height: 12rem;
    background-image: url(images/profile.png);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.lander .content .writer {
    display: flex;
    flex-direction: column;
    width: 80ch;
    max-width: 100%;
}

.lander .content .title {
    color: white;
    font-size: 5rem;
    font-weight: bold;
    text-align: left;
    margin-top: -1rem;
}

.lander .content .banner {
    color: white;
    font-size: 2rem;
    margin-top: 1rem;
    min-width: 100%;
    text-align: left;
    white-space: nowrap;
    margin-left: 0.1em;
}

.haptics {
    position: fixed;
    bottom: 3.1vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    padding: 0.8rem 2.5rem;
    border-radius: 1.5rem;
    background: rgba(0, 64, 32, 0.22);
    box-shadow: 0 8px 8px 0 rgba(0, 255, 136, 0.25);
    backdrop-filter: blur(18px) brightness(1.2);
    border: 1.5px solid var(--accent-color);
    z-index: 100;
}

.haptics .haptics-icon {
    color: #fff;
    font-size: 2rem;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.haptics .haptics-icon:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.haptics-icon.location {
    position: relative;
}

.haptics-icon.location .flag-tooltip {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: -3em;
    transform: translateX(-50%);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.2em 0.5em;
    border-radius: 0.5em;
    color: #fff;
    white-space: nowrap;
    z-index: 10;
}

.haptics-icon.location:hover .flag-tooltip,
.haptics-icon.location:focus .flag-tooltip {
    opacity: 1;
}

.container .section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section .banner {
    background-image: url(images/banner_2025.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 350px;
    margin: 2rem auto;
    display: block;
    scale: 1.2;
}

.section p {
    font-style: italic;
    position: relative;
    color: #fff;
    line-height: 1.6;
    text-align: center;
    font-size: 1.2rem;
}

.section p::before,
.section p::after {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    font-style: normal;
    vertical-align: top;
    line-height: 1;
    position: relative;
    top: 0.1em;
}

.section p::before {
    content: "“";
    margin-right: 0.2em;
}

.section p::after {
    content: "”";
    margin-left: 0.2em;
}

.section .portfolio-panel {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    padding: 10px;
    height: 100%;
    max-width: none;
}

.portfolio-card {
    background: rgba(32, 32, 32, 0.22);
    backdrop-filter: blur(12px) brightness(1.1);
    border-radius: 10px;
    border: 1.5px solid var(--accent-color);
    width: calc(var(--card-width) * 1);
    min-height: 180px;
    padding: 16px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7em;
    color: #fff;
    box-sizing: border-box;
}

.portfolio-card img {
    background-color: black;
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    transition: transform 0.1s;
    max-height: 60%;
    object-fit: cover;
    flex-grow: 1;
}

.portfolio-card h1 {
    color: #ffffff;
    font-family: "poppins-medium", sans-serif;
    font-size: 1.1em;
    text-align: center;
    flex-shrink: 0;
    margin: 10px 0 0 0;
}

.portfolio-card h2 {
    color: #ffffff;
    font-family: "poppins-medium", sans-serif;
    font-size: 0.9em;
    text-align: center;
    flex-shrink: 0;
    margin: 10px 0 0 0;
}

.portfolio-card gh {
    color: white;
    bottom: 4.5rem;
    font-size: 2.3rem;
    margin: 0;
    padding: 0;
    margin-top: 1.5rem;
    transition: transform 0.5s;
    scale: 1.2;
}

.portfolio-card:hover gh {
    transform: scale(1.3);
}

.portfolio-card:hover a {
    animation: redToWhiteGradient 2.5s linear infinite;
}

.resume-card {
    background: rgba(32, 32, 32, 0.22);
    backdrop-filter: blur(12px) brightness(1.1);
    border-radius: 10px;
    border: 1.5px solid var(--accent-color);
    width: calc(var(--card-width) * 2);
    min-height: 180px;
    padding: 16px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7em;
    color: #fff;
    box-sizing: border-box;
}

.resume-card .resume-logo {
    width: auto;
    height: 3.5rem;
    object-fit: contain;
    margin-bottom: 0.2em;
}

.resume-card .resume-header {
    display: flex;
    align-items: center;
    gap: 1em;
    width: 100%;
}

.resume-card .resume-years {
    font-size: 0.8em;
    color: var(--accent-color);
    font-family: "poppins-medium", sans-serif;
    margin-right: 0.5em;
    white-space: nowrap;
}

.resume-card .resume-company {
    font-size: 1.0em;
    font-weight: bold;
    color: var(--accent-color);
    font-family: "poppins-medium", sans-serif;
}

.resume-card .resume-position {
    font-size: 1.0em;
    font-weight: bold;
    color: #fff;
    font-family: "poppins-medium", sans-serif;
}

.resume-card .resume-desc {
    font-size: 1em;
    color: #eee;
    margin-top: 0.5em;
    font-style: italic;
    line-height: 1.5;
}

@keyframes redToWhiteGradient {
    0% {
        color: var(--accent-color);
    }

    50% {
        color: #ffffff;
    }

    100% {
        color: var(--accent-color);
    }
}

html a {
    text-decoration: none;
    color: #ffffff;
}

footer {
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    text-align: left;
    padding: 1rem;
    color: #888;
    font-size: 0.5rem;
}

footer a {
    color: #888;
    text-decoration: none;
}