/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

:root {
    --bg-color: #080808;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --border-color: #1a1a1a;
    --box-bg: #141414;
}

body {
    font-family: 'Karma', serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0 4vw;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Helpers - Six Caps */
.display-title,
.section-title {
    font-family: 'Six Caps', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ── Hamburger ── */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-icon {
    width: 32px;
    height: 32px;
    display: block;
    transition: transform 0.3s ease;
}

.hamburger.open .hamburger-icon {
    transform: rotate(90deg);
}

/* ── Mobile Menu Panel ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav a {
    font-family: 'Karma', serif;
    font-size: 1.5rem;
    color: #e0e0e0;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: #ffffff;
}

.mobile-pill {
    margin-top: 1rem;
    padding: 10px 28px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    font-size: 1rem !important;
}

.mobile-pill:hover {
    background: #e0e0e0;
    color: #0a0a0a !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .site-header .nav-left,
    .site-header .nav-right {
        display: none;
    }

    .site-header .site-logo-icon {
        margin: 0 auto 0 0; /* push logo left */
    }

    .hamburger {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom,
            #080808 0%,
            #080808 80%,
            transparent 100%);
    margin-left: -4vw;
    margin-right: -4vw;
    padding-left: 4vw;
    padding-right: 4vw;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 0;
}

.nav-left {
    display: flex;
    gap: 2rem;
}

.nav-left a,
.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: lowercase;
    transition: color 0.2s ease;
}

.nav-left a:hover,
.nav-left a.active,
.site-footer a:hover {
    color: var(--text-primary);
}

.site-logo-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.pill-btn {
    border: 1px solid var(--text-secondary);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: lowercase;
    transition: all 0.2s ease;
}

.pill-btn:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Hero */
.hero {
    height: 80vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    background: transparent;
    z-index: 1;
    margin-top: -40px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    pointer-events: none;
    /* Allows mouse to interact with background behind text */
}

.display-title {
    font-size: clamp(8rem, 20vw, 18rem);
    color: #fff;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out, filter 0.3s ease-out;
    position: relative;
    z-index: 1;
}

/* 3D Elevated Circular Title Carousel */
.hero-subtitle-ring {
    position: relative;
    height: 90px;
    width: 450px;
    margin: 0 auto;
    perspective: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subtitle-item {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: 'Karma', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0em;
    user-select: none;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3D Plane Positions mimicking your sketch */
.subtitle-item.active {
    transform: translateY(0px) translateZ(0px) scale(1);
    opacity: 1;
    filter: blur(0px);
    z-index: 3;
}

.subtitle-item.prev {
    transform: translateY(-45px) translateZ(-100px) scale(0.85);
    opacity: 0.35;
    filter: blur(2px);
    z-index: 2;
}

.subtitle-item.next {
    transform: translateY(45px) translateZ(-100px) scale(0.85);
    opacity: 0.35;
    filter: blur(2px);
    z-index: 2;
}

.subtitle-item.hidden {
    transform: translateY(0px) translateZ(-200px) scale(0.7);
    opacity: 0;
    filter: blur(10px);
    z-index: 1;
}


/* Who Am I Section */
.who-am-i {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    padding: 5rem 4rem;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    align-items: start;

    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
}


.who-title-col .section-title {
    font-size: clamp(6rem, 14vw, 12rem);
    line-height: 0.9;
}

.who-img-col {
    width: 100%;
}


/* Projects Section */
.projects-section {
    padding: 5rem 4rem;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
}

.projects-header {
    margin-bottom: 3rem;
    text-align: right;
}

.projects-header .section-title {
    font-size: clamp(6rem, 14vw, 12rem);
    line-height: 0.9;
    text-align: right;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-box {
    display: block;
    text-decoration: none;
}

.project-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--box-bg);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.project-box:hover .project-placeholder {
    border-color: var(--text-secondary);
}

/* Footer */
.marquee {
    width: calc(100% + 8vw);
    margin-left: -4vw;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.marquee-wrapper {
    display: flex;
    width: fit-content;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
}

.marquee-track span {
    padding-right: 3rem;
    font-family: "Six Caps", sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    letter-spacing: 0.08em;
    color: var(--text-primary);
}


.site-footer {
    padding: 3rem 4vw;
    border-top: 1px solid var(--border-color);
    background: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: -4vw;
    margin-right: -4vw;
    width: calc(100% + 8vw);
    position: relative;
    z-index: 5;
}

.social-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.copy-email-btn {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-secondary);
    font-family: 'Karma', serif;
    font-size: 0.9rem;
    text-transform: lowercase;
    cursor: pointer;
    transition: color 0.2s ease;
}

.copy-email-btn:hover {
    color: var(--text-primary);
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: filter 1s ease-in-out, opacity 1s ease-in-out;
}

#loader-text {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, filter 0.8s ease-out, transform 0.8s ease-out;
    color: #080808;
}

/* Add to existing .display-title */
.display-title {
    font-size: clamp(8rem, 20vw, 18rem);
    color: #fff;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out, filter 0.1s ease-out;
    /* Added filter transition */
    text-shadow:
        calc(var(--extrude-x, 0px) * 0.06) calc(var(--extrude-y, 0px) * 0.06) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.13) calc(var(--extrude-y, 0px) * 0.13) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.20) calc(var(--extrude-y, 0px) * 0.20) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.26) calc(var(--extrude-y, 0px) * 0.26) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.33) calc(var(--extrude-y, 0px) * 0.33) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.40) calc(var(--extrude-y, 0px) * 0.40) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.46) calc(var(--extrude-y, 0px) * 0.46) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.53) calc(var(--extrude-y, 0px) * 0.53) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.60) calc(var(--extrude-y, 0px) * 0.60) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.66) calc(var(--extrude-y, 0px) * 0.66) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.73) calc(var(--extrude-y, 0px) * 0.73) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.80) calc(var(--extrude-y, 0px) * 0.80) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.86) calc(var(--extrude-y, 0px) * 0.86) 0px #808080,
        calc(var(--extrude-x, 0px) * 0.93) calc(var(--extrude-y, 0px) * 0.93) 0px #808080,
        var(--extrude-x, 0px) var(--extrude-y, 0px) 1px #808080;
}

