/* 
    Premium Portfolio Design (Akshay + pmanifestoo Inspired)
    Theme: Very Dark, Large Typography, Glassmorphism, Sticky Scrolling Cards
*/
:root {
    /* Dark Theme (Default) */
    --bg-base: #0F0F0F;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-surface-hover: rgba(255, 255, 255, 0.06);
    
    --text-pure: #ffffff;
    --text-body: #999999;
    --text-muted: #666666;
    
    --accent-main: #22C55E;
    --accent-glow: rgba(34, 197, 94, 0.2);
    
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 20px 40px rgba(0,0,0,0.5);

    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Override */
body.light-mode {
    --bg-base: #F8FAFC;
    --bg-surface: rgba(0, 0, 0, 0.03);
    --bg-surface-hover: rgba(0, 0, 0, 0.06);
    --text-pure: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --accent-main: #059669;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-base);
    color: var(--text-pure);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
    padding-top: 80px;
}

/* Unified Background */
.bg-system { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-gradient-anim {
    position: absolute; inset: -50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.06) 0%, transparent 50%);
    animation: rotateGradient 20s linear infinite;
    opacity: 0.8; 
}
@keyframes rotateGradient { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Universal */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section { padding: 10rem 0; position: relative; }
.section-header { margin-bottom: 5rem; }
.section-title { font-family: var(--font-head); font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; color: var(--text-pure); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; }
.pre-title { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); margin-bottom: 1rem; }

.body-text, .text-muted { color: var(--text-body); font-size: 1.1rem; font-weight: 400; }
.text-sm { font-size: 0.9rem; }
.text-accent { color: var(--accent-main); }
.text-gold { color: #fbbf24; }
.d-block { display: block; }

.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 3rem; } .w-100 { width: 100%; }

