/* ===== Reset & base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --text: #e6edf3;
  --text-light: #8b949e;
  --accent: #00aaff;
  --card-bg: #1c2128;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ===== Containers ===== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

h1, h2, h3 {
  font-weight: 600;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
  padding-left: .6rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color .3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
}

.lang-switch {
  display: flex;
  gap: .5rem;
}

.lang-btn {
  border: none;
  background: var(--card-bg);
  color: var(--text-light);
  padding: .3rem .6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s;
}

.lang-btn.is-active,
.lang-btn:hover {
  color: var(--accent);
  background: var(--bg-alt);
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  min-height: 90vh;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.hero-text .subtitle {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: .5rem;
}

.hero-text .lead {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .3s;
}

.btn:hover {
  filter: brightness(1.2);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent);
  color: white;
}

.photo-frame {
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 250px;
  margin: auto;
}

.photo-frame img {
  width: 100%;
  display: block;
}

/* ===== Cards ===== */
.card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card h3 {
  color: var(--accent);
}

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.skill {
  background: var(--card-bg);
  padding: .8rem;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s;
}

.skill:hover {
  transform: scale(1.05);
}

.soft-title {
  margin-top: 2rem;
}

.soft-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  list-style: none;
}

.soft-list li {
  background: var(--card-bg);
  padding: .5rem 1rem;
  border-radius: var(--radius);
}

/* ===== Timeline ===== */
.timeline ul {
  list-style: none;
  padding-left: 0;
}

.timeline li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: .8rem;
}

.timeline li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== Contact ===== */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.contact-card label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.contact-card input,
.contact-card textarea {
  background: var(--bg-alt);
  border: 1px solid #333;
  color: var(--text);
  border-radius: var(--radius);
  padding: .6rem;
  font-size: .9rem;
}

.form-note {
  font-size: .8rem;
  color: var(--text-light);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-alt);
  padding: 1rem;
  text-align: center;
  font-size: .85rem;
  color: var(--text-light);
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}
