/* ============================================================
   MUHAMMAD ASIF UMAR — AI ENGINEER PORTFOLIO
   ============================================================ */
:root {
    --bg: #0b1120;
    --bg-alt: #0f172a;
    --card: #151f38;
    --card-hover: #1a2745;
    --primary: #6366f1;
    --primary-2: #8b5cf6;
    --accent: #22d3ee;
    --success: #34d399;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.15);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #22d3ee);
    --gradient-text: linear-gradient(90deg, #818cf8, #22d3ee);
    --nav-h: 70px;
    --radius: 16px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 10px); }
body { background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-2); }

/* ---------- Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section { padding: 6rem 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-label {
    display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 3px;
    text-transform: uppercase; color: var(--accent);
    background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25);
    padding: 0.4rem 1.2rem; border-radius: 50px; margin-bottom: 1rem;
}
.section-head h2 { font-size: 2.5rem; font-weight: 800; }
.section-head h2::after {
    content: ''; display: block; width: 70px; height: 4px;
    margin: 0.9rem auto 0; border-radius: 2px; background: var(--gradient);
}

.btn {
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.8rem;
    border-radius: 50px; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background: var(--gradient); background-size: 200% auto; color: #fff; box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35); }
.btn-primary:hover { background-position: right center; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ---------- Preloader ---------- */
.preloader {
    position: fixed; inset: 0; background: var(--bg); display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 1.2rem; z-index: 99999; transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
    width: 60px; height: 60px; border: 4px solid var(--border);
    border-top-color: var(--primary); border-right-color: var(--accent);
    border-radius: 50%; animation: spin 1s linear infinite;
}
.preloader p { color: var(--muted); letter-spacing: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll Progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--gradient); z-index: 10000; transition: width 0.1s linear; }

/* ---------- Navbar ---------- */
nav {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
    background: rgba(11, 17, 32, 0.75); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    z-index: 9999; transition: var(--transition);
}
nav.scrolled { background: rgba(11, 17, 32, 0.95); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }
.nav-content { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.logo a { font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: 0.5px; }
.nav-links { display: flex; list-style: none; gap: 0.4rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500; padding: 0.5rem 0.9rem; border-radius: 10px; transition: var(--transition); }
.nav-links a:hover { color: #fff; background: rgba(99, 102, 241, 0.15); }
.nav-links a.active { color: #fff; background: linear-gradient(135deg, rgba(99,102,241,.3), rgba(139,92,246,.3)); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.4); }

.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 10001; }
.menu-btn span { width: 26px; height: 3px; border-radius: 3px; background: #fff; transition: var(--transition); }
.menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: calc(var(--nav-h) + 3rem) 0 4rem; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 14s ease-in-out infinite alternate; }
.orb-1 { width: 400px; height: 400px; background: rgba(99, 102, 241, 0.35); top: -100px; left: -100px; }
.orb-2 { width: 350px; height: 350px; background: rgba(34, 211, 238, 0.25); bottom: -80px; right: -60px; animation-delay: -4s; }
.orb-3 { width: 250px; height: 250px; background: rgba(139, 92, 246, 0.3); top: 40%; left: 55%; animation-delay: -8s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(50px,-40px) scale(1.15); } }

.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 3rem; position: relative; z-index: 2; }
.hero-greeting { font-size: 1.1rem; color: var(--accent); font-weight: 600; margin-bottom: 0.6rem; }
.wave { display: inline-block; animation: wave 2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(16deg); } 20%,40% { transform: rotate(-8deg); } }
.hero-text h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900; line-height: 1.15; margin-bottom: 0.8rem; }
.typed-wrap { font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 600; color: var(--muted); min-height: 2.4rem; margin-bottom: 1.2rem; font-family: 'JetBrains Mono', monospace; }
.type-cursor { color: var(--accent); animation: blink 0.8s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-tagline { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin-bottom: 2rem; }
.hero-tagline strong { color: var(--text); }
.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-socials { display: flex; gap: 0.8rem; }
.hero-socials a {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.04);
    border: 1px solid var(--border); font-size: 1.1rem; transition: var(--transition);
}
.hero-socials a:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-4px); }