.display-title::before {
    position: absolute;
    /* Center it perfectly behind the main text */
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + var(--extrude-x, 0px)), calc(-50% + var(--extrude-y, 0px)));
    z-index: -1;

    /* Match the exact same text styling */
    font-family: 'Six Caps', sans-serif;
    font-size: clamp(8rem, 20vw, 18rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    width: max-content;

    pointer-events: none;
    user-select: none;
    color: #808080;
    filter: blur(1px);

    /* Smooth animation when offset changes */
    transition: transform 0.08s linear;
}

/* Add this to style the cycling subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Karma', serif;
    transition: opacity 0.3s ease;
    /* For the typing fade */
}

/* Section Layout Update */
.who-content-col .section-title {
    font-size: clamp(6rem, 14vw, 12rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    text-align: left;
}

.about-bio {
    font-family: 'Karma', serif;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.switch-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.segmented-switch {
    display: inline-flex;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--box-bg);
    padding: 3px;
    overflow: hidden;
}

.switch-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.5rem;
    color: var(--text-secondary);
    font-family: 'Karma', serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.25s ease;
    text-transform: lowercase;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.switch-btn:hover {
    color: var(--text-primary);
}

.switch-btn.active {
    color: var(--bg-color);
}

.switch-slider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    background: var(--text-primary);
    border-radius: 50px;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Timeline Structure */
.timeline-container {
    position: relative;
    padding-left: 0;
}

.timeline-line {
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--border-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1.5px solid var(--text-primary);
    transform: none;
    left: 1px;
}

.timeline-card h3 {
    font-family: 'Karma', serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: 'Karma', serif;
}

.timeline-bullets {
    list-style-type: disc;
    padding-left: 1.2rem;
    font-family: 'Karma', serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.timeline-bullets li {
    margin-bottom: 0.3rem;
}

/* Portrait Image Styles */
.who-img-col {
    position: sticky;
    top: 120px;
    /* Stays nicely in view as you scroll through tabs */
}

.portrait-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center 20%;
    filter: none;
    display: block;
    border: 1px solid var(--border-color);
}

/* Project Grids */
.projects-section {
    padding: 6rem 4vw;
}

.section-title {
    font-family: 'Six Caps', sans-serif;
    font-size: 4rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    text-transform: uppercase;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media(max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Project Card Structure */
.project-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.project-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #111;
    border: 1px solid var(--border-color, #222);
    overflow: hidden;
    margin-bottom: 1rem;
}

.project-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image-wrap img {
    transform: scale(1.03);
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.project-card-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 0.8rem;
}

/* Filter Tag Switches */
.tag-filters-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.tag-switch {
    background: transparent;
    border: 1px solid var(--border-color, #333);
    color: #aaa;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.tag-switch:hover,
.tag-switch.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Project Tag Pills inside cards/details */
.project-card-tags,
.project-detail-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 5rem;
}

.project-tag-pill {
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
    color: var(--text-secondary);
    background: transparent;
    letter-spacing: 0.5px;
}

/* Nothing to show fallback */
.nothing-to-show {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem 0;
}

.project-cover-banner {
    width: calc(100% + 8vw);
    margin-left: -4vw;
    margin-right: -4vw;
    margin-top: -5.5rem;
    height: 48vh;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-color);
    margin-bottom: 3.5rem;

    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
}

.project-detail-main {
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 4vw;
    text-align: left !important;
}

.project-detail-heading {
    font-family: "Karma", serif;
    font-size: clamp(38px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    text-align: left !important;
    text-transform: none;
    margin: 0 0 0.75rem;
}

.project-detail-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-family: 'Karma', serif;
    text-align: left !important;
    margin: 0 0 1.2rem;
}

.project-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 4rem;
    justify-content: flex-start !important;
    text-align: left !important;
}

.project-tag-pill {
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    color: var(--text-secondary);
    background: transparent;
    letter-spacing: 0.5px;
}

.project-detail-description {
    max-width: 860px;
    margin: 0 auto 15vh auto;
    font-family: 'Karma', serif;
    font-size: 1.05rem;
    line-height: 2;
    color: #cccccc;
    text-align: left !important;
}

.project-detail-description p {
    margin-bottom: 2.5rem;
}

.project-detail-main,
.project-detail-heading,
.project-detail-sub,
.project-detail-tags {
    text-align: left;
}


.project-inline-img-wrap {
    width: 100%;
    margin: 4rem 0;
    border: 1px solid var(--border-color);
    background: var(--box-bg);
    overflow: hidden;
    border-radius: 4px;
}

.project-inline-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-section {
    width: min(1100px, calc(100% - 48px));
    margin: 90px auto 120px;
    flex: 1;
}

.blog-section .section-title {
    margin: 0 0 55px;
    text-align: center;
}

.blog-list {
    display: grid;
    gap: 32px;
}

.blog-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    transition: transform 180ms ease, border-color 180ms ease;
    align-items: stretch;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: #fff;
}

.blog-card-info {
    padding: 42px;
    align-self: center;
}

.blog-card-info h2 {
    margin: 0 0 12px;
    font-family: "Karma", serif;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
}

.blog-card-date {
    margin: 0 0 22px;
    opacity: 0.7;
}

.blog-card-excerpt {
    max-width: 460px;
    margin: 0;
    font-family: "Karma", serif;
    line-height: 1.7;
}

.blog-card-image {
    min-height: 260px;
    background: #d7d7d7;
    height: 300px;
    min-height: 0;
    overflow: hidden;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.blog-post {
    padding-bottom: 100px;
}

.blog-post-cover {
    width: 100%;
    height: min(55vw, 620px);
    min-height: 280px;
    background-color: #222;
    background-position: center;
    background-size: cover;
}

.blog-post-content {
    width: min(760px, calc(100% - 48px));
    margin: 70px auto 0;
}

.blog-post-content h1 {
    margin: 0 0 6px;
    font-family: "Karma", serif;
    font-size: clamp(38px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.blog-post-content > .blog-card-date {
    margin: 0 0 35px;
}

.blog-post-body {
    font-family: "Karma", serif;
    font-size: 18px;
    line-height: 1.8;
}

.blog-post-body p {
    margin: 0 0 24px;
}

.contact-page {
    min-height: calc(100vh - 100px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8vw;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

.contact-portrait {
    display: block;
    width: 100%;
    height: min(65vh, 700px);
    object-fit: cover;
    object-position: center 20%;
}

.contact-content {
    text-align: center;
}

.contact-title {
    font-family: "Six Caps", sans-serif;
    font-size: clamp(5rem, 9vw, 8rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
}

.contact-subtitle {
    margin-top: 1.5rem;
    font-family: "Karma", serif;
}

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-top: 6rem;
    flex-wrap: wrap;
}

.contact-links a,
.contact-email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0;
    line-height: 0;
}

.contact-email-btn {
    border: 0;
    background: none;
    cursor: pointer;
}

.contact-links img,
.contact-links svg {
    display: block;
    height: 42px;
    width: auto;
}
.contact-email-feedback {
    flex-basis: 100%;
    min-height: 1.5em;
    margin-top: -1.5rem;
    font-family: "Karma", serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-email-btn svg,
.contact-email-btn img {
    display: block;
    height: 42px;
    width: auto;
}

@media (max-width: 700px) {
    .contact-page {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 0 4rem;
    }

    .contact-portrait {
        height: 55vh;
    }

    .contact-links {
        margin-top: 3rem;
    }
}


@media (max-width: 700px) {
    .blog-section {
        margin-top: 60px;
    }

    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-card-info {
        padding: 28px;
    }

    .blog-card-image {
        grid-row: 1;
        min-height: 220px;
        height: 220px;
    }

    .blog-card-image img {
        min-height: 220px;
    }
}


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

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

/* Responsive adjustment */
@media (max-width: 900px) {
    .who-am-i {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .who-img-col {
        position: static;
    }

    .portrait-img {
        height: 400px;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .site-header {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .nav-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-right {
        justify-content: center;
    }

    .who-am-i {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-header {
        text-align: left;
    }

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