/* ================================
   GLOBAL RESET & BASE
   ================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f0f2f5;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}

/* ================================
   FIXED SIDEBAR
   ================================ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: linear-gradient(180deg, #0d1b2a 0%, #1a2f45 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 16px 24px;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
}

.sidebar-avatar {
  margin-bottom: 12px;
}

.sidebar-img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid #0077b5;
  box-shadow: 0 0 0 4px rgba(0, 119, 181, 0.2);
}

.sidebar-name {
  font-size: 0.88em;
  font-weight: 600;
  color: #e0e6ef;
  margin-bottom: 2px;
  text-align: center;
}

.sidebar-title {
  font-size: 0.72em;
  color: #7a9bbf;
  margin-bottom: 28px;
  text-align: center;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 4px;
  flex: 1;
}

.sidebar-nav a {
  color: #9ab2cc;
  text-decoration: none;
  font-size: 0.82em;
  padding: 9px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-nav a i {
  width: 14px;
  text-align: center;
  font-size: 0.9em;
}

.sidebar-nav a:hover {
  background-color: rgba(0, 119, 181, 0.25);
  color: white;
  padding-left: 20px;
}

.sidebar-footer {
  display: flex;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  justify-content: center;
}

.sidebar-social {
  color: #7a9bbf;
  font-size: 1.1em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-social:hover {
  color: #0077b5;
  transform: translateY(-2px);
}

/* ================================
   MAIN CONTENT
   ================================ */

.main-content {
  margin-left: 220px;
}

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

.hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 60%, #0077b5 100%);
  padding: 60px 40px;
  color: white;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: 1.9em;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.hero-subtitle strong {
  color: white;
}

.hero-location {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.hero-location i {
  margin-right: 4px;
  color: #66c2e8;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================================
   BUTTONS
   ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 0.88em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: #0077b5;
  color: white;
  border: 2px solid #0077b5;
}

.btn-primary:hover {
  background-color: #005f94;
  border-color: #005f94;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 119, 181, 0.4);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* ================================
   CONTAINER
   ================================ */

.container {
  width: 90%;
  max-width: 780px;
  margin: 40px auto;
}

/* ================================
   CARD WHITE
   ================================ */

.card-white {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  padding: 40px;
  margin-bottom: 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-white:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ================================
   TYPOGRAPHY
   ================================ */

h2 {
  font-size: 1.2em;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f2f5;
  display: flex;
  align-items: center;
  gap: 10px;
}

h3 {
  font-size: 1em;
  font-weight: 600;
  color: #1a1a2e;
}

p {
  color: #555;
  margin-bottom: 10px;
}

.section-icon {
  color: #0077b5;
  font-size: 0.9em;
}

.text-center {
  text-align: center;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: linear-gradient(135deg, #f0f8ff, #e8f4fb);
  border: 1px solid #d0e8f5;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 119, 181, 0.15);
}

.stat-number {
  font-size: 1.7em;
  font-weight: 700;
  color: #0077b5;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72em;
  color: #666;
  line-height: 1.3;
}

/* ================================
   TIMELINE
   ================================ */

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #0077b5, #d0e8f5);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #0077b5;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #0077b5;
}

.timeline-content {
  padding-left: 10px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.timeline-header h3 {
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.85em;
  color: #0077b5;
  font-weight: 500;
  margin: 0;
}

.timeline-company i {
  margin-right: 4px;
}

.timeline-date {
  font-size: 0.78em;
  font-weight: 600;
  color: white;
  background-color: #0077b5;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-grade {
  font-size: 0.88em;
  color: #555;
  margin-bottom: 10px;
}

.timeline-note {
  font-size: 0.85em;
  color: #888;
  font-style: italic;
}

.timeline-bullets {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.timeline-bullets li {
  font-size: 0.88em;
  color: #555;
  padding: 5px 0 5px 18px;
  position: relative;
  border-bottom: 1px solid #f8f8f8;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #0077b5;
  font-size: 0.9em;
}

.certs-title {
  font-size: 0.82em;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  margin-top: 4px;
}

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

.skills-section {
  margin-bottom: 28px;
}

.skills-section:last-child {
  margin-bottom: 0;
}

.skills-category {
  font-size: 0.88em;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.certs-grid {
  justify-content: flex-start;
}

.skill-tag {
  background-color: #f0f2f5;
  color: #444;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.83em;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.skill-tag:hover {
  background-color: #0077b5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 119, 181, 0.25);
}

/* ================================
   LANGUAGE BARS
   ================================ */

.languages-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lang-item {
  width: 100%;
}

.lang-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.88em;
}

.lang-name {
  font-weight: 600;
  color: #333;
}

.lang-level {
  font-size: 0.85em;
  color: #0077b5;
  font-weight: 600;
}

.lang-bar {
  height: 8px;
  background-color: #f0f2f5;
  border-radius: 10px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s ease;
}

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

.contact-intro {
  color: #777;
  font-size: 0.95em;
  margin-bottom: 28px;
}

.social-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #555;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 500;
  padding: 18px 22px;
  border-radius: 12px;
  border: 2px solid #e8ecf0;
  min-width: 100px;
  transition: all 0.25s ease;
}

.social-link i {
  font-size: 1.7em;
}

.social-link:hover {
  color: #0077b5;
  border-color: #0077b5;
  background-color: #f0f8ff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 119, 181, 0.18);
  text-decoration: underline;
}

.made-with {
  font-size: 0.78em;
  color: #ccc;
  margin-top: 8px;
}

/* ================================
   RESPONSIVE — tablet (≤900px)
   ================================ */

@media (max-width: 900px) {
  .sidebar {
    width: 180px;
  }

  .main-content {
    margin-left: 180px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================
   RESPONSIVE — mobile (≤640px)
   ================================ */

@media (max-width: 640px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 16px;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .sidebar-avatar,
  .sidebar-title {
    display: none;
  }

  .sidebar-name {
    margin-bottom: 0;
    align-self: center;
    font-size: 0.85em;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    width: auto;
    flex: unset;
  }

  .sidebar-nav a {
    padding: 6px 10px;
    font-size: 0.75em;
  }

  .sidebar-footer {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .hero {
    padding: 32px 20px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

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

  .hero-text h1 {
    font-size: 1.5em;
  }

  .container {
    width: 100%;
    margin: 16px auto;
  }

  .card-white {
    padding: 24px 18px;
    border-radius: 8px;
    margin-bottom: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 6px;
  }

  .timeline-date {
    align-self: flex-start;
  }

  .social-link {
    min-width: 80px;
    padding: 14px 14px;
  }
}
