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

:root {
--bg: hsl(220, 20%, 7%);
--fg: hsl(40, 10%, 92%);
--card: hsl(220, 18%, 10%);
--primary: hsl(38, 90%, 55%);
--primary-fg: hsl(220, 20%, 7%);
--secondary: hsl(220, 15%, 15%);
--secondary-fg: hsl(40, 10%, 85%);
--muted: hsl(220, 15%, 13%);
--muted-fg: hsl(220, 10%, 55%);
--border: hsl(220, 15%, 18%);
--gradient-gold: linear-gradient(135deg, hsl(38, 90%, 55%), hsl(28, 85%, 45%));
--gradient-card: linear-gradient(145deg, hsl(220, 18%, 12%), hsl(220, 18%, 8%));
--shadow-glow: 0 0 40px hsla(38, 90%, 55%, 0.1);
--font-heading: 'Space Grotesk', sans-serif;
--font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

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

/* Utility classes */
.text-gradient { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.card-glass { background: var(--gradient-card); border: 1px solid var(--border); box-shadow: var(--shadow-glow); }
.section-divider { width: 4rem; height: 2px; background: var(--primary); }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.navbar.scrolled { background: hsla(220, 20%, 7%, 0.8); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.navbar-inner { display: flex; align-items: center; gap: 0.75rem; height: 4rem; }
.navbar-logo { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; height: 100%; background: none; border: none; color: var(--fg); cursor: pointer; text-decoration: none; }
.navbar-logo-image { max-height: 2rem; width: auto; display: block; }
.nav-links { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 0.125rem; }
.navbar-end { flex-shrink: 0; display: flex; align-items: center; gap: 0.375rem; }

.lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: hsla(220, 15%, 15%, 0.6);
  flex-shrink: 0;
}
.lang-switcher__btn {
  min-width: 2.25rem;
  padding: 0.3rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--muted-fg);
  text-align: center;
  transition: color 0.2s, background 0.2s;
}
.lang-switcher__btn:hover { color: var(--fg); }
.lang-switcher__btn.is-active {
  background: hsla(38, 90%, 55%, 0.18);
  color: var(--primary);
  box-shadow: 0 0 12px hsla(38, 90%, 55%, 0.15);
}
.nav-link { padding: 0.375rem 0.625rem; border-radius: 9999px; font-size: 0.8125rem; font-family: var(--font-heading); color: var(--muted-fg); background: none; border: none; cursor: pointer; transition: color 0.2s, background 0.2s; text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--fg); }
.nav-link.active { background: hsla(38, 90%, 55%, 0.1); color: var(--primary); }

.mobile-toggle { display: none; background: none; border: none; color: var(--fg); cursor: pointer; padding: 0.5rem; }
.mobile-menu { display: none; background: hsla(220, 20%, 7%, 0.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 1rem 0; }
.mobile-menu.open { display: block; }
.mobile-menu .nav-link { display: block; width: 100%; text-align: left; padding: 0.625rem 1rem; border-radius: 0.5rem; }

@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-link { padding: 0.3rem 0.45rem; font-size: 0.75rem; }
}

