/* ==========================================
   TASNEEM IQBAL - PORTFOLIO STYLES
   ========================================== */

/* CSS Variables for Theme */
:root {
    --bg-primary: #f3f1ef;
    --bg-secondary: #faf8f6;
    --bg-tertiary: #eeebe8;
    --text-primary: #1f1e1d;
    --text-secondary: #3f3a36;
    --text-tertiary: #5f5852;
    --text-muted: #81776e;
    --border-color: #d7d2cc;
    --border-subtle: #c9c1b7;
    --accent: #6b5d51;
    --accent-hover: #55483d;
    --accent-light: #e8e2dc;
    --accent-lighter: #ebe6e1;
    --accent-ring: rgba(107, 93, 81, 0.26);
    --accent-ring-strong: rgba(107, 93, 81, 0.34);
    --timeline-border: #cec7bf;
    --timeline-badge-border: #beb4a8;
    --pill-border: #c9c1b9;
    --shadow: rgba(36, 31, 26, 0.09);
    --shadow-lg: rgba(36, 31, 26, 0.16);

    /* Vibrant accent palette (pops of color over the mellow neutrals) */
    --vibrant-1: #ff6b6b;   /* coral */
    --vibrant-2: #ffa94d;   /* amber */
    --vibrant-3: #845ef7;   /* violet */
    --vibrant-4: #22b8cf;   /* teal */
    --vibrant-gradient: linear-gradient(135deg, #ff6b6b 0%, #ffa94d 30%, #845ef7 70%, #22b8cf 100%);
    --vibrant-soft: rgba(132, 94, 247, 0.12);
}

[data-theme="dark"] {
    --bg-primary: #131110;
    --bg-secondary: #1a1715;
    --bg-tertiary: #221f1c;
    --text-primary: #e7e2dc;
    --text-secondary: #c9c0b7;
    --text-tertiary: #a99f95;
    --text-muted: #8a8077;
    --border-color: #35302b;
    --border-subtle: #4a423b;
    --accent: #c7b4a2;
    --accent-hover: #d4c3b4;
    --accent-light: #2a2521;
    --accent-lighter: #332d28;
    --accent-ring: rgba(199, 180, 162, 0.3);
    --accent-ring-strong: rgba(199, 180, 162, 0.4);
    --timeline-border: #3d352e;
    --timeline-badge-border: #564d45;
    --pill-border: #4a4139;
    --shadow: rgba(0, 0, 0, 0.45);
    --shadow-lg: rgba(0, 0, 0, 0.35);

    /* Vibrant accents pop a touch brighter on the dark canvas */
    --vibrant-1: #ff8787;
    --vibrant-2: #ffc078;
    --vibrant-3: #9775fa;
    --vibrant-4: #3bc9db;
    --vibrant-gradient: linear-gradient(135deg, #ff8787 0%, #ffc078 30%, #9775fa 70%, #3bc9db 100%);
    --vibrant-soft: rgba(151, 117, 250, 0.16);
}

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

/* Interactive three.js background - sits behind all content, visible through the hero */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    display: block;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.01em;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

.logo-emoji {
    font-size: 1.5rem;
    display: inline-block;
    transition: all 0.3s;
}

.logo:hover .logo-emoji {
    animation: wiggle 0.5s ease;
}

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

.nav-link {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

.chat-btn {
    background: var(--vibrant-gradient);
    background-size: 200% 200%;
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(132, 94, 247, 0.35);
}

.chat-btn:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    box-shadow: 0 6px 22px rgba(132, 94, 247, 0.5);
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.25rem;
}

.theme-toggle:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    transform: rotate(20deg) scale(1.1);
}

.theme-icon {
    display: inline-block;
    transition: transform 0.3s;
}

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



.hero-bg {
    position: absolute;
    top: 0;
    right: -10%;
    width: 800px;
    height: 800px;
    background:
        radial-gradient(circle at 65% 35%, rgba(132, 94, 247, 0.16) 0%, transparent 60%),
        radial-gradient(circle at 35% 70%, rgba(34, 184, 207, 0.13) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.10) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.hero-badge-emoji {
    font-size: 1.125rem;
    animation: bounce 2s ease-in-out infinite;
}

.hero-title {
    font-size: 5rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

.hero-gradient-text {
    background: var(--vibrant-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.5;
}

.rotating-quote {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 3rem;
    min-height: 30px;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--vibrant-gradient);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 4px 14px rgba(132, 94, 247, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-position: 100% 50%;
    box-shadow: 0 8px 26px rgba(132, 94, 247, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.social-proof {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.section-label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--vibrant-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title {
    font-size: 3rem;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    margin-bottom: 4rem;
    max-width: 700px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-grid {
    align-items: center;
}

.profile-section {
    margin-bottom: 0;
}

.about-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-image-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 2rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--border-color);
    box-shadow: 0 8px 24px var(--shadow);
    transition: all 0.4s ease;
}

.profile-image:hover {
    transform: translateY(-8px) rotate(-2deg);
    box-shadow: 0 16px 48px var(--shadow-lg);
    border-color: var(--accent);
}

.profile-status {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.profile-quick-facts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-fact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.quick-fact:hover {
    transform: translateX(8px);
    border-color: var(--accent);
    background: var(--accent-light);
}

.fact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.quick-fact strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.quick-fact p {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    margin: 0;
}

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

.highlight-text {
    background: var(--accent-lighter);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    color: var(--accent);
    font-weight: 600;
}

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

.superpower-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
}

.superpower-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px var(--shadow);
}

.superpower-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.superpower-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.superpower-desc {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.fun-facts-section {
    background: var(--accent-lighter);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 4rem;
}

.fun-facts-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fun-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.fun-fact-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.fun-fact-item:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 8px 16px var(--shadow);
}

.fun-fact-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.fun-fact-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Experience Section */
.experience-section {
    padding: 8rem 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(107, 93, 81, 0.08), transparent 50%),
        radial-gradient(circle at 82% 85%, rgba(107, 93, 81, 0.06), transparent 55%),
        var(--bg-primary);
}

/* Experience - tabbed company switcher */
.exp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 920px;
    margin: 0 auto 2.5rem;
}

.exp-tab {
    flex: 1 1 240px;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.exp-tab:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 20px var(--shadow);
}

.exp-tab.active {
    border-color: transparent;
    background: var(--vibrant-gradient);
    background-size: 200% 200%;
    box-shadow: 0 8px 24px rgba(132, 94, 247, 0.35);
}

.exp-tab-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--accent);
    background: var(--accent-lighter);
    border: 1px solid var(--border-subtle);
}

.exp-tab.active .exp-tab-logo {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

.exp-tab-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.exp-tab-name {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-primary);
}

.exp-tab-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.exp-tab.active .exp-tab-name,
.exp-tab.active .exp-tab-meta {
    color: #fff;
}

.exp-stage {
    max-width: 920px;
    margin: 0 auto;
}

.exp-panel {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-panel.active {
    display: flex;
    animation: expFade 0.45s ease;
}

@keyframes expFade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.exp-role {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 2.15rem 2rem 2.4rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.exp-role::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--vibrant-gradient);
}

.exp-role:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 14px 32px var(--shadow-lg);
}

