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

:root {
    --bg: #09090b;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #fafafa;
    --text-muted: #71717a;
    --accent: #818cf8;
    --accent-glow: rgba(129, 140, 248, 0.3);
    --green: #34d399;
    --pink: #f472b6;
    --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --radius: 16px;
    --radius-sm: 10px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

a { color: inherit; text-decoration: none; transition: 0.3s; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ================================
   AMBIENT GLOW
   ================================ */

.ambient {
    position: fixed; inset: 0; z-index: -1; overflow: hidden;
    pointer-events: none;
}
.glow {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: rgba(99, 102, 241, 0.15); top: -200px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: rgba(236, 72, 153, 0.1); bottom: -150px; right: -100px; animation-delay: -7s; }
.orb-3 { width: 400px; height: 400px; background: rgba(52, 211, 153, 0.08); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ================================
   NAV
   ================================ */

.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
}
.nav.scrolled { padding: 12px 0; background: rgba(9, 9, 11, 0.85); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand-glow {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    font-weight: 800; font-size: 16px; color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 8px 18px; font-size: 14px; color: var(--text-muted); border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: var(--surface); }

.btn-glow-sm {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}
.btn-glow-sm:hover { border-color: var(--accent) !important; box-shadow: 0 0 16px var(--accent-glow); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; transition: 0.3s; border-radius: 2px; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
    background: rgba(9, 9, 11, 0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 16px;
}
.mobile-menu.active { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { padding: 14px 18px; font-size: 15px; color: var(--text-muted); border-radius: 10px; }
.mobile-menu a:hover { background: var(--surface); color: var(--text); }

/* ================================
   HERO
   ================================ */

.hero { padding: 140px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2); border-radius: 100px;
    font-size: 13px; color: var(--green); margin-bottom: 24px;
}
.pill-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
    font-size: clamp(40px, 6vw, 64px); font-weight: 800;
    line-height: 1.1; letter-spacing: -2px; margin-bottom: 16px;
}

/* Profile Photo — small avatar in hero */
.hero-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.hero-name-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.hero-name-wrap h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 0; }
.profile-photo {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); flex-shrink: 0; margin-top: 4px;
    box-shadow: 0 0 24px rgba(129,140,248,0.2);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .photo-fallback { display: none; font-size: 18px; font-weight: 700; color: var(--accent); }
.profile-photo.placeholder img { display: none; }
.profile-photo.placeholder .photo-fallback { display: block; }
.hero-sub { font-size: 20px; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.hero-desc { font-size: 16px; color: var(--text-muted); max-width: 440px; margin-bottom: 32px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-glow {
    display: inline-flex; align-items: center; padding: 14px 32px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    border-radius: 12px; font-size: 15px; font-weight: 600; color: white;
    border: none; cursor: pointer; transition: 0.3s;
    box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }

.btn-ghost {
    display: inline-flex; align-items: center; padding: 14px 32px;
    background: transparent; border-radius: 12px; font-size: 15px;
    border: 1px solid var(--border); color: var(--text-muted); transition: 0.3s;
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

/* Glow Card */
.glow-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 0 80px rgba(99, 102, 241, 0.08);
}
.card-header {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px; background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}
.card-dot { width: 10px; height: 10px; border-radius: 50%; }
.card-dot.red { background: #f85149; }
.card-dot.yellow { background: #d29922; }
.card-dot.green { background: #3fb950; }
.card-title { margin-left: auto; font-size: 12px; color: var(--text-muted); font-family: var(--mono); }

.card-body { padding: 24px; font-family: var(--mono); font-size: 14px; line-height: 1.8; }
.k { color: var(--accent); }
.v { color: var(--green); }
.n { color: #d29922; }
.s { color: var(--pink); }
.indent { padding-left: 24px; }

/* ================================
   STATS
   ================================ */

.stats { padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { display: block; font-size: 36px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-text { font-size: 13px; color: var(--text-muted); }

/* ================================
   SECTIONS
   ================================ */

.section { padding: 48px 0; }
.tag-num { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--accent); background: rgba(129, 140, 248, 0.1); padding: 4px 12px; border-radius: 6px; margin-bottom: 12px; }
.section-heading { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; }

/* ================================
   ABOUT
   ================================ */

.about-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; }
.about-text p { font-size: 16px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.8; }
.about-text strong { color: var(--text); }

.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-card {
    display: flex; gap: 10px; align-items: center;
    padding: 14px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: 0.3s;
}
.mini-card:hover { border-color: var(--accent); }
.mini-icon { font-size: 24px; }
.mini-label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.mini-value { font-size: 14px; font-weight: 500; }

/* ================================
   EXPERIENCE
   ================================ */

.exp-list { display: flex; flex-direction: column; gap: 16px; }
.exp-item {
    display: grid; grid-template-columns: 180px 1fr; gap: 24px;
    padding: 24px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: 0.3s;
}
.exp-item:hover { border-color: var(--accent); }

.exp-side { display: flex; flex-direction: column; gap: 8px; }
.exp-date { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.exp-role { font-size: 14px; font-weight: 600; color: var(--accent); }

.exp-content h3 { font-size: 18px; margin-bottom: 8px; }
.company-logo { font-size: 20px; margin-right: 8px; vertical-align: middle; }
.exp-proj { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

.exp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.exp-stat { text-align: center; padding: 12px; background: rgba(129, 140, 248, 0.05); border-radius: 8px; }
.exp-stat-num { display: block; font-size: 24px; font-weight: 800; color: var(--accent); }
.exp-stat-text { font-size: 11px; color: var(--text-muted); }

.exp-detail { font-size: 13px; color: var(--text-muted); padding: 3px 0; }
.exp-detail::before { content: '→ '; color: var(--accent); }

.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.exp-tags span { font-size: 11px; padding: 4px 12px; background: rgba(129, 140, 248, 0.08); color: var(--accent); border-radius: 6px; }

/* ================================
   SKILLS
   ================================ */

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.skill-block {
    padding: 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: 0.3s;
}
.skill-block:hover { border-color: var(--accent); }
.skill-block h3 { font-size: 14px; font-weight: 600; margin-bottom: 20px; color: var(--accent); }

.skill-row { margin-bottom: 14px; }
.skill-row span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.bar { height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #ec4899); border-radius: 2px; transition: 1s; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12px; padding: 5px 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); }

.all-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 24px; border-top: 1px solid var(--border); }
.all-tags span { font-size: 12px; padding: 6px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); transition: 0.3s; }
.all-tags span:hover { border-color: var(--accent); color: var(--accent); }

/* ================================
   PROJECTS
   ================================ */

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project-card {
    padding: 24px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: 0.3s;
}
.project-card.glow-hover:hover { border-color: var(--accent); box-shadow: 0 0 40px rgba(129, 140, 248, 0.08); }

.project-tag { font-size: 12px; color: var(--text-muted); }
.project-card h3 { font-size: 18px; margin: 8px 0; }
.project-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.project-stat { font-size: 13px; color: var(--green); }

/* ================================
   EDUCATION
   ================================ */

.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.edu-card {
    padding: 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: 0.3s;
}
.edu-card:hover { border-color: var(--accent); }
.edu-badge { display: inline-block; font-size: 11px; padding: 4px 10px; background: rgba(129,140,248,0.1); color: var(--accent); border-radius: 6px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.edu-badge.cert { background: rgba(52,211,153,0.1); color: var(--green); }
.edu-card h3 { font-size: 18px; margin-bottom: 8px; }
.edu-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.edu-sub { font-size: 12px; color: var(--text-muted); opacity: 0.7; }

/* ================================
   CONTACT
   ================================ */

.contact { background: rgba(255,255,255,0.01); border-top: 1px solid var(--border); padding: 48px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-left p { color: var(--text-muted); margin: 16px 0 32px; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-row { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; transition: 0.3s; }
.contact-row:hover { border-color: var(--accent); color: var(--text); }
.contact-icon { font-size: 18px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 16px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px;
    color: var(--text); font-family: var(--font); font-size: 15px;
    transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 20px rgba(129,140,248,0.1); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-glow { width: 100%; justify-content: center; }

/* ================================
   FOOTER
   ================================ */

.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer p { font-size: 14px; color: var(--text-muted); }
.back-top { font-size: 14px; color: var(--text-muted); }
.back-top:hover { color: var(--accent); }

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .nav-links { display: none !important; }
    .burger { display: block; }
    
    .hero { padding: 80px 0 40px; }
    .hero-inner { grid-template-columns: 1fr; gap: 20px; }
    .hero-text { order: 1; }
    .hero-card { order: 2; }
    .hero-top { flex-direction: row; align-items: center; gap: 12px; }
    .hero-name-wrap h1 { font-size: 28px; }
    .profile-photo { width: 64px; height: 64px; margin-top: 0; }
    .hero h1 { font-size: 32px; letter-spacing: -1px; }
    .hero-desc { font-size: 15px; }
    .hero-btns { flex-direction: column; }
    .btn-glow, .btn-ghost { width: 100%; justify-content: center; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 24px; }
    .exp-item { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .exp-stats { grid-template-columns: repeat(3, 1fr); }
    .exp-stats { grid-template-columns: repeat(3, 1fr); }
    .skills-grid { grid-template-columns: 1fr; gap: 12px; }
    .projects-grid { grid-template-columns: 1fr; gap: 12px; }
    .edu-grid { grid-template-columns: 1fr; gap: 12px; }
    .contact-inner { grid-template-columns: 1fr; gap: 24px; }
    .contact-left { order: 2; }
    .contact-form { order: 1; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .stats-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
    .about-cards { grid-template-columns: 1fr; }
    .exp-stats { grid-template-columns: 1fr; gap: 8px; }
    .card-body { font-size: 12px; padding: 16px; }
}
