:root {
    /* Colors */
    --bg-color: #ffffff;
    --text-color: #000000;
    --secondary-text-color: #000000;
    --accent-color: #0129DC;
    --accent-bg: #E6F0FF;
    --hero-text-bg: #DBE6F0;
    --footer-bg: #111111;
    --footer-text: #ffffff;
    --border-color: #333333;

    /* Typography */
    --font-primary: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1128px;
    --spacing-unit: 8px;

    /* Typography Variables */
    /* Basic: 24/36 -> Mobile 18/24 */
    --text-basic-size: 24px;
    --text-basic-lh: 36px;

    /* Smaller: 18/24 -> Mobile 16/24 */
    --text-smaller-size: 18px;
    --text-smaller-lh: 24px;

    /* Smallest: 16/24 -> Mobile 14/20 */
    --text-smallest-size: 16px;
    --text-smallest-lh: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.5;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Typography Utility */
h1,
h2 {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 24px;
}

h3 {
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 8px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--secondary-text-color);
}

b {
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: var(--text-smallest-size);
    line-height: var(--text-smallest-lh);
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #000;
}

.btn-secondary {
    background: linear-gradient(180deg, #F7EBA4 0%, #F3B72E 100%);
    border: 2px solid rgba(247, 235, 164, 0.5);
    border-radius: 32px;
    color: black;
}

.btn-secondary:hover {
    background: #FFE16E;
    text-decoration: none;
}

.btn-outline {
    border: 1px solid #fff;
    color: white;
}

.btn-outline-yellow {
    display: inline-block;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid #FFE16E;
    color: #FFE16E;
    align-self: flex-start;
}

.btn-outline-yellow:hover {
    background-color: #FFE16E;
    color: black;
}

/* Header */
.site-header {
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: transparent;
    pointer-events: none;
}

.header-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: auto;
}

.logo {
    display: none;
}

/* Hero Section */
.hero-section {
    padding: 136px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 40px;
}

.hero-text-col {
    flex: 1;
    max-width: 60%;
    position: relative;
    z-index: 2;
}

.hero-text-overlay h1 {
    font-size: 100px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-color);
    margin: 0;
    margin-bottom: 64px;
}

.hero-bg-text {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    display: flex;
}

.hero-bg-text-track {
    display: flex;
    white-space: nowrap;
    animation: scrollText 120s linear infinite;
}

