/* ===== CSS Variables & Reset ===== */
:root {
    --color-primary: #1a1a1a;
    --color-secondary: #666666;
    --color-accent: #c9a962;
    --color-light: #f8f7f4;
    --color-white: #ffffff;
    --color-dark: #0d0d0d;
    --color-border: #e5e5e5;
    --color-bg: #f5f4f0;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
    font-weight: 400;
}

.section-label {
    font-size: 0.8rem;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    display: block;
    letter-spacing: 0.02em;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-medium);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-dark);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-medium);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-white);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-medium);
}

.btn-light:hover {
    background: var(--color-light);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 3rem;
    background: transparent;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-primary);
}

.nav-links a:hover {
    color: var(--color-secondary);
}

.nav-cta {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-cta .arrow {
    font-size: 0.9rem;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    position: relative;
    padding: 0;
    background: var(--color-bg);
    overflow: hidden;
}

.hero-vertical-text {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary);
    white-space: nowrap;
}

.hero-container {
    width: 100%;
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
    padding: 0;
    padding-left: 5rem;
    position: relative;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
    padding-left: 2rem;
    z-index: 2;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--color-secondary);
    margin-top: 0.35rem;
    letter-spacing: 0.02em;
}

.hero-content {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 0.85;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-style: italic;
}

