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

:root {
  --primary:     #1e3a5f;
  --primary-light: #2563a8;
  --accent:      #0ea5e9;
  --accent-soft: #e0f2fe;
  --bg:          #f8fafc;
  --bg-alt:      #f1f5f9;
  --surface:     #ffffff;
  --border:      #e2e8f0;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,.08);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
  --transition:  0.25s ease;
  --max-width:   1100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--accent-soft);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .5px;
}

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

.nav-links a {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-light);
  background: var(--accent-soft);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-light);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,168,.3);
}

.btn-outline {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== ICONS ===== */
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-sm {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0369a1 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(14,165,233,.15) 0%, transparent 70%);
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: rgba(255,255,255,.75);
  margin-bottom: 1.25rem;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  z-index: 1;
  margin-left: 4rem;
  flex-shrink: 0;
}

.avatar-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid rgba(14,165,233,.4);
  padding: 8px;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { border-color: rgba(14,165,233,.4); }
  50%       { border-color: rgba(14,165,233,.9); }
}

.avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-text p strong {
  color: var(--primary-light);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item.timeline-placeholder .timeline-dot {
  background: var(--border);
  box-shadow: 0 0 0 2px var(--border);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

.timeline-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.timeline-badge.current {
  background: #dcfce7;
  color: #15803d;
}

.timeline-company {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.timeline-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

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

.placeholder-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* ===== VOLUNTEER ===== */
.volunteer-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 700px;
}

.volunteer-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-light);
}

.volunteer-icon svg {
  width: 28px;
  height: 28px;
}

.volunteer-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.volunteer-org {
  color: var(--primary-light);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.volunteer-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

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

/* ===== EDUCATION ===== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform var(--transition);
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.edu-logo {
  min-width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.edu-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.edu-school {
  color: var(--primary-light);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.edu-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.edu-grade {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.grade-badge {
  background: var(--accent-soft);
  color: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.edu-desc, .edu-thesis {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.edu-thesis strong {
  color: var(--text);
}

/* ===== CERTIFICATIONS ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .5px;
}

.cert-aws  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cert-scrum { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.cert-ml   { background: linear-gradient(135deg, #10b981, #059669); }
.cert-ibm  { background: linear-gradient(135deg, #1d4ed8, #1e40af); }

.cert-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.cert-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.cert-date {
  font-size: 0.78rem;
  color: var(--primary-light);
  font-weight: 600;
}

/* ===== SKILLS ===== */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.skill-tag:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.lang-flag { font-size: 1rem; }

/* ===== CONTACT ===== */
.contact-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-cards {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
  min-width: 200px;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.contact-icon {
  width: 36px;
  height: 36px;
  color: var(--primary-light);
}

.contact-card span {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
}

.contact-card small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===== HERO SUBTITLE ===== */
.hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ===== EMPLOYER GROUPS ===== */
.timeline-employer {
  margin-bottom: 2.5rem;
}

.employer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.employer-logo {
  min-width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: .5px;
}

.employer-logo.cap {
  background: linear-gradient(135deg, #1a56db, #1e40af);
}

.employer-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.employer-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline-item.sub {
  padding-left: 1.5rem;
  margin-left: 1rem;
  border-left: 2px dashed var(--border);
  margin-bottom: 1.25rem;
}

.timeline-item.sub .timeline-dot {
  left: calc(-1.5rem - 8px);
}

/* ===== EXTRA BADGES ===== */
.timeline-badge.fulltime {
  background: #dbeafe;
  color: #1d4ed8;
}

.timeline-badge.parttime {
  background: #fef9c3;
  color: #a16207;
}

/* ===== TIMELINE SKILLS ===== */
.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.timeline-skills span {
  background: var(--accent-soft);
  color: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ===== EDU EXTRAS ===== */
.edu-logo.fon {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  font-size: 0.85rem;
}

.edu-degree {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.grade-badge.distinction {
  background: #fef3c7;
  color: #92400e;
}

/* ===== EXTRA CERT ICONS ===== */
.cert-cog { background: linear-gradient(135deg, #0f766e, #047857); }
.cert-es  { background: linear-gradient(135deg, #f97316, #ea580c); }

/* ===== RECOMMENDATION ===== */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  position: relative;
}

.quote-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  opacity: .4;
  margin-bottom: 1rem;
}

blockquote {
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.quote-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.quote-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: rgba(255,255,255,.6);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.88rem;
}

.footer-ai {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,.35);
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #hero {
    flex-direction: column;
    text-align: center;
    padding: 7rem 1.5rem 4rem;
    gap: 3rem;
  }

  .hero-visual { margin-left: 0; }

  .hero-location { justify-content: center; }

  .hero-actions { justify-content: center; }

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .nav-links.open { display: flex; }

  .hamburger { display: flex; }

  section { padding: 3.5rem 0; }

  .section-title { font-size: 1.6rem; }

  .avatar-ring { width: 160px; height: 160px; }

  .avatar { font-size: 2.2rem; }

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

  .contact-cards { flex-direction: column; }

  .contact-card { min-width: unset; }

  .edu-card { flex-direction: column; }

  .volunteer-card { flex-direction: column; }
}