@media (max-width: 1024px) {
  .navbar-inner {
    justify-content: space-between;
    height: 4rem;
  }

  .nav-links { display: none; }

  .navbar-end {
    margin-left: auto;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .mobile-toggle {
    display: block;
    padding-right: 0;
  }

  .mobile-menu .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-menu .nav-link {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 5rem 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--bg) 0%, var(--bg) 60%, hsla(220, 15%, 15%, 0.3) 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero-subtitle { color: var(--primary); font-family: var(--font-heading); font-size: 0.875rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-status { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 9999px; border: 1px solid var(--border); background: hsla(220, 15%, 15%, 0.5); margin-bottom: 2rem; font-size: 0.875rem; color: var(--muted-fg); }
.hero-status .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero-info {
  max-width: 38rem;
}
.hero-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin-bottom: 0.8rem;
}
.hero-info p:last-child { margin-bottom: 0; }
.hero-info strong {
  color: var(--fg);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-info span {
  color: hsl(220, 10%, 68%);
  font-weight: 500;
}

/* Variant A: lines (active) */
.hero-info--lines p {
  padding: 0.45rem 0 0.55rem 0.95rem;
  border-left: 2px solid hsla(220, 15%, 28%, 0.85);
  border-bottom: 1px solid hsla(220, 15%, 100%, 0.06);
  transition: border-color 0.2s ease;
}
.hero-info--lines p:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.hero-info--lines p:hover {
  border-left-color: hsla(38, 90%, 55%, 0.8);
}

/* Variant B: soft glow */
.hero-info--glow p {
  padding-left: 0.9rem;
  border-left: 1px solid hsla(38, 90%, 55%, 0.35);
}
.hero-info--glow strong {
  color: hsl(40, 14%, 95%);
}
.hero-info--glow span {
  color: hsl(220, 10%, 72%);
}
.hero-photo-wrap { display: flex; justify-content: flex-end; }
.hero-photo-container { position: relative; width: 100%; max-width: none; }
.hero-photo-container::before { content: ''; position: absolute; inset: -4px; border-radius: 1rem; background: linear-gradient(135deg, hsla(38, 90%, 55%, 0.3), transparent); filter: blur(20px); }
.hero-photo { position: relative; width: 100%; border-radius: 1rem; object-fit: cover; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-photo-wrap { order: -1; justify-content: center; }
    .hero-photo-container { max-width: 18rem; }
    .hero-status { justify-content: center; }
    .hero-info { max-width: 100%; }
    .hero-info p { text-align: left; }
}

/* ===== SECTIONS ===== */
section { padding: 6rem 0; }
.section-alt { background: hsla(220, 15%, 15%, 0.2); }
.section-title { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; margin-bottom: 0.5rem; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.stat-card { text-align: center; padding: 2rem; border-radius: 0.75rem; }
.stat-number { font-size: clamp(2rem, 4vw, 3rem); font-family: var(--font-heading); font-weight: 700; }
.stat-label { color: var(--muted-fg); margin-top: 0.5rem; font-size: 0.875rem; }
.highlights { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }
.highlight-badge { padding: 0.5rem 1rem; border-radius: 9999px; border: 1px solid hsla(38, 90%, 55%, 0.3); font-size: 0.875rem; color: var(--primary); background: hsla(38, 90%, 55%, 0.05); }

@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr; } }

/* ===== PROJECT CARDS ===== */
.projects-list { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 2.5rem; }
.project-card { border-radius: 0.75rem; overflow: hidden; border-top: 2px solid hsla(38, 90%, 55%, 0.6); }
.project-card-inner { padding: 1.5rem 2rem; }
.project-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.project-title { font-size: 1.25rem; font-family: var(--font-heading); font-weight: 700; }
.project-subtitle { color: var(--muted-fg); font-size: 0.875rem; margin-top: 0.25rem; }
.project-badges { display: flex; gap: 0.5rem; flex-shrink: 0; align-items: baseline;}
.project-badge { padding: 0.25rem 0.75rem; border-radius: 9999px; border: 1px solid var(--border); font-size: 0.75rem; color: var(--muted-fg); }
.project-desc { color: hsla(40, 10%, 92%, 0.8); line-height: 1.7; margin-bottom: 1.25rem; font-size: 0.9375rem; }
.project-result { color: var(--primary); font-size: 0.875rem; margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 0.5rem; }
.project-link { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--muted-fg); text-decoration: none; transition: color 0.2s; }
.project-link:hover { color: var(--fg); }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 0.5rem; background: var(--primary); color: var(--primary-fg); font-family: var(--font-heading); font-weight: 500; text-decoration: none; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.9; }

