h1, h2 {
    font-family: var(--font-title), serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 3.2rem);
}

h2 {
    font-size: 2rem;
    margin: 0;
}

/* =========================
   SLIDE / PROJECT FADE
   ========================= */

.slide,
.project {
    transition:
            opacity 0.6s ease,
            transform 0.6s ease;
}

.slide {
    opacity: 0;
    transform: translateY(12px);
}

.project {
    opacity: 0;
    transform: translateY(16px);
}

/* Active state */
.slide.is-active,
.project.is-active {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   PROJECT HERO
   ========================= */

.project {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    to bottom,
                    rgba(247, 246, 243, 0.6),
                    rgba(247, 246, 243, 0.7)
            );
    z-index: -1;
}

.project-hero {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 48px;
    align-items: center;
    padding: 0 24px;
    z-index: 2;
}

/* Text columns */
.project-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;

}

.project-copy.left {
    align-items: flex-end;
    text-align: right;
    justify-content: center;
}

.project-copy.right {
    align-items: flex-start;
    text-align: left;
}

/* Visual */
.project-visual img {
    width: clamp(500px, 28vw, 420px);
    max-width: 100%;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.25));
    transform: translateY(-6px);
}

/* Features */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.feature-list li {
    /*margin-bottom: 12px;*/
}


/* =========================
   TOP NAV
   ========================= */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent;
    backdrop-filter: blur(8px);
}

.top-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 28px;
}

.site-title {
    font-family: var(--font-title);
    font-size:1.3rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.02em;
}

/* =========================
   HORIZONTAL SLIDES
   ========================= */

.slides {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.slide {
    position: relative;
    flex: 0 0 100vw;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    /*align-items: center;*/
    padding: 48px 24px 48px 24px;
    overflow: hidden;
    background-color: var(--bg);
    background-blend-mode: multiply;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    to bottom,
                    rgba(247, 246, 243, 0.55),
                    rgba(247, 246, 243, 0.65)
            );
    z-index: 1;
}


.slide > * {
    position: relative;
    z-index: 2;
}

.content {
    max-width: 960px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 20%;
}

.subtitle {
    margin-top: 12px;
    color: var(--muted);
    font-size: 1rem;
    max-width: 500px;
    align-self: center;
}

