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

:root {
  --bg: #0b0f16;
  --card: #111827;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --accent: #60a5fa;
  --accent-2: #34d399;
  --border: #1f2937;
}

html[data-theme="light"] {
  --bg: #f4f7fb;
  --card: #ffffff;
  --muted: #4b5563;
  --text: #0b1220;
  --accent: #2563eb;
  --accent-2: #059669;
  --border: #e5e7eb;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(52, 211, 153, 0.15), transparent 60%),
    radial-gradient(1000px 500px at 110% 10%, rgba(96, 165, 250, 0.15), transparent 60%),
    linear-gradient(180deg, #0b0f16 0%, #0b1220 100%);
  color: var(--text);
  line-height: 1.6;
}

html[data-theme="light"] body {
  background:
    radial-gradient(900px 450px at -10% -10%, rgba(5, 150, 105, 0.08), transparent 60%),
    radial-gradient(900px 450px at 110% 10%, rgba(37, 99, 235, 0.08), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(160%) blur(8px);
  background: rgba(11, 15, 22, 0.7);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.name { margin: 0; font-size: 1.25rem; letter-spacing: 0.04em; }
.role { margin: 2px 0 0; color: var(--muted); font-weight: 500; }

.contact { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-link {
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all .2s ease;
}
.contact-link:hover { color: var(--accent); border-color: var(--border); background: rgba(96, 165, 250, 0.06); }

main { padding: 32px 0 60px; }

.card {
  background: linear-gradient(180deg, rgba(17,24,39,0.9) 0%, rgba(17,24,39,0.7) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin: 16px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  letter-spacing: .06em;
  color: var(--accent);
  text-transform: uppercase;
}

.edu-list { display: grid; gap: 14px; }
.edu-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #0f172a; }
.edu-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.edu-header h3 { margin: 0; font-size: 1rem; }
.edu-header span { color: var(--accent-2); font-weight: 600; }
.edu-meta { color: var(--muted); font-size: .95rem; margin-top: 6px; }

.project { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #0f172a; margin-bottom: 12px; }
.project-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project h3 { margin: 0; font-size: 1rem; }
.project ul { margin: 8px 0 0 18px; }
.project-link { color: var(--accent); text-decoration: none; }
.project-link:hover { text-decoration: underline; }

.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.skills-grid > div { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #0f172a; }
.skills-grid h4 { margin: 0 0 6px; color: var(--accent-2); }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; background: rgba(11,15,22,0.6); }
.footer-inner { text-align: center; color: var(--muted); }

@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .skills-grid { grid-template-columns: 1fr; }
}

/* Base Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Typography & Colors */
:root {
  --bg: #0b0f16;
  --card: #111827;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --accent: #60a5fa;
  --accent-2: #34d399;
  --border: #1f2937;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #0b0f16 0%, #0b1220 100%);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(160%) blur(8px);
  background: rgba(11, 15, 22, 0.6);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

html[data-theme="light"] .site-header { background: rgba(255,255,255,0.7); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #34d399, #60a5fa); font-weight: 800; color: #0b0f16; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.name { margin: 0; font-size: 1.25rem; letter-spacing: 0.04em; }
.role { margin: 2px 0 0; color: var(--muted); font-weight: 500; }

.contact { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { padding: 8px 12px; border-radius: 10px; text-decoration: none; transition: all .2s ease; border: 1px solid var(--border); color: var(--text); background: rgba(17,24,39,0.5); }
.btn:hover { transform: translateY(-1px); border-color: #2b3950; }
.btn-primary { background: linear-gradient(135deg, #34d399, #60a5fa); color: #0b0f16; border: none; }
.btn-ghost { background: rgba(17,24,39,0.4); }

html[data-theme="light"] .btn-ghost { background: rgba(255,255,255,0.7); }

/* Main */
main { padding: 32px 0 60px; }

.hero { display: grid; place-items: center; padding: 32px 0 8px; }
.hero-content { text-align: center; max-width: 760px; }
.hero-title { margin: 0; font-size: 2rem; letter-spacing: .02em; }
.hero-sub { color: var(--muted); margin: 8px 0 14px; }
.hero-photo { width: 140px; height: 140px; object-fit: cover; border-radius: 999px; border: 3px solid rgba(255,255,255,0.15); box-shadow: 0 12px 26px rgba(0,0,0,0.25); margin: 6px auto 16px; display: block; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

.card {
  background: linear-gradient(180deg, rgba(17,24,39,0.9) 0%, rgba(17,24,39,0.7) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin: 16px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

html[data-theme="light"] .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(2,6,23,0.08);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  letter-spacing: .06em;
  color: var(--accent);
  text-transform: uppercase;
}

.edu-list { display: grid; gap: 14px; }
.edu-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #0f172a; }
html[data-theme="light"] .edu-item { background: #ffffff; }
.edu-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.edu-header h3 { margin: 0; font-size: 1rem; }
.edu-header span { color: var(--accent-2); font-weight: 600; }
.edu-meta { color: var(--muted); font-size: .95rem; margin-top: 6px; }

.project { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #0f172a; margin-bottom: 12px; }
html[data-theme="light"] .project { background: #ffffff; }
.project-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project h3 { margin: 0; font-size: 1rem; }
.project ul { margin: 8px 0 0 18px; }
.project-link { color: var(--accent); text-decoration: none; }
.project-link:hover { text-decoration: underline; }

.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.skills-grid > div { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #0f172a; }
html[data-theme="light"] .skills-grid > div { background: #ffffff; }
.skills-grid h4 { margin: 0 0 6px; color: var(--accent-2); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: rgba(17,24,39,0.5); color: var(--text); font-size: .9rem; }
html[data-theme="light"] .badge { background: rgba(255,255,255,0.7); }

/* Certifications */
.cert-list { margin: 0; padding-left: 18px; }
.cert-link { color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--border); }
.cert-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cert-item { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.credit-badge { font-size: .85rem; color: var(--muted); border: 1px dashed var(--border); padding: 2px 8px; border-radius: 999px; }
.pdf-badge { font-size: .75rem; font-weight: 600; color: #0b0f16; background: linear-gradient(135deg, #f59e0b, #fbbf24); padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; display: inline-block; }
.
.pdf-link { text-decoration: none; border: 1px solid transparent; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease; }
.pdf-link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35); }
html[data-theme="light"] .pdf-badge { color: #0b0f16; }
.cert-link-title { color: var(--text); text-decoration: none; }
html[data-theme="light"] .pdf-badge { color: #0b0f16; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: grid; place-items: center; z-index: 50; }
.modal-overlay.hidden { display: none; }
.modal-dialog { width: min(920px, 94vw); height: min(80vh, 760px); background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.modal-title { font-weight: 600; letter-spacing: .02em; }
.modal-body { height: 100%; }
#pdfFrame { width: 100%; height: 100%; border: 0; background: #000; }
html[data-theme="light"] #pdfFrame { background: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; background: rgba(11,15,22,0.6); }
html[data-theme="light"] .site-footer { background: rgba(255,255,255,0.7); }
.footer-inner { text-align: center; color: var(--muted); }

/* Responsive */
@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-title { font-size: 1.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
}
/* Resume Section */
.resume-section p {
  color: var(--muted);
  margin-bottom: 14px;
}

.resume-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}


