/* Theme variables */
:root {
  --bg: #eef4ef;
  --text: #034c36;
  --accent: #88c057;
  --accent-contrast: #ffffff;
  --accent2: #bdcdcf;
  --accent3: #ff8128;
  --selection-bg: #bde0ca;
  --selection-text: #034c36;
  --surface: #f7faf7;
}

html[data-theme="dark"] {
  --bg: #003332;
  --text: #F5F5F0;
  --accent: #E3B8B8;
  --accent-contrast: #003332;
  --accent2: #B7C2BA;
  --accent3: #ff9b59;
  --selection-bg: #034c36;
  --selection-text: #F5F5F0;
  --surface: #034c36;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  cursor: url('../img/cursor.svg') 8 8, none;
}

a, button, .lang-menu li {
  cursor: url('../img/cursor-click.svg') 8 8, none;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }

/* Header */
.site-header {
  position: static;
  padding: 1rem 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
}
.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn.icon {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 200px;
  height: 100vh;
  background: var(--bg);
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  padding: 4rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 9;
}
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
}
.mobile-menu.open { display: flex; }

/* Sections */
.section {
  padding: 6rem 100px;
}
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-ctas {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.hero-highlights {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.highlight-card {
  position: relative;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
}
.highlight-card::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent3);
  border-radius: 50%;
  top: 1rem;
  left: 1rem;
}
.highlight-card h3 {
  margin: 0 0 0.5rem 1.5rem;
}
.highlight-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  font: inherit;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: none;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn.ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  margin-top: 2rem;
}
.card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.project-filters {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.filter {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}
.filter.active {
  color: var(--accent3);
}
.projects .project {
  position: relative;
  background: linear-gradient(to bottom, #f5e3e6, #ffd1a3);
  padding: 2rem;
}
.project .badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-weight: 700;
}

/* Form */
.contact-form {
  display: grid;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row.full {
  grid-template-columns: 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: transparent;
  border: 1px solid var(--accent2);
  color: var(--text);
  padding: 0.5rem;
  border-radius: 4px;
}
.consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}
.about-photo img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  filter: grayscale(20%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.skills-groups {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
.skills-group h3 {
  margin-bottom: 0.5rem;
}
.skill {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.progress {
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  height: 8px;
}
.progress div {
  background: linear-gradient(to right, var(--accent), var(--accent3));
  width: 0;
  height: 100%;
}

.lang-switcher { position: relative; }
.lang-btn {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
.lang-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 4px;
  display: none;
}
.lang-menu.open { display: block; }
.lang-menu li {
  padding: 0.5rem 1rem;
}
.lang-menu li:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-content {
  background: var(--surface);
  color: var(--text);
  max-width: 600px;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
}

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

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
}
