:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f9;
  --color-text: #1c2733;
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --font-family: "Segoe UI", Arial, sans-serif;
  --max-width: 1100px;
}

[data-theme="dark"] {
  --color-bg: #121722;
  --color-bg-alt: #1b2230;
  --color-text: #e5e9f0;
  --color-primary: #60a5fa;
  --color-primary-dark: #3b82f6;
}

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  scroll-behavior: smooth;
  transition: background 0.2s ease, color 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

.back-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--color-bg);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease;
}

.back-link:hover {
  background: var(--color-bg-alt);
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease;
}

.theme-toggle:hover {
  background: var(--color-bg-alt);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}

.section.alt {
  max-width: 100%;
  background: var(--color-bg-alt);
}

.section.alt > * {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero h1 span {
  color: var(--color-primary);
}

.hero p {
  max-width: 600px;
  font-size: 1.1rem;
  color: #4b5563;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-bg);
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease;
}



.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  border-radius: 10px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  font-size: 1.1rem;
}

.project-card p {
  font-size: 0.9rem;
  color: #4b5563;
}

/* ===== Contact form ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}




footer {
  text-align: center;
  padding: 24px;
  color: #6b7280;
  font-size: 0.9rem;
}