.hero-visual { display: flex; justify-content: center; position: relative; }
.profile-pic {
    width: 320px; height: 320px; border-radius: 50%; position: relative; padding: 6px;
    background: conic-gradient(from 0deg, #6366f1, #22d3ee, #8b5cf6, #6366f1);
    animation: rotateRing 6s linear infinite;
}
@keyframes rotateRing { to { transform: rotate(360deg); } }
.profile-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid var(--bg); animation: rotateRing 6s linear infinite reverse; }
.floating-badge {
    position: absolute; display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1rem; background: rgba(21, 31, 56, 0.9);
    border: 1px solid var(--border); border-radius: 50px; font-size: 0.85rem;
    font-weight: 600; backdrop-filter: blur(8px); box-shadow: var(--shadow);
    animation: float 4s ease-in-out infinite;
}
.badge-1 { top: 8%; right: 2%; color: #a5b4fc; }
.badge-2 { bottom: 18%; left: 0; color: #6ee7b7; animation-delay: -1.3s; }
.badge-3 { bottom: -2%; right: 10%; color: #67e8f9; animation-delay: -2.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 1.3rem; animation: bounceDown 2s infinite; z-index: 2; }
@keyframes bounceDown { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,10px); } }

/* ---------- About ---------- */
.about-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3.5rem; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.05rem; }
.about-text strong { color: var(--text); }
.about-text h3 { margin: 1.8rem 0 1rem; font-size: 1.2rem; }
.about-text h3 i { color: var(--accent); margin-right: 0.5rem; }
.focus-areas { list-style: none; }
.focus-areas li { margin: 0.6rem 0; display: flex; align-items: baseline; gap: 0.6rem; color: var(--muted); }
.focus-areas i { color: var(--success); font-size: 0.85rem; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.stat-item {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem 1rem; text-align: center; transition: var(--transition);
}
.stat-item:hover { transform: translateY(-6px); border-color: rgba(99,102,241,.5); box-shadow: 0 15px 40px rgba(99,102,241,.15); }
.stat-number { display: block; font-size: 2.6rem; font-weight: 800; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--muted); font-size: 0.9rem; font-weight: 500; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 3.5rem; }
.skill-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; transition: var(--transition); }
.skill-card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.5); box-shadow: 0 15px 40px rgba(139,92,246,.15); }
.skill-card > i { font-size: 2rem; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.8rem; display: inline-block; }
.skill-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips span { font-size: 0.78rem; padding: 0.35rem 0.8rem; border-radius: 50px; background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25); color: #c7d2fe; transition: var(--transition); }
.chips span:hover { background: var(--primary); color: #fff; transform: scale(1.05); }

.proficiency { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; }
.prof-title { margin-bottom: 1.8rem; font-size: 1.3rem; }
.bars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem; }
.bar-head { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }
.bar-head span:last-child { color: var(--accent); }
.skill-progress { height: 8px; background: rgba(148,163,184,.15); border-radius: 10px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: 10px; background: var(--gradient); transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 2px; background: linear-gradient(to bottom, var(--primary), var(--accent)); }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot { position: absolute; left: -2rem; top: 6px; width: 16px; height: 16px; transform: translateX(-7px); background: var(--primary); border: 3px solid var(--bg); border-radius: 50%; box-shadow: 0 0 0 4px rgba(99,102,241,.25); }
.timeline-content { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; transition: var(--transition); }
.timeline-content:hover { transform: translateX(6px); border-color: rgba(34,211,238,.4); }
.timeline-date { display: inline-block; font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 0.5rem; }
.timeline-content h3 { font-size: 1.25rem; color: #fff; }
.timeline-content h4 { color: var(--muted); font-weight: 500; font-size: 0.95rem; margin-bottom: 0.8rem; }
.timeline-content ul { list-style: none; margin-top: 0.5rem; }
.timeline-content li { color: var(--muted); font-size: 0.95rem; margin: 0.4rem 0; padding-left: 1.2rem; position: relative; }
.timeline-content li::before { content: '▹'; position: absolute; left: 0; color: var(--accent); }

/* ---------- Projects ---------- */
.project-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.8rem; }
.filter-btn { padding: 0.55rem 1.4rem; border-radius: 50px; background: transparent; color: var(--muted); border: 1px solid var(--border); cursor: pointer; font-size: 0.88rem; font-weight: 600; transition: var(--transition); }
.filter-btn:hover { color: #fff; border-color: var(--primary); }
.filter-btn.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(99,102,241,.35); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.8rem; }
.project-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.45); border-color: rgba(99,102,241,.5); }
.project-card.hide { display: none; }

