/* ────────────────────────────────────────
   BASE / RESET
──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #080810;
    --bg2:       #0d0d1a;
    --surface:   rgba(255,255,255,0.04);
    --border:    rgba(255,255,255,0.08);
    --border-h:  rgba(124,58,237,0.5);
    --accent:    #7c3aed;
    --accent2:   #06b6d4;
    --text:      #f1f5f9;
    --muted:     #94a3b8;
    --muted2:    #475569;
    --radius:    16px;
    --radius-sm: 10px;
    --nav-h:     68px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}

@media (hover: none) {
    body { cursor: auto; }
    .cursor, .cursor-follower { display: none; }
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ────────────────────────────────────────
   NOISE TEXTURE
──────────────────────────────────────── */
.noise {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ────────────────────────────────────────
   CUSTOM CURSOR
──────────────────────────────────────── */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%,-50%);
    transition: transform 0.1s, background 0.2s;
}
.cursor-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(124,58,237,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%,-50%);
    transition: transform 0.15s ease, width 0.2s, height 0.2s, border-color 0.2s;
}
.cursor.cursor-hover { background: var(--accent); transform: translate(-50%,-50%) scale(2); }
.cursor-follower.cursor-hover { width: 48px; height: 48px; border-color: rgba(124,58,237,0.8); }

/* ────────────────────────────────────────
   NAVIGATION
──────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 900;
    transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(8,8,16,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;
}
.logo-bracket { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--accent2);
    transition: width 0.25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border: 1px solid var(--border-h);
    border-radius: 100px;
    color: var(--text);
    background: rgba(124,58,237,0.1);
    transition: all 0.2s;
}
.nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(13,13,26,0.97);
    backdrop-filter: blur(20px);
    z-index: 950;
    padding: 80px 36px 40px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-drawer.open { right: 0; }
.drawer-close {
    position: absolute;
    top: 20px; right: 24px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 22px;
    transition: color 0.2s;
}
.drawer-close:hover { color: var(--text); }
.drawer-links { display: flex; flex-direction: column; gap: 28px; }
.drawer-link {
    font-size: 22px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s;
}
.drawer-link:hover { color: var(--text); }
.drawer-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 24px;
    border: 1px solid var(--border-h);
    border-radius: 100px;
    font-size: 16px;
    color: var(--text);
    background: rgba(124,58,237,0.1);
    text-align: center;
    transition: all 0.2s;
}
.drawer-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    z-index: 940;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

/* ────────────────────────────────────────
   SHARED / UTILITIES
──────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}
.section-alt { background: var(--bg2); }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent2);
    margin-bottom: 14px;
    font-family: 'JetBrains Mono', monospace;
}
.section-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ────────────────────────────────────────
   HERO
──────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 40px) 24px 80px;
    overflow: hidden;
}

/* Animated orbs */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orb-drift 14s ease-in-out infinite alternate;
}
.orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #7c3aed, transparent 70%);
    top: -100px; right: -80px;
    animation-duration: 12s;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    bottom: -60px; left: -60px;
    animation-duration: 16s;
    animation-delay: -5s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #a855f7, transparent 70%);
    top: 40%; left: 40%;
    animation-duration: 20s;
    animation-delay: -8s;
}
@keyframes orb-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    background: var(--surface);
    animation: fadeSlideUp 0.7s ease 0.1s both;
}
.badge-dot {
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 8px #22c55e; }
    50%      { box-shadow: 0 0 16px #22c55e; }
}

.hero-hi {
    display: block;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 8px;
    animation: fadeSlideUp 0.7s ease 0.25s both;
}
.hero-main {
    display: block;
    font-size: clamp(56px, 10vw, 100px);
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSlideUp 0.7s ease 0.35s both;
}

.hero-roles {
    display: flex;
    align-items: center;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 500;
    color: var(--muted);
    margin: 20px 0;
    animation: fadeSlideUp 0.7s ease 0.45s both;
}
.role-static { color: var(--muted2); }
.role-typed {
    color: var(--accent2);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    min-width: 260px;
}
.role-cursor {
    color: var(--accent2);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:0 } }