/* Glassmorphism Classes (p-card) */
.p-card { 
    background: var(--bg-surface); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    border: 1px solid var(--glass-border); 
    border-radius: 20px; 
    transition: var(--transition-smooth); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Navigation */
.navbar { 
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; transition: all 0.3s ease; 
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.navbar.scrolled { padding: 1rem 0; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--glass-border); }
body.light-mode .navbar.scrolled { background: rgba(248, 250, 252, 0.8); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--text-pure); text-decoration: none; letter-spacing: 1px; }
.nav-links { display: flex; list-style: none; gap: 2rem; background: var(--bg-surface); padding: 0.8rem 2.2rem; border-radius: 50px; border: 1px solid var(--glass-border); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.nav-link { color: var(--text-body); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition-fast); text-transform: uppercase; letter-spacing: 1px; position: relative; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--text-pure); transform: scaleX(0); transform-origin: center; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.nav-link:hover { color: var(--text-pure); text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 1.2rem; }
.icon-btn { background: var(--bg-surface); border: 1px solid var(--glass-border); width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; color: var(--text-body); cursor: pointer; transition: var(--transition-fast); display: flex; justify-content: center; align-items: center; }
.icon-btn:hover { color: var(--text-pure); background: var(--bg-surface-hover); transform: scale(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-pure); margin: 5px 0; transition: 0.4s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1.1rem 2.5rem; border-radius: 50px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition-fast); text-decoration: none; border: none; }
.btn-primary { background: var(--text-pure); color: var(--bg-base); box-shadow: 0 5px 20px rgba(255,255,255,0.1); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 30px rgba(255,255,255,0.2); }
.btn-secondary { background: var(--bg-surface); color: var(--text-pure); border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: var(--bg-surface-hover); border-color: var(--text-body); transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.btn-outline { background: transparent; color: var(--text-pure); border: 1px solid var(--glass-border); }
.btn-outline:hover { border-color: var(--text-pure); background: var(--bg-surface); transform: translateY(-3px); }
.btn-sm { padding: 0.8rem 1.6rem; font-size: 0.95rem; }
.disabled { opacity: 0.5; pointer-events: none; }

/* Akshay-inspired Bento Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; text-align: left; position: relative; }

.bento-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.bento-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-title-bento {
    font-family: var(--font-head);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1rem;
    color: var(--text-pure);
    letter-spacing: -0.03em;
}

.hero-roles-bento {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--accent-main);
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-tagline-bento {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 3.5rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero-buttons-bento {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
}

/* Premium Buttons */
.btn-minimal { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1rem 2rem; border-radius: 50px; font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; cursor: pointer; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1); text-decoration: none; border: 1px solid transparent; position: relative; }
.btn-minimal-primary { background: var(--text-pure); color: var(--bg-base); box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.btn-minimal-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 25px rgba(255,255,255,0.15); opacity: 0.95; }
.btn-minimal-secondary { background: transparent; color: var(--text-pure); border: 1px solid var(--glass-border); }
.btn-minimal-secondary:hover { border-color: var(--text-pure); background: var(--bg-surface); transform: translateY(-3px) scale(1.02); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-minimal-link { background: transparent; color: var(--text-muted); padding: 1rem 0; overflow: hidden; }
.btn-minimal-link::after { content: ''; position: absolute; left: 0; bottom: 8px; width: 100%; height: 1px; background: var(--text-pure); transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.btn-minimal-link:hover { color: var(--text-pure); transform: translateY(-2px); }
.btn-minimal-link:hover::after { transform: scaleX(1); }

.bento-hero-right {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    aspect-ratio: 4/5;
    box-shadow: 0 0 40px rgba(255,255,255,0.05); /* soft glow */
    border: 1px solid var(--glass-border);
    background: var(--bg-surface);
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-hero-right:hover .hero-profile-img {
    transform: scale(1.04);
}

/* Bento Grid About Section */
.bento-grid { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto; gap: 2rem; }
.bento-item { padding: 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.bento-bio { grid-column: 1 / 2; }
.bento-tech { grid-column: 2 / 3; }
.bento-title { font-family: var(--font-head); font-size: 2rem; font-weight: 700; margin-bottom: 2rem; color: var(--text-pure); letter-spacing: -0.02em; }
.pill-group { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.pill { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.6rem; background: var(--bg-surface); border: 1px solid var(--glass-border); border-radius: 50px; font-family: var(--font-body); font-size: 0.95rem; color: var(--text-pure); font-weight: 500; transition: var(--transition-fast); }
.pill i { font-size: 1.1rem; transition: var(--transition-fast); }
.pill:hover { background: var(--bg-surface-hover); border-color: var(--accent-main); color: var(--text-pure); transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 15px var(--accent-glow); }
.pill:hover i { color: var(--accent-main); text-shadow: 0 0 10px var(--accent-main); }
.pill.sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; border-radius: 20px; box-shadow: none; pointer-events: none; }
.sm-pill { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

.about-portrait { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; float: left; margin-right: 2.5rem; margin-bottom: 0.5rem; border: 2px solid var(--accent-main); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
@media (max-width: 768px) {
    .about-portrait { float: none; display: block; margin: 0 auto 1.5rem auto; width: 120px; height: 120px; }
}

/* pmanifestoo-style Stacked Sticky Projects Section */
.projects-stack { position: relative; margin-top: 4rem; }
.project-sticky-container { position: sticky; top: 120px; height: 75vh; min-height: 550px; display: flex; align-items: flex-start; justify-content: center; width: 100%; transition: var(--transition-smooth); margin-bottom: 2.5rem; }
.project-sticky-container.mt-stack-1 { top: 140px; }
.project-sticky-container.mt-stack-2 { top: 160px; }
.project-sticky-container.mt-stack-3 { top: 180px; }
.project-sticky-container.mt-stack-4 { top: 200px; }
.project-card { width: 100%; height: 100%; padding: 0; overflow: hidden; background: rgba(15, 15, 15, 0.9); backdrop-filter: blur(40px); border: 1px solid var(--glass-border); border-top: 1px solid rgba(255,255,255,0.15); box-shadow: 0 -10px 40px rgba(0,0,0,0.4); border-radius: 32px; }
/* Modified to TOP image layout exactly as requested */
.pc-layout { display: flex; flex-direction: column; height: 100%; width: 100%; }
.pc-image-side { width: 100%; height: 40%; position: relative; overflow: hidden; background: var(--bg-surface); border-bottom: 1px solid var(--glass-border); flex-shrink: 0; }
.pc-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s; filter: brightness(0.9) contrast(1.1); }
.project-card:hover .pc-img { transform: scale(1.05); filter: brightness(1) contrast(1.1); }
.pc-content-side { flex: 1; padding: 3rem 4rem; display: flex; flex-direction: column; justify-content: flex-start; }
.pc-year { font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem; }
.pc-year span:first-child { color: var(--text-pure); }
.pc-title { font-family: var(--font-head); font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 800; line-height: 0.95; margin-bottom: 1.5rem; color: var(--text-pure); letter-spacing: -0.03em; }
.pc-desc { color: var(--text-body); font-size: 1.2rem; margin-bottom: 2.5rem; line-height: 1.6; max-width: 90%; }
.pc-actions { display: flex; gap: 1rem; align-items: center; margin-top: auto; }
.pc-image-placeholder { display: none; }

/* Journey Timeline */
.timeline { position: relative; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 4rem; }
.timeline-center-line { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 1px; background: linear-gradient(to bottom, transparent, var(--glass-border) 10%, var(--glass-border) 90%, transparent); z-index: 1; }
.timeline-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.timeline-row.left .timeline-empty { grid-column: 3; }
.timeline-row.right .timeline-empty { grid-column: 1; }
.timeline-node { grid-column: 2; width: 64px; height: 64px; background: var(--bg-base); border: 1px solid var(--glass-border); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: var(--text-muted); z-index: 3; transition: var(--transition-fast); box-shadow: 0 0 0 10px var(--bg-base); }
.timeline-row:hover .timeline-node { border-color: var(--text-pure); color: var(--text-pure); transform: scale(1.1); box-shadow: 0 0 20px rgba(255,255,255,0.1); }
.timeline-content { padding: 3rem; border-radius: 24px; position: relative; border: 1px solid var(--glass-border); transition: var(--transition-fast); background: var(--bg-surface); }
.timeline-content:hover { border-color: var(--accent-main); box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 20px rgba(34, 197, 94, 0.1); transform: translateY(-3px); }
.timeline-row.left .timeline-content { grid-column: 1; text-align: right; }
.timeline-row.right .timeline-content { grid-column: 3; text-align: left; }
.timeline-date { color: var(--accent-main); font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 2px; }
.timeline-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--text-pure); margin-bottom: 0.8rem; letter-spacing: -0.02em; }
.timeline-desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.5rem; font-weight: 500; }
.timeline-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; text-align: left; }
.timeline-row.left .timeline-bullets { align-items: flex-end; text-align: right; }
.timeline-bullets li { position: relative; padding-left: 1.5rem; color: var(--text-body); font-size: 1rem; line-height: 1.5; }
.timeline-row.left .timeline-bullets li { padding-left: 0; padding-right: 1.5rem; }
.timeline-bullets li::before { content: '▹'; position: absolute; left: 0; top: 2px; color: var(--accent-main); }
.timeline-row.left .timeline-bullets li::before { left: auto; right: 0; content: '◃'; }

/* Experience Specific Block */
.experience-block { padding: 4rem 4rem; margin-bottom: 4rem; border-radius: 24px; background: rgba(15, 15, 15, 0.4); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); transition: var(--transition-smooth); display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; justify-content: space-between; }
.experience-block:hover { border-color: var(--text-pure); box-shadow: var(--glass-shadow); }
.exp-content { flex: 1; min-width: 300px; }
.exp-media { width: 350px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.exp-image { width: 100%; max-width: 350px; display: block; border-radius: 12px; object-fit: cover; border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
@media (max-width: 900px) {
    .exp-media { width: 100%; margin-top: 1rem; }
    .exp-image { width: 100%; max-width: none; height: auto; }
}
.exp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.exp-title { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; color: var(--text-pure); letter-spacing: -0.03em; }
.exp-company { font-family: var(--font-body); font-size: 1.25rem; color: var(--accent-main); font-weight: 600; }
.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.exp-bullets li { position: relative; padding-left: 1.5rem; color: var(--text-body); font-size: 1.1rem; line-height: 1.6; }
.exp-bullets li::before { content: '▹'; position: absolute; left: 0; top: 2px; color: var(--accent-main); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-box { padding: 4rem 2rem; border-radius: 24px; }
.stat-number { font-family: var(--font-head); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 800; line-height: 1; margin-bottom: 1.5rem; color: var(--text-pure); letter-spacing: -0.04em; }
.stat-label { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-body); margin-bottom: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }

/* Progress/Graph Indicators */
.stat-progress-container { width: 100%; height: 6px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; margin-top: 1rem; position: relative; }
.stat-progress-bar { height: 100%; background: var(--accent-main); border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 0 0 10px var(--accent-glow); }
.reveal-up.active .stat-progress-bar { transform: scaleX(1); }

/* Certifications Masonry Overlay/Grid */
.cert-masonry { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; grid-auto-flow: dense; }
.cert-card { display: flex; flex-direction: column; justify-content: flex-start; padding: 2.5rem; min-height: 380px; text-decoration: none; position: relative; overflow: hidden; border: 1px solid var(--glass-border); background: var(--bg-surface); border-radius: 24px; transition: var(--transition-smooth); }
.cert-card:hover { border-color: var(--text-pure); transform: translateY(-5px); box-shadow: var(--glass-shadow); background: var(--bg-surface-hover); }
.cert-span-2 { grid-column: auto; }
.cert-content { position: relative; z-index: 2; margin-bottom: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.cert-title { font-family: var(--font-head); font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 700; color: var(--text-pure); margin-bottom: 0.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.cert-issuer { color: var(--text-muted); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.cert-img-wrapper { width: 100%; height: 180px; border-radius: 12px; overflow: hidden; position: relative; z-index: 2; border: 1px solid rgba(255,255,255,0.05); margin-top: auto; flex-shrink: 0; margin-bottom: 1.2rem; }
.cert-btn { margin-top: auto; width: 100%; }
.cert-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-smooth); filter: grayscale(10%) contrast(1.1); }
.cert-card:hover .cert-img { transform: scale(1.05); filter: grayscale(0%) contrast(1.1); }
.cert-bg-icon { display: none; }

/* Contact Section (Stable layout as requested) */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: stretch; }
.contact-left { display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; }
.contact-card { display: flex; align-items: center; gap: 1.5rem; padding: 2rem; text-decoration: none; cursor: pointer; transition: var(--transition-fast); border-radius: 20px; }
.contact-card:hover { border-color: var(--text-pure); transform: translateX(10px); background: var(--bg-surface-hover); }
.contact-icon { width: 64px; height: 64px; background: var(--bg-surface); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: var(--text-pure); border: 1px solid var(--glass-border); transition: var(--transition-fast); }
.contact-card:hover .contact-icon { background: var(--text-pure); color: var(--bg-base); transform: scale(1.1); }
.contact-details { display: flex; flex-direction: column; }
.c-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.4rem; white-space: nowrap; }
.c-val { font-family: var(--font-head); font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; color: var(--text-pure); word-wrap: break-word; word-break: break-word; overflow-wrap: break-word; }

.contact-form { padding: 4.5rem; display: flex; flex-direction: column; gap: 2rem; justify-content: center; border-radius: 24px; }
.form-title { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; color: var(--text-pure); margin-bottom: 1rem; letter-spacing: -0.03em; }
.input-wrap { width: 100%; position: relative; }
.form-input { width: 100%; padding: 1.2rem 1.5rem; border-radius: 12px; background: transparent; border: 1px solid var(--glass-border); color: var(--text-pure); font-family: var(--font-body); font-size: 1rem; transition: var(--transition-fast); }
.form-input:focus { outline: none; border-color: var(--text-pure); background: var(--bg-surface); box-shadow: 0 0 20px rgba(255,255,255,0.05); }
.form-input::placeholder { color: var(--text-muted); }
.form-submit { margin-top: 1rem; padding: 1.2rem; }

/* Tech Marquee (Scrolling Icons) */
.tech-marquee-wrapper { position: relative; width: 100%; overflow: hidden; padding: 2rem 0; background: transparent; display: flex; align-items: center; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.tech-marquee { display: flex; width: max-content; gap: 3rem; animation: scrollMarquee 20s linear infinite; }
.tech-marquee-content { display: flex; gap: 3rem; align-items: center; }
.tech-marquee-content i { font-size: 3.5rem; color: var(--text-muted); transition: var(--transition-fast); }
.tech-marquee-content i:hover { color: var(--accent-main); transform: scale(1.1); text-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.stats-grid.stats-2col { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
@media (max-width: 768px) {
    .stats-grid.stats-2col { grid-template-columns: 1fr; }
}

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding: 8rem 0 4rem; margin-top: 4rem; background: var(--bg-base); }
.footer-logo { font-family: var(--font-head); font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 900; color: var(--text-pure); margin-bottom: 2.5rem; line-height: 0.85; letter-spacing: -0.05em; text-transform: uppercase; }
.social-links { display: flex; gap: 2rem; justify-content: center; margin-bottom: 3rem; }
.social-links a { color: var(--text-body); font-size: 2rem; transition: var(--transition-fast); display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px solid var(--glass-border); border-radius: 50%; }
.social-links a:hover { color: var(--text-pure); border-color: var(--text-pure); transform: translateY(-5px); background: var(--bg-surface); }

/* Premium Chatbot UI (Matching New Monochromatic Glass Look) */
.chatbot-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-body); }
.chatbot-toggle { width: 64px; height: 64px; border-radius: 50%; background: var(--text-pure); border: 1px solid rgba(255,255,255,0.5); font-size: 1.6rem; color: var(--bg-base); display: flex; justify-content: center; align-items: center; cursor: pointer; transition: var(--transition-smooth); box-shadow: 0 10px 30px rgba(255,255,255,0.2); }
.chatbot-toggle:hover { transform: scale(1.1) rotate(10deg); }

.chatbot-window { position: absolute; bottom: 84px; right: 0; width: 380px; height: 580px; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.95); transition: var(--transition-smooth); overflow: hidden; transform-origin: bottom right; border: 1px solid var(--glass-border); background: rgba(15, 15, 15, 0.95); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); border-radius: 28px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.chatbot-window.active { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }

.cb-header { padding: 1.5rem; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.03); }
.cb-info { display: flex; align-items: center; gap: 1rem; font-size: 1.6rem; }
.cb-title { font-family: var(--font-head); font-size: 1.25rem; color: var(--text-pure); margin-bottom: 0.1rem; font-weight: 700; letter-spacing: -0.01em; }
.cb-status { font-size: 0.75rem; color: var(--accent-main); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.cb-close { background: transparent; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: var(--transition-fast); }
.cb-close:hover { color: var(--text-pure); transform: rotate(90deg); }

.cb-body { flex: 1; padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.2rem; scroll-behavior: smooth; }
.msg { padding: 1rem 1.4rem; border-radius: 16px; max-width: 85%; font-size: 0.95rem; line-height: 1.6; }
.ai-msg { background: var(--bg-surface); border: 1px solid var(--glass-border); color: var(--text-pure); align-self: flex-start; border-bottom-left-radius: 4px; }
.user-msg { background: var(--text-pure); color: var(--bg-base); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.typing-dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); margin: 0 3px; animation: bounce 1.4s infinite ease-in-out both; }
.typing-dots span:nth-child(1) { animation-delay: -0.32s; } .typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); background: var(--text-pure); } }

.cb-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.chip { background: transparent; border: 1px solid var(--glass-border); padding: 0.6rem 1.2rem; border-radius: 50px; color: var(--text-body); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: var(--transition-fast); display: inline-flex; }
.chip:hover { border-color: var(--text-pure); color: var(--text-pure); background: var(--bg-surface); transform: translateY(-2px); }

