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

:root {
  --dark:   #0d1117;
  --dark2:  #161b22;
  --dark3:  #21262d;
  --blue:   #4a90d9;
  --blue2:  #79b8f3;
  --text:   #e6edf3;
  --muted:  #8b949e;
  --border: #30363d;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--dark);
  color: var(--text);
  scroll-behavior: smooth;
}

a {
  color: var(--blue2);
  text-decoration: none;
}

/* =========================================
   NAVIGATION
   ========================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--blue2);
  line-height: 1;
}

.nav-visitor {
  font-size: 13px;
  color: var(--muted);
  line-height: 1;
  margin-top: 3px;
}

.nav-visitor strong {
  color: var(--blue2);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color .2s;
}

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

/* =========================================
   LANGUAGE SWITCHER
   ========================================= */
.lang-switcher {
  display: flex;
  gap: 6px;
  margin-left: 1.5rem;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.lang-btn:hover {
  border-color: var(--blue2);
  color: var(--text);
}

.lang-btn.active {
  border-color: var(--blue);
  color: var(--blue2);
  background: rgba(74, 144, 217, 0.1);
}

/* =========================================
   SECTIONS
   ========================================= */
section {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-badge .hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fb950;
  display: inline-block;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 em {
  color: var(--blue2);
  font-style: normal;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}

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

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 0 0 0 6px var(--dark2);
}

.hero-photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--dark3);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--muted);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}

.btn-primary:hover {
  background: #357abd;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .2s;
}

.btn-ghost:hover {
  border-color: var(--blue2);
}

/* =========================================
   ABOUT
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.about-text p {
  margin-bottom: 1rem;
}

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

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

.stat {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue2);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* =========================================
   SKILLS
   ========================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
}

.skill-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue2);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}

/* =========================================
   EXPERIENCE
   ========================================= */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exp-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  border-left: 3px solid var(--blue);
}

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

.exp-title {
  font-size: 16px;
  font-weight: 700;
}

.exp-date {
  font-size: 12px;
  color: var(--blue2);
  background: rgba(74, 144, 217, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.exp-company {
  font-size: 13px;
  color: var(--blue2);
  margin-bottom: 10px;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-bullets li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.exp-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 11px;
  top: 2px;
}

.exp-tech {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.cert-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cert-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(74, 144, 217, 0.15);
  border: 1px solid rgba(74, 144, 217, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.cert-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 12px;
  color: var(--muted);
}

/* =========================================
   CONTACT
   ========================================= */
.contact-box {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.contact-box p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 15px;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text);
  transition: border-color .2s;
}

.contact-link:hover {
  border-color: var(--blue2);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.visit-counter {
  margin-top: 8px;
  font-size: 11px;
  color: var(--border);
}

/* =========================================
   HAMBURGER BUTTON
   ========================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   RESPONSIVE — Tablet (max 768px)
   ========================================= */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-photo img,
  .hero-photo-placeholder {
    width: 150px;
    height: 150px;
  }

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

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

/* =========================================
   RESPONSIVE — Mobile (max 600px)
   ========================================= */
@media (max-width: 600px) {
  /* Nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    z-index: 99;
  }

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

  .nav-links a {
    font-size: 16px;
    padding: 12px 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .lang-switcher {
    margin-left: 0;
    padding: 12px 0 4px;
    gap: 8px;
  }

  .lang-btn {
    font-size: 13px;
    padding: 5px 12px;
  }

  /* Sections */
  section {
    padding: 3rem 1.2rem;
  }

  /* Hero */
  .hero {
    padding-top: 60px;
  }

  .hero-photo img,
  .hero-photo-placeholder {
    width: 130px;
    height: 130px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }

  /* Experience */
  .exp-header {
    flex-direction: column;
    gap: 4px;
  }

  /* Contact */
  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-link {
    width: 100%;
    justify-content: center;
  }
}