.project-top { height: 175px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.project-card[data-category="llm"] .project-top { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.project-card[data-category="speech"] .project-top { background: linear-gradient(135deg, #dc2626, #f97316); }
.project-card[data-category="cv"] .project-top { background: linear-gradient(135deg, #059669, #14b8a6); }
.project-card[data-category="fullstack"] .project-top { background: linear-gradient(135deg, #d97706, #ec4899); }
.project-card[data-category="backend"] .project-top { background: linear-gradient(135deg, #0284c7, #06b6d4); }

.project-badge {
    position: absolute; top: 12px; right: 12px; z-index: 3; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 1px; padding: 0.3rem 0.8rem; border-radius: 50px;
    background: rgba(0,0,0,.35); backdrop-filter: blur(4px); color: #fff;
}
.fyp-ribbon {
    position: absolute; top: 12px; left: 12px; z-index: 3; font-size: 0.68rem; font-weight: 800;
    letter-spacing: 1px; padding: 0.32rem 0.75rem; border-radius: 50px;
    background: #fbbf24; color: #78350f; box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.fyp-ribbon i { margin-right: 3px; }

/* ----- Visual 1: Rescue 1122 map ----- */
.mock-map {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 34px 34px;
}
.rescue-route { position: absolute; top: 58%; left: 8%; width: 46%; border-top: 3px dashed rgba(255,255,255,.85); transform: rotate(-12deg); }
.rescue-pin { position: absolute; top: 38%; left: 58%; width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 100% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
.rescue-unit {
    position: absolute; bottom: 14px; left: 14px; z-index: 2; display: flex; align-items: center; gap: 8px;
    background: rgba(2,6,23,.6); border: 1px solid rgba(255,255,255,.2); color: #fff;
    font-size: 0.72rem; font-weight: 600; padding: 0.4rem 0.7rem; border-radius: 10px; backdrop-filter: blur(4px);
}

/* ----- Visual 2: RAG chat ----- */
.mock-chat { width: 88%; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 90%; padding: 0.5rem 0.8rem; font-size: 0.74rem; line-height: 1.45; border-radius: 12px; }
.bubble.user { align-self: flex-end; background: rgba(255,255,255,.28); color: #fff; border-bottom-right-radius: 3px; }
.bubble.ai { align-self: flex-start; background: rgba(255,255,255,.95); color: #1e293b; border-bottom-left-radius: 3px; }
.cite { display: inline-block; margin-top: 0.3rem; font-size: 0.62rem; font-weight: 700; background: #e0e7ff; color: #4338ca; padding: 0.15rem 0.55rem; border-radius: 8px; }

/* ----- Visual 3: Voice agent ----- */
.mock-voice { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mic-btn {
    width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.95);
    display: flex; align-items: center; justify-content: center; color: #7c3aed;
    font-size: 1.1rem; animation: micPulse 1.8s infinite;
}
@keyframes micPulse { 0%,100% { box-shadow: 0 0 0 6px rgba(255,255,255,.18); } 50% { box-shadow: 0 0 0 14px rgba(255,255,255,.05); } }
.mock-wave { display: flex; align-items: center; gap: 4px; height: 42px; }
.mock-wave span { width: 5px; height: 100%; border-radius: 3px; background: rgba(255,255,255,.9); animation: wavebar 1.1s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes wavebar { 0%,100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.voice-chip { font-size: 0.68rem; font-weight: 700; color: #fff; background: rgba(2,6,23,.45); border: 1px solid rgba(255,255,255,.25); padding: 0.3rem 0.7rem; border-radius: 50px; }

/* ----- Visual 4: Weed detection ----- */
.mock-field { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 2px, transparent 2.5px); background-size: 26px 22px; }
.bbox { position: absolute; border: 2.5px solid #4ade80; border-radius: 4px; z-index: 2; }
.bbox span { position: absolute; top: -20px; left: -2px; font-size: 0.6rem; font-weight: 800; background: #4ade80; color: #052e16; padding: 0.1rem 0.4rem; border-radius: 3px; white-space: nowrap; }
.bbox.weed { border-color: #f87171; }
.bbox.weed span { background: #f87171; color: #450a0a; }

/* ----- Visual 5: Biometric scan ----- */
.mock-bio { display: flex; align-items: center; gap: 18px; }
.scan-frame { width: 84px; height: 84px; position: relative; display: flex; align-items: center; justify-content: center; }
.scan-frame .face { font-size: 2rem; color: rgba(255,255,255,.95); }
.corner { position: absolute; width: 16px; height: 16px; border: 3px solid #fff; }
.c-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.c-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.c-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.c-br { bottom: 0; right: 0; border-left: none; border-top: none; }
.scan-line { position: absolute; left: 4px; right: 4px; height: 2px; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: scanmove 2s ease-in-out infinite alternate; }
@keyframes scanmove { from { top: 6px; } to { top: calc(100% - 8px); } }
.finger i { font-size: 1.9rem; color: rgba(255,255,255,.9); }
.grant-chip { position: absolute; bottom: 14px; right: 14px; z-index: 2; font-size: 0.68rem; font-weight: 800; background: rgba(74,222,128,.95); color: #052e16; padding: 0.3rem 0.7rem; border-radius: 8px; }

/* ----- Visual 6: SolarCo shop ----- */
.mock-shop { display: flex; gap: 12px; }
.shop-item { background: rgba(255,255,255,.94); border-radius: 12px; padding: 0.55rem; width: 78px; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.shop-item .thumb { height: 36px; border-radius: 8px; background: linear-gradient(135deg, #fbbf24, #f59e0b); display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 0.35rem; }
.shop-item h5 { font-size: 0.62rem; color: #334155; font-weight: 700; }
.shop-item .price { font-size: 0.66rem; font-weight: 800; color: #d97706; }

/* ----- Visual 7: FastAPI terminal ----- */
.mock-code {
    width: 88%; background: rgba(2,6,23,.55); border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px; padding: 0.8rem 0.9rem; text-align: left;
    font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; line-height: 1.8; color: #e2e8f0;
}
.mock-code .kw { color: #c084fc; }
.mock-code .fn { color: #fde047; }
.mock-code .str { color: #86efac; }
.mock-code .ok { color: #4ade80; font-weight: 700; }

.project-body { padding: 1.5rem; }
.project-body h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: #fff; }
.project-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; min-height: 88px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.project-tags span { font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 50px; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.25); color: #67e8f9; }
.project-links { display: flex; gap: 1.2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.project-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 600; transition: var(--transition); }
.project-links a:hover { color: var(--accent); }
.project-links a i { margin-right: 4px; }

/* ---------- Education / Research / Awards ---------- */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.edu-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.col-title { font-size: 1.2rem; margin-bottom: 1.3rem; }
.col-title i { color: var(--accent); margin-right: 0.5rem; }
.edu-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; transition: var(--transition); }
.edu-card:hover { border-color: rgba(99,102,241,.5); transform: translateY(-4px); }
.edu-card h4 { font-size: 1.1rem; color: #fff; }
.edu-place { color: var(--accent); font-weight: 600; font-size: 0.92rem; margin: 0.2rem 0 0.4rem; }
.edu-card .timeline-date { display: block; margin-bottom: 0.6rem; }
.edu-card p:last-child { color: var(--muted); font-size: 0.92rem; }
.cert-list { list-style: none; }
.cert-list li {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    padding: 0.9rem 1.2rem; margin-bottom: 0.8rem; display: flex; align-items: center;
    gap: 0.8rem; font-size: 0.95rem; transition: var(--transition);
}
.cert-list li:hover { transform: translateX(8px); border-color: rgba(52,211,153,.5); }
.cert-list i { color: #fbbf24; }
.edu-col .cert-list li { font-size: 0.86rem; align-items: flex-start; padding: 0.8rem 1rem; }
.edu-col .cert-list i { margin-top: 0.25rem; flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact-content { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
.availability {
    display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 600;
    color: var(--success); background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.3);
    padding: 0.55rem 1.2rem; border-radius: 50px; margin-bottom: 1.8rem;
}
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.contact-info { display: grid; gap: 1.2rem; align-content: start; }
.contact-item { display: flex; align-items: center; gap: 1.1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.4rem; transition: var(--transition); }
.contact-item:hover { border-color: rgba(99,102,241,.5); transform: translateX(6px); }
.contact-item > i { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.15rem; background: rgba(99,102,241,.12); color: var(--accent); }
.contact-item h4 { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.contact-item a, .contact-item p { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.contact-item a:hover { color: var(--accent); }

.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 0.95rem 1.2rem; background: var(--bg); border: 1px solid var(--border);
    border-radius: 12px; color: var(--text); font-size: 0.95rem; outline: none;
    transition: var(--transition); resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.contact-form textarea { min-height: 140px; }
.submit-btn { justify-content: center; width: 100%; }
.form-status { text-align: center; font-size: 0.9rem; font-weight: 600; min-height: 1.2rem; }
.form-status.success { color: var(--success); }
.form-status.error { color: #f87171; }

/* ---------- Footer ---------- */
footer { background: #080d1a; border-top: 1px solid var(--border); padding: 3.5rem 0 0; }
.footer-content { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; align-items: start; padding-bottom: 2.5rem; }
.footer-brand .logo { font-size: 1.4rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-links { list-style: none; display: grid; gap: 0.6rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.footer-socials { display: flex; gap: 0.8rem; justify-content: flex-end; }
.footer-socials a { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); transition: var(--transition); }
.footer-socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-copy { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 1.4rem; border-top: 1px solid var(--border); }

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; border-radius: 14px;
    border: none; background: var(--gradient); color: #fff; font-size: 1.1rem; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(15px); transition: var(--transition);
    box-shadow: 0 8px 25px rgba(99,102,241,.4); z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-tagline { margin-left: auto; margin-right: auto; }
    .cta-buttons, .hero-socials { justify-content: center; }
    .hero-visual { order: -1; margin-top: 1rem; }
    .profile-pic { width: 240px; height: 240px; }
    .about-content, .contact-content { grid-template-columns: 1fr; }
    .edu-grid, .edu-grid-3 { grid-template-columns: 1fr; }
    .bars-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .section-head h2 { font-size: 2rem; }
    .menu-btn { display: flex; }
    .nav-links {
        position: fixed; top: var(--nav-h); right: -100%; width: min(78%, 320px);
        height: calc(100vh - var(--nav-h)); flex-direction: column; align-items: flex-start;
        gap: 0.4rem; background: rgba(11,17,32,.98); backdrop-filter: blur(16px);
        padding: 2rem 1.5rem; border-left: 1px solid var(--border); transition: right 0.4s ease;
    }
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; width: 100%; font-size: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-socials { justify-content: center; }
    .floating-badge { font-size: 0.72rem; padding: 0.45rem 0.8rem; }
}
@media (max-width: 480px) {
    .profile-pic { width: 200px; height: 200px; }
    .project-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .stat-item { padding: 1.4rem 0.6rem; }
    .stat-number { font-size: 2rem; }
    .back-to-top { right: 1.2rem; bottom: 1.2rem; }
}