.exp-role-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.exp-period {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.exp-role-title {
    font-size: 1.8rem;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.exp-company {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.exp-badge {
    background: var(--accent-lighter);
    color: var(--accent-hover);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--timeline-badge-border);
    white-space: nowrap;
}

/* Big eye-catching feature stat */
.exp-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    background:
        radial-gradient(circle at 0% 0%, rgba(132, 94, 247, 0.1), transparent 60%),
        var(--vibrant-soft);
    border: 1px solid var(--border-subtle);
}

.exp-stat-figure {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: var(--vibrant-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}

.exp-stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.exp-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.exp-bullets li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.exp-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vibrant-3);
}

.exp-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-pill {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.45rem 0.85rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--pill-border);
    transition: all 0.3s;
}

.skill-pill:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .experience-section { padding: 5rem 0; }
    .exp-role { padding: 1.5rem 1.5rem 1.5rem 1.75rem; }
    .exp-role-title { font-size: 1.45rem; }
    .exp-role-head { flex-direction: column; }
    .exp-stat-figure { font-size: 1.3rem; }
}


/* Contact Section */
.projects-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 24px var(--shadow);
}

/* Case-study cards (DIG, Schedaddle) */
.project-card--case {
    position: relative;
}

.project-ribbon {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    z-index: 2;
    background: var(--vibrant-gradient);
    background-size: 200% 200%;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(132, 94, 247, 0.4);
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.1rem;
    font-weight: 700;
    font-size: 0.92rem;
    background: var(--vibrant-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: gap 0.25s ease;
}

.project-card--case:hover .project-cta {
    gap: 0.8rem;
}

.project-preview {
    margin-bottom: 1rem;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.project-caption {
    margin-top: 0.55rem;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.project-date {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.project-name {
    font-size: 1.4rem;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.project-display {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech-pill {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--pill-border);
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Placeholder preview for projects without a screenshot (e.g. Schedaddle) */
.project-image--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 107, 107, 0.18), transparent 60%),
        radial-gradient(circle at 75% 70%, rgba(34, 184, 207, 0.18), transparent 60%),
        var(--vibrant-soft);
}

.project-placeholder-emoji {
    font-size: 2.75rem;
    line-height: 1;
}

.project-placeholder-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Skills Section */
.skills-section {
    padding: 8rem 0;
    background:
        radial-gradient(circle at 85% 12%, rgba(132, 94, 247, 0.08), transparent 45%),
        radial-gradient(circle at 12% 88%, rgba(34, 184, 207, 0.07), transparent 45%),
        var(--bg-primary);
}

.skills-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.skills-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-tertiary);
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skills-tab-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--vibrant-3);
    transition: transform 0.3s ease;
}