.hero-bg-text span {
    font-size: 160px;
    font-weight: 900;
    color: var(--hero-text-bg);
    padding-right: 0.3em;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.hero-image-placeholder {
    position: relative;
    z-index: 2;
}

.user-photo {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
}

.intro-description {
    max-width: 656px;
    font-weight: 300;
    font-size: var(--text-basic-size);
    line-height: var(--text-basic-lh);
}

/* Projects Section */
.projects-section {
    background-color: var(--accent-bg);
    padding: 160px 0 80px;
}

.projects-intro {
    max-width: 656px;
}

.projects-intro p {
    font-weight: 300;
    font-size: var(--text-basic-size);
    line-height: var(--text-basic-lh);
    margin-bottom: 64px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-item {
    background: white;
    border-radius: 16px;
    padding: 40px 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.project-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    flex-shrink: 0;
}

.project-details {
    flex: 1;
    min-width: 250px;
}

.project-details h3 {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.project-details p {
    font-size: var(--text-smallest-size);
    line-height: var(--text-smallest-lh);
    margin-bottom: 0;
}

.project-desc-right {
    flex: 1.5;
    padding-left: 0;
}

.project-divider {
    width: 40px;
    height: 1px;
    background-color: #DBE6F0;
    flex-shrink: 0;
}

.project-desc-right p {
    margin-bottom: 0;
    font-weight: 300;
    font-size: var(--text-smaller-size);
    line-height: var(--text-smaller-lh);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--accent-bg);
    padding: 0 0 80px;
}

.gallery-grid {
    display: none;
}

.gallery-scroller {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.scroll-row {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scroll-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

.scroll-left {
    animation: scrollLeft 60s linear infinite;
}

.scroll-right {
    animation: scrollRight 60s linear infinite;
}

.gallery-img {
    height: 300px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 8px solid white;
    box-sizing: content-box;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Testimonials Section */
.testimonials-section {
    padding-bottom: 160px;
    background-color: var(--accent-bg);
}

.testimonial-slider {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.slider-track-container {
    overflow: hidden;
    max-width: 800px;
    flex: 1;
}

.slider-track {
    display: grid;
    grid-template-areas: "stack";
}

.testimonial-slide {
    grid-area: stack;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-quote {
    font-size: 24px;
    line-height: 36px;
    font-weight: 300;
    font-style: italic;
    color: #000;
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 0;
    color: #000;
}

.author-role {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* Controls */
.testimonial-controls {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.nav-btn {
    background: transparent;
    border: 1px solid #000;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #000;
}

.nav-btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Publications Section */
.publications-section {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 160px 0;
    border-radius: 0 0 40px 40px;
}

.pub-content-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 64px;
}

.publications h2 {
    color: white;
}

.pub-intro {
    color: #bababa;
    margin-bottom: 64px;
    font-weight: 300;
    font-size: var(--text-basic-size);
    line-height: var(--text-basic-lh);
}

.pub-list {
    border-top: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.pub-list li {
    border-bottom: 1px solid var(--border-color);
}

.pub-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    color: white;
}

.pub-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pub-title {
    font-weight: 500;
    font-size: var(--text-smaller-size);
    line-height: var(--text-smaller-lh);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.pub-list a:hover .pub-title {
    color: #FFE16E;
}

.pub-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    opacity: 0.6;
}

.pub-separator {
    color: #ffffff;
}

.arrow {
    color: #ffffff;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.pub-list a:hover .arrow {
    transform: translateX(-16px);
}

/* Sidebar Promo Card */
.footer-promo {
    max-width: 360px;
}

.promo-card {
    background-color: #1c1c1c;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.promo-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.promo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.promo-text {
    font-size: var(--text-smallest-size);
    color: #fff;
    line-height: var(--text-smallest-lh);
    margin-bottom: 0px;
}

/* Footer (Bottom) */
.site-footer {
    background-color: white;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #eee;
}

.footer-centered {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding-top: 160px;
    padding-bottom: 16px;
    flex: 1;
}

.footer-main-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 96px;
}

.thank-you {
    font-size: 40px;
    line-height: 1.25;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
}

.thank-you a {
    color: var(--accent-color);
    font-weight: 500;
}

.thank-you a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 0px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-smallest-size);
    line-height: var(--text-smallest-lh);
}

.social-item:hover {
    text-decoration: underline;
}

.social-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.copyright {
    font-size: var(--text-smallest-size);
    line-height: var(--text-smallest-lh);
    margin-top: auto;
}

/* RESPONSIVE max-width: 960px */
@media (max-width: 960px) {
    :root {
        --text-basic-size: 18px;
        --text-basic-lh: 24px;

        --text-smaller-size: 16px;
        --text-smaller-lh: 24px;

        --text-smallest-size: 14px;
        --text-smallest-lh: 20px;
    }

    /* Header */
    .header-inner {
        align-items: center;
    }

    .container {
        padding: 0 32px;
    }

    /* Hero */
    .hero-section {
        padding-top: 80px;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-image-placeholder {
        margin: 0;
        order: -1;
        align-self: flex-start;
    }

    .user-photo {
        width: 160px;
        height: 160px;
    }

    .hero-text-overlay h1 {
        font-size: 40px;
        margin-bottom: 56px;
    }

    .hero-text-col {
        max-width: 100%;
        width: 100%;
    }

    .hero-bg-text {
        top: 80px;
    }

    /* Projects */
    .projects-section {
        padding: 60px 0;
    }

    .projects-section h2 {
        font-size: 32px;
    }

    .project-item {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 16px;
        row-gap: 8px;
        align-items: start;
        padding: 32px 24px;
        margin: 0 -24px;
    }

    .project-icon {
        grid-column: 2;
        grid-row: 1;
    }

    .project-details {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .project-divider {
        display: block;
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .project-desc-right {
        grid-column: 1 / -1;
        grid-row: 3;
        border: none;
        padding: 0;
        width: 100%;
    }

    .project-details h3 {
        font-size: 18px;
        line-height: 24px;
    }

    /* Gallery */
    .gallery-img {
        height: 180px;
    }

    /* Testimonials */
    .testimonials-section {
        padding-bottom: 160px;
    }

    .testimonial-quote {
        font-size: 18px;
        line-height: 28px;
    }

    .testimonial-slider {
        flex-direction: column-reverse;
        gap: 24px;
    }

    /* Publications */
    .pub-content-inner {
        flex-direction: column;
        gap: 64px;
    }

    .pub-list a {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .pub-date {
        margin-left: 0;
    }

    /* Promo Card */
    .promo-card {
        padding: 24px;
        gap: 16px;
    }

    /* Footer */
    .thank-you {
        font-size: 24px;
        text-align: left;
    }

    .social-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-main-text {
        align-items: flex-start;
        width: 100%;
    }

    .footer-centered {
        align-items: flex-start;
    }

    .copyright {
        align-self: flex-start;
    }
}