.hero-bottom {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-year {
    font-size: 0.75rem;
    color: var(--color-secondary);
    letter-spacing: 0.1em;
}

.scroll-indicator {
    font-size: 0.8rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator span {
    font-size: 1rem;
}

.hero-right {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 80px;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    transition: var(--transition-slow);
}

.hero-image:hover img {
    filter: grayscale(0%);
}

/* ===== About Section ===== */
.about {
    padding: 5rem 3rem;
    background: var(--color-white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.about-intro .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 0.9rem;
    color: var(--color-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-arrow {
    opacity: 0.6;
}

.about-stats-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-icon {
    width: 48px;
    height: 48px;
    opacity: 0.7;
}

.big-stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-primary);
    display: block;
    line-height: 1;
}

.big-stat-text {
    font-size: 0.8rem;
    color: var(--color-secondary);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.about-portrait-small {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
}

.about-portrait-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.about-portrait-col {
    display: flex;
    justify-content: center;
}

.about-portrait-main {
    position: relative;
    width: 200px;
    height: 260px;
    border-radius: 120px 120px 12px 12px;
    overflow: hidden;
}

.about-portrait-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.portrait-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.about-experience {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.experience-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.exp-bullet {
    font-size: 0.5rem;
    color: var(--color-primary);
    margin-top: 0.4rem;
}

.experience-item p {
    font-size: 0.85rem;
    color: var(--color-secondary);
    line-height: 1.6;
}

/* ===== Portfolio Preview ===== */
.portfolio-preview {
    padding: 0 3rem 4rem;
    background: var(--color-white);
}

.preview-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.preview-item:hover img {
    transform: scale(1.05);
}

.preview-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.25rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-medium);
}

.preview-item:hover .preview-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Design Journey ===== */
.journey {
    padding: 5rem 3rem;
    background: var(--color-light);
}

.journey-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.journey-header {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.journey-description {
    font-size: 0.9rem;
    color: var(--color-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.journey-timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
    border-radius: 12px;
    /* Prepare for hover */
}

.timeline-item:first-child {
    border-top: 1px solid var(--color-border);
}

.timeline-item:hover {
    background: var(--color-accent);
    margin: 0 -1.5rem;
    padding: 1.5rem;
    border-color: transparent;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Ensure borders don't double up or look weird during transition */
.timeline-item:hover+.timeline-item {
    border-top-color: transparent;
}

.timeline-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.timeline-info {
    flex: 1;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--color-primary);
    line-height: 1.5;
}

.timeline-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-secondary);
    transition: all 0.3s ease;
}

.timeline-item.highlight {
    background: var(--color-accent);
    margin: 0 -1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: none;
    position: relative;
}

.timeline-item.highlight .timeline-content {
    flex-direction: column;
    align-items: flex-start;
}

/* Make tags darker in highlighted/hovered items */
.timeline-item.highlight .tag,
.timeline-item:hover .tag {
    color: var(--color-primary);
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.2);
}

.timeline-item.highlight .timeline-company {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Interactive Highlight Logic */
/* When hovering over the container, but NOT the highlighted item, revert it to normal */
.journey-timeline:hover .timeline-item.highlight:not(:hover) {
    background: transparent;
    margin: 0;
    padding: 1.25rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    z-index: 1;
}

/* Revert content layout */
.journey-timeline:hover .timeline-item.highlight:not(:hover) .timeline-content {
    flex-direction: row;
    align-items: center;
}

/* Revert tag styles */
.journey-timeline:hover .timeline-item.highlight:not(:hover) .tag {
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
    background: transparent;
}

/* Revert company title margin */
.journey-timeline:hover .timeline-item.highlight:not(:hover) .timeline-company {
    margin-bottom: 0;
}

/* ===== Promo Banner ===== */
.promo-banner {
    padding: 0 3rem;
    margin: -2rem 0 4rem;
    position: relative;
    z-index: 10;
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.promo-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 1rem;
}

.promo-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.promo-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* ===== Latest Works ===== */
.latest-works {
    padding: 5rem 3rem;
    background: var(--color-light);
}

.works-container {
    max-width: 1200px;
    margin: 0 auto;
}

.works-header {
    margin-bottom: 2rem;
}

.works-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.5rem;
}

.work-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
}

.work-card.large {
    grid-row: span 2;
}

.work-image {
    position: relative;
    overflow: hidden;
}

.work-card.large .work-image {
    height: 100%;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.work-info {
    padding: 1rem;
}

.work-category,
.work-meta,
.work-title,
.work-link {
    font-size: 0.75rem;
    display: block;
    color: var(--color-secondary);
}

.work-title {
    color: var(--color-primary);
    margin-top: 0.25rem;
}

.works-footer {
    margin-top: 2rem;
    text-align: center;
}

.view-more {
    font-size: 0.85rem;
    color: var(--color-primary);
}

/* ===== Blog Section ===== */
.blog-section {
    padding: 5rem 3rem;
    background: var(--color-white);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-header {
    margin-bottom: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--color-light);
    border-radius: 12px;
    overflow: hidden;
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.25rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.blog-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(201, 169, 98, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
}

.blog-date {
    font-size: 0.7rem;
    color: var(--color-secondary);
}

.blog-content h3 {
    font-size: 0.95rem;
    font-family: var(--font-sans);
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 5rem 3rem;
    background: var(--color-light);
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
}

/* ===== Footer ===== */
.footer {
    padding: 1.5rem 3rem;
    background: var(--color-light);
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    font-size: 0.8rem;
    color: var(--color-secondary);
}

.footer-email {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding: 6rem 2rem 2rem;
        padding-left: 2rem;
    }

    .hero-left {
        order: 2;
        padding-right: 0;
        padding-left: 0;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-right {
        order: 1;
        justify-content: center;
    }

    .hero-image {
        max-width: 300px;
        height: 400px;
        min-height: auto;
    }

    .hero-bottom {
        justify-content: center;
    }

    .hero-vertical-text {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .about-experience {
        grid-column: span 2;
    }

    .preview-container {
        grid-template-columns: 1fr;
    }

    .journey-container {
        grid-template-columns: 1fr;
    }

    .journey-header {
        position: relative;
        top: 0;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .work-card.large {
        grid-row: span 1;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Liquid-OS style Book A Call button */
    .nav-cta {
        font-size: 0.8rem;
        font-weight: 500;
        padding: 0.55rem 1.1rem;
        background: rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(18px) saturate(180%);
        -webkit-backdrop-filter: blur(18px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 50px;
        color: var(--color-primary);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.55);
        transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
        letter-spacing: 0.01em;
        /* Initially hidden — shown after hero animation */
        opacity: 0;
        transform: translateY(-8px);
        animation: navItemEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 3.0s forwards;
    }

    .nav-cta:hover,
    .nav-cta:active {
        background: rgba(255, 255, 255, 0.38);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.7);
        transform: translateY(-1px);
    }

    /* Logo hidden initially — shown after hero animation */
    .logo {
        opacity: 0;
        transform: translateY(-8px);
        animation: navItemEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 2.9s forwards;
    }

    @keyframes navItemEntrance {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero {
        min-height: auto;
    }

    .hero-container {
        min-height: auto;
        padding: 0;
        padding-left: 0;
        gap: 0;
    }

    /* === Mobile Hero: Fullscreen Image Intro === */
    .hero-right {
        order: 1;
        width: 100%;
        height: 100vh;
        padding-top: 0;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .hero-image {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        display: flex;
        justify-content: center;
        overflow: hidden;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        filter: grayscale(100%);
        animation: heroColorReveal 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
    }

    @keyframes heroColorReveal {
        0% {
            filter: grayscale(100%);
            transform: scale(1.05);
        }

        60% {
            filter: grayscale(30%);
            transform: scale(1.02);
        }

        100% {
            filter: grayscale(0%);
            transform: scale(1);
        }
    }

    /* Hero text section — delayed entrance */
    .hero-left {
        order: 2;
        padding: 2.5rem 1.5rem 2rem;
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
        animation: heroTextEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
    }

    @keyframes heroTextEntrance {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about,
    .journey,
    .latest-works,
    .blog-section,
    .cta-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Explicitly ensure hero has no padding on mobile */
    .hero {
        padding: 0;
    }

    .about {
        padding: 3rem 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-experience {
        grid-column: span 1;
    }

    .about-portrait-main {
        width: 180px;
        height: 230px;
    }

    .about-portrait-small {
        width: 100px;
        height: 100px;
    }

    .big-stat-number {
        font-size: 2.5rem;
    }

    .preview-container {
        gap: 1rem;
    }

    .preview-item {
        aspect-ratio: 3/4;
    }

    .portfolio-preview {
        padding: 0 1.5rem 3rem;
    }

    .promo-banner {
        padding: 0 1.5rem;
        margin: 0 0 3rem;
    }

    .promo-container {
        padding: 2rem 1.5rem;
    }

    .journey {
        padding: 3rem 1.5rem;
    }

    .timeline-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .timeline-tags {
        flex-wrap: wrap;
    }

    /* Add a bit of space on sides for highlighted timeline items */
    .timeline-item.highlight,
    .timeline-item:hover {
        margin: 0 -1rem;
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .latest-works,
    .blog-section {
        padding: 3rem 1.5rem;
    }

    .work-image {
        height: auto;
        width: 100%;
        position: relative;
    }

    .work-card.large .work-image {
        height: auto;
    }

    .work-image img,
    .work-image video {
        object-fit: contain;
        background-color: var(--color-light);
    }

    .work-arrow {
        top: 0.75rem;
        right: 0.75rem;
    }

    .cta-section {
        padding: 3rem 1.5rem;
    }

    .footer {
        padding: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-email {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .about-intro .section-title {
        font-size: 1.6rem;
    }

    .about-description {
        font-size: 0.85rem;
    }

    .about-portrait-main {
        width: 150px;
        height: 200px;
    }

    .promo-content h2 {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav-cta {
        font-size: 0.7rem;
    }
}

/* ===== Animations & Transitions ===== */

/* --- Navbar States --- */
.navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-scrolled {
    background: rgba(248, 247, 244, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.06);
}

.navbar-hidden {
    transform: translateY(-100%);
}

/* --- Scroll Reveal Animations --- */
.anim-hidden {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Slide from left */
.anim-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Slide from right */
.anim-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scale in */
.anim-scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-slide-left.anim-visible,
.anim-slide-right.anim-visible,
.anim-scale-in.anim-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* --- Original fadeInUp (kept for backwards compat) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* --- Floating Pulse (scroll indicator) --- */
@keyframes floatPulse {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.6;
    }
}

/* --- Section Entrance --- */
section {
    transition: opacity 0.5s ease;
}

section.section-in-view {
    opacity: 1;
}

/* --- Image Reveal Wipe --- */
.img-reveal-overlay {
    transform: scaleX(0);
    transform-origin: left;
}

/* --- Hover effects for interactive elements --- */
.work-card,
.blog-card,
.project-card,
.highlight-card,
.preview-item {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.5s ease;
}

.work-arrow,
.project-card-overlay,
.portrait-arrow,
.timeline-arrow {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
}

/* Timeline item entrance */
.timeline-item {
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CTA section glow effect */
.cta-section .btn-primary,
.project-cta .btn-primary {
    position: relative;
    overflow: hidden;
}

.cta-section .btn-primary::after,
.project-cta .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.cta-section .btn-primary:hover::after,
.project-cta .btn-primary:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Promo banner shimmer */
.promo-container {
    position: relative;
    overflow: hidden;
}

.promo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Hero image grayscale transition */
.hero-image img {
    transition: filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s ease !important;
}

/* About section portraits */
.about-portrait-main,
.about-portrait-small {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.5s ease;
}

.about-portrait-main:hover,
.about-portrait-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.about-portrait-main:hover img,
.about-portrait-small:hover img {
    filter: grayscale(0%);
}

/* Tag hover animations */
.tag,
.project-tag,
.filter-tag {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tag:hover,
.project-tag:hover {
    transform: translateY(-2px) scale(1.05);
}

/* --- Reduced Motion Accessibility --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .anim-hidden {
        opacity: 1;
        transform: none;
    }
}

/* ===== Social Links ===== */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social .social-links {
    margin-top: 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid currentColor;
    color: var(--color-primary);
    padding: 9px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.social-icon:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }
}