.body-text {
    font-family: var(--font-body);
    margin-top: 24px;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.body-text p {
    max-width: 500px;
    align-self: center;
    margin: 0;
}

.about {
    background:
            url("../assets/bg-about.png") center / cover no-repeat;
}

.project {
    position: relative;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
}

.project-mealtime {
    background-image: url("../assets/bg-mealtime.png");
}


.skills {
    background:
            url("../assets/bg-skills.png") center / cover no-repeat;
}

.contact {
    background:
            url("../assets/bg-contact.png") center / cover no-repeat;
}

/* =========================
   ABOUT
   ========================= */

.about h1 {
    font-size: 2rem;
}

/* =========================
   PROJECTS (VERTICAL)
   ========================= */

.projects {
    padding: 0;
}

.projects-inner {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.project {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.project-card {
    background: rgba(247, 246, 243, 0.75);
    backdrop-filter: blur(6px);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 520px;
    text-align: center;
}

/* =========================
   UNDER CONSTRUCTION PROJECT
   ========================= */

.project-under-construction {
    background:
            url("../assets/bg-under-construction.png") center / cover no-repeat;
}

.project-placeholder {
    background: transparent;
    padding: 48px 40px;
    max-width: 420px;
    text-align: center;
}

.project-placeholder h2 {
    margin-top: 0;
}

.project-placeholder .subtitle {
    margin-top: 12px;
    color: var(--muted);
}

/* =========================
   PROJECT SCROLL INDICATOR
   ========================= */

.project-indicator {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
}

.project-indicator button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition:
            transform 0.2s ease,
            background 0.2s ease;
}

.project-indicator button.active {
    background: var(--text);
    transform: scale(1.6);
}

/* =========================
   SKILLS
   ========================= */
.skills {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.skills-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.skills-content {
    margin-top: 10%;
    align-items: center;
    max-width: 1080px;
}

/* Tabs */
.skills-tabs {
    margin-top: 32px;
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(6px);
    padding: 4px;
}

.skills-tab {
    background: transparent;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.skills-tab.active {
    background: var(--card);
    color: var(--text);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Panels */
.skills-panel {
    display: none;
    width: 100%;
    margin-top: 48px;
}

.skills-panel.active {
    display: block;
}

/* Cards */
.skills-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 24px;
}

.skill-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(6px);
    padding: 24px;
    border-radius: var(--radius);
    text-align: left;
}

.skill-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.skill-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.skill-meta {
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.85;
}

/* =========================
   TECH SKILL CARDS
   ========================= */
.skills-panel#skills-tech .skills-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 0;
}

.tech-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    box-shadow:
            0 10px 30px rgba(0,0,0,0.08),
            inset 0 1px 0 rgba(255,255,255,0.6);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover {
    transform: translateY(-2px);
    box-shadow:
            0 16px 40px rgba(0,0,0,0.12),
            inset 0 1px 0 rgba(255,255,255,0.7);
}

/* Header */
.tech-card-header {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 18px;
    font-family: var(--font-title);
    font-size: 1.05rem;
    line-height: 1.2;

    color: var(--text);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.tech-card-header img {
    width: 22px;
    height: 22px;
}

/* =========================
   SOFT SKILL CARDS
   ========================= */

.soft-skills-grid {
    display: grid;
    align-content: center;
    align-items: center;
    justify-content: center;
    grid-template-columns: repeat(2, minmax(260px, 300px));
    gap: 36px 48px;
}

.soft-skill-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    padding: 18px 20px;
    border-radius: 16px;

    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(6px);

    box-shadow:
            0 10px 30px rgba(0,0,0,0.06),
            inset 0 1px 0 rgba(255,255,255,0.6);
}

.soft-skill-card h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
}

.soft-skill-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

/* Icon */
.soft-icon {
    width: 28px;
    height: 28px;
    stroke: #8aa0b6;
    flex-shrink: 0;
}

/* Footer pills */
.tech-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.4);
}


/* Tech tags */
.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 14px; /* ↑ was 6px 12px */
    border-radius: 999px;

    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.12);

    font-size: 0.85rem;
    line-height: 1;
    color: var(--text);

    white-space: nowrap;
    flex-shrink: 0;
}


.tech-pill img {
    width: 16px;
    height: 16px;
}

.tech-icon {
    width: 20px;
    height: 20px;
    stroke: var(--muted);
    flex-shrink: 0;
}



/* =========================
   CONTACT
   ========================= */

.contact-links {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

/* =========================
   BUTTONS
   ========================= */

.button {
    display: inline-block;
    padding: 12px 20px;
    background: var(--text);
    color: white;
    text-decoration: none;
    border-radius: 999px;
}

/* =========================
   BOTTOM NAV
   ========================= */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(247, 246, 243, 0.85);
    backdrop-filter: blur(6px);
    padding: 0 0 20px;
}

/* Divider line */
.bottom-nav::before {
    content: "";
    display: block;
    width: 90%;
    height: 1px;
    margin: 0 auto 14px;
    background: rgba(0, 0, 0, 0.08);
}

.nav-inner {
    display: flex;
    justify-content: center;
    gap: 32px;
}

/* Links */
.bottom-nav a {
    position: relative;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    padding-bottom: 4px;
}

/* Active underline */
.bottom-nav a.active {
    color: var(--text);
}

.bottom-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--text);
}

/* =========================
   CONTACT PAGE
   ========================= */

.contact {
    display: flex;
    align-items: flex-start;
}

.contact-content {
    margin-top: 10%;
    align-items: center;
}

