/* Minimal portfolio — strong orange */

:root {
  --orange: #d95d2a;
  --orange-light: #edb89a;
  --orange-soft: #fff0e8;
  --text: #2d2d2d;
  --text-muted: #6b6b6b;
  --bg: #fefcfb;
  --border: #ebe5e1;
  --radius: 6px;
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--orange);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 252, 251, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-icon {
  display: inline-flex;
  color: var(--orange);
  flex-shrink: 0;
}

.nav-link:hover .nav-icon {
  color: var(--orange);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Desktop: dropdown only */
.lang-select {
  display: none;
  padding: 0.35rem 1.75rem 0.35rem 0.5rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--orange);
  background: var(--bg);
  border: 1px solid var(--orange-light);
  border-radius: var(--radius);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d95d2a' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--orange);
  color: var(--orange);
  outline: none;
}

.lang-btns {
  display: flex;
  gap: 0.25rem;
}

.lang-btn {
  padding: 0.35rem 0.5rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.lang-btn.active {
  color: var(--orange);
  background: var(--orange-soft);
}

@media (min-width: 601px) {
  .lang-select {
    display: block;
  }
  .lang-btns {
    display: none;
  }
}

@media (max-width: 600px) {
  .lang-select {
    display: none;
  }
  .lang-btns {
    display: flex;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Hero */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: left;
}

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero-desc {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 28ch;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid var(--orange-light);
}

.btn-primary:hover {
  background: var(--orange-light);
  color: var(--orange);
}

/* Sections */
.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section.work {
  max-width: 900px;
}

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

/* Work — grid */
.project-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.project-link {
  display: flex;
  flex-direction: column;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--orange);
}

.project-link:hover .project-image-wrap {
  transform: scale(1.02);
}

.project-image-wrap {
  aspect-ratio: 4 / 3;
  background: var(--orange-soft);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Icon-only placeholder (no image) */
.project-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e6e4;
}

.project-icon-wrap .project-icon {
  width: 56px;
  height: 56px;
  color: #8a8581;
}

.project-link:hover .project-icon-wrap .project-icon {
  color: var(--orange);
}

.project-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 1rem 1rem 0.75rem;
}

.project-name {
  font-weight: 500;
}

.project-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* About — with photo */
.about-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-photo-wrap {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--orange-soft);
  border: 2px solid var(--border);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text {
  margin: 0;
  color: var(--text-muted);
  max-width: 50ch;
}

/* Contact */
.contact-text {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.link-email {
  font-weight: 500;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-links a:hover {
  background: var(--orange);
  color: #fff;
  transform: scale(1.05);
}

.contact-links svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav.open .nav-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav.open .nav-links li:last-child {
    border-bottom: none;
  }

  .about-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text {
    max-width: none;
  }
}