.hero-bio {
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.8;
    color: var(--muted);
    max-width: 620px;
    margin-bottom: 40px;
    animation: fadeSlideUp 0.7s ease 0.55s both;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeSlideUp 0.7s ease 0.65s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s;
    cursor: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    color: white;
    box-shadow: 0 4px 30px rgba(124,58,237,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(124,58,237,0.5); }
.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--surface);
}
.btn-outline:hover { border-color: var(--border-h); background: rgba(124,58,237,0.08); }

.hero-socials {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.7s ease 0.75s both;
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted2);
    transition: color 0.2s;
}
.social-link:hover { color: var(--text); }

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--muted2);
    text-transform: uppercase;
    animation: fadeSlideUp 1s ease 1.2s both;
}
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--muted2));
    animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* ────────────────────────────────────────
   SKILLS
──────────────────────────────────────── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.3s, transform 0.3s;
}
.skill-group:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
}

.skill-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.skill-group-icon { font-size: 22px; }
.skill-group-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

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

.stag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--muted);
    transition: all 0.2s;
}
.stag:hover {
    background: rgba(124,58,237,0.12);
    border-color: rgba(124,58,237,0.35);
    color: var(--text);
}
.stag i { font-size: 14px; }

/* ────────────────────────────────────────
   PROJECTS
──────────────────────────────────────── */
.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
    padding: 48px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}
.project-card:last-child { margin-bottom: 0; }
.project-card:hover { border-color: rgba(124,58,237,0.3); }

.project-card-reverse {
    direction: rtl;
}
.project-card-reverse > * { direction: ltr; }