/* Cards wrapper */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 520px;
}

/* Individual card */
.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 12px;
    border-radius: 16px;

    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(8px);
    box-shadow:
            0 12px 30px rgba(0,0,0,0.08),
            inset 0 1px 0 rgba(255,255,255,0.6);

    text-decoration: none;
    color: var(--text);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow:
            0 18px 40px rgba(0,0,0,0.12),
            inset 0 1px 0 rgba(255,255,255,0.7);
}

/* Icon */
.contact-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.85);
    border-radius: 12px;
}

.contact-icon svg,
.contact-icon img {
    width: 22px;
    height: 22px;
}

/* Text */
.contact-text {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-text strong {
    font-weight: 500;
}

.contact-text span {
    color: var(--muted);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.6);
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

/* LinkedIn-specific tuning */
.contact-icon.linkedin {
    background: rgba(10,102,194,0.1);
}

.contact-icon.linkedin svg {
    fill: #0A66C2; /* official LinkedIn blue */
}


@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 760px) {

    .about-content{
        margin-top: 0;
        justify-content: center;
        padding-bottom: 100px;
    }
    .project-hero {
        padding: 10px 0;
        display: flex;
        flex-direction: column;
    }

    .project-copy {
        gap: 0;
    }

    .project-copy.left {
        align-items: center;
    }

    .project-visual {
        width: clamp(250px, 28vw, 420px);
    }

    .about h1 {
        font-size: 2.2rem;
    }

    .project-card {
        padding: 24px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .bottom-nav {
        gap: 16px;
        padding: 0 18px 10px 18px;
        font-size: 0.9rem;
    }

    .nav-inner {
        gap: 20px;
    }

    .bottom-nav a {
        font-size: 0.85rem;
    }

    .site-title {
        font-size: 1rem;
    }

    .top-nav-inner {
        padding: 12px 20px;
    }

    .about {
        background:
                url("../assets/bg-about-mobile.png") center / cover no-repeat;
    }

    .project-mealtime {
        background:
                url("../assets/bg-mealtime-mobile.png") center / cover no-repeat;
    }

    .skills-grid {
        margin-top: 0;
        gap: 0;
    }

    .skill-card {
        padding: 0;
    }

    .skills {
        background:
                url("../assets/bg-skills-mobile.png") center / cover no-repeat;
    }

    .contact {
        background:
                url("../assets/bg-contact-mobile.png") center / cover no-repeat;
    }

    .project-under-construction {
        background:
                url("../assets/bg-under-construction-mobile.png") center / cover no-repeat;
    }

    .tech-card-header {
        padding: 4px 18px;
        font-size: 1.05rem;
    }

    .tech-card-footer {
        padding: 12px;
        flex-wrap: wrap;
    }

    .tech-pill {
        font-size: 0.8rem;
    }

    .skills {
        display: flex;
        align-items: flex-start;
        padding-bottom: 5px;
    }

    .skills-content {
        margin-top: 0;
        padding-top: 24px;
        max-height: calc(100vh - 80px);
        width: 100%;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    #skills-soft {
        margin-top: 0;
        margin-bottom: 36px;
    }

    #skills-tech {
        margin-top: 12px;
        margin-bottom: 36px;
    }

    .skills-content::-webkit-scrollbar {
        display: none;
    }

    .skills-content {
        scrollbar-width: none;
    }

    .soft-skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }

    .soft-skill-card {
        padding: 16px;
    }

    .contact-content {
        margin-top: 72px;
        padding-bottom: 120px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .contact-cards {
        gap: 16px;
    }

    .project-indicator button{
        width: 6px;
        height: 8px;
    }

    .project-indicator button.active {
        transform: scale(1.4);
    }
}

/* Hide scrollbars (WebKit) */
.slides::-webkit-scrollbar,
.projects-inner::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbars (Firefox) */
.slides,
.projects-inner {
    scrollbar-width: none;
}
