/* ============================================
   Yunbing Han — Portfolio
   Inspired by landonorris.com
   Premium playful design with #55D8FF
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Day Theme (default) --- */
:root {
    --primary: #55D8FF;
    --primary-dark: #3ABDE0;
    --secondary: #FF6B9D;
    --accent: #A78BFA;
    --yellow: #FBBF24;
    --green: #34D399;
    --bg: #FAFAFA;
    --bg-secondary: #F0F9FF;
    --surface: #FFFFFF;
    --text: #1E293B;
    --text-secondary: #64748B;
    --border: #E2E8F0;
    --shadow: rgba(0, 0, 0, 0.06);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --shadow-primary: rgba(85, 216, 255, 0.3);
    --nav-bg: rgba(250, 250, 250, 0.85);
    --radius: 20px;
    --radius-sm: 12px;
    --cubic: cubic-bezier(0.65, 0.05, 0, 1);
    --duration: 0.75s;
    --font-display: 'Montserrat', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- Night Theme --- */
[data-theme="dark"] {
    --primary: #55D8FF;
    --primary-dark: #7AE3FF;
    --secondary: #FF6B9D;
    --accent: #C4B5FD;
    --yellow: #FCD34D;
    --green: #6EE7B7;
    --bg: #111111;
    --bg-secondary: #111111;
    --surface: #111111;
    --text: #F1F5F9;
    --text-secondary: #94A3B8;
    --border: #2A3A5C;
    --shadow: rgba(0, 0, 0, 0.12);
    --shadow-hover: rgba(0, 0, 0, 0.18);
    --shadow-primary: rgba(85, 216, 255, 0.08);
    --nav-bg: rgba(17, 17, 17, 0.9);
}

/* --- Hidden scrollbar --- */
::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; -ms-overflow-style: none; }

/* --- Selection color --- */
::selection {
    background-color: var(--primary);
    color: var(--text);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background var(--duration) var(--cubic), color var(--duration) var(--cubic);
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

button {
    cursor: none;
}

/* --- Page Transition --- */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: clip-path 1s var(--cubic);
    clip-path: circle(150% at 50% 50%);
}

.page-transition.done {
    clip-path: circle(0% at 50% 50%);
    pointer-events: none;
}

.transition-text {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: var(--text);
    animation: pulseScale 0.8s ease infinite alternate;
}

@keyframes pulseScale {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* --- Custom Cursor --- */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
    transition: width 0.3s var(--cubic), height 0.3s var(--cubic), background 0.3s var(--cubic);
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9997;
    transition: width 0.3s var(--cubic), height 0.3s var(--cubic), border-color 0.3s var(--cubic), opacity 0.3s var(--cubic);
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.cursor.hovering {
    width: 60px;
    height: 60px;
    background: rgba(85, 216, 255, 0.15);
    mix-blend-mode: normal;
}

.cursor-follower.hovering {
    width: 60px;
    height: 60px;
    opacity: 0;
}

/* Hide custom cursor on touch */
@media (pointer: coarse) {
    .cursor, .cursor-follower { display: none; }
    body, a, button { cursor: auto; }
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.3s ease, background var(--duration) var(--cubic), transform 0.5s var(--cubic);
}

.nav.scrolled {
    box-shadow: 0 1px 12px var(--shadow);
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    transition: transform 0.3s var(--cubic);
}

.nav-logo:hover {
    transform: rotate(-5deg) scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s var(--cubic);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.4s var(--cubic);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--cubic);
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg);
}

.icon-sun, .icon-moon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.5s var(--cubic);
}

.icon-sun {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

.icon-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .icon-sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .icon-moon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 48px 100px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(85, 216, 255, 0.1);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 28px;
}

[data-theme="dark"] .hero-badge {
    background: rgba(85, 216, 255, 0.12);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.name-highlight-wrap {
    display: inline;
}

.name-highlight {
    color: var(--text);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
    text-align: center;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    background: var(--primary);
    padding: 16px 36px;
    border-radius: 50px;
    transition: all 0.4s var(--cubic);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s var(--cubic);
    border-radius: 50px;
}

.hero-cta:hover::before {
    opacity: 1;
}

.hero-cta span {
    position: relative;
    z-index: 1;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-primary);
}

