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

:root {
  --bg:        #0d0f14;
  --bg-alt:    #13161d;
  --surface:   #1a1e28;
  --border:    #252a38;
  --accent:    #4f8ef7;
  --accent-dim:#2d5bbd;
  --text:      #e2e6f0;
  --text-muted:#7a85a0;
  --text-dim:  #4a5270;
  --radius:    8px;
  --max-w:     960px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === NAV === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-right a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.nav-right a:hover { color: var(--text); text-decoration: none; }

.lang-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.lang-toggle:hover { background: var(--border); }

/* === HERO === */
.hero {
  padding: 6rem 2rem 5rem;
  text-align: center;
  background: linear-gradient(180deg, #0d0f14 0%, #111520 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner { max-width: var(--max-w); margin: 0 auto; }

.hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-dim); text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* === SECTIONS === */
.section { padding: 4rem 2rem; }
.section-alt { background: var(--bg-alt); }

.container { max-width: var(--max-w); margin: 0 auto; }

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
  position: relative;
  padding-bottom: 0.75rem;
}
h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

/* === ABOUT === */
.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.75;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.project-card:hover { border-color: var(--accent); }
.project-card--soon { opacity: 0.6; }

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(79, 142, 247, 0.1);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
}
.project-tag--soon {
  background: rgba(122, 133, 160, 0.1);
  color: var(--text-muted);
}

.project-links { display: flex; gap: 0.75rem; }
.project-links a { color: var(--text-muted); transition: color 0.15s; }
.project-links a:hover { color: var(--accent); }

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.project-stack span {
  font-size: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
}

.project-highlights {
  list-style: none;
  padding: 0;
}
.project-highlights li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
  border-top: 1px solid var(--border);
}
.project-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.coming-soon {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.5rem;
}

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

.skill-group h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.skill-group ul {
  list-style: none;
  padding: 0;
}
.skill-group li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

/* === TIMELINE === */
.timeline { display: flex; flex-direction: column; gap: 2.5rem; }

.timeline-item {
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.timeline-date {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}
.timeline-company {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.timeline-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.timeline-item ul {
  list-style: none;
  padding: 0;
}
.timeline-item li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}
.timeline-item li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* === CONTACT === */
.contact-container { text-align: center; }
.contact-sub {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.contact-links a {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: border-color 0.15s, color 0.15s;
}
.contact-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

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

/* === RESPONSIVE === */
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-right a { display: none; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .section { padding: 3rem 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
}