.cb-input-area { padding: 1.5rem; border-top: 1px solid var(--glass-border); background: transparent; display: flex; gap: 1rem; align-items: center; }
.cb-input { flex: 1; background: transparent; border: none; font-size: 1rem; color: var(--text-pure); font-family: var(--font-body); outline: none; }
.cb-input::placeholder { color: var(--text-muted); }
.cb-send { background: var(--text-pure); border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 1rem; color: var(--bg-base); cursor: pointer; transition: var(--transition-fast); display: flex; align-items: center; justify-content: center; }
.cb-send:hover { transform: scale(1.1); box-shadow: 0 5px 15px rgba(255,255,255,0.2); }
.custom-scrollbar::-webkit-scrollbar { width: 6px; } .custom-scrollbar::-webkit-scrollbar-track { background: transparent; } .custom-scrollbar::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

/* Transitions */
.reveal-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); will-change: opacity, transform; }
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* Premium Global Cursor Glow */
.cursor-glow {
    position: fixed; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.06) 0%, transparent 70%);
    filter: blur(80px); opacity: 0; pointer-events: none; z-index: 9999;
    top: 0; left: 0; transform: translate(-50%, -50%); transition: opacity 0.5s ease;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .container { padding: 0 2rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-bio, .bento-tech { grid-column: 1 / -1; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-form { padding: 3rem; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .timeline-center-line { left: 40px; }
    .timeline-row { grid-template-columns: 80px 1fr !important; gap: 1.5rem; }
    .timeline-node { grid-column: 1 !important; width: 48px; height: 48px; font-size: 1.1rem; margin-left: 17.5px; }
    .timeline-content { grid-column: 2 !important; text-align: left !important; }
    .timeline-row .timeline-empty { display: none; }
    .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
    .chatbot-window { width: calc(100vw - 40px); right: -10px; bottom: 84px; }
    .cert-span-2 { grid-column: span 1; }
}

@media (max-width: 768px) {
    /* Disable sticky stacking on mobile as explicitly requested */
    .project-sticky-container { position: relative !important; top: auto !important; height: auto !important; min-height: auto !important; margin-bottom: 2.5rem; padding-bottom: 0; }
    .pc-layout { flex-direction: column; }
    .pc-content-side { padding: 3rem; border-right: none; border-bottom: 1px solid var(--glass-border); }
    .pc-image-side { min-height: 300px; border-left: none; }
    .bento-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .bento-hero-right { aspect-ratio: 1/1; max-width: 400px; margin: 0 auto; width: 100%; }
    .hero-buttons-bento { flex-direction: column; width: 100%; align-items: stretch; }
    .hero-buttons-bento .btn-minimal { width: 100%; justify-content: flex-start; }
    .section-title { font-size: 2.8rem; }
    .pc-title { font-size: 2.5rem; }
    .stat-number { font-size: 3rem; }
    .experience-block { padding: 3rem 2rem; }
    .exp-header { flex-direction: column; align-items: flex-start; }
}

/* Extra Achievements Section Enhancements */
.stat-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.stat-progress-bar {
  background: #00ff88;
  box-shadow: 0 0 10px rgba(0,255,136,0.7) !important;
}

/* Premium Enhancements Requested */

/* Fade-up animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Image Hover Effects */
.exp-image,
.project-image,
.pc-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-image:hover,
.project-image:hover,
.pc-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Button micro UI */
.btn,
.btn-cert {
  transition: all 0.3s ease;
}

.btn:hover,
.btn-cert:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255,255,255,0.1);
}

