/* =========================
   COLOR THEME
   ========================= */
:root {
  --bg: #f6f4ee;
  --card: #fbfaf6;
  --matcha: #9bb48a;
  --matcha-dark: #5f7356;
  --border: #d8d3c8;
  --text: #2f2f2f;
  --text-secondary: #6b6b6b;
  --success: #9bb48a;
}

/* =========================
   RESET
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   BASE
   ========================= */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: clamp(32px, 5vw, 80px);
  line-height: 1.7;
  font-size: 16px;
}

/* =========================
   PAGE — CENTERED CANVAS
   ========================= */
.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* =========================
   WIDGET GRID (MAIN LAYOUT)
   ========================= */
.widgets {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(28px, 3vw, 40px);
  align-items: stretch;
}

/* =========================
   CARD BASE
   ========================= */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--matcha);
  box-shadow: 0 20px 50px rgba(155, 180, 138, 0.15);
}

.card h3 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.card p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.projects-widget {
  background: var(--card);
  border-color: var(--matcha);
}

.project-item {
  display: block;
  margin-top: 14px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--matcha);
  background: rgba(155, 180, 138, 0.24);
  color: inherit;
  text-decoration: none;
}

.project-item h4 {
  margin-bottom: 8px;
  color: var(--matcha-dark);
}

.project-item p {
  margin-bottom: 10px;
}

.project-item span {
  color: var(--matcha-dark);
  font-weight: 700;
}

/* =========================
   HERO — MAIN COLUMN
   ========================= */
.widgets .hero {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.what-i-do {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.what-i-do-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
}

.hero-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--matcha);
  box-shadow: 0 10px 30px rgba(155, 180, 138, 0.2);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(36px, 4vw, 48px);
  margin-bottom: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--matcha));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.hero p {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 520px;
}

/* =========================
   WIDGET WIDTH CONTROL
   ========================= */

/* Wide widgets = 2/3 width */
.wide {
  grid-column: span 4;
  background-color: rgba(155, 180, 138, 0.1);
}

/* Normal widgets = 1/3 width */
.widgets > .card:not(.hero):not(.wide):not(.full-width):not(.stack) {
  grid-column: span 2;
}

/* =========================
   STACK (RIGHT COLUMN)
   ========================= */
.stack {
  display: grid;
  grid-column: span 2;
  gap: 20px;
}

/* =========================
   MIDDLE STACK (AI + TECH)
   ========================= */
.mid-stack {
  display: grid;
  grid-column: span 2;
  gap: 20px;
}

/* =========================
   FULL WIDTH SECTIONS
   ========================= */
.full-width {
  grid-column: 1 / -1;
}

/* =========================
   BADGE
   ========================= */
.badge {
  position: absolute;
  top: -12px;
  left: 16px;
  background: linear-gradient(135deg, var(--matcha), var(--matcha-dark));
  color: white;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
}

/* =========================
   TAGS
   ========================= */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  background: rgba(155, 180, 138, 0.15);
  color: var(--matcha-dark);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(155, 180, 138, 0.3);
}

/* =========================
   INFO LIST
   ========================= */
.info h3 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.icon {
  width: 40px;
  height: 40px;
  background: rgba(155, 180, 138, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* =========================
   NOW PLAYING
   ========================= */
.now-playing {
  background: linear-gradient(135deg, rgba(155, 180, 138, 0.1), rgba(95, 115, 86, 0.1));
  border-color: rgba(155, 180, 138, 0.2);
}

.now-playing .label {
  font-size: 13px;
  opacity: 0.7;
  color: var(--matcha-dark);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.now-playing h4 {
  font-size: 20px;
  margin-top: 8px;
  font-weight: 700;
}

.now-playing p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.equalizer {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.equalizer span {
  width: 3px;
  height: 14px;
  background: var(--matcha-dark);
  border-radius: 2px;
  animation: pulse 1.2s ease-in-out infinite alternate;
  opacity: 0.8;
}

.equalizer span:nth-child(2) { animation-delay: 0.2s; }
.equalizer span:nth-child(3) { animation-delay: 0.4s; }
.equalizer span:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulse {
  from { height: 6px; opacity: 0.4; }
  to { height: 18px; opacity: 1; }
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 1024px) {
  .widgets {
    grid-template-columns: 1fr 1fr;
  }

  .widgets .hero,
  .wide {
    grid-column: 1 / -1;
  }
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 680px) {
  .widgets {
    grid-template-columns: 1fr;
  }

  .hero-content {
    flex-direction: column;
  }

  .avatar {
    width: 72px;
    height: 72px;
  }
}

/* =========================
   NAVIGATION + FOOTER
   ========================= */
header {
  margin-bottom: 20px;
}

.site-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px clamp(16px, 2vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: -0.5px;
}

.logo:hover {
  color: var(--matcha);
}

.back-btn {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(155, 180, 138, 0.1);
  border-color: var(--matcha);
  color: var(--matcha);
}

.site-nav {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
  letter-spacing: -0.3px;
}

.nav-link:hover {
  background-color: rgba(155, 180, 138, 0.05);
  color: var(--matcha);
}

.nav-link.active {
  color: var(--matcha);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--matcha);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-left {
    order: 1;
    width: 100%;
  }

  .site-nav {
    order: 2;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 10px clamp(8px, 2vw, 16px);
  }

  .logo {
    font-size: 16px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 13px;
  }

  .nav-link.active::after {
    bottom: 3px;
  }
}

/* =========================
   FEEDBACK PAGE
   ========================= */