:root {
    --bg-color: #1A2B25;
    --bg-darker: #111d18;
    --card-bg: rgba(22, 38, 32, 0.92);
    --accent-color: #C6F000;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Targeted theme transition – only color-bearing properties, not opacity/filter/transform */
*,
*::before,
*::after {
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}



html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    width: 100%;
    min-height: 100%;
    font-family: var(--font-family);
    background-color: var(--bg-darker);
    color: var(--text-primary);
    transition:
        background-color 0.5s ease,
        color 0.5s ease;
}

/* ===========================
   FULL-SCREEN BACKGROUND
   =========================== */
.main-background {
    position: fixed;
    inset: 0;
    background-image: url('./AE\ TIMELINE/ae\ timeline.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    filter: blur(4px);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    z-index: 0;
    pointer-events: none;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

/* ===========================
   CARD WRAPPER (Centering)
   =========================== */
.card-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px 20px;
}

/* ===========================
   PORTFOLIO CARD
   =========================== */
.portfolio-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 40px 32px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(198, 240, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: cardReveal 0.8s ease forwards;
    overflow: visible;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

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

/* ===========================
   PROFILE HEADER
   =========================== */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-photo-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(198, 240, 0, 0.3);
    box-shadow: 0 8px 30px rgba(198, 240, 0, 0.1),
        0 0 0 6px rgba(198, 240, 0, 0.05);
    flex-shrink: 0;
    display: flex;
    -webkit-display: flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    -webkit-object-fit: cover;
    -webkit-object-position: center center;
    display: block;
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: center;
}

.profile-role {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ===========================
   SOCIAL MEDIA BAR
   =========================== */
.social-bar {
    display: flex;
    align-items: center;
    gap: 24px;
}

.social-icon {
    color: var(--text-secondary);
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: levitate 3s ease-in-out infinite;
    filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.3));
}

.social-bar .social-icon:nth-child(1) {
    animation-delay: 0s;
}

.social-bar .social-icon:nth-child(2) {
    animation-delay: 0.4s;
}

.social-bar .social-icon:nth-child(3) {
    animation-delay: 0.8s;
}

.social-bar .social-icon:nth-child(4) {
    animation-delay: 1.2s;
}

@keyframes levitate {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

.social-icon:hover {
    color: var(--accent-color);
    filter: drop-shadow(0 8px 8px rgba(198, 240, 0, 0.2));
    animation-play-state: paused;
    transform: scale(1.25) translateY(-3px);
}

/* ===========================
   STATS GRID
   =========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(198, 240, 0, 0.2);
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.stat-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* ===========================
   ACTION BUTTONS
   =========================== */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.3px;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 0 4px 15px rgba(198, 240, 0, 0.15);
}

.btn-primary:hover {
    background-color: #d4ff00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198, 240, 0, 0.3);
}

.btn-wa {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
    background: rgba(37, 211, 102, 0.25);
    border-color: rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15);
}

.btn-email {
    background: rgba(234, 67, 53, 0.15);
    color: #ff6f62;
    border: 1px solid rgba(234, 67, 53, 0.3);
}

.btn-email:hover {
    background: rgba(234, 67, 53, 0.25);
    border-color: rgba(234, 67, 53, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 67, 53, 0.15);
}

/* ===========================
   SECONDARY LINKS
   =========================== */