/* Project Visual */
.project-visual {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
}
.project-glow {
    position: absolute;
    inset: -40px;
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}
.carbonwise-visual .project-glow  { background: radial-gradient(#06b6d4, transparent 70%); }
.bestbliss-visual .project-glow   { background: radial-gradient(#a855f7, transparent 70%); }
.edumetrics-visual .project-glow  { background: radial-gradient(#7c3aed, transparent 70%); }

.carbonwise-visual { background: linear-gradient(135deg, #021a0e, #053d1f, #095c33); }
.bestbliss-visual  { background: #000; }
.edumetrics-visual { background: linear-gradient(135deg, #0d0521, #1a0a44, #2a1070); }

.project-screenshot {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Mockup widget inside project visual */
.project-mockup {
    position: relative;
    z-index: 1;
    width: 85%;
    margin: auto;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}
.mockup-header {
    background: rgba(255,255,255,0.06);
    padding: 8px 14px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.mockup-body { padding: 20px; }
.mock-label {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    margin-top: 12px;
    font-family: 'JetBrains Mono', monospace;
}

/* Chart mockup */
.mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}
.bar-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
}
.bar-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
    animation: bar-grow 1.2s ease-out both;
}
@keyframes bar-grow {
    from { height: 0 !important; }
}

/* Table mockup */
.mock-rows { display: flex; flex-direction: column; gap: 7px; }
.mock-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
}
.mock-name {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
}
.mock-score {
    width: 40px;
    height: 8px;
    border-radius: 100px;
}
.mock-score.high   { background: linear-gradient(to right,#22c55e,#16a34a); }
.mock-score.med    { background: linear-gradient(to right,#f59e0b,#d97706); }
.mock-score.low    { background: linear-gradient(to right,#ef4444,#dc2626); }

/* Project Info */
.project-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.project-num {
    font-size: 13px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--muted2);
}
.project-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.project-badge.hackathon {
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.3);
    color: #fbbf24;
}
.project-badge.ai {
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.3);
    color: #06b6d4;
}

.project-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 6px;
}
.project-subtitle {
    font-size: 14px;
    color: var(--accent2);
    font-weight: 500;
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
}
.project-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 20px;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.tech-pill {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.25);
    color: #a78bfa;
}
.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    color: white;
    transition: all 0.2s;
    box-shadow: 0 2px 20px rgba(124,58,237,0.25);
}
.project-link-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 30px rgba(124,58,237,0.4); }
.project-link-ghost {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
}
.project-link-ghost:hover { border-color: var(--border-h); box-shadow: none; }

/* ────────────────────────────────────────
   CERTIFICATES
──────────────────────────────────────── */
.cert-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.cfbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    transition: all 0.2s;
}
.cfbtn:hover, .cfbtn.active {
    background: rgba(124,58,237,0.15);
    border-color: var(--border-h);
    color: var(--text);
}
.cf-count {
    font-size: 11px;
    background: rgba(255,255,255,0.08);
    padding: 1px 7px;
    border-radius: 100px;
    color: var(--muted2);
}
.cfbtn.active .cf-count {
    background: rgba(124,58,237,0.2);
    color: #a78bfa;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cert-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.cert-card:hover {
    border-color: rgba(124,58,237,0.5);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(124,58,237,0.2);
}
.cert-card.hidden { display: none; }

.cert-card-img {
    position: relative;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cert-card-img.has-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cert-big-text {
    font-size: 20px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
}
.cert-overlay-text {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: transparent;
    transition: all 0.2s;
}
.cert-card:hover .cert-overlay-text {
    background: rgba(0,0,0,0.5);
    color: white;
}

.microsoft-grad { background: linear-gradient(135deg, #0d1f40, #0078d4 80%); }
.nec-grad       { background: linear-gradient(135deg, #1a0505, #8b1a1a); }
.intel-grad     { background: linear-gradient(135deg, #001533, #0071c5); }
.gdg-grad       { background: linear-gradient(135deg, #1a0a05, #c0392b 60%, #e67e22); }
.iitbhu-grad    { background: linear-gradient(135deg, #080818, #1a1a5a); }
.eco-grad       { background: linear-gradient(135deg, #051a05, #1a5a1a); }

.cert-card-body { padding: 14px 16px; }
.cert-issuer-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent2);
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
}
.cert-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px;
}
.cert-date {
    font-size: 11px;
    color: var(--muted2);
}
.cert-img-hint {
    font-size: 10px;
    color: rgba(6,182,212,0.5);
    margin-top: 5px;
    font-style: italic;
}

/* Certificate Modal */
.cmodal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.cmodal.open { display: flex; }
.cmodal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(6px);
}
.cmodal-box {
    position: relative;
    z-index: 1;
    background: var(--bg2);
    border: 1px solid rgba(124,58,237,0.4);
    border-radius: 24px;
    padding: 36px;
    max-width: 640px;
    width: 92%;
    box-shadow: 0 24px 80px rgba(124,58,237,0.25);
    animation: modalPop 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalPop {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.cmodal-close {
    position: absolute;
    top: 18px; right: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--muted);
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.cmodal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.cmodal-meta { margin-bottom: 24px; }
.cmodal-issuer {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent2);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
}
.cmodal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.cmodal-date { font-size: 13px; color: var(--muted2); }
.cmodal-img { display: none; }
.cmodal-img.show { display: block; }
.cmodal-img img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.cmodal-noimg { display: none; text-align: center; padding: 40px 20px; }
.cmodal-noimg.show { display: block; }
.noimg-icon { font-size: 48px; margin-bottom: 16px; }
.cmodal-noimg p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.noimg-hint { font-size: 12px; color: rgba(6,182,212,0.6); }
.noimg-hint code {
    background: rgba(6,182,212,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

/* ────────────────────────────────────────
   EXPERIENCE & EDUCATION
──────────────────────────────────────── */
.exp-edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.col-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 32px;
}

.timeline { position: relative; padding-left: 24px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}
.timeline-dot {
    position: absolute;
    left: -28px; top: 6px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(124,58,237,0.6);
    border: 2px solid var(--bg2);
}
.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: border-color 0.3s;
}
.timeline-content:hover { border-color: var(--border-h); }

.tl-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.tl-period {
    font-size: 11px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--muted2);
}
.tl-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 100px;
}
.tl-badge.ongoing {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22c55e;
}
.tl-role {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.tl-org {
    font-size: 13px;
    color: var(--accent2);
    margin-bottom: 12px;
}
.tl-points {
    list-style: disc;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}
.tl-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    color: var(--accent2);
    font-weight: 600;
    transition: opacity 0.2s;
}
.tl-link:hover { opacity: 0.7; }
.tl-score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}
.score-chip {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(168,85,247,0.15));
    border: 1px solid rgba(124,58,237,0.35);
    color: #a78bfa;
    font-family: 'JetBrains Mono', monospace;
}

.strengths-section { margin-top: 12px; }
.strengths-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted2);
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
}
.strengths-list { display: flex; flex-direction: column; gap: 12px; }
.strength-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}
.strength-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ────────────────────────────────────────
   CONTACT
──────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-intro {
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 36px;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted2);
    margin-bottom: 3px;
    font-family: 'JetBrains Mono', monospace;
}
.contact-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.profile-links { display: flex; flex-direction: column; gap: 14px; }
.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s;
    cursor: pointer;
}
.profile-card:hover {
    border-color: var(--border-h);
    background: rgba(124,58,237,0.06);
    transform: translateX(4px);
}
.profile-card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}
.linkedin-icon { background: rgba(10,102,194,0.2); color: #0a66c2; }
.github-icon   { background: rgba(255,255,255,0.06); color: var(--text); }
.lc-icon       { background: rgba(255,161,22,0.15); color: #ffa116; }
.gssoc-icon    { background: rgba(255,105,180,0.12); }

.profile-card-info { flex: 1; }
.profile-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.profile-card-handle {
    font-size: 12px;
    color: var(--muted2);
    font-family: 'JetBrains Mono', monospace;
}
.profile-card-arrow {
    color: var(--muted2);
    font-size: 16px;
    transition: transform 0.2s, color 0.2s;
}
.profile-card:hover .profile-card-arrow { transform: translateX(4px); color: var(--text); }

/* ────────────────────────────────────────
   FOOTER
──────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo {
    font-size: 16px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
.footer-copy { font-size: 13px; color: var(--muted2); }
.footer-back {
    font-size: 13px;
    color: var(--muted2);
    transition: color 0.2s;
}
.footer-back:hover { color: var(--text); }

/* ────────────────────────────────────────
   RESPONSIVE — TABLET (≤1024px)
──────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }

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

    .project-card {
        grid-template-columns: 1fr;
        direction: ltr;
        padding: 36px;
        gap: 32px;
        margin-bottom: 60px;
    }
    .project-card-reverse { direction: ltr; }

    .certs-grid { grid-template-columns: repeat(3, 1fr); }

    .exp-edu-grid { grid-template-columns: 1fr; gap: 48px; }

    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ────────────────────────────────────────
   RESPONSIVE — MOBILE (≤640px)
──────────────────────────────────────── */
@media (max-width: 640px) {
    .section { padding: 70px 0; }

    .hero { padding: calc(var(--nav-h) + 24px) 20px 60px; }

    .hero-main {
        letter-spacing: -2px;
    }

    .hero-btns { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }

    .hero-socials { gap: 14px; }

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

    .project-card { padding: 24px; gap: 24px; }
    .project-title { font-size: 26px; }

    .certs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    .section-title { letter-spacing: -1px; }

    .nav { padding: 0 20px; }

    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 380px) {
    .certs-grid { grid-template-columns: 1fr; }
    .hero-socials { flex-direction: column; align-items: flex-start; }
}
