:root {
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --font-main: 'Inter',
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    --font-heading: 'Outfit',
        'Inter',
        sans-serif;
}

body {
    --bg: #030406;
    --surface: #0a0c10;
    --surface-alt: #12151e;
    --surface-deep: #050608;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-solid: #8b5cf6;
    --border: rgba(255, 255, 255, 0.06);
    --header-bg: rgba(3, 4, 6, 0.85);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: var(--font-heading);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: min(1120px, 90vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-weight: 600;
    letter-spacing: 0.04em;
}


.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    display: block;
}

.nav {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav a {
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero {
    padding: 120px 0 60px;
}

.hero-intro {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

.profile-photo {
    flex-shrink: 0;
    padding: 4px;
    background: linear-gradient(135deg, #7f5dff, #3f9cfe);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(127, 93, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(127, 93, 255, 0.6), 0 0 40px rgba(63, 156, 254, 0.4);
    }
}

.profile-photo-inner {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(127, 93, 255, 0.1), rgba(63, 156, 254, 0.1));
    color: var(--muted);
}

.hero-content {
    flex: 1;
}

.hero-grid {
    display: grid;
    gap: 48px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 8px;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 800;
    margin: 0 0 20px;
    background: linear-gradient(120deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
    line-height: 1;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin: 0 0 12px;
}

h3 {
    font-size: 1.35rem;
    margin: 0 0 12px;
}

.lead {
    font-size: 1.2rem;
    color: #dfe4ff;
    margin-bottom: 12px;
}

.body {
    color: var(--muted);
    margin: 0;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    line-height: normal;
    box-sizing: border-box;
}

.btn-primary {
    background: linear-gradient(135deg, #7f5dff, #3f9cfe);
    box-shadow: 0 8px 25px rgba(127, 93, 255, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: btnShine 4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

@keyframes btnShine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.btn-primary:hover {
    box-shadow: 0 12px 30px rgba(127, 93, 255, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text);
}

.btn-outline {
    border-color: rgba(127, 93, 255, 0.6);
    color: var(--text);
    background: rgba(127, 93, 255, 0.08);
}

.btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-teaser {
    display: flex;
    align-items: stretch;
}

.hero-teaser .chatbot-teaser {
    margin-top: 0;
    width: 100%;
    height: 100%;
}

.chatbot-teaser {
    margin-top: 28px;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(16, 18, 24, 0.7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 18px 35px var(--shadow);
}

.chatbot-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chatbot-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chatbot-title {
    margin: 0;
    font-weight: 600;
}

.coming-soon-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(251, 191, 36, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
}

.chatbot-caption {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.chatbot-dialog {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bubble {
    border-radius: var(--radius-sm);
    padding: 14px;
    position: relative;
    border: 1px solid var(--border);
}

.bubble-user {
    background: rgba(127, 93, 255, 0.12);
}

.bubble-bot {
    background: rgba(63, 156, 254, 0.12);
}

.bubble-label {
    margin: 0 0 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.bubble-text {
    margin: 0;
    font-size: 0.95rem;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.hero-metrics-boxed {
    margin-top: 28px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}

.metric-card {
    flex: 1 1 200px;
    background: rgba(16, 18, 24, 0.6);
    backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 18px 35px var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.metric-value {
    font-size: 2rem;
    margin: 0;
}

.metric-label {
    color: var(--muted);
    margin: 4px 0 0;
}

.section {
    padding: 80px 0;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    align-items: center;
}

.section-header {
    margin-bottom: 32px;
}

.card-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: rgba(10, 12, 16, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Staggered animation for multiple cards */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 70px var(--shadow),
        0 0 40px rgba(127, 93, 255, 0.15);
    border-color: rgba(127, 93, 255, 0.3);
}

.card-header p {
    margin: 0 0 8px;
}

.list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 8px;
}

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

.tag {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tag:hover {
    border-color: rgba(127, 93, 255, 0.4);
    background: rgba(127, 93, 255, 0.05);
}

.project-card .project-links {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}


.projects-cta {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

/* Enhanced Home Page Project Cards */
.project-card-home {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(22, 25, 36, 0.8), rgba(16, 18, 24, 0.9));
    border: 1px solid rgba(127, 93, 255, 0.1);
}

.project-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            #7f5dff,
            #3f9cfe,
            #7f5dff,
            transparent);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card-home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right,
            rgba(127, 93, 255, 0.05),
            transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project-card-home:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

.project-card-home:hover::after {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.project-category-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, rgba(127, 93, 255, 0.2), rgba(63, 156, 254, 0.2));
    border: 1px solid rgba(127, 93, 255, 0.4);
    color: #c4b5fd;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(127, 93, 255, 0.15);
    transition: all 0.3s ease;
}

.project-card-home:hover .project-category-badge {
    background: linear-gradient(135deg, rgba(127, 93, 255, 0.3), rgba(63, 156, 254, 0.3));
    border-color: rgba(127, 93, 255, 0.6);
    box-shadow: 0 6px 20px rgba(127, 93, 255, 0.25);
    transform: translateY(-2px);
}

.project-card-home .card-header {
    position: relative;
    z-index: 1;
}

.project-card-home .card-header h3 {
    background: linear-gradient(120deg, #ffffff, #e0e7ff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.project-card-home:hover .card-header h3 {
    background: linear-gradient(120deg, #ffffff, #f0f4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-card-home .card-header .body {
    color: #b8c1e0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.project-card-home .list {
    position: relative;
    z-index: 1;
    gap: 10px;
}

.project-card-home .list li {
    color: #9ca3c4;
    transition: color 0.3s ease, transform 0.3s ease;
    padding-left: 4px;
}

.project-card-home:hover .list li {
    color: #b8c1e0;
}

.project-card-home:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(127, 93, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(127, 93, 255, 0.4);
}

.project-card-home .tags {
    margin-top: auto;
    position: relative;
    z-index: 1;
    gap: 8px;
}

.project-card-home .tag {
    background: rgba(127, 93, 255, 0.1);
    border-color: rgba(127, 93, 255, 0.25);
    color: #c4b5fd;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 7px 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-home .tag:hover {
    background: rgba(127, 93, 255, 0.2);
    border-color: rgba(127, 93, 255, 0.5);
    color: #e0d7ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(127, 93, 255, 0.2);
}


/* Improved card grid spacing */
#projects .card-grid {
    gap: 32px;
}

/* Projects section enhancement */
#projects {
    position: relative;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(127, 93, 255, 0.02) 50%,
            transparent 100%);
}

#projects .section-header h2 {
    background: linear-gradient(120deg, #ffffff, #e0e7ff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}




.projects-stack {
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding: 40px 0;
}

.project-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: start;
    position: relative;
    background: linear-gradient(135deg, rgba(22, 25, 36, 0.85), rgba(12, 14, 20, 0.95));
    border: 1px solid rgba(127, 93, 255, 0.12);
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.project-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            #7f5dff,
            #3f9cfe,
            #7f5dff,
            transparent);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-row::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left,
            rgba(127, 93, 255, 0.06),
            transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project-row:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

.project-row:hover::after {
    opacity: 1;
}

.project-row:hover {
    transform: translateY(-8px);
    border-color: rgba(127, 93, 255, 0.35);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(127, 93, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Alternating Layout */
.project-row:nth-child(even) {
    direction: rtl;
    grid-template-columns: 1fr 1.2fr;
}

.project-row:nth-child(even) .project-content {
    direction: ltr;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.project-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.project-category-badge-large {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, rgba(127, 93, 255, 0.25), rgba(63, 156, 254, 0.25));
    border: 1px solid rgba(127, 93, 255, 0.5);
    color: #c4b5fd;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(127, 93, 255, 0.2);
    transition: all 0.3s ease;
}

.project-row:hover .project-category-badge-large {
    background: linear-gradient(135deg, rgba(127, 93, 255, 0.35), rgba(63, 156, 254, 0.35));
    border-color: rgba(127, 93, 255, 0.7);
    box-shadow: 0 6px 24px rgba(127, 93, 255, 0.3);
    transform: translateY(-2px);
}

.pill-timeline {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3c4;
}

.project-header h2 {
    font-size: 2.8rem;
    margin: 12px 0 0;
    background: linear-gradient(120deg, #ffffff, #e0e7ff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.project-row:hover .project-header h2 {
    background: linear-gradient(120deg, #ffffff, #f0f4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-summary {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #b8c1e0;
}

.project-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(127, 93, 255, 0.1);
    transition: all 0.5s ease;
}

.project-row:hover .project-visual {
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(127, 93, 255, 0.15);
    border-color: rgba(127, 93, 255, 0.2);
}

.visual-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(22, 25, 36, 0.8), rgba(12, 14, 20, 0.9));
}

.visual-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-row:hover .visual-inner img {
    transform: scale(1.05);
}

.visual-inner .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(127, 93, 255, 0.1), rgba(63, 156, 254, 0.05));
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.08);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 14px;
    margin: 12px 0;
}

.metric-pill {
    background: rgba(127, 93, 255, 0.08);
    border: 1px solid rgba(127, 93, 255, 0.2);
    padding: 18px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-row:hover .metric-pill {
    background: rgba(127, 93, 255, 0.12);
    border-color: rgba(127, 93, 255, 0.3);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(120deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 4px;
    line-height: 1;
}

.metric-label {
    font-size: 0.8rem;
    color: #b8c1e0;
    margin: 0;
    line-height: 1.4;
}

.project-highlights {
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 14px;
    display: flex;
    flex-direction: column;
}

.project-highlights li {
    position: relative;
    padding-left: 24px;
    color: #b8c1e0;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.project-row:hover .project-highlights li {
    color: #d1d5e6;
}

.project-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #7f5dff;
    font-size: 1.2rem;
}

/* Enhanced tech tags for projects page */
.project-row .tags {
    gap: 10px;
}

.project-row .tag {
    background: rgba(127, 93, 255, 0.1);
    border-color: rgba(127, 93, 255, 0.25);
    color: #c4b5fd;
    font-weight: 500;
    padding: 8px 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-row .tag:hover {
    background: rgba(127, 93, 255, 0.2);
    border-color: rgba(127, 93, 255, 0.5);
    color: #e0d7ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(127, 93, 255, 0.2);
}

.project-links {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-doc {
    flex: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 16px 24px;
    background: linear-gradient(90deg, #7f5dff, #5c87ff);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-doc:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-ghost {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-doc svg,
.btn-ghost svg {
    stroke: currentColor;
}

@media (max-width: 900px) {

    .project-row,
    .project-row:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 24px;
        direction: ltr;
        padding: 24px;
    }

    .project-row:nth-child(even) .project-content {
        order: 1;
    }

    .project-visual {
        order: -1;
    }

    .project-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .project-header h2 {
        font-size: 1.6rem;
    }
}

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

.project-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-doc {
    flex: 1;
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 14px 20px;
    background-image: var(--accent);
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-doc svg {
    stroke: currentColor;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-item {
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 16px 30px var(--shadow);
    position: relative;
    margin-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 32px;
    width: 12px;
    height: 12px;
    background: var(--accent-solid);
    border-radius: 50%;
    border: 2px solid var(--bg);
    z-index: 1;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: var(--border);
}

.timeline {
    position: relative;
}

.skills-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.skill-card {
    position: relative;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.skill-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.skill-tag {
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: rgba(127, 93, 255, 0.15);
    border-color: rgba(127, 93, 255, 0.5);
    transform: translateY(-2px);
}

/* Certifications Section */
.certifications-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.cert-category {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-category-title {
    font-size: 1.5rem;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    background: linear-gradient(120deg, var(--accent-solid), #3f9cfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.cert-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.cert-card {
    background: rgba(22, 25, 36, 0.6);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 18px 35px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-solid), #3f9cfe);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px var(--shadow);
    border-color: rgba(127, 93, 255, 0.3);
}

.cert-card:hover::before {
    opacity: 1;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cert-name {
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.cert-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.cert-badge-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.cert-badge-progress {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.cert-card-clickable {
    cursor: pointer;
    position: relative;
}

.cert-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.cert-title-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.cert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.cert-name {
    position: relative;
    z-index: 2;
}

.cert-provider {
    color: var(--muted);
    margin: 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.cert-verify {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-solid);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.cert-card-clickable:hover .cert-verify {
    opacity: 1;
    transform: translateY(0);
}

.cert-card-clickable:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 30px 60px var(--shadow), 0 0 0 1px rgba(127, 93, 255, 0.5);
    border-color: rgba(127, 93, 255, 0.5);
}

.cert-card-clickable:hover::before {
    opacity: 1;
}

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

    .cert-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cert-badge {
        align-self: flex-start;
    }

    .cert-title-group {
        width: 100%;
    }

    /* Faster animations on mobile */
    .card {
        animation-duration: 0.4s;
    }

    .card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .card:nth-child(4) {
        animation-delay: 0.2s;
    }

    .card:nth-child(5) {
        animation-delay: 0.25s;
    }

    .card:nth-child(6) {
        animation-delay: 0.3s;
    }

    /* Reduce hover lift on touch devices */
    .card:hover {
        transform: translateY(-4px);
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}



@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 70px;
        right: 5vw;
        left: 5vw;
        display: none;
        flex-direction: column;
        gap: 12px;
        background: var(--surface);
        padding: 18px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: 0 20px 60px var(--shadow);
    }

    .nav.is-open {
        display: flex;
    }

    .hero {
        padding-top: 80px;
    }

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

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

/* Animations */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-solid);
    width: 0;
    animation:
        typing 3.5s steps(40, end) forwards,
        blink-caret .75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent-solid)
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Footer Improvements */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface-deep);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-name {
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(120deg, #fff, #a6aec9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 1.1rem;
    color: #dfe4ff;
    margin: 0;
}

.footer-desc {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.6;
    margin: 0;
}

.footer-links-col,
.footer-contact-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin: 0;
    font-weight: 600;
}

.footer-links-col a {
    color: var(--text);
    transition: color 0.2s ease;
    width: fit-content;
}

.footer-links-col a:hover {
    color: var(--accent-solid);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.back-to-top {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .footer-brand-col {
        align-items: center;
    }

    .footer-desc {
        margin: 0 auto;
    }

    .footer-socials {
        justify-content: center;
        gap: 24px;
        margin-top: 16px;
    }

    .footer-links-col,
    .footer-contact-col {
        align-items: center;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding-top: 40px;
    }
}

/* Case Study Content Styles */
.case-study-hero-section {
    padding-top: 120px;
    padding-bottom: 40px;
}

.case-study-body-section {
    padding-top: 20px;
}

.case-study-cta {
    margin-top: 32px;
}

.case-study-details-card {
    position: sticky;
    top: 120px;
}

.case-study-hero-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}

.case-study-hero-img img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.case-study-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 800px;
}

.case-study-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(120deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-study-content p,
.case-study-content li {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.case-study-content strong {
    color: var(--text);
    font-weight: 600;
}

.case-study-content ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-study-content ul li {
    position: relative;
    padding-left: 28px;
}

.case-study-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 12px;
    height: 1px;
    background: var(--accent-solid);
}

.case-study-content code {
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .case-study-hero-section {
        padding-top: 88px;
        padding-bottom: 28px;
    }

    .hero-grid {
        gap: 28px;
    }

    /* Case study: put image above text on mobile */
    .case-study-hero-section .hero-text {
        grid-row: 2;
    }

    .case-study-hero-section .case-study-hero-img {
        grid-row: 1;
    }

    .case-study-cta {
        margin-top: 18px;
        gap: 10px;
    }

    .case-study-cta .btn {
        width: 100%;
    }

    .case-study-details-card {
        position: static;
        top: auto;
    }

    .case-study-content {
        gap: 28px;
        max-width: 100%;
    }

    .case-study-content h2 {
        font-size: 1.55rem;
        margin-bottom: 16px;
    }

    .case-study-content p,
    .case-study-content li {
        font-size: 1rem;
        line-height: 1.75;
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .case-study-hero-section {
        padding-top: 76px;
    }

    .case-study-content h2 {
        font-size: 1.4rem;
    }
}

/* Premium Filtering System (Scientific Aesthetic) */
.filter-section {
    margin-bottom: 56px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-solid);
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 10px;
    border-radius: 4px;
    border-left: 2px solid var(--accent-solid);
}

.filter-group-container {
    position: relative;
    padding: 6px;
    background: rgba(10, 12, 16, 0.4);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.filter-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.filter-group::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    flex-shrink: 0;
}

.filter-btn .btn-text {
    letter-spacing: 0.01em;
}

.filter-btn .btn-count {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    opacity: 0.4;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(127, 93, 255, 0.3);
    color: #fff;
    box-shadow:
        0 4px 20px -5px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(127, 93, 255, 0.05);
}

.filter-btn.active .btn-count {
    opacity: 1;
    color: #c4b5fd;
    border-color: rgba(127, 93, 255, 0.3);
}

@media (max-width: 768px) {
    .filter-group-container {
        border-radius: 16px;
        margin-left: -4vw;
        margin-right: -4vw;
        border-right: none;
        border-left: none;
    }

    .filter-group {
        padding: 4px 16px;
    }
} /* end @media (max-width: 768px) */

/* ── Chatbot Teaser ─────────────────────────────────────────────────────────── */
.chatbot-teaser.live-glow {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.1);
    transition: all 0.4s ease;
}

.chatbot-teaser.live-glow:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.neural-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}

.status-dot-mini {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px #10b981;
    flex-shrink: 0;
}

.fawzy-title {
    font-weight: 800;
    letter-spacing: 0.05em;
}

.fawzy-dot {
    color: #8b5cf6;
}

.btn-chat {
    border-radius: 12px;
    font-weight: 700;
}

/* ── Location Badge ─────────────────────────────────────────────────────────── */
.location-badge {
    margin-top: 4px;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-solid);
}

/* ── Hero Tagline ─────────────────────────────────────────────────────────── */
.hero-tagline {
    margin-top: 12px;
}

/* ── Timeline Org Label ─────────────────────────────────────────────────────── */
.timeline-org {
    color: var(--accent-solid);
    margin-bottom: 8px;
}

/* ── Contact Section ─────────────────────────────────────────────────────────── */
.contact-section {
    display: flex;
    justify-content: center;
}

.contact-inner {
    max-width: 680px;
    width: 100%;
    text-align: center;
    background: rgba(10, 12, 16, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7f5dff, #3f9cfe, #7f5dff);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.contact-body {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 16px 0 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

@media (max-width: 480px) {
    .contact-inner {
        padding: 40px 24px;
    }

    .contact-btn {
        width: 100%;
    }
}

/* ── Footer Contact CTA ─────────────────────────────────────────────────────── */
.footer-contact-cta {
    color: var(--accent-solid);
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
    width: fit-content;
}

.footer-contact-cta:hover {
    opacity: 0.8;
}

/* ── Dark / Light Mode Toggle ─────────────────────────────────────────────────── */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 1.05rem;
    line-height: 1;
}

.theme-icon {
    font-size: 1.05rem;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
    line-height: 1;
}

.theme-toggle:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg) scale(1.15);
}

/* ── Light Mode Theme ─────────────────────────────────────────────────────────── */
/* [data-theme="light"] body has higher specificity than body{} so it wins */
[data-theme="light"] body {
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-alt: #f3f4f6;
    --surface-deep: #e5e7eb;
    --text: #29213f;
    --text-muted: #64748b;
    --accent-solid: #7c3aed;
    --border: rgba(17, 24, 39, 0.08);
    --header-bg: rgba(250, 250, 250, 0.85);
    --shadow-lg: 0 25px 50px -12px rgba(17, 24, 39, 0.08);
    background: var(--bg);
    color: var(--text);
}

[data-theme="light"] body::before {
    background: radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.04) 0%, transparent 40%);
}

[data-theme="light"] body h1 {
    background: linear-gradient(120deg, #29213f 30%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] body .card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] body .project-card-home {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 255, 0.98));
    border-color: rgba(109, 40, 217, 0.1);
}

[data-theme="light"] body .chatbot-teaser {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] body .bubble-user {
    background: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] body .bubble-bot {
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] body .hero-metrics-boxed {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.06);
}

[data-theme="light"] body .metric-card {
    background: rgba(249, 250, 251, 0.8);
    border-color: rgba(17, 24, 39, 0.05);
}

[data-theme="light"] body .contact-inner {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] body .site-footer {
    background: #f3f4f6;
    border-color: rgba(17, 24, 39, 0.08);
}

[data-theme="light"] body .timeline-item {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] body .cert-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] body .tag {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
    color: #6d28d9;
}

[data-theme="light"] body .site-header {
    background: rgba(250, 250, 250, 0.85);
    border-bottom-color: rgba(17, 24, 39, 0.08);
}

[data-theme="light"] body .nav a {
    color: #4b5563;
}

[data-theme="light"] body .nav a:hover {
    color: #413859;
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] body .logo {
    color: #413859;
}

[data-theme="light"] body .eyebrow {
    color: #6d28d9;
}

[data-theme="light"] body .lead {
    color: #1f2937;
}

[data-theme="light"] body .body {
    color: #4b5563;
}

[data-theme="light"] body .list {
    color: #4b5563;
}

[data-theme="light"] body .btn-ghost {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #111827;
}

[data-theme="light"] body .btn-outline {
    border-color: rgba(124, 58, 237, 0.4);
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.05);
}

[data-theme="light"] body .footer-links-col a,
[data-theme="light"] body .footer-name,
[data-theme="light"] body .footer-bottom p {
    color: #1f2937;
}

[data-theme="light"] body p {
    color: #374151;
}

/* ── Projects Page ──────────────────────────────────────────────────────────── */
[data-theme="light"] body .project-row {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 255, 0.98));
    border-color: rgba(109, 40, 217, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] body .project-row:hover {
    border-color: rgba(109, 40, 217, 0.3);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.1), 0 0 40px rgba(109, 40, 217, 0.08);
}

[data-theme="light"] body .project-header h2 {
    background: linear-gradient(120deg, #29213f 20%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] body .project-summary {
    color: #374151;
}

[data-theme="light"] body .project-highlights li {
    color: #374151;
}

[data-theme="light"] body .project-highlights li::before {
    color: #6d28d9;
}

[data-theme="light"] body .metric-pill {
    background: rgba(109, 40, 217, 0.06);
    border-color: rgba(109, 40, 217, 0.15);
}

[data-theme="light"] body .metric-pill .metric-value {
    background: linear-gradient(120deg, #1e1b4b, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] body .metric-pill .metric-label {
    color: #4b5563;
}

[data-theme="light"] body .pill-timeline {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #4b5563;
}

[data-theme="light"] body .project-category-badge-large {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.12), rgba(59, 130, 246, 0.12));
    border-color: rgba(109, 40, 217, 0.35);
    color: #4c1d95;
}

[data-theme="light"] body .visual-inner {
    background: linear-gradient(135deg, rgba(245, 247, 255, 0.9), rgba(235, 238, 255, 0.95));
}

[data-theme="light"] body .visual-inner .placeholder {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.06), rgba(59, 130, 246, 0.04));
    color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] body .filter-group-container {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body .filter-btn {
    color: #4b5563;
}

[data-theme="light"] body .filter-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #111827;
}

[data-theme="light"] body .filter-btn.active {
    background: rgba(109, 40, 217, 0.08);
    border-color: rgba(109, 40, 217, 0.3);
    color: #4c1d95;
}

[data-theme="light"] body .btn-doc {
    background-image: linear-gradient(135deg, #6d28d9, #4c1d95);
}

/* ── FAWZY Page ──────────────────────────────────────────────────────────────── */
[data-theme="light"] body .fawzy-page-container {
    background:
        radial-gradient(circle at 20% 20%, rgba(109, 40, 217, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        #f0f2f8 !important;
}

[data-theme="light"] body .fawzy-page-container::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] body .chatbot-premium-container {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(109, 40, 217, 0.15);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1), inset 0 0 40px rgba(109, 40, 217, 0.02);
}

[data-theme="light"] body .chatbot-header-premium {
    background: rgba(255, 255, 255, 0.6);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body .msg-bubble-user {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.08));
    color: #29213f;
    border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] body .msg-bubble-bot {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 255, 0.9));
    color: #413859;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body .msg-bubble strong {
    color: #29213f;
}

[data-theme="light"] body .suggestion-chip {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(109, 40, 217, 0.15);
    color: #4b5563;
}

[data-theme="light"] body .suggestion-chip:hover {
    background: rgba(109, 40, 217, 0.08);
    border-color: rgba(109, 40, 217, 0.35);
    color: #413859;
}

[data-theme="light"] body .input-wrapper {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] body .input-wrapper:focus-within {
    border-color: #6d28d9;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.1);
}

[data-theme="light"] body .premium-input {
    color: #29213f;
}

[data-theme="light"] body .premium-input::placeholder {
    color: #9ca3af;
}

[data-theme="light"] body .chatbot-input-premium {
    background: linear-gradient(to top, rgba(240, 242, 248, 0.8), transparent);
}

[data-theme="light"] body .stat-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(109, 40, 217, 0.1);
}

[data-theme="light"] body .stat-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(109, 40, 217, 0.25);
}

[data-theme="light"] body .stat-value {
    background: linear-gradient(to right, #1e1b4b, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] body .empty-state {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

/* ── Home Page / General Section Overrides ────────────────────────────────────── */
[data-theme="light"] body #projects .section-header h2 {
    background: none;
    -webkit-text-fill-color: initial;
    color: #29213f;
}

[data-theme="light"] body .project-card-home .card-header h3 {
    background: none;
    -webkit-text-fill-color: initial;
    color: #413859;
}

[data-theme="light"] body .project-card-home:hover .card-header h3 {
    background: none;
    -webkit-text-fill-color: initial;
    color: #6d28d9;
}

[data-theme="light"] body .project-card-home .card-header .body {
    color: #4b5563;
}

[data-theme="light"] body .project-card-home .list li {
    color: #6b7280;
}

[data-theme="light"] body .project-card-home:hover .list li {
    color: #374151;
}

[data-theme="light"] body .project-card-home .project-category-badge {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
    color: #6d28d9;
    box-shadow: none;
}

[data-theme="light"] body .project-card-home:hover .project-category-badge {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] body .case-study-content h2 {
    background: linear-gradient(120deg, #29213f 30%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] body .metric-value {
    background: linear-gradient(120deg, #29213f 30%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] body .case-study-details-card .eyebrow {
    color: #4b5563;
}