.secondary-links {
    width: 100%;
    display: flex;
    justify-content: center;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.text-link i {
    font-size: 1rem;
    color: #EA4335;
}

.text-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* ===========================
   CARD DIVIDER
   =========================== */
.card-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* ===========================
   QUICK LINKS
   =========================== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-link-item i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.quick-link-item:hover {
    color: var(--accent-color);
    background: rgba(198, 240, 0, 0.05);
}

.quick-link-item:hover i {
    transform: translateY(-2px);
}

.quick-link-item.active {
    color: var(--accent-color);
    background: rgba(198, 240, 0, 0.08);
}

/* ===========================
   EXPANDABLE SECTIONS
   =========================== */
.expandable-section {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.expandable-section.open {
    max-height: 2000px;
    opacity: 1;
    padding: 8px 0;
    overflow: visible;
}

.expand-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Section header with sticky sort button */
.section-header-with-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    padding: 4px 0;
    z-index: 10;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.section-header-with-sort .expand-title {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.section-header-with-sort .sort-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-left: auto;
    gap: 4px;
}

.accent {
    color: var(--accent-color);
}

.expand-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================
   CONTACT FORM
   =========================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-input:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 2px rgba(198, 240, 0, 0.1);
}

body.light-mode .form-input {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .form-input:focus {
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(43, 138, 28, 0.1);
}

/* Mini grid for work/activities cards */
.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mini-card {
    display: block;
    padding: 16px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.mini-card:hover {
    border-color: rgba(198, 240, 0, 0.2);
    transform: translateY(-2px);
}

.mini-card-icon {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.mini-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.mini-card p {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.skill-tags:last-child {
    margin-bottom: 0;
}

.skill-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(198, 240, 0, 0.2);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--accent-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: rgba(198, 240, 0, 0.08);
    border-color: var(--accent-color);
}

/* ===========================
   THEME TOGGLE
   =========================== */
.theme-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    cursor: pointer;
    /* Only transition hover aesthetics, NOT during theme wipe */
    transition: background 0.25s ease, border-color 0.25s ease,
        color 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease;
    z-index: 10000;
    overflow: visible;
}

.theme-toggle:hover {
    background: rgba(198, 240, 0, 0.12);
    color: var(--accent-color);
    border-color: rgba(198, 240, 0, 0.5);
    transform: scale(1.12);
    box-shadow: 0 0 14px rgba(198, 240, 0, 0.18);
}

/* Icon morph animation */
.theme-toggle i {
    display: block;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.18s ease;
}

/* ===========================
   LIGHT MODE OVERRIDES
   =========================== */
body.light-mode {
    --bg-darker: #f4f7f6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --accent-color: #2b8a1c;
    --text-primary: #111d18;
    --text-secondary: #4a6358;
}

body.light-mode .main-background {
    filter: blur(4px) invert(0.9) opacity(0.4);
}

body.light-mode .portfolio-card {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(43, 138, 28, 0.1);
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .theme-toggle:hover {
    background: rgba(43, 138, 28, 0.1);
}

body.light-mode .profile-photo-wrapper {
    border-color: rgba(43, 138, 28, 0.3);
    box-shadow: 0 8px 30px rgba(43, 138, 28, 0.1),
        0 0 0 6px rgba(43, 138, 28, 0.05);
}

body.light-mode .stat-item,
body.light-mode .mini-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .stat-item:hover,
body.light-mode .mini-card:hover {
    border-color: rgba(43, 138, 28, 0.3);
}

body.light-mode .btn-primary {
    color: #fff;
    box-shadow: 0 4px 15px rgba(43, 138, 28, 0.2);
}

body.light-mode .btn-primary:hover {
    background-color: #3ca328;
    box-shadow: 0 8px 25px rgba(43, 138, 28, 0.3);
}

body.light-mode .card-divider {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

body.light-mode .quick-link-item:hover,
body.light-mode .text-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .quick-link-item.active {
    background: rgba(43, 138, 28, 0.08);
}

body.light-mode .skill-tag {
    border-color: rgba(43, 138, 28, 0.2);
}

body.light-mode .skill-tag:hover {
    background-color: rgba(43, 138, 28, 0.08);
}

body.light-mode .social-icon:hover {
    filter: drop-shadow(0 8px 8px rgba(43, 138, 28, 0.2));
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 480px) {
    .card-wrapper {
        padding: 20px 12px;
        align-items: flex-start;
    }

    .portfolio-card {
        max-width: 100%;
        padding: 32px 22px;
        border-radius: 18px;
        gap: 20px;
    }

    .profile-photo-wrapper {
        width: 110px;
        height: 110px;
    }

    .profile-name {
        font-size: 1.35rem;
    }

    .profile-role {
        font-size: 0.82rem;
    }

    .social-icon {
        font-size: 1.3rem;
    }

    .social-bar {
        gap: 20px;
    }

    .stat-value {
        font-size: 1.05rem;
    }

    .stat-label {
        font-size: 0.58rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn {
        padding: 13px 16px;
        font-size: 0.88rem;
    }

    .quick-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .quick-link-item {
        padding: 10px 4px;
        font-size: 0.55rem;
    }

    .quick-link-item i {
        font-size: 1.1rem;
    }

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

@media (max-width: 360px) {
    .portfolio-card {
        padding: 28px 18px;
    }

    .profile-photo-wrapper {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.2rem;
    }

    .stat-item {
        padding: 10px 6px;
    }

    .stat-value {
        font-size: 0.95rem;
    }
}

/* ===========================
   SOON BADGE STYLES
   =========================== */

.soon-badge {
    display: inline-block;
    padding: 4px 8px;
    border: 2px solid #ff6b6b;
    border-radius: 4px;
    color: #ff6b6b;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(26, 26, 46, 0.95);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: normal;
    animation: soonPulse 2s ease-in-out infinite;
}

body.light-mode .soon-badge {
    background: rgba(255, 255, 255, 0.95);
}

@keyframes soonPulse {
    0%, 100% {
        opacity: 1;
        border-color: #ff6b6b;
    }
    50% {
        opacity: 0.7;
        border-color: #ff8787;
    }
}

/* ===========================
   ADMIN BADGE STYLES
   =========================== */

.admin-badge {
    display: inline-block;
    padding: 4px 8px;
    border: 2px solid #9333ea;
    border-radius: 4px;
    color: #9333ea;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(147, 51, 234, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: normal;
    animation: adminPulse 2s ease-in-out infinite;
}

@keyframes adminPulse {
    0%, 100% {
        opacity: 1;
        border-color: #9333ea;
    }
    50% {
        opacity: 0.7;
        border-color: #a855f7;
    }
}

/* ===========================
   PROJECT GALLERY STYLES
   =========================== */

.gallery-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.gallery-filters::-webkit-scrollbar {
    height: 4px;
}

.gallery-filters::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.gallery-filters::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-family);
}

body.light-mode .filter-btn {
    border-color: rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(198, 240, 0, 0.05);
}

body.light-mode .filter-btn:hover {
    background: rgba(43, 138, 28, 0.05);
}

.filter-btn.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

body.light-mode .filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.filter-btn i {
    font-size: 1rem;
}

/* Sort Button */
.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid rgba(198, 240, 0, 0.3);
    border-radius: 16px;
    background: rgba(198, 240, 0, 0.1);
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-family);
}

body.light-mode .sort-btn {
    border-color: rgba(43, 138, 28, 0.3);
    background: rgba(43, 138, 28, 0.1);
    color: #2B8A1C;
}

.sort-btn:hover {
    border-color: var(--accent-color);
    background: rgba(198, 240, 0, 0.2);
    transform: scale(1.05);
}

body.light-mode .sort-btn:hover {
    border-color: #2B8A1C;
    background: rgba(43, 138, 28, 0.2);
}

.sort-btn i {
    font-size: 1rem;
}

.projects-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: projectFadeIn 0.4s ease backwards;
}

body.light-mode .project-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    background: rgba(198, 240, 0, 0.05);
}

body.light-mode .project-card:hover {
    background: rgba(43, 138, 28, 0.05);
}

.project-card a {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.project-card > div:not(a) {
    display: flex;
    gap: 12px;
    padding: 12px;
}

.project-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.video-icon {
    background: linear-gradient(135deg, rgba(198, 240, 0, 0.15), rgba(198, 240, 0, 0.05));
    color: var(--accent-color);
}

.design-icon {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 107, 107, 0.05));
    color: #ff6b6b;
}

.web-icon {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(147, 51, 234, 0.05));
    color: #9333ea;
}

.photo-icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05));
    color: #0ea5e9;
}

.docs-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
    color: #f97316;
}



.project-content {
    flex: 1;
    min-width: 0;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.project-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.project-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 4px 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tag {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

body.light-mode .project-tag {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}




/* Hide project when filtered out */
.project-card.hidden {
    display: none;
}

/* Show hidden-in-all items when needed */
.hidden-in-all {
    display: none;
}

.hidden-in-all.visible {
    display: block;
}

/* Animation for projects appearing */
@keyframes projectFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for projects */
.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.3s; }
.project-card:nth-child(7) { animation-delay: 0.35s; }