.hero-cta .arrow {
    transition: transform 0.4s var(--cubic);
}

.hero-cta:hover .arrow {
    transform: translateY(3px);
}

/* Floating shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    transition: opacity var(--duration) var(--cubic);
    filter: blur(1px);
}

[data-theme="dark"] .shape {
    opacity: 0.08;
}

.shape-1 {
    width: 350px;
    height: 350px;
    background: var(--primary);
    top: 8%;
    left: -5%;
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    top: 15%;
    right: 3%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: var(--accent);
    bottom: 12%;
    left: 8%;
    animation: float 9s ease-in-out infinite 1s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: var(--yellow);
    bottom: 22%;
    right: 12%;
    animation: float 7s ease-in-out infinite 0.5s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-5 {
    width: 90px;
    height: 90px;
    background: var(--green);
    top: 55%;
    left: 45%;
    animation: float 11s ease-in-out infinite 2s;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

/* --- Marquee Strip --- */
.marquee {
    padding: 20px 0;
    background: var(--primary);
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .marquee {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
    white-space: nowrap;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

[data-theme="dark"] .marquee-content span {
    color: var(--primary);
}

.marquee-dot {
    width: 8px;
    height: 8px;
    background: #111111;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

[data-theme="dark"] .marquee-dot {
    background: var(--primary);
}

@keyframes marqueeScroll {
    to { transform: translateX(-50%); }
}

/* --- Split Text Animation --- */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s var(--cubic), transform 0.6s var(--cubic);
}

.split-text.visible .char {
    opacity: 1;
    transform: translateY(0);
}

/* --- Reveal Up Animation --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--cubic), transform 0.8s var(--cubic);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Work Section --- */
.work {
    padding: 120px 48px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 22px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    cursor: none;
    transition: all 0.35s var(--cubic);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.work-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.5s var(--cubic);
    opacity: 1;
    transform: scale(1);
}

.work-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 28px var(--shadow-hover);
}

.work-card.hidden {
    opacity: 0;
    transform: scale(0.85);
    position: absolute;
    pointer-events: none;
}

.card-image {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(0,0,0,0.1), transparent 60%);
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 33, 0.4);
    opacity: 0;
    transition: opacity 0.5s var(--cubic);
}

.work-card:hover .card-image-overlay {
    opacity: 1;
}

.card-placeholder {
    font-family: var(--font-heading);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.5s var(--cubic);
}

.work-card:hover .card-placeholder {
    transform: scale(1.1);
}

.card-info {
    padding: 28px;
    position: relative;
}

.card-category {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 10px 0;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    top: 28px;
    right: 28px;
    font-size: 1.4rem;
    color: var(--primary);
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all 0.4s var(--cubic);
}

.work-card:hover .card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- About Section --- */
.about {
    padding: 120px 48px;
    background: var(--bg-secondary);
    transition: background var(--duration) var(--cubic);
}

[data-theme="dark"] .about {
    background: var(--bg-secondary);
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 72px;
    align-items: center;
}

.photo-placeholder {
    width: 320px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.5s var(--cubic), border-radius 0.5s var(--cubic);
}

.photo-placeholder:hover {
    transform: rotate(-3deg) scale(1.03);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.skill {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 18px;
    background: var(--surface);
    border-radius: 50px;
    color: var(--text);
    box-shadow: 0 1px 6px var(--shadow);
    transition: all 0.35s var(--cubic);
}

.skill:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--shadow-primary);
    color: var(--primary);
    background: var(--surface);
}

/* --- Showcase Grid Section (bento grid inspired by landonorris.com) --- */
.showcase-grid {
    padding: 120px 0 80px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.showcase-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

.showcase-grid .section-title {
    color: var(--text);
}

.showcase-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
}

.showcase-spacer {
    height: 4rem;
}

/* 4-column bento grid */
.showcase-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* Card wrapper */
.showcase-card {
    position: relative;
}

/* Card frame — simple rounded rectangle */
.showcase-card-frame {
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

/* SVG frame wrapper — hidden (borders removed) */
.showcase-frame-w {
    display: none;
}

/* Image container */
.showcase-card-images {
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    inset: 0;
}

.showcase-img-base {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform var(--duration) var(--cubic);
}

.showcase-img-reveal {
    clip-path: ellipse(100% 0% at 50% 0);
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    transform: scale(1.05);
    transition: clip-path var(--duration) var(--cubic), transform var(--duration) var(--cubic);
}

.showcase-img-placeholder {
    position: absolute;
    z-index: 2;
    font-family: var(--font-heading);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity var(--duration) var(--cubic);
}

/* Hover effects */
.showcase-card:hover .showcase-img-base {
    transform: scale(1.1);
}

.showcase-card:hover .showcase-img-reveal {
    clip-path: ellipse(100% 120% at 50% 0%);
    transform: scale(1);
}


.showcase-card:hover .showcase-img-placeholder {
    opacity: 0;
}

/* Card label — sits below the frame at bottom-right */
.showcase-card-label {
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    height: 2rem;
    padding-right: 0.25rem;
}

.showcase-card-name {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.showcase-card-year {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

/* Showcase Responsive — Tablet */
@media (max-width: 991px) {
    .showcase-bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .showcase-container {
        padding: 0 32px;
    }
}

/* Showcase Responsive — Mobile */
@media (max-width: 767px) {
    .showcase-grid {
        padding: 80px 0 60px;
    }
    .showcase-container {
        padding: 0 20px;
    }
    .showcase-bento {
        gap: 0.75rem;
    }
    .showcase-card-name,
    .showcase-card-year {
        font-size: 0.7rem;
    }
}

/* --- Gallery Fan Section --- */
.gallery-fan {
    padding: 120px 48px 60px;
    background: transparent;
    text-align: center;
    position: relative;
}

.gallery-fan-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.gallery-fan-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.gallery-fan-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/*
 * Fan container + cards — layout only.
 * All transforms (position, rotation, scale) are handled by GSAP,
 * directly ported from landonorris.com source code.
 */
.fan-container {
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 80rem;
    height: 26rem;
    display: flex;
    position: relative;
    margin: 0 auto;
}

.fan-card {
    z-index: 0;
    backface-visibility: hidden;
    will-change: transform;
    border-radius: 2.5rem;
    flex: none;
    width: 15rem;
    height: 20rem;
    position: absolute;
    overflow: clip;
    opacity: 1;
}

.fan-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fan-card-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
}

/* Responsive — tablet */
@media (max-width: 991px) {
    .fan-card {
        width: 13rem;
        height: 17.33rem;
    }
    .fan-container {
        height: 22rem;
    }
}

/* Responsive — mobile */
@media (max-width: 767px) {
    .gallery-fan {
        padding: 80px 20px 40px;
    }

    .fan-container {
        height: 20rem;
    }

    .fan-card {
        width: 8rem;
        height: 10.67rem;
        border-radius: 1.5rem;
    }
}

/* Responsive — small mobile */
@media (max-width: 479px) {
    .fan-container { height: 14rem; }
    .fan-card { width: 6.5rem; height: 8.67rem; border-radius: 1.2rem; }
}

/* --- Contact Section --- */
.contact {
    padding: 120px 48px;
    text-align: center;
}

.contact-content {
    max-width: 650px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.4s var(--cubic);
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.contact-email:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-secondary);
    box-shadow: 0 1px 6px var(--shadow);
    transition: all 0.4s var(--cubic);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.social-link svg {
    display: block;
}

.social-github {
    color: var(--text);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 32px 48px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    transition: border-color var(--duration) var(--cubic);
}

/* --- Animations --- */
@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-8deg); }
    40% { transform: rotate(14deg); }
    50% { transform: rotate(-4deg); }
    60% { transform: rotate(10deg); }
    70% { transform: rotate(0deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .work {
        padding: 80px 20px;
    }

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

    .about {
        padding: 80px 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .photo-placeholder {
        width: 220px;
        height: 280px;
        margin: 0 auto;
    }

    .skills {
        justify-content: center;
    }

    .contact {
        padding: 80px 20px;
    }

    .filters {
        gap: 6px;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 7px 16px;
    }

    .shape-1 { width: 200px; height: 200px; }
    .shape-2 { width: 150px; height: 150px; }
    .shape-3 { width: 100px; height: 100px; }

    .marquee-content span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 14px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .card-image {
        height: 200px;
    }
}