@media (max-width: 768px) {
  .project-header { align-items: flex-start; }
  .project-badges {
    width: 100%;
    flex-wrap: wrap;
    flex-shrink: 1;
    justify-content: flex-start;
  }
  .project-badge {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ===== RESPONSIBILITIES ===== */
.duties-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.duty-card { display: flex; gap: 1rem; padding: 1.25rem; border-radius: 0.75rem; }
.duty-num { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: hsla(38, 90%, 55%, 0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem; }
.duty-text { font-size: 0.9375rem; color: var(--muted-fg); line-height: 1.6; }
@media (max-width: 768px) { .duties-grid { grid-template-columns: 1fr; } }

/* ===== EXPERIENCE TIMELINE ===== */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before { content: ''; position: absolute; left: 1rem; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot { position: absolute; left: -2.25rem; top: 0.5rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--primary); border: 2px solid var(--bg); }
.timeline-card { padding: 1.5rem; border-radius: 0.75rem; }
.timeline-duration { color: var(--primary); font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; }
.timeline-role { font-size: 1.125rem; font-family: var(--font-heading); font-weight: 500; margin-top: 0.25rem; }
.exp-total { font-size: 1.5rem; font-family: var(--font-heading); font-weight: 600; margin-bottom: 3rem; }

/* ===== EDUCATION ===== */
.edu-card { padding: 2rem; border-radius: 0.75rem; margin-bottom: 2rem; }
.edu-label { color: var(--primary); font-family: var(--font-heading); font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.edu-name { font-size: 1.125rem; font-family: var(--font-heading); font-weight: 500; margin-bottom: 0.25rem; }
.edu-detail { color: var(--muted-fg); font-size: 0.875rem; }
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cert-card { padding: 1.5rem; border-radius: 0.75rem; display: flex; align-items: center; gap: 1rem; cursor: pointer; transition: background 0.2s; }
.cert-card:hover { background: hsla(38, 90%, 55%, 0.05); }
.cert-num { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: hsla(38, 90%, 55%, 0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem; }
.cert-name { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 500; }
@media (max-width: 768px) { .certs-grid { grid-template-columns: 1fr; } }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-content { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 2rem; max-width: 40rem; width: 90%; max-height: 90vh; overflow: auto; animation: modalIn 0.2s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--muted-fg); cursor: pointer; padding: 0.25rem; transition: color 0.2s; }
.modal-close:hover { color: var(--fg); }
.modal-img { width: 100%; border-radius: 0.5rem; }

@media (min-width: 769px) {
  .modal-content { max-width: 56rem; padding: 2.5rem; }
}

/* ===== SKILLS ===== */
.skills-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.skill-tag { padding: 0.625rem 1.25rem; border-radius: 9999px; border: 1px solid var(--border); background: hsla(220, 15%, 15%, 0.5); font-family: var(--font-heading); font-size: 0.875rem; transition: border-color 0.2s, background 0.2s; cursor: default; }
.skill-tag:hover { border-color: hsla(38, 90%, 55%, 0.5); background: hsla(38, 90%, 55%, 0.05); }

/* ===== ABOUT / FOOTER ===== */
.about-text { max-width: 48rem; }
.about-text p { color: var(--muted-fg); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-bar { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; }
.footer-bar p { color: var(--muted-fg); font-size: 0.875rem; margin-bottom: 1rem; }
.contact-links { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.contact-link { padding: 0.5rem 1rem; border-radius: 0.5rem; border: 1px solid var(--border); font-size: 0.875rem; color: var(--fg); text-decoration: none; transition: border-color 0.2s; }
.contact-link:hover { border-color: hsla(38, 90%, 55%, 0.5); }
.copyright { color: hsla(220, 10%, 55%, 0.5); font-size: 0.75rem; }

@media (max-width: 768px) {
  .contact-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  .contact-link {
    flex: 1 1 10rem;
    max-width: 100%;
    text-align: center;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }