:root {
  --color-bg: #f4f7fb;
  --color-card: #ffffff;
  --color-text: #16202a;
  --color-muted: #5b6b7a;
  --color-brand: #1d4ed8;
  --color-border: #e3e8ef;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}

.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}

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

.site-nav a {
  font-weight: 600;
  color: var(--color-muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

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

/* Main / Hero */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 380px;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero-text p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-image {
  flex: 1 1 320px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Featured projects */
.section-title {
  font-size: 1.5rem;
  margin: 64px 0 24px;
}

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

.project-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08), 0 1px 3px rgba(16, 24, 40, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12), 0 2px 6px rgba(16, 24, 40, 0.08);
  transform: translateY(-2px);
}

.project-card .icon {
  font-size: 2.6rem;
  background: var(--color-bg);
  border-radius: 10px;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.project-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.project-card p {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.project-card .view-link {
  color: var(--color-brand);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 24px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer .socials {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.site-footer .socials a {
  color: var(--color-muted);
}

.site-footer .socials a:hover {
  color: var(--color-brand);
}
