/* ════════════════════════════════════════════════
   TIMOTÉ LE PLAPOUS — PORTFOLIO
   Style: Clean white · Professional · Modern cards
   Inspired by Steven Dong's portfolio
   ════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
    --white: #ffffff;
    --bg: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --green-500: #22c55e;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--slate-900);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

::selection {
    background: rgba(37, 99, 235, 0.15);
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 400px);
    z-index: 100;
    height: 56px;
    display: flex;
    align-items: center;
    background: rgba(248, 250, 252, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.85);
    box-shadow: var(--shadow-md);
}

.nav-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 700;
    color: #000000;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-burger {
    display: none;
    font-size: 1.5rem;
    color: var(--slate-700);
    position: relative;
    z-index: 400;
}

/* ── Section ── */
.section {
    width: 100%;
    padding: 5rem 1rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-heading {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 2.5rem;
}

.section-heading.centered {
    text-align: center;
}

.heading-bar {
    width: 60px;
    height: 4px;
    background: var(--slate-300);
    border-radius: 4px;
    margin: 0 auto 2rem;
}

.accent-text {
    font-weight: 700;
    color: var(--blue-600);
}

/* ── Hero Section ── */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.hero-main {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
}

/* Avatar */
.hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.avatar-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.hero-avatar-wrap:hover .avatar-glow {
    opacity: 0.5;
}

.avatar-placeholder {
    width: 192px;
    height: 192px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-avatar-wrap:hover .avatar-placeholder {
    transform: scale(1.05);
}

.avatar-placeholder span {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero text */
.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 420px;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--slate-600);
    margin-bottom: 0.3rem;
}

.hero-name {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-role {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.hero-role p {
    color: var(--slate-700);
}

.typewriter {
    color: var(--blue-600);
    font-weight: 600;
    min-height: 1.5em;
    border-right: 2px solid var(--blue-600);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Social Links */
.hero-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--slate-600);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--slate-100);
    color: var(--slate-900);
    transform: scale(1.1);
}

.social-tooltip {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    background: var(--slate-900);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.social-link:hover .social-tooltip {
    opacity: 1;
}

/* Hero Footer */
.hero-footer {
    text-align: center;
    max-width: 600px;
    padding-bottom: 2rem;
}

.hero-footer > p:first-child {
    font-size: 1.1rem;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.hero-desc {
    color: var(--slate-600);
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.88rem;
    color: var(--slate-500);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
}

.stat-sep {
    color: var(--slate-300);
}

/* ── Skills Cards ── */
#competences .container {
    max-width: 1200px;
}

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

.skill-card {
    background: var(--white);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--slate-200);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sc-blue { background: rgba(59, 130, 246, 0.1); color: var(--blue-600); }
.sc-purple { background: rgba(168, 85, 247, 0.1); color: var(--purple-500); }
.sc-dark { background: rgba(30, 41, 59, 0.1); color: var(--slate-800); }
.sc-green { background: rgba(34, 197, 94, 0.1); color: var(--green-500); }
.sc-orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.sc-pink { background: rgba(236, 72, 153, 0.1); color: #ec4899; }

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--slate-900);
    text-align: left;
    line-height: 1.3;
}

.skill-card-desc {
    font-size: 0.9rem;
    color: var(--slate-600);
    line-height: 1.5;
    flex-grow: 1;
}

.skill-card-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-badge {
    background: var(--slate-50);
    color: var(--slate-500);
    border: 1px solid var(--slate-200);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

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

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

/* ── Parcours Cards ── */
.parcours-header {
    text-align: center;
    margin-bottom: 2rem;
}

.parcours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.parcours-card {
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 2px solid;
    transition: all 0.3s ease;
}

.parcours-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-blue {
    background: var(--blue-50);
    border-color: var(--blue-100);
}

.card-purple {
    background: var(--purple-50);
    border-color: var(--purple-100);
}

.pc-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pc-logo-wrap {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    flex-shrink: 0;
}

.pc-logo-text {
    font-size: 1rem;
    font-weight: 800;
    color: var(--slate-700);
}

.pc-top h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.1rem;
}

.pc-role {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.card-blue .pc-role { color: var(--blue-600); }
.card-purple .pc-role { color: var(--purple-600); }

.pc-date {
    font-size: 0.82rem;
    color: var(--slate-600);
}

.pc-body p {
    color: var(--slate-700);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pc-techs h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.8rem;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-pills span {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--slate-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--slate-600);
}

.pc-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--slate-900);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-dark:hover {
    background: var(--slate-800);
    box-shadow: var(--shadow-md);
}

.btn-full {
    width: 100%;
}

/* ── Contact Section ── */
.section-contact {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.3), var(--white), rgba(248, 250, 252, 0.3));
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-sub {
    color: var(--slate-600);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

/* Contact Left (dark) */
.contact-left {
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
    color: var(--white);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5), transparent);
}

.cl-content {
    position: relative;
    z-index: 1;
}

.cl-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.cl-bar {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-bottom: 1.5rem;
}

