@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #07090e;
    --bg-secondary: #0d111d;
    --card-bg: rgba(17, 22, 34, 0.6);
    --card-hover: rgba(22, 30, 49, 0.8);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(99, 102, 241, 0.3);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --accent-gradient-hover: linear-gradient(135deg, #4f46e5, #7c3aed);
    --accent-glow: rgba(99, 102, 241, 0.15);
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(79, 70, 229, 0.3);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-primary: #4f46e5;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);
    --accent-gradient-hover: linear-gradient(135deg, #3730a3, #6d28d9);
    --accent-glow: rgba(79, 70, 229, 0.08);
    --success-bg: rgba(16, 185, 129, 0.15);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(var(--bg-primary), 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Theme Toggle button */
.theme-btn {
    background: none;
    color: var(--text-primary);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theme-btn:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    transform: scale(1.05);
}

.theme-btn svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

.light-theme .theme-btn .moon-icon {
    display: none;
}
.theme-btn .sun-icon {
    display: none;
}
.light-theme .theme-btn .sun-icon {
    display: block;
}
body:not(.light-theme) .theme-btn .moon-icon {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: none;
    z-index: 1100;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40rem;
    height: 40rem;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(99, 102, 241, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 850px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--accent-primary);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: var(--card-bg);
    transform: translateY(-2px);
}

/* Section Header */
.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Project / Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    backdrop-filter: blur(8px);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.05);
}

.project-img-wrapper {
    position: relative;
    height: 280px;
    background: var(--bg-secondary);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dynamic visual placeholders for case studies using CSS illustrations */
.project-illustration {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 75%);
}

.ill-autolexica {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
}
.ill-sahelo {
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
}
.ill-dashboard {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.ill-retail {
    background: linear-gradient(135deg, #311042 0%, #0f172a 100%);
}

.ill-container {
    width: 85%;
    height: 80%;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* UI mock elements in CSS */
.ill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 0.5rem;
}
.ill-dots {
    display: flex;
    gap: 4px;
}
.ill-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}
.ill-search-bar {
    height: 1.75rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    width: 60%;
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
}
.ill-search-bar::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: inline-block;
}
.ill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-grow: 1;
}
.ill-card {
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ill-bar {
    height: 5px;
    border-radius: 2px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 4px;
}
.ill-bar.shorter { width: 60%; }
.ill-bar.accent { background: var(--accent-primary); }

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

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    z-index: 10;
}

.project-tag {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-top: 0.5rem;
    width: fit-content;
}

.project-link svg {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform var(--transition-fast);
}

.project-card:hover .project-link svg {
    transform: translateX(4px);
}

/* Writings Section */
.writings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.writing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.writing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    background: var(--card-hover);
}

.writing-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 80%;
}

.writing-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.writing-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
}

.writing-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.writing-arrow {
    width: 3rem;
    height: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.writing-card:hover .writing-arrow {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: rotate(-45deg);
}

.writing-arrow svg {
    width: 1.2rem;
    height: 1.2rem;
}

/* About/Philosophy Section on Index */
.about-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-teaser-img-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 4/5;
}

.teaser-ill {
    background: linear-gradient(225deg, #4f46e5 0%, #1e1b4b 100%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.teaser-ill-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.teaser-ill-circle::before {
    content: '';
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.teaser-ill-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 10px #6366f1;
}
.node-1 { top: -6px; }
.node-2 { right: -6px; }
.node-3 { bottom: -6px; }
.node-4 { left: -6px; }

.teaser-ill-center {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.about-teaser-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-teaser-quote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.quote-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 600;
    display: block;
    text-transform: uppercase;
}

/* Contact / Call to Action */
.contact-cta {
    background: radial-gradient(ellipse at bottom right, rgba(99, 102, 241, 0.1), transparent 60%), var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.contact-cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.contact-cta-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 1rem;
}

/* Email Copy Box */
.email-copy-box {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    margin-top: 0.5rem;
    gap: 1rem;
    transition: var(--transition-smooth);
    max-width: 420px;
    width: 100%;
}

.email-copy-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(99,102,241,0.1);
}

.email-text {
    font-family: 'Fragment Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-primary);
    user-select: all;
    text-align: left;
    flex-grow: 1;
}

.copy-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: #ffffff;
}

.copy-btn svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: currentColor;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link:hover {
    color: var(--accent-primary);
}

/* About Page Specific Styles */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.about-intro-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.about-intro-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.gallery-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.gallery-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.gallery-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Resume Page Specific Styles */
.resume-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4rem;
    margin-bottom: 4rem;
}

.resume-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.resume-sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: sticky;
    top: 7rem;
}

.resume-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.resume-item {
    position: relative;
    padding-left: 2rem;
}

.resume-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.resume-item::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1rem;
    bottom: -2.5rem;
    width: 2px;
    background: var(--border-color);
}

.resume-item:last-child::after {
    display: none;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-role {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.resume-company {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.resume-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.resume-item-details {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.resume-bullets {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resume-bullets li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.resume-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 600;
}

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

.skills-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.skills-category-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 0.5rem;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: var(--accent-glow);
}

/* Case Study / Project Pages Detail Layout */
.project-hero {
    padding: 8rem 0 4rem;
    border-bottom: 1px solid var(--border-color);
}

.project-hero-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
}

/* ===== PHOTO INTRO SECTION ===== */
.photo-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: center;
}
.photo-col {
  position: relative;
}
.photo-frame-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.photo-ring-accent {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 90px;
  height: 90px;
  border: 2px solid var(--accent-color, #534AB7);
  border-radius: 50%;
  opacity: 0.25;
  pointer-events: none;
}
.photo-name-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: var(--bg-primary, #fff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.about-tag {
  font-size: 0.75rem;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-color, #e0e0e0);
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

/* ===== VIDEO SECTION ===== */
.video-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.video-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e0e0e0);
  background: var(--bg-secondary);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color, #534AB7);
}
.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tertiary, #f0f0f0);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
}
.video-play-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}
.video-play-btn svg {
  width: 44px;
  height: 44px;
  fill: #fff;
}
.video-type-tag {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(255,255,255,0.9);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
  color: #333;
}
.video-info {
  padding: 0.9rem 1.1rem;
}
.video-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.video-card-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}
.video-embed-wrap {
  margin-top: 1.75rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e0e0e0);
  aspect-ratio: 16 / 9;
}
.video-embed-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  .photo-intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .photo-col {
    max-width: 320px;
    margin: 0 auto;
  }
  .video-card-grid {
    grid-template-columns: 1fr;
  }
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-weight: 600;
    color: var(--text-primary);
}

.project-body {
    padding: 5rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.case-section {
    margin-bottom: 4rem;
}

.case-section:last-child {
    margin-bottom: 0;
}

.case-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.case-subtitle {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.case-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.case-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.case-list li {
    color: var(--text-secondary);
    font-size: 1.05rem;
    position: relative;
    padding-left: 0.5rem;
}

.case-callout {
    background: var(--card-bg);
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 2rem 0;
}

.case-callout-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.case-callout-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.case-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.metric-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.case-visual-wrapper {
    margin: 3rem 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.other-projects-section {
    border-top: 1px solid var(--border-color);
    padding: 6rem 0;
}

/* Scroll Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    display: none; /* JS will activate this for screen sizes > 768px */
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.cursor-hover {
    width: 40px;
    height: 40px;
    background-color: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-secondary);
}

/* CSS Tooltip for Copied notification */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: 'Copied!';
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #10b981;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.tooltip.show::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ---------------- BREAKPOINTS & RESPONSIVENESS ---------------- */

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .about-teaser {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        border-left: 1px solid var(--border-color);
        z-index: 1050;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-desc {
        font-size: 1.1rem;
    }

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

    .about-teaser {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-teaser-img-wrapper {
        max-width: 320px;
        margin: 0 auto;
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-gallery-grid {
        grid-template-columns: 1fr;
    }

    .resume-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .resume-sidebar-title {
        position: static;
    }

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

    .project-hero-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-metrics-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta {
        padding: 3rem 1.5rem;
    }

    .contact-cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .project-hero-meta {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.project-img-wrapper {
    position: relative;
    height: 280px;
    background: var(--bg-secondary);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}


