:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --border: #334155;
  --text: #f8fafc;
  --text-body: #cbd5e1;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-hover: #3b82f6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  max-width: 1040px;
  margin: 0 auto;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 0.5rem 0;
  gap: 0.75rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
}

.nav-links a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* HERO SECTION */
.hero {
  padding: 4.5rem 0 3.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 620px;
  color: var(--text-body);
  font-size: 1.04rem;
  margin-bottom: 1.75rem;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.35rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-photo-wrapper {
  display: flex;
  justify-content: center;
}

.hero-photo-card {
  width: 100%;
  max-width: 265px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 12px;
  display: block;
  background-color: #334155;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.hero-photo-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-body);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0f172a;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #0f172a;
}

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: #93c5fd;
}

/* GENERAL SECTIONS & CARDS */
.section {
  padding: 2.75rem 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.section-header .section-title {
  margin-bottom: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.25rem;
}

.about-card h3,
.about-highlights h3 {
  font-size: 1.12rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.about-card p {
  color: var(--text-body);
  font-size: 0.97rem;
  margin-bottom: 0.9rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card strong {
  color: var(--text);
  font-weight: 600;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.info-list li {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.info-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #93c5fd;
  font-weight: 600;
}

.info-list strong {
  font-size: 0.96rem;
  color: var(--text);
  margin-top: 0.12rem;
}

.info-list small {
  font-size: 0.85rem;
  color: var(--text-body);
}

/* EXPERIENCE TIMELINE */
.timeline-card {
  padding: 1.75rem;
}

.timeline {
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -1.92rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.timeline-header h3 {
  font-size: 1.06rem;
  color: var(--text);
}

.timeline-org {
  font-size: 0.9rem;
  color: #93c5fd;
  font-weight: 500;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  color: var(--text-body);
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-body);
}

.timeline-desc strong {
  color: var(--text);
}

/* PROJECT FILTERS & GRIDS */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--surface);
  color: var(--text-body);
  border: 1px solid var(--border);
  padding: 0.42rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent);
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.12);
}

.project-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}

.project-card h3,
.skills-grid h3 {
  margin: 0.6rem 0;
  font-size: 1.15rem;
  color: var(--text);
}

.cert-card h3 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text);
}

.project-card p,
.skills-grid p {
  color: var(--text-body);
  font-size: 0.95rem;
}

.cert-thumb-link {
  display: block;
  margin-bottom: 0.85rem;
}

.cert-thumb {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  background-color: #0f172a;
  transition: transform 0.2s, border-color 0.2s;
}

.cert-thumb-link:hover .cert-thumb {
  border-color: var(--accent);
  transform: scale(1.01);
}

.cert-issuer {
  color: var(--text-body);
  font-size: 0.89rem;
}

.cert-id {
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tech-list span {
  font-size: 0.8rem;
  padding: 0.22rem 0.6rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-body);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  display: block;
  background-color: #0f172a;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.95rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.4);
  text-decoration: none;
  transition: all 0.2s;
}

.project-btn:hover {
  background: var(--accent);
  color: #0f172a;
}

/* CONTACT & FOOTER */
.contact-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.contact-card h2 {
  color: var(--text);
}

.contact-card p {
  color: var(--text-body);
  margin: 0.6rem 0 1.4rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrapper {
    order: -1;
  }

  .hero-photo-card {
    max-width: 230px;
  }
}