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

:root {
    --bg: #000000;
    --text: #ffffff;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --secondary: #0a0a0a;
    --card-bg: rgba(13, 13, 13, 0.7);
    --border: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.02);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="light"] {
    --bg: #f4f4f6;
    --text: #0a0a0a;
    --accent: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.08);
    --secondary: #eaeaec;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 0, 0, 0.08);
    --glass: rgba(0,0,0,0.02);
}

/* ---- GLOBAL LIGHT THEME OVERRIDES ---- */
[data-theme="light"] body { background-color: #f4f4f6; color: #0a0a0a; }

/* Hero */
[data-theme="light"] .hero-v5 { background: #f4f4f6; }
[data-theme="light"] .hero-name-v5 { color: #0a0a0a; }
[data-theme="light"] .hero-role-v5 { color: #0a0a0a; }
[data-theme="light"] .hero-tagline-v5 { color: rgba(0,0,0,0.55); }
[data-theme="light"] .status-pill-v5 { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); color: #0a0a0a; }
[data-theme="light"] .image-block-v5 { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .scroll-explore-v5 span { color: rgba(0,0,0,0.35); }
[data-theme="light"] .line-v5 { background: rgba(0,0,0,0.2); }

/* About Section */
[data-theme="light"] .about-section { background: #f4f4f6; }
[data-theme="light"] .stat-num { color: #4f46e5; }
[data-theme="light"] .stat-label { color: rgba(0,0,0,0.45); }
[data-theme="light"] .info-group span { color: rgba(0,0,0,0.4); }
[data-theme="light"] .about-socials a { color: rgba(0,0,0,0.5); }
[data-theme="light"] .about-socials a:hover { color: #4f46e5; }
[data-theme="light"] .btn-story { border-color: #4f46e5; color: #4f46e5; }
[data-theme="light"] .btn-story:hover { background: #4f46e5; color: #fff; }

/* Accordion Skills */
[data-theme="light"] .accordion-skills-section { background: #eaeaec; }
[data-theme="light"] .accordion-wrapper { border-top-color: rgba(0,0,0,0.1); }
[data-theme="light"] .acc-item { border-bottom-color: rgba(0,0,0,0.1); }
[data-theme="light"] .acc-item.is-active { background: rgba(79,70,229,0.04); }
[data-theme="light"] .acc-name { color: #0a0a0a; }
[data-theme="light"] .acc-num { color: #4f46e5; }
[data-theme="light"] .acc-chevron { color: rgba(0,0,0,0.3); }
[data-theme="light"] .acc-item.is-active .acc-chevron { color: #4f46e5; }
[data-theme="light"] .acc-col-title { color: rgba(0,0,0,0.3); }
[data-theme="light"] .acc-bullets li { color: rgba(0,0,0,0.65); }
[data-theme="light"] .acc-bullets li::before { color: #4f46e5; }
[data-theme="light"] .acc-project-tag { background: rgba(79,70,229,0.05); border-color: rgba(79,70,229,0.2); color: #4f46e5; }
[data-theme="light"] .acc-depth { color: rgba(0,0,0,0.45); }
[data-theme="light"] .acc-tags span { background: rgba(79,70,229,0.05); border-color: rgba(79,70,229,0.2); color: rgba(0,0,0,0.55); }
[data-theme="light"] .acc-tags span:hover { background: rgba(79,70,229,0.1); border-color: #4f46e5; color: #4f46e5; }
[data-theme="light"] .acc-title { -webkit-text-fill-color: #0a0a0a; }
[data-theme="light"] .acc-subtitle { color: rgba(0,0,0,0.4); }

/* Experience Section */
/* Old exp-section light mode removed */
/* Old exp-item light mode removed */
[data-theme="light"] .exp-item-v6:hover { background: rgba(79,70,229,0.03); border-color: rgba(79,70,229,0.2); }
[data-theme="light"] .exp-meta .date { color: rgba(0,0,0,0.35); }
[data-theme="light"] .exp-meta .role { color: #4f46e5; }
[data-theme="light"] .exp-content h3 { color: #0a0a0a; }
[data-theme="light"] .exp-content p { color: rgba(0,0,0,0.5); }

/* Portfolio / Project Cards */
[data-theme="light"] .portfolio-section { background: #eaeaec; }
[data-theme="light"] .project-card-v6 {
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .project-card-v6:hover {
    border-color: rgba(79,70,229,0.4);
    box-shadow: 0 30px 80px -20px rgba(79,70,229,0.15);
}
[data-theme="light"] .p-meta { color: #4f46e5; }
[data-theme="light"] .p-details h3 { color: #0a0a0a; }
[data-theme="light"] .p-impact { color: rgba(0,0,0,0.55); }
[data-theme="light"] .p-tags span { background: rgba(79,70,229,0.05); border-color: rgba(79,70,229,0.2); color: rgba(0,0,0,0.55); }
[data-theme="light"] .open-case-study { border-color: rgba(0,0,0,0.15); color: rgba(0,0,0,0.5); }
[data-theme="light"] .open-case-study:hover { background: #4f46e5; border-color: #4f46e5; color: #fff; }
[data-theme="light"] .live-link { color: #4f46e5; border-color: rgba(79,70,229,0.3); }
[data-theme="light"] .live-link:hover { background: rgba(79,70,229,0.08); border-color: #4f46e5; }

/* Section headers */
[data-theme="light"] .section-header-v6 h2 { color: #0a0a0a; }
[data-theme="light"] .sub-heading { color: rgba(0,0,0,0.35); }

/* Contact Section */
/* Reverted light mode override to allow dark premium background */
[data-theme="light"] .contact-form-v6 input, 
[data-theme="light"] .contact-form-v6 textarea { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
[data-theme="light"] .contact-form-v6 input::placeholder, 
[data-theme="light"] .contact-form-v6 textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
[data-theme="light"] .c-link { color: rgba(255,255,255,0.4); }
[data-theme="light"] .c-link:hover { color: #fff; }

/* Modal */
[data-theme="light"] .modal-content {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .modal-info h2 { color: #0a0a0a; }
[data-theme="light"] .m-meta { color: #4f46e5; }
[data-theme="light"] .m-desc { color: rgba(0,0,0,0.55); }
[data-theme="light"] .m-highlights h3,
[data-theme="light"] .m-stack h3,
[data-theme="light"] .m-metrics h3 { color: rgba(0,0,0,0.35); }
[data-theme="light"] .m-highlights li { color: rgba(0,0,0,0.65); }
[data-theme="light"] .m-highlights li::before { color: #4f46e5; }
[data-theme="light"] .m-metric-chip { background: rgba(79,70,229,0.06); border-color: rgba(79,70,229,0.2); color: #4f46e5; }
[data-theme="light"] #project-modal { background: rgba(240,240,245,0.85); }
[data-theme="light"] .close-modal { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.5); }
[data-theme="light"] .close-modal:hover { background: rgba(79,70,229,0.1); border-color: #4f46e5; color: #4f46e5; }

/* Nav */
[data-theme="light"] .nav-pill { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .nav-item { color: #0a0a0a; }
[data-theme="light"] .nav-item.active, [data-theme="light"] .nav-item:hover { opacity: 1; color: #4f46e5; }
[data-theme="light"] .btn-contact-wow { background: #0a0a0a; color: #fff; }

/* Services section */
[data-theme="light"] .services-section { background: #eaeaec; }
[data-theme="light"] .services-heading { color: #0a0a0a; }
[data-theme="light"] .services-sub { color: rgba(0,0,0,0.45); }
[data-theme="light"] .service-item { border-bottom-color: rgba(0,0,0,0.1); }
[data-theme="light"] .service-item h3 { color: #0a0a0a; }
[data-theme="light"] .service-item:hover h3 { color: #4f46e5; }
[data-theme="light"] .service-item:hover { border-bottom-color: #4f46e5; }

/* Footer */
[data-theme="light"] .footer-v6 { background: #eaeaec; color: rgba(0,0,0,0.35); border-top-color: rgba(0,0,0,0.08); }


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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

body.modal-open { overflow: hidden; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 6%; }

/* --- Ambient Effects --- */
.noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; pointer-events: none;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
}

.ambient-glow {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow) 0%, transparent 40%);
    pointer-events: none; z-index: 1;
}

/* --- Navigation: Glassmorphism --- */
header { position: fixed; top: 30px; left: 0; width: 100%; z-index: 1000; display: flex; justify-content: center; }
.nav-pill { 
    background: rgba(var(--bg-rgb, 0, 0, 0), 0.3); 
    backdrop-filter: blur(20px); 
    border: 1px solid var(--border); 
    padding: 8px 12px; 
    border-radius: 100px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    transition: var(--transition);
}
.nav-pill:hover { border-color: rgba(255,255,255,0.15); }
.nav-links { display: flex; gap: 5px; list-style: none; }
.nav-item { 
    text-decoration: none; 
    color: var(--text); 
    font-size: 0.7rem; 
    font-weight: 700; 
    opacity: 0.4; 
    padding: 10px 18px;
    border-radius: 100px;
    transition: var(--transition);
    letter-spacing: 0.05em;
}
.nav-item:hover, .nav-item.active { opacity: 1; background: var(--glass); color: var(--accent); }
.nav-profile { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); }
.nav-profile img { width: 100%; height: 100%; object-fit: cover; }
.btn-contact-wow { 
    background: var(--text); 
    color: var(--bg); 
    padding: 10px 22px; 
    border-radius: 100px; 
    text-decoration: none; 
    font-size: 0.7rem; 
    font-weight: 800; 
    transition: var(--transition);
    letter-spacing: 0.05em;
}
.btn-contact-wow:hover { transform: scale(1.05); background: var(--accent); color: white; }

/* --- Hero Section: Cinematic --- */
.hero-v5 { min-height: 100vh; display: flex; align-items: center; position: relative; padding: 120px 0; z-index: 2; }
.hero-v5-container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.status-pill-v5 { 
    display: inline-flex; align-items: center; gap: 10px; 
    padding: 10px 20px; border-radius: 100px; 
    background: var(--glass); border: 1px solid var(--border); 
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.15em; 
    margin-bottom: 40px; opacity: 0.6;
}
.hero-name-v5 { 
    font-family: var(--font-heading); 
    font-size: clamp(4.5rem, 12vw, 9.5rem); 
    font-weight: 800; line-height: 0.85; 
    letter-spacing: -0.05em; margin-bottom: 40px;
    background: linear-gradient(to bottom, var(--text) 60%, rgba(255,255,255,0.2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-tagline-v5 { max-width: 480px; font-size: 1.3rem; line-height: 1.6; opacity: 0.5; font-weight: 400; }
.hero-v5-right { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.role-block-v5 { margin-bottom: 40px; text-align: right; }
.hero-role-v5 { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.image-block-v5 { width: 100%; max-width: 550px; aspect-ratio: 4/5; position: relative; border-radius: 40px; overflow: hidden; }
.hero-img-v5 { 
    width: 100%; height: 100%; object-fit: cover; 
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%); 
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    transition: transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.image-block-v5:hover .hero-img-v5 { transform: scale(1.05); }

/* --- Section Headers --- */
.section-header-v6 { margin-bottom: 100px; position: relative; z-index: 2; }
.sub-heading { color: var(--accent); font-weight: 800; letter-spacing: 0.25em; font-size: 0.7rem; margin-bottom: 20px; display: block; opacity: 0.8; }
.section-header-v6 h2 { font-family: var(--font-heading); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }

/* --- Skills: Modern Cards --- */
.skills-grid-v6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; position: relative; z-index: 2; }
.skill-card-v6 { 
    background: var(--card-bg); backdrop-filter: blur(10px); 
    padding: 60px 45px; border-radius: 40px; 
    border: 1px solid var(--border); transition: var(--transition);
}
.skill-card-v6:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.03); transform: translateY(-10px); }
.icon-box { font-size: 2.2rem; color: var(--accent); margin-bottom: 30px; }
.skill-card-v6 h4 { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }
.skill-card-v6 p { opacity: 0.4; font-size: 1rem; line-height: 1.6; }

/* --- Projects: Grid V7 --- */
.portfolio-section { padding: 180px 0; }
.project-gallery-v6 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; position: relative; z-index: 2; }
.project-card-v6 { background: var(--card-bg); backdrop-filter: blur(15px); border-radius: 48px; border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.project-card-v6:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); transform: translateY(-15px); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }
.p-image { width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.p-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1); }
.project-card-v6:hover .p-image img { transform: scale(1.08); }

/* Special Fit for Dashboard Screenshots */
.p-image-fit { background: #ffffff !important; display: flex !important; align-items: center; justify-content: center; }
.p-image-fit img { object-fit: contain !important; padding: 15px; }
.p-details { padding: 50px; }
.p-meta { font-size: 0.75rem; font-weight: 800; color: var(--accent); letter-spacing: 0.15em; margin-bottom: 20px; }
.p-details h3 { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; margin-bottom: 18px; letter-spacing: -0.02em; }
.p-details p { opacity: 0.45; font-size: 1.1rem; line-height: 1.6; margin-bottom: 35px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 35px; }
.p-tags span { font-size: 0.65rem; font-weight: 800; padding: 8px 18px; border-radius: 100px; background: var(--glass); border: 1px solid var(--border); opacity: 0.6; }

/* --- Modals: Ultra Glass --- */
.modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); backdrop-filter: blur(15px); }
.modal-content { 
    background: var(--secondary); margin: 3% auto; padding: 80px; 
    border: 1px solid var(--border); width: 90%; max-width: 1000px; 
    border-radius: 56px; position: relative;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8);
}
.m-meta { font-size: 0.8rem; font-weight: 800; color: var(--accent); margin-bottom: 20px; display: block; letter-spacing: 0.2em; }
.modal-info h2 { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; margin-bottom: 30px; line-height: 1; }
.m-desc { font-size: 1.3rem; line-height: 1.6; opacity: 0.6; margin-bottom: 50px; }
.m-highlights h3, .m-stack h3 { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; margin-bottom: 25px; opacity: 0.4; }
.m-highlights ul { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-bottom: 50px; }
.m-highlights li { font-size: 1.1rem; opacity: 0.7; padding-left: 30px; position: relative; }
.m-highlights li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 900; }


/* --- Reveal System --- */
section, .skill-card-v6, .exp-item-v6, .project-card-v6 { 
    opacity: 0; transform: translateY(50px); 
    transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1), transform 1.2s cubic-bezier(0.23, 1, 0.32, 1); 
}
section.revealed, .skill-card-v6.revealed, .exp-item-v6.revealed, .project-card-v6.revealed { opacity: 1; transform: translateY(0); }

/* --- Custom Cursor --- */
.cursor { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; position: fixed; z-index: 10000; pointer-events: none; opacity: 0.6; }
.cursor-follower { display: none !important; }

/* --- Scroll Bar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

@media (max-width: 1024px) { .nav-profile { display: none !important; }
    .hero-v5-container { grid-template-columns: 1fr; text-align: center; gap: 40px; padding: 0 20px; }
    .hero-v5-left { padding-right: 0; display: flex; flex-direction: column; align-items: center; }
    .hero-v5-right { align-items: center; display: flex; flex-direction: column; }
    .role-block-v5 { text-align: center; margin-bottom: 20px; }
    .image-block-v5 { margin: 0 auto; width: 100%; max-width: 400px; }
    .hero-img-v5 { border-radius: 40px; }
    .project-gallery-v6 { grid-template-columns: 1fr; }
    .nav-pill { padding: 6px 10px; gap: 5px; max-width: 95%; }
    .nav-item { padding: 8px 12px; font-size: 0.65rem; }
    .cursor, .cursor-follower { display: none !important; }
    * { cursor: auto; }
}

@media (max-width: 480px) {
    .hero-v5 { padding: 100px 0 40px; min-height: auto; }
    .hero-name-v5 { font-size: 3.5rem; line-height: 0.9; margin-bottom: 20px; }
    .hero-tagline-v5 { font-size: 1.05rem; max-width: 100%; opacity: 0.7; line-height: 1.5; margin-bottom: 30px; }
    .hero-role-v5 { font-size: 1.1rem; letter-spacing: 0.1em; margin-bottom: 30px; line-height: 1.4; }
    .image-block-v5 { max-width: 320px; }
    .status-pill-v5 { font-size: 0.55rem; padding: 8px 16px; margin-bottom: 20px; }
    .nav-pill { width: 95%; flex-wrap: wrap; justify-content: center; border-radius: 20px; padding: 10px; }
    .nav-links { gap: 5px; }
    .nav-item { padding: 6px 10px; font-size: 0.6rem; }
    .nav-actions { margin-top: 10px; width: 100%; justify-content: center; gap: 15px; display: flex; }
    .btn-contact-wow { padding: 8px 16px; font-size: 0.65rem; }
    .about-grid-v2 { grid-template-columns: 1fr; gap: 40px; }
}

/* --- 3D Container Scroll Animation --- */
.container-scroll-v7 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 0;
    perspective: 1000px;
}

.scroll-title-v7 {
    text-align: center;
    margin-bottom: 80px;
    z-index: 5;
}

.title-3d-v7 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text);
}

.title-3d-v7 span {
    font-size: clamp(4rem, 12vw, 10rem);
    background: linear-gradient(to bottom, var(--accent) 0%, rgba(99,102,241,0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-card-v7 {
    width: 100%;
    max-width: 1200px;
    background: var(--card-bg);
    border: 4px solid var(--border);
    border-radius: 40px;
    padding: 40px;
    transform-style: preserve-3d;
    transform: rotateX(20deg) scale(0.95);
    transition: transform 0.1s ease-out;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
}

.project-gallery-v6 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}


/* --- About Me & Services Enhancements --- */
.about-section { padding: 150px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.about-desc { font-size: 1.2rem; opacity: 0.6; line-height: 1.6; margin-bottom: 50px; max-width: 600px; }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
.stat-num { display: block; font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; color: #bef264; line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 0.8rem; font-weight: 700; opacity: 0.4; text-transform: uppercase; letter-spacing: 0.1em; display: block; max-width: 100px; }

.about-contact-info { display: flex; gap: 60px; margin-bottom: 50px; }
.info-group span { font-size: 0.7rem; font-weight: 700; opacity: 0.4; text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 8px; }
.info-group p { font-weight: 600; font-size: 1.1rem; }

.about-socials { display: flex; gap: 25px; margin-bottom: 50px; }
.about-socials a { color: var(--text); font-size: 1.2rem; opacity: 0.5; transition: var(--transition); }
.about-socials a:hover { opacity: 1; color: #bef264; transform: translateY(-3px); }

.btn-story { 
    display: inline-block; padding: 14px 40px; border-radius: 100px; 
    border: 1px solid #bef264; color: #bef264; text-decoration: none; 
    font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; transition: var(--transition);
}
.btn-story:hover { background: #bef264; color: black; transform: scale(1.05); }

.about-image-container { perspective: 1000px; }
.about-img-tilt { 
    width: 100%; border-radius: 40px; 
    transform: rotateY(-15deg) rotateX(5deg); 
    box-shadow: 20px 40px 80px rgba(0,0,0,0.5);
    transition: var(--transition);
}
.about-image-container:hover .about-img-tilt { transform: rotateY(0) rotateX(0); }

/* --- Services Section --- */
.services-section { padding: 150px 0; background: #050505; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.services-heading { font-family: var(--font-heading); font-size: 5rem; font-weight: 800; line-height: 0.95; margin-bottom: 30px; letter-spacing: -0.04em; }
.services-sub { font-size: 1.1rem; opacity: 0.5; margin-bottom: 60px; max-width: 500px; }

.services-list { display: flex; flex-direction: column; }
.service-item { 
    display: flex; align-items: center; gap: 30px; 
    padding: 35px 0; border-bottom: 1px solid rgba(255,255,255,0.1); 
    transition: var(--transition);
}
.service-item .s-num { font-weight: 700; opacity: 0.3; font-size: 1rem; }
.service-item h3 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; flex: 1; transition: var(--transition); }
.service-item i { opacity: 0.2; transition: var(--transition); }
.service-item:hover { border-bottom-color: #bef264; }
.service-item:hover h3 { color: #bef264; transform: translateX(10px); }
.service-item:hover i { opacity: 1; color: #bef264; }

.services-visual { perspective: 1000px; }
.visual-img-card { 
    width: 100%; aspect-ratio: 1; border-radius: 40px; overflow: hidden;
    transform: rotateY(15deg) rotateX(5deg); 
    box-shadow: -20px 40px 80px rgba(0,0,0,0.5);
    transition: var(--transition);
}
.visual-img-card img { width: 100%; height: 100%; object-fit: cover; }
.services-visual:hover .visual-img-card { transform: rotateY(0) rotateX(0); }

@media (max-width: 1024px) { .nav-profile { display: none !important; }
    .about-grid, .services-grid { grid-template-columns: 1fr; gap: 60px; }
    .services-heading { font-size: 3.5rem; }
    .about-stats { grid-template-columns: 1fr 1fr; }
}


/* ============================================
   PREMIUM ACCORDION SKILLS SECTION
   Bloomberg Terminal / HFT Dashboard Aesthetic
   ============================================ */

.accordion-skills-section {
    padding: 160px 0;
    background: #000;
    position: relative;
    overflow: hidden;
}

.accordion-skills-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.acc-header {
    margin-bottom: 80px;
}

.acc-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(to bottom, #fff 40%, rgba(255,255,255,0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 12px 0 16px;
}

.acc-subtitle {
    font-size: 0.9rem;
    opacity: 0.5;
    font-weight: 400;
}

/* --- Accordion Wrapper --- */
.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* --- Accordion Item --- */
.acc-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    transition: background 0.4s ease;
}

.acc-item.is-active {
    background: rgba(99,102,241,0.03);
}

.acc-item.is-active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #6366f1, #3b82f6);
    box-shadow: 0 0 20px rgba(99,102,241,0.8);
}

/* --- Trigger Button --- */
.acc-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 26px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 20px;
    text-align: left;
    transition: all 0.3s ease;
}

.acc-trigger:hover .acc-name {
    color: #a5b4fc;
}

.acc-trigger-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.acc-num {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: 0.1em;
    opacity: 0.6;
    min-width: 30px;
}

.acc-name {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.acc-chevron {
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s ease;
    flex-shrink: 0;
}

.acc-item.is-active .acc-chevron {
    transform: rotate(180deg);
    color: #6366f1;
}

/* --- Accordion Body --- */
.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.acc-item.is-active .acc-body {
    max-height: 600px;
}

.acc-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 0 0 50px 70px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.acc-item.is-active .acc-content-grid {
    opacity: 1;
    transform: translateY(0);
}

.acc-col-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 20px;
    display: block;
}

/* --- Bullets --- */
.acc-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.acc-bullets li {
    font-size: 0.95rem;
    opacity: 0.65;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.acc-bullets li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 900;
    font-size: 0.75rem;
    top: 2px;
}

/* --- Project Tags --- */
.acc-projects {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.acc-project-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a5b4fc;
    padding: 12px 18px;
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 10px;
    background: rgba(99,102,241,0.05);
    transition: all 0.3s ease;
}

.acc-project-tag:hover {
    background: rgba(99,102,241,0.12);
    border-color: rgba(99,102,241,0.4);
}

/* --- Depth indicator --- */
.acc-depth {
    font-size: 0.9rem;
    opacity: 0.5;
    line-height: 1.6;
    font-style: italic;
}

/* --- Tech Tags --- */
.acc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 0 50px 70px;
    opacity: 0;
    transition: opacity 0.5s ease 0.25s;
}

.acc-item.is-active .acc-tags {
    opacity: 1;
}

.acc-tags span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(99,102,241,0.25);
    background: rgba(99,102,241,0.06);
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.acc-tags span:hover {
    border-color: #6366f1;
    color: #a5b4fc;
    background: rgba(99,102,241,0.12);
}

@media (max-width: 1024px) { .nav-profile { display: none !important; }
    .acc-content-grid { grid-template-columns: 1fr; padding-left: 0; }
    .acc-tags { padding-left: 0; }
    .acc-trigger-left { gap: 20px; }
    .acc-name { font-size: 1.2rem; }
}

/* ============================================
   INSTITUTIONAL PROJECT SHOWCASE UPGRADE
   ============================================ */

.portfolio-section {
    padding: 160px 0;
    background: #000;
}

/* Impact line - replaces bland description */
.p-impact {
    font-size: 1rem;
    line-height: 1.65;
    opacity: 0.55;
    margin-bottom: 28px;
    font-weight: 400;
}

/* Tech tags - denser, inline chip style */
.p-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.p-tags span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.2);
    color: rgba(255,255,255,0.55);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.project-card-v6:hover .p-tags span {
    border-color: rgba(99,102,241,0.45);
    color: #a5b4fc;
}

/* CTA button */
.open-case-study {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    padding: 13px 28px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.open-case-study:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    transform: translateX(4px);
}

/* Live link */
.live-link {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #bef264;
    text-decoration: none;
    padding: 13px 28px;
    border: 1px solid rgba(190,242,100,0.25);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.live-link:hover {
    background: rgba(190,242,100,0.1);
    border-color: #bef264;
}

.p-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* ---- HOVER OVERLAY: System specs revealed on hover ---- */
.p-image {
    position: relative;
    overflow: hidden;
}

.card-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,6,20,0.92) 0%, rgba(30,27,75,0.88) 100%);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s cubic-bezier(0.23,1,0.32,1), transform 0.45s cubic-bezier(0.23,1,0.32,1);
    border-bottom: 1px solid rgba(99,102,241,0.2);
}

.project-card-v6:hover .card-hover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.overlay-stat span {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.3);
}

.overlay-stat strong {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

/* ---- CARD GLOW BORDER on hover ---- */
.project-card-v6 {
    background: rgba(8,8,15,0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 32px;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.5s cubic-bezier(0.23,1,0.32,1);
    cursor: pointer;
}

.project-card-v6:hover {
    border-color: rgba(99,102,241,0.4);
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 30px 80px -20px rgba(99,102,241,0.25), 0 0 0 1px rgba(99,102,241,0.15);
}

.p-details {
    padding: 36px 40px 40px;
}

.p-meta {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #6366f1;
    margin-bottom: 12px;
    opacity: 0.8;
}

.p-details h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    line-height: 1;
}

/* ============================================
   PREMIUM MODAL: Institutional Case Study
   ============================================ */
.modal-content {
    background: #05050a;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 40px;
    padding: 70px;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(99,102,241,0.3) transparent;
}

.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 4px; }

.modal-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 24px;
}

.m-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.55;
    margin-bottom: 50px;
    max-width: 700px;
}

.m-highlights {
    margin-bottom: 40px;
}

.m-highlights h3, .m-stack h3 {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 22px;
}

.m-highlights ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
}

.m-highlights li {
    font-size: 1.05rem;
    opacity: 0.7;
    line-height: 1.55;
    padding-left: 28px;
    position: relative;
}

.m-highlights li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 900;
}

.m-stack { margin-bottom: 40px; }

.modal-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-top: 20px;
    transition: all 0.35s ease;
    box-shadow: 0 8px 30px rgba(99,102,241,0.35);
}

.modal-live-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(99,102,241,0.5);
}

.close-modal {
    position: absolute;
    top: 30px; right: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(99,102,241,0.15);
    border-color: #6366f1;
    color: #fff;
}

/* --- Metrics Grid in Modal --- */
.m-metrics { margin-bottom: 40px; }
.m-metrics h3 {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 18px;
}
.m-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.m-metric-chip {
    padding: 16px 20px;
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 14px;
    background: rgba(99,102,241,0.06);
    font-size: 0.85rem;
    font-weight: 600;
    color: #a5b4fc;
    line-height: 1.3;
}

/* Modal entrance animation */
.modal-info {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.modal-info.modal-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CINEMATIC ABOUT SECTION V2
   ============================================ */

.about-section-v2 {
    padding: 140px 0 160px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.about-section-v2::before {
    content: '';
    position: absolute;
    top: -200px; left: -200px; right: -200px; bottom: -200px;
    background: radial-gradient(ellipse at 10% 60%, rgba(99,102,241,0.07) 0%, transparent 55%),
                radial-gradient(ellipse at 90% 20%, rgba(59,130,246,0.05) 0%, transparent 45%);
    pointer-events: none;
}

.about-grid-v2 {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 100px;
    align-items: center;
}

/* --- IMAGE PANEL --- */
.about-img-panel {
    position: relative;
    flex-shrink: 0;
}

.about-img-frame {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(30,27,75,0.5));
    border: 1px solid rgba(99,102,241,0.2);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7), 0 0 60px rgba(99,102,241,0.12);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.23,1,0.32,1), box-shadow 0.8s ease;
}

.about-img-frame:hover {
    transform: rotateY(-8deg) rotateX(3deg);
    box-shadow: 20px 40px 100px -20px rgba(0,0,0,0.7), 0 0 80px rgba(99,102,241,0.2);
}

.about-img-cinematic {
    width: 100%;
    display: block;
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.6s ease;
}

.about-img-frame:hover .about-img-cinematic {
    filter: grayscale(0%) contrast(1.08);
}

.about-img-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(6, 6, 20, 0.6) 100%
    );
    pointer-events: none;
}

.about-img-badge {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,20,0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 100px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 6px #22c55e; opacity: 1; }
    50% { box-shadow: 0 0 18px #22c55e; opacity: 0.7; }
}

/* --- CONTENT --- */
.about-content-v2 {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-label-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.about-line {
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, #6366f1, transparent);
}

.about-heading-v2 {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: #fff;
}

.about-heading-v2 span {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.25);
}

.about-opening {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    border-left: 2px solid #6366f1;
    padding-left: 20px;
}

.about-body-v2 {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.45);
    max-width: 560px;
}

/* Identity Tags */
.about-identity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-identity-tags span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(99,102,241,0.25);
    background: rgba(99,102,241,0.06);
    color: rgba(255,255,255,0.55);
    transition: all 0.3s ease;
}

.about-identity-tags span:hover {
    border-color: #6366f1;
    color: #a5b4fc;
    background: rgba(99,102,241,0.12);
}

/* Metrics V2 */
.about-stats-v2 {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stat-item-v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 0 30px;
}

.stat-item-v2:first-child { padding-left: 0; }
.stat-item-v2:last-child { padding-right: 0; }

.stat-num-v2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #6366f1;
    line-height: 1;
    vertical-align: super;
}

.stat-label-v2 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    margin-top: 8px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* Meta row */
.about-meta-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
}

.meta-item i { color: #6366f1; font-size: 0.9rem; }

/* Footer Row */
.about-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.about-socials-v2 {
    display: flex;
    gap: 20px;
}

.about-socials-v2 a {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.35s ease;
}

.about-socials-v2 a:hover {
    border-color: #6366f1;
    color: #a5b4fc;
    background: rgba(99,102,241,0.1);
    transform: translateY(-3px);
}

.btn-story-v2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 100px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
    box-shadow: 0 8px 30px rgba(99,102,241,0.35);
}

.btn-story-v2:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 50px rgba(99,102,241,0.5);
}

.btn-story-v2 i { transition: transform 0.3s ease; }
.btn-story-v2:hover i { transform: translateX(5px); }

/* --- SCROLL-IN ANIMATIONS --- */
.about-content-v2 > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-section-v2.in-view .about-content-v2 > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.about-section-v2.in-view .about-content-v2 > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.about-section-v2.in-view .about-content-v2 > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.about-section-v2.in-view .about-content-v2 > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
.about-section-v2.in-view .about-content-v2 > *:nth-child(5) { transition-delay: 0.42s; opacity: 1; transform: none; }
.about-section-v2.in-view .about-content-v2 > *:nth-child(6) { transition-delay: 0.50s; opacity: 1; transform: none; }
.about-section-v2.in-view .about-content-v2 > *:nth-child(7) { transition-delay: 0.58s; opacity: 1; transform: none; }
.about-section-v2.in-view .about-content-v2 > *:nth-child(8) { transition-delay: 0.65s; opacity: 1; transform: none; }

.about-img-panel {
    opacity: 0;
    transform: translateX(-40px) rotateY(15deg);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.23,1,0.32,1);
    transform-origin: left center;
}

.about-section-v2.in-view .about-img-panel {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

/* --- LIGHT THEME ABOUT V2 --- */
[data-theme="light"] .about-section-v2 { background: #f4f4f6; }
[data-theme="light"] .about-heading-v2 { color: #0a0a0a; }
[data-theme="light"] .about-heading-v2 span { -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px rgba(0,0,0,0.15); }
[data-theme="light"] .about-opening { color: rgba(0,0,0,0.8); border-left-color: #4f46e5; }
[data-theme="light"] .about-body-v2 { color: rgba(0,0,0,0.5); }
[data-theme="light"] .about-identity-tags span { border-color: rgba(79,70,229,0.2); background: rgba(79,70,229,0.05); color: rgba(0,0,0,0.55); }
[data-theme="light"] .about-identity-tags span:hover { border-color: #4f46e5; color: #4f46e5; }
[data-theme="light"] .about-stats-v2 { border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .stat-num-v2 { color: #0a0a0a; }
[data-theme="light"] .stat-label-v2 { color: rgba(0,0,0,0.35); }
[data-theme="light"] .stat-divider { background: rgba(0,0,0,0.08); }
[data-theme="light"] .meta-item { color: rgba(0,0,0,0.5); }
[data-theme="light"] .meta-item i { color: #4f46e5; }
[data-theme="light"] .about-socials-v2 a { border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.45); }
[data-theme="light"] .about-socials-v2 a:hover { border-color: #4f46e5; color: #4f46e5; background: rgba(79,70,229,0.08); }
[data-theme="light"] .about-img-frame { background: rgba(79,70,229,0.06); border-color: rgba(79,70,229,0.15); box-shadow: 0 40px 100px -20px rgba(0,0,0,0.15); }
[data-theme="light"] .about-img-badge { background: rgba(255,255,255,0.85); border-color: rgba(79,70,229,0.2); color: rgba(0,0,0,0.6); }
[data-theme="light"] .about-line { background: linear-gradient(to right, #4f46e5, transparent); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) { .nav-profile { display: none !important; }
    .about-grid-v2 { grid-template-columns: 1fr; gap: 80px; }
    .about-img-panel { max-width: 380px; margin: 0 auto; }
    .about-heading-v2 { font-size: clamp(3rem, 10vw, 5rem); }
    .stat-item-v2 { padding: 0 20px; }
    .stat-num-v2 { font-size: 2.5rem; }
}

@media (max-width: 640px) {
    .about-stats-v2 { flex-direction: column; gap: 20px; align-items: flex-start; }
    .stat-divider { width: 60px; height: 1px; }
    .about-footer-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   PROOF STRIP � Credibility Badges
   ============================================ */
.proof-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.proof-badge {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(99,102,241,0.15);
    background: rgba(99,102,241,0.04);
    transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
    position: relative;
    overflow: hidden;
}

.proof-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.proof-badge:hover { 
    border-color: rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.12);
}

.proof-badge:hover::before { opacity: 1; }

.proof-badge i {
    font-size: 1.1rem;
    color: #6366f1;
    margin-top: 2px;
    flex-shrink: 0;
    opacity: 0.8;
}

.proof-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.proof-text strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.proof-text span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Light theme proof strip */
[data-theme="light"] .proof-badge {
    border-color: rgba(79,70,229,0.12);
    background: rgba(79,70,229,0.03);
}
[data-theme="light"] .proof-badge:hover {
    border-color: rgba(79,70,229,0.35);
    background: rgba(79,70,229,0.07);
    box-shadow: 0 8px 30px rgba(79,70,229,0.1);
}
[data-theme="light"] .proof-badge i { color: #4f46e5; }
[data-theme="light"] .proof-text strong { color: rgba(0,0,0,0.85); }
[data-theme="light"] .proof-text span { color: rgba(0,0,0,0.4); }

@media (max-width: 640px) {
    .proof-strip { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACT SECTION — SaaS Premium Upgrade
   ============================================ */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33%       { transform: translate(30px, -30px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33%       { transform: translate(-25px, 20px) scale(1.08); }
    66%       { transform: translate(15px, -15px) scale(0.92); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    50%       { transform: translate(20px, 30px) scale(1.1); }
}
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 15px 40px rgba(255,255,255,0.15); }
    50%       { box-shadow: 0 20px 60px rgba(255,255,255,0.25), 0 0 0 4px rgba(255,255,255,0.05); }
}

.contact-v6-wrapper {
    position: relative;
    background: linear-gradient(-45deg, #3730a3, #4f46e5, #6366f1, #312e81, #4338ca);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    color: white;
    padding: 130px 70px;
    border-radius: 64px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 60px 120px -20px rgba(79, 70, 229, 0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
    z-index: 1;
    overflow: hidden;
}

/* Floating orbs */
.contact-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.5;
}
.contact-orb-1 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, #818cf8, transparent 70%);
    top: -80px; left: -80px;
    animation: orbFloat1 12s ease-in-out infinite;
}
.contact-orb-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, #a5b4fc, transparent 70%);
    bottom: -60px; right: -60px;
    animation: orbFloat2 15s ease-in-out infinite;
}
.contact-orb-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, #c7d2fe, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 9s ease-in-out infinite;
}

/* Noise overlay */
.contact-noise {
    position: absolute;
    inset: 0;
    border-radius: 64px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 150px 150px;
}

/* Make all inner content above the orbs */
.contact-v6-wrapper > *:not(.contact-orb):not(.contact-noise) {
    position: relative;
    z-index: 1;
}

.contact-v6-wrapper h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.contact-v6-wrapper > p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 460px;
    margin: 0 auto 60px;
    line-height: 1.7;
    font-weight: 400;
}

.contact-form-v6 {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form-v6 input,
.contact-form-v6 textarea {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 16px rgba(0,0,0,0.1);
    padding: 22px 28px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}

.contact-form-v6 input::placeholder,
.contact-form-v6 textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form-v6 input:hover,
.contact-form-v6 textarea:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.09);
}

.contact-form-v6 input:focus,
.contact-form-v6 textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 24px rgba(0,0,0,0.12);
}

.contact-form-v6 textarea {
    min-height: 160px;
    resize: none;
}

#submit-btn-v6 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255,255,255,0.96);
    color: #4338ca;
    padding: 22px 40px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: none;
    margin-top: 6px;
    animation: btnPulse 4s ease-in-out infinite;
    font-family: var(--font-heading);
}

#submit-btn-v6 i {
    transition: transform 0.3s ease;
}

#submit-btn-v6:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2), 0 0 40px rgba(255,255,255,0.2);
    background: #fff;
    color: #4f46e5;
}

#submit-btn-v6:hover i {
    transform: translateX(4px);
}

#submit-btn-v6:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.1s ease;
}

.contact-links-v6 {
    margin-top: 56px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.c-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.c-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255,255,255,0.6);
    transition: width 0.3s ease;
}

.c-link:hover {
    color: rgba(255,255,255,0.9);
    transform: translateY(-1px);
}

.c-link:hover::after {
    width: 100%;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .contact-v6-wrapper { padding: 80px 30px; border-radius: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-links-v6 { gap: 24px; }
}

/* --- EXPERIENCE TIMELINE --- */
.exp-section-v6 { padding: 120px 0; background: var(--bg); position: relative; }

.timeline-v6 {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    padding-left: 50px;
}

.timeline-line-v6 {
    position: absolute;
    left: 7px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-progress-v6 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    transition: height 0.1s linear;
}

.timeline-item-v6 {
    position: relative;
    margin-bottom: 60px;
}

.timeline-marker-v6 {
    position: absolute;
    left: -50px;
    top: 10px;
    width: 16px;
    height: 16px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.timeline-item-v6:hover .timeline-marker-v6 {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
    transform: scale(1.2);
}

.exp-card-v6 {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.exp-card-v6::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.exp-card-v6:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3);
}

.exp-card-v6:hover::before { opacity: 1; }

.exp-header-v6 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.exp-date-v6 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.role-group {
    text-align: right;
}

.exp-role-v6 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1;
}

.exp-role-v6.founder {
    color: #fff;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.exp-company-v6 {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.7;
    margin-top: 5px;
}

.exp-desc-v6 {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.5;
    max-width: 600px;
}

[data-theme="light"] .exp-role-v6.founder { color: #000; text-shadow: none; }
[data-theme="light"] .exp-card-v6:hover { background: rgba(79, 70, 229, 0.02); }

@media (max-width: 768px) { .about-img-panel { display: none !important; }
    .timeline-v6 { padding-left: 30px; }
    .exp-header-v6 { flex-direction: column; align-items: flex-start; gap: 10px; }
    .role-group { text-align: left; }
    .exp-role-v6 { font-size: 1.5rem; }
}
.exp-link-v6 { position: relative; z-index: 2;
    display: inline-block;
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
}
.exp-link-v6:hover {
    letter-spacing: 0.15em;
    opacity: 0.8;
}

/* --- PREMIUM THEME TOGGLE --- */
.nav-actions { display: flex; align-items: center; gap: 15px; }

.theme-btn-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-btn-nav:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px) rotate(8deg);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.theme-btn-nav i {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-btn-nav:hover i {
    transform: scale(1.2);
}

.theme-btn-nav:active {
    transform: translateY(0) scale(0.92);
}

[data-theme="light"] .theme-btn-nav {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

/* --- MOBILE ALIGNMENT & SHOWCASE FIXES --- */
@media (max-width: 768px) { .about-img-panel { display: none !important; }
    /* About Stats: Compact Grid */
    .about-stats-v2 { 
        display: grid !important; 
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        text-align: center !important;
        padding: 30px 0 !important;
        margin-bottom: 25px !important;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .stat-item-v2 { align-items: center !important; }
    .stat-num-v2 { font-size: 1.8rem !important; line-height: 1 !important; }
    .stat-suffix { font-size: 1.2rem !important; }
    .stat-label-v2 { font-size: 0.65rem !important; line-height: 1.3 !important; margin-top: 5px !important; }
    .stat-divider { display: none !important; }

    /* Identity Tags: Centered & Wrapped */
    .about-identity-tags { 
        display: flex !important; 
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-bottom: 35px !important;
        width: 100% !important;
    }
    .about-identity-tags span { 
        padding: 6px 14px !important; 
        font-size: 0.65rem !important; 
    }

    /* About Footer: Stacked & Centered */
    .about-footer-row { 
        flex-direction: column !important; 
        align-items: center !important; 
        gap: 25px !important; 
        width: 100% !important;
    }
    .about-socials-v2 { justify-content: center !important; gap: 20px !important; margin-bottom: 0 !important; }
    .btn-story-v2 { width: auto !important; min-width: 200px; text-align: center; }

    /* Project Gallery: Full Width Cards */
    .project-gallery-v6 { 
        grid-template-columns: 1fr !important; 
        gap: 35px !important;
        padding: 0 10px !important;
    }
    .project-card-v6 { 
        max-width: 480px !important; 
        margin: 0 auto !important; 
    }
    .p-details { 
        padding: 30px 20px !important; 
        text-align: center !important; 
    }
    .p-tags { justify-content: center !important; }
    .p-impact { text-align: center !important; font-size: 1rem !important; }
    .p-details h3 { font-size: 2.2rem !important; text-align: center !important; }
}

@media (max-width: 480px) {
    .about-stats-v2 { 
        grid-template-columns: 1fr 1fr !important; 
        gap: 20px !important; 
    }
    .about-stats-v2 .stat-item-v2:last-child { grid-column: span 2; }
    .hero-name-v5 { font-size: 3.2rem !important; }
    .nav-pill { top: 15px !important; padding: 10px !important; }
}
