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

body {
  font-family: 'Inter', sans-serif;
  background: #0f172a;
  color: #334155;
  line-height: 1.6;
}

a { color: #3b82f6; text-decoration: none; transition: all 0.2s; }
a:hover { color: #60a5fa; }

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.5rem;
}

.nav-logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff; font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.5px;
}

.nav-links { display: flex; gap: 0.3rem; }

.nav-links a {
  color: #94a3b8; font-size: 0.82rem; font-weight: 500;
  padding: 0.4rem 0.8rem; border-radius: 6px; transition: all 0.2s;
}

.nav-links a:hover { color: #e2e8f0; background: rgba(255,255,255,0.06); }
.nav-links a.active { color: #fff; background: rgba(59,130,246,0.15); }

.nav-toggle { display: none; background: none; border: none; color: #94a3b8; font-size: 1.2rem; cursor: pointer; }

/* === HERO === */
.hero {
  position: relative; padding: 5rem 1.5rem 4rem; text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(59,130,246,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(6,182,212,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.avatar {
  width: 210px; height: 210px; border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 24px rgba(59,130,246,0.4);
  border: 3px solid rgba(59,130,246,0.5);
}

.hero h1 { font-size: 2.8rem; font-weight: 800; color: #fff; letter-spacing: -1px; }
.tagline { color: #38bdf8; font-size: 1.1rem; font-weight: 500; margin-top: 0.3rem; }

.contact-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 1rem; margin-top: 1.5rem; font-size: 0.82rem;
}

.contact-row a, .contact-row span {
  color: #94a3b8; padding: 0.35rem 0.75rem; border-radius: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
}

.contact-row a:hover { color: #38bdf8; background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.15); }
.contact-row i { margin-right: 0.3rem; }

.hero-cta { display: flex; gap: 0.8rem; justify-content: center; margin-top: 2rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.3rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; transition: all 0.2s; cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; box-shadow: 0 2px 12px rgba(59,130,246,0.3);
}

.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(59,130,246,0.4); }

.btn-outline {
  background: transparent; color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-outline:hover { color: #fff; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); }

/* === PAGE HEADER === */
.page-header {
  padding: 3.5rem 1.5rem 2rem; text-align: center;
  background: linear-gradient(135deg, #0f172a, #1e3a5f, #0f172a);
  position: relative; overflow: hidden;
}

.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(59,130,246,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 2rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  position: relative;
}

.page-header h1 i { color: #38bdf8; }
.page-header p { color: #64748b; font-size: 0.95rem; margin-top: 0.3rem; position: relative; }

/* === PAGE SECTION === */
.page-section { background: #1e293b; padding: 2.5rem 0; }

.section-title {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: #e2e8f0; margin-bottom: 1.2rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 0.5rem;
}

.section-title i {
  color: #3b82f6; font-size: 0.9rem; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,130,246,0.08); border-radius: 6px;
}

/* === ABOUT CARD === */
.about-card {
  font-size: 0.95rem; line-height: 1.8; color: #94a3b8;
  padding: 1.3rem 1.5rem; border-radius: 10px;
  border-left: 4px solid #3b82f6;
  background: rgba(59,130,246,0.06);
  margin-bottom: 2rem;
}

/* === STATS === */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }

.stat-card {
  text-align: center; padding: 1.2rem 0.8rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s;
}

.stat-card:hover { border-color: #3b82f6; box-shadow: 0 4px 16px rgba(59,130,246,0.08); transform: translateY(-2px); }
.stat-card i { font-size: 1.5rem; color: #3b82f6; margin-bottom: 0.5rem; display: block; }
.stat-card strong { font-size: 1.3rem; color: #fff; display: block; }
.stat-card span { font-size: 0.75rem; color: #64748b; }

/* === QUICK LINKS === */
.quick-links h3 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: #94a3b8; margin-bottom: 0.8rem;
}

.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }

.link-card {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1.2rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s; color: #cbd5e1;
}

.link-card:hover { border-color: #3b82f6; box-shadow: 0 4px 16px rgba(59,130,246,0.08); transform: translateY(-2px); color: #cbd5e1; }
.link-card i { font-size: 1.3rem; color: #3b82f6; margin-bottom: 0.3rem; }
.link-card strong { font-size: 0.9rem; color: #fff; }
.link-card span { font-size: 0.78rem; color: #64748b; }

/* === SKILL GRID === */
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.skill-card {
  padding: 1.3rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s;
  background: rgba(255,255,255,0.03);
}

.skill-card:hover { border-color: #3b82f6; box-shadow: 0 4px 16px rgba(59,130,246,0.08); transform: translateY(-2px); }

.skill-card.dark {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-color: rgba(255,255,255,0.08); color: #cbd5e1;
}

.skill-card.dark:hover { border-color: rgba(59,130,246,0.3); }
.skill-card.dark strong { color: #fff; }

.skill-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(59,130,246,0.08); color: #3b82f6;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 0.8rem;
}

.skill-card.dark .skill-icon { background: rgba(59,130,246,0.15); }
.skill-card strong { display: block; font-size: 0.9rem; color: #fff; margin-bottom: 0.3rem; }
.skill-card p { font-size: 0.78rem; color: #94a3b8; line-height: 1.5; }
.skill-card.dark p { color: #94a3b8; }

/* === TIMELINE === */
.timeline-item {
  display: flex; gap: 1.2rem; margin-bottom: 1.5rem; position: relative;
}

.timeline-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 3px solid #1e293b;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
  flex-shrink: 0; margin-top: 1.2rem;
}

.timeline-dot.active { background: #3b82f6; box-shadow: 0 0 0 2px #3b82f6, 0 0 12px rgba(59,130,246,0.3); }

.timeline-card {
  flex: 1; padding: 1.2rem 1.4rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s;
}

.timeline-card:hover { border-color: rgba(255,255,255,0.15); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }

.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; }
.company { font-size: 1rem; color: #fff; }
.location { font-size: 0.78rem; color: #94a3b8; margin-left: 0.5rem; }
.date { font-size: 0.75rem; color: #94a3b8; font-weight: 600; white-space: nowrap; }
.job-title { font-size: 0.85rem; font-weight: 600; color: #3b82f6; margin: 0.25rem 0 0.5rem; }
.edu-desc { font-size: 0.85rem; color: #94a3b8; line-height: 1.6; }

.timeline-card ul { font-size: 0.82rem; padding-left: 1.2rem; color: #94a3b8; }
.timeline-card li { margin-bottom: 0.35rem; line-height: 1.5; }
.timeline-card li::marker { color: rgba(255,255,255,0.15); }

.role-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 1rem 0; border: none; border-top: 1px dashed rgba(255,255,255,0.08); }

/* === CERT GRID === */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.cert-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.3rem 1.5rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s;
}

.cert-card:hover { border-color: #3b82f6; box-shadow: 0 4px 16px rgba(59,130,246,0.08); transform: translateY(-2px); }
.cert-card.pending { border-style: dashed; opacity: 0.7; }

.cert-badge {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(59,130,246,0.08); color: #3b82f6;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}

.cert-card.pending .cert-badge { color: #94a3b8; background: rgba(148,163,184,0.08); }

.cert-info { flex: 1; }
.cert-info strong { display: block; font-size: 0.9rem; color: #fff; }
.cert-issuer { display: block; font-size: 0.78rem; color: #64748b; }
.cert-date { display: block; font-size: 0.72rem; color: #94a3b8; margin-top: 0.2rem; }

.cert-status { font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.cert-status.earned { color: #10b981; }
.cert-status.in-progress { color: #94a3b8; }
.cert-status i { margin-right: 0.2rem; }

/* === PROJECT FEATURE === */
.project-feature {
  padding: 2rem; border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(59,130,246,0.15);
}

.project-feature-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; }
.project-feature h2 { font-size: 1.4rem; color: #fff; font-weight: 700; border: none; padding: 0; margin: 0; text-transform: none; letter-spacing: normal; }

.project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tech span {
  font-size: 0.65rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 5px;
  background: rgba(59,130,246,0.15); color: #60a5fa;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.project-desc { font-size: 0.92rem; color: #94a3b8; line-height: 1.7; margin-bottom: 1.5rem; }

.arch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-bottom: 1.5rem; }

.arch-card {
  padding: 1rem; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
}

.arch-card:hover { border-color: rgba(59,130,246,0.2); background: rgba(59,130,246,0.04); }
.arch-card i { color: #38bdf8; font-size: 1.1rem; margin-bottom: 0.5rem; display: block; }
.arch-card strong { color: #e2e8f0; font-size: 0.85rem; display: block; margin-bottom: 0.3rem; }
.arch-card p { color: #64748b; font-size: 0.78rem; line-height: 1.5; }

.project-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* === PROJECT DROPDOWN === */
.project-details {
  margin-bottom: 1.5rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

.project-details summary {
  padding: 0.8rem 1.2rem; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; color: #38bdf8;
  display: flex; align-items: center; gap: 0.5rem;
  list-style: none; transition: background 0.2s;
}

.project-details summary::-webkit-details-marker { display: none; }
.project-details summary::before {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 0.65rem; transition: transform 0.2s; color: #3b82f6;
}

.project-details[open] summary::before { transform: rotate(180deg); }
.project-details summary:hover { background: rgba(59,130,246,0.06); }

.project-details-body {
  padding: 1.2rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.06);
}

.project-details-body h3 {
  font-size: 0.82rem; font-weight: 700; color: #e2e8f0;
  text-transform: uppercase; letter-spacing: 1px;
  margin: 1.2rem 0 0.6rem; border: none; padding: 0;
}

.project-details-body h3:first-child { margin-top: 0; }

.project-details-body p {
  font-size: 0.82rem; color: #94a3b8; line-height: 1.7; margin-bottom: 0.5rem;
}

.project-details-body ul {
  font-size: 0.82rem; color: #94a3b8; padding-left: 1.2rem; margin-bottom: 0.8rem;
}

.project-details-body li { margin-bottom: 0.3rem; line-height: 1.5; }
.project-details-body li::marker { color: #3b82f6; }

.arch-diagram {
  width: 100%; border-radius: 10px; margin: 0.8rem 0 0.5rem;
  background: #fff; border: 1px solid rgba(255,255,255,0.12);
  padding: 0.8rem; overflow-x: auto;
}

.arch-diagram img {
  width: 100%; border-radius: 6px; display: block;
}

.arch-diagram pre {
  font-family: 'Courier New', monospace; font-size: 0.7rem;
  color: #94a3b8; line-height: 1.4; white-space: pre; margin: 0;
}

.arch-diagram .highlight { color: #38bdf8; }
.arch-diagram .service { color: #60a5fa; }
.arch-diagram .arrow { color: #475569; }

/* === FOOTER === */
.footer {
  background: #0f172a; padding: 1.5rem; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer p { font-size: 0.78rem; color: #475569; }
.footer a { color: #38bdf8; }
.visitor-count { font-size: 0.85rem; color: #94a3b8; margin-bottom: 0.3rem; font-weight: 500; }
.visitor-count i { margin-right: 0.3rem; color: #3b82f6; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(15,23,42,0.98); flex-direction: column; padding: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2rem; }
  .contact-row { font-size: 0.75rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .project-feature-header { flex-direction: column; align-items: flex-start; }
}
