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

:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --bg3:       #1a1a24;
  --accent:    #00e5a0;
  --accent2:   #00b87a;
  --text:      #e8e8f0;
  --muted:     #7a7a9a;
  --border:    #2a2a3a;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 2px; }

/* ========== UTILITIES ========== */
.accent { color: var(--accent); }
.accent-text { color: var(--accent); }

/* ========== NAV ========== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}

#navbar ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

#navbar ul a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

#navbar ul a:hover { color: var(--accent); }

/* ========== BLINK ========== */
.blink {
  animation: blink 1.1s step-end infinite;
  color: var(--accent);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ========== HERO ========== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse at 60% 50%, black 30%, transparent 80%);
}

.hero-content {
  flex: 1;
  animation: fadeUp 0.8s ease both;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 2.5rem;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: #00ffb3; transform: translateY(-2px); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* TERMINAL */
.hero-terminal {
  flex: 0 0 380px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  animation: fadeUp 0.8s 0.2s ease both;
  box-shadow: 0 0 60px rgba(0,229,160,0.08);
}

.terminal-bar {
  background: var(--bg3);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28ca41; }

.terminal-title {
  margin-left: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.terminal-body {
  padding: 1.5rem;
  line-height: 2;
}

.prompt { color: var(--accent); margin-right: 0.5rem; }
.output { color: var(--muted); padding-left: 1.2rem; }

/* ========== SECTIONS ========== */
section {
  padding: 6rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeUp 0.6s ease both;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.7;
}

section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

/* ========== ABOUT ========== */
.about-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 130px;
  background: var(--bg2);
  transition: border-color 0.2s;
}
.stat:hover { border-color: var(--accent); }

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
  text-align: center;
}

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

.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.25s;
}
.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,229,160,0.08);
}

.skill-icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 0.4rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0,229,160,0.5);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.timeline-place {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.timeline-content ul {
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.timeline-content ul li { margin-bottom: 0.3rem; }

/* ========== LANGUAGES ========== */
.lang-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
}

.lang-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.3rem 1rem;
  align-items: center;
  transition: border-color 0.2s;
}
.lang-card:hover { border-color: var(--accent); }

.lang-flag { font-size: 1.5rem; grid-row: 1 / 3; }
.lang-name { font-weight: 600; }
.lang-level {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-align: right;
}
.lang-bar {
  grid-column: 2 / 4;
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}
.lang-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 2px;
  transition: width 1s ease;
}

/* ========== CONTACT ========== */
.contact-sub {
  color: var(--muted);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.2s;
}
.contact-item:hover { border-color: var(--accent); color: var(--accent); transform: translateX(6px); }
.contact-item.no-link:hover { transform: none; cursor: default; }

.contact-icon {
  font-size: 1.1rem;
  color: var(--accent);
  width: 24px;
  text-align: center;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-sub { font-family: var(--font-mono); font-size: 0.75rem; margin-top: 0.5rem; opacity: 0.5; }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  #navbar { padding: 1rem 2rem; }
  #navbar ul { gap: 1.5rem; }
  #hero { flex-direction: column; padding: 7rem 2rem 3rem; }
  .hero-terminal { flex: none; width: 100%; }
  section { padding: 4rem 2rem; }
  .about-content { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
  #navbar ul { display: none; }
  #hero { padding: 6rem 1.5rem 2rem; }
  section { padding: 3rem 1.5rem; }
}