.skills-tab:nth-child(1) .skills-tab-dot { background: var(--vibrant-1); }
.skills-tab:nth-child(2) .skills-tab-dot { background: var(--vibrant-4); }
.skills-tab:nth-child(3) .skills-tab-dot { background: var(--vibrant-2); }

.skills-tab:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.skills-tab.active {
    color: #fff;
    border-color: transparent;
    background: var(--vibrant-gradient);
    background-size: 200% 200%;
    box-shadow: 0 6px 18px rgba(132, 94, 247, 0.35);
}

.skills-tab.active .skills-tab-dot {
    background: #fff;
    transform: scale(1.2);
}

.skills-stage {
    position: relative;
    min-height: 140px;
}

.skills-panel {
    display: none;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.skills-panel.active {
    display: flex;
}

.skill-chip {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.75rem 1.35rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: default;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* Staggered reveal when a panel becomes active */
.skills-panel.active .skill-chip {
    animation: chipPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.skills-panel.active .skill-chip:nth-child(1) { animation-delay: 0.04s; }
.skills-panel.active .skill-chip:nth-child(2) { animation-delay: 0.08s; }
.skills-panel.active .skill-chip:nth-child(3) { animation-delay: 0.12s; }
.skills-panel.active .skill-chip:nth-child(4) { animation-delay: 0.16s; }
.skills-panel.active .skill-chip:nth-child(5) { animation-delay: 0.20s; }
.skills-panel.active .skill-chip:nth-child(6) { animation-delay: 0.24s; }
.skills-panel.active .skill-chip:nth-child(7) { animation-delay: 0.28s; }
.skills-panel.active .skill-chip:nth-child(8) { animation-delay: 0.32s; }

@keyframes chipPop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.skill-chip:hover {
    transform: translateY(-3px);
    color: var(--text-primary);
    border-color: var(--vibrant-3);
    box-shadow: 0 8px 18px var(--vibrant-soft);
}

.contact-section {
    padding: 8rem 0;
    text-align: center;
    background: var(--bg-primary);
}

.contact-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-subtitle {
    font-size: 1.5rem;
    color: var(--text-tertiary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 12px 24px var(--shadow);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.contact-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid,
    .superpowers-grid,
    .fun-facts-grid,
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

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

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

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

    .section-title {
        font-size: 2rem;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .contact-subtitle {
        font-size: 1.125rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        display: none;
    }

    .social-proof {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}