/* Accent Card Borders */
.experience-block {
  border-left: 3px solid #00ff88;
  padding-left: 20px;
}

/* Icon stack micro UI */
.tech-icons img, .tech-marquee-content i {
  transition: transform 0.3s ease;
}

.tech-icons img:hover, .tech-marquee-content i:hover {
  transform: translateY(-8px);
}

/* Hero Section Subtle Gradient */
.hero {
  background: radial-gradient(circle at center, #1a1a1a, #0f0f0f);
}

/* Global Premium Tasks */
.p-card, .project-card, .experience-block {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-card:hover, .project-card:hover, .experience-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

#scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #00ff88;
  width: 0%;
  z-index: 9999;
}

.nav-link.active {
  color: #00ff88;
}

.section {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

h1, h2 {
  letter-spacing: -1px;
}

p {
  color: rgba(255,255,255,0.7);
}

img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

.chatbot-toggle {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px) scale(1); box-shadow: 0 10px 30px rgba(255,255,255,0.2); }
  50% { transform: translateY(-10px) scale(1.05); box-shadow: 0 20px 40px rgba(255,255,255,0.4); }
  100% { transform: translateY(0px) scale(1); box-shadow: 0 10px 30px rgba(255,255,255,0.2); }
}

/* UI Final Requests */
.verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.verify-icon {
  font-size: 14px;
}

.download-cv {
  margin-left: 15px;
}
