/* ============================================
   Bauhaus / Neo-Brutalist Design System
   ============================================ */

:root {
  --bg: #f5f0e8;
  --text: #1a1a1a;
  --yellow: #ffcc00;
  --red: #e63b2e;
  --blue: #0055ff;
  --border: 2px solid var(--text);
  --border-thick: 3px solid var(--text);
  --offset: 5px;
  --shadow: var(--offset) var(--offset) 0 var(--text);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.accent-yellow { color: var(--yellow); }
.accent-red { color: var(--red); }
.accent-blue { color: var(--blue); }

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

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

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

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: var(--border-thick);
  z-index: 1000;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.8rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: var(--border);
  padding: 6px 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: var(--border-thick);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
}

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

.hero h1 { margin-bottom: 1.5rem; }

.hero-text {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 2rem;
  border: var(--border-thick);
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: var(--offset) var(--offset) 0 var(--text); }
.btn-red:hover { background: var(--text); color: var(--bg); }

.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--text); box-shadow: var(--offset) var(--offset) 0 var(--text); }
.btn-yellow:hover { background: var(--text); color: var(--bg); }

.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--offset) var(--offset) 0 var(--text); }
.btn-blue:hover { background: var(--text); color: var(--bg); }

/* ============================================
   Cards
   ============================================ */
.card {
  border: var(--border-thick);
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}

.card:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--offset) + 2px) calc(var(--offset) + 2px) 0 var(--text); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: var(--border-thick);
}

.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { font-size: 0.95rem; margin-bottom: 1rem; }

/* ============================================
   Skills Badges
   ============================================ */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-badge {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border: var(--border-thick);
  background: var(--yellow);
  box-shadow: var(--offset) var(--offset) 0 var(--text);
}

.skill-badge:nth-child(2n) { background: var(--red); color: #fff; }
.skill-badge:nth-child(3n) { background: var(--blue); color: #fff; }
.skill-badge:nth-child(5n) { background: var(--text); color: var(--bg); }

/* ============================================
   Form Inputs
   ============================================ */
.input-group { margin-bottom: 1.5rem; }

.input-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0;
  border: none;
  border-bottom: var(--border-thick);
  background: transparent;
  color: var(--text);
  outline: none;
  border-radius: 0;
}

.input-group textarea { resize: vertical; min-height: 120px; }
.input-group input:focus,
.input-group textarea:focus { border-bottom-color: var(--blue); }

.input-error {
  border-bottom-color: var(--red) !important;
}

.error-msg {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 0.3rem;
  display: none;
}

/* ============================================
   Sections
   ============================================ */
section { padding: 5rem 0; }

.section-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section-title { margin-bottom: 1.5rem; }

/* ============================================
   Timeline
   ============================================ */
.timeline { border-left: var(--border-thick); margin-left: 1rem; padding-left: 2rem; }

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  background: var(--yellow);
  border: var(--border);
}

.timeline-item:nth-child(2n)::before { background: var(--red); }
.timeline-item:nth-child(3n)::before { background: var(--blue); }

.timeline-role {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.timeline-org {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 0.9rem;
  color: #555;
}

.timeline-period {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.3rem 0 0.5rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--text);
  display: inline-block;
}

.timeline-desc { font-size: 0.95rem; line-height: 1.6; }

/* ============================================
   Contact Sidebar
   ============================================ */
.contact-sidebar {
  border: var(--border-thick);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.contact-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.contact-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: var(--border-thick);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.footer-links a:hover { border-bottom-color: var(--text); }

/* ============================================
   Utilities
   ============================================ */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.text-center { text-align: center; }
.text-muted { color: #666; }

@media (max-width: 768px) {
  .footer .container { flex-direction: column; text-align: center; }
  section { padding: 3rem 0; }
}