.cl-content > p {
    color: var(--slate-300);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.cl-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cl-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cl-info-icon {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.cl-info-item strong {
    font-size: 0.88rem;
    display: block;
    margin-bottom: 0.1rem;
}

.cl-info-item p {
    font-size: 0.82rem;
    color: var(--slate-300);
}

.cl-socials {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.cl-social-btn {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.cl-social-btn:hover {
    transform: scale(1.1);
}

.cl-social-btn:first-child:hover {
    background: #0077B5;
}

.cl-social-btn:last-child:hover {
    background: var(--white);
    color: var(--slate-900);
}

/* Contact Right */
.contact-right {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.cv-section {
    text-align: center;
    padding: 2rem;
    background: var(--slate-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-100);
}

.cv-icon {
    font-size: 2.5rem;
    color: var(--blue-600);
    margin-bottom: 1rem;
}

.cv-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cv-section p {
    color: var(--slate-600);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.objectives-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 1rem;
}

.obj-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.obj-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-100);
    transition: all 0.3s ease;
}

.obj-item:hover {
    background: var(--white);
    border-color: var(--slate-200);
    transform: translateX(4px);
}

.obj-item i {
    color: var(--blue-600);
    font-size: 1rem;
    margin-top: 0.2rem;
}

.obj-item strong {
    font-size: 0.88rem;
    display: block;
    margin-bottom: 0.1rem;
}

.obj-item p {
    font-size: 0.82rem;
    color: var(--slate-500);
}

/* ── Footer ── */
.footer {
    background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
    border-top: 1px solid var(--slate-200);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 1rem;
}

.footer-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: box-shadow 0.3s ease;
}

.footer-card:hover {
    box-shadow: var(--shadow-md);
}

.footer-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--slate-100), var(--white));
    border: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--slate-600);
    flex-shrink: 0;
}

.footer-profile h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.1rem;
}

.footer-profile p {
    font-size: 0.82rem;
    color: var(--slate-600);
    margin-bottom: 0.3rem;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--slate-500);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-500);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.footer-nav h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav h4::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--slate-400);
    border-radius: 3px;
}

.footer-nav a {
    display: block;
    font-size: 0.88rem;
    color: var(--slate-600);
    padding: 0.3rem 0;
    transition: all 0.2s ease;
}

.footer-nav a:hover {
    color: var(--slate-900);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--slate-200);
    padding: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--slate-500);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .navbar {
        width: calc(100% - 40px);
        top: 12px;
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        margin: 0;
    }
    .nav-burger { display: block; }

    .nav-links.open {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 300;
    }

    .nav-links.open a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .hero-main {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        align-items: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .hero-role {
        flex-direction: column;
        gap: 0.2rem;
    }

    .avatar-placeholder {
        width: 150px;
        height: 150px;
    }

    .avatar-placeholder span {
        font-size: 2.5rem;
    }

    .section-heading {
        font-size: 1.8rem;
    }
}

/* ── Projets Section ── */
#projets {
    background: var(--white);
    padding: 6rem 0;
    overflow-x: hidden;
}

#projets .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.projects-slider-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.projects-slider {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    padding: 2rem 1rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--slate-300) transparent;
}

/* Custom scrollbar for Webkit */
.projects-slider::-webkit-scrollbar {
    height: 6px;
}

.projects-slider::-webkit-scrollbar-track {
    background: transparent;
}

.projects-slider::-webkit-scrollbar-thumb {
    background-color: var(--slate-300);
    border-radius: 20px;
}

.project-card {
    min-width: 380px;
    width: 380px;
    background: transparent;
    border: none;
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s var(--ease), opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.03) rotate(0.5deg);
    background: var(--slate-50);
}

.project-img-wrap {
    height: 240px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--slate-100);
    position: relative;
}

.project-gradient {
    width: 100%;
    height: 100%;
    transition: transform 0.6s var(--ease);
}

.project-card:hover .project-gradient {
    transform: scale(1.05);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.g-blue {
    background: linear-gradient(135deg, var(--blue-500), #06b6d4);
}

.g-purple {
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
}

.g-dark {
    background: linear-gradient(135deg, var(--slate-800), var(--slate-600));
}

.g-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.g-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.g-pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.project-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    text-align: left;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--slate-900);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--slate-600);
    line-height: 1.4;
    min-height: 40px;
}

.project-tech-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.25rem;
}

.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.project-tag-pill {
    background: var(--slate-50);
    color: var(--slate-500);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--slate-200);
}

/* Hide helper class for dynamic filtering */
.project-card.hide {
    display: none;
}

@media (max-width: 640px) {
    .project-card {
        min-width: 310px;
        width: 310px;
    }
    .project-img-wrap {
        height: 200px;
    }
}

/* Back To Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background-color: var(--slate-900);
    color: var(--slate-50);
    border: 1px solid var(--slate-800);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--blue-500);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Avatar and Footer Logo styling */
.avatar-placeholder img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.footer-avatar img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* Accent link hover effect */
.accent-link {
    color: var(--blue-600);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.accent-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--blue-500);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.accent-link:hover {
    color: var(--blue-500);
}

.accent-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Proof tag decoration */
.proof-tag {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}
