/* ===== 1. SITE THEME (CSS VARIABLES) ===== */

:root {
  --bg:          #f5f5f7;
  --text:        #111827;
  --accent:      #2563eb;
  --accent-soft: #dbeafe;

  --font-base: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;

  font-family: var(--font-base);
  color: var(--text);
  background: var(--bg);

  line-height: 1.6;
}


/* ===== 2. PAGE LAYOUT ===== */

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}


/* ===== 3. HEADER + NAVIGATION ===== */

header {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-bottom: 1px solid #e5e7eb;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;

  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--text);

  font-size: 0.95rem;

  padding: 0.25rem 0.5rem;

  border-radius: 999px;

  transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a:focus {
  background: var(--accent-soft);
  color: var(--accent);
}


/* ===== HERO SECTION ===== */

#hero{
  padding-top:3rem;
}

#hero h2{
  font-size:2rem;
  margin-bottom:0.5rem;
}

#hero p{
  font-size:1rem;
  color:#374151;
}


/* ===== 4. TYPOGRAPHY + SECTIONS ===== */

section {
  padding: 2.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

section:last-of-type {
  border-bottom: none;
}

section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

section p {
  max-width: 60ch;
  margin-bottom: 0.75rem;
}

.highlight {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);

  padding: 0.75rem 1rem;
  border-radius: 0.5rem;

  margin-top: 1rem;
}


/* ===== 5. PROJECT GRID ===== */

.projects-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  gap: 1.5rem;

  margin-top: 1.5rem;
}

.project-card {
  background: #ffffff;

  border-radius: 0.75rem;

  padding: 1.25rem;

  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);

  border: 1px solid #e5e7eb;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

.project-card p {
  margin: 0;
  font-size: 0.95rem;
}

.project-meta {
  font-size: 0.8rem;
  text-transform: uppercase;

  letter-spacing: 0.08em;

  color: #6b7280;
}

.project-links {
  margin-top: 0.5rem;
}

.project-links a {
  font-size: 0.9rem;
  color: var(--accent);

  text-decoration: none;

  margin-right: 0.75rem;
}

.project-links a:hover {
  text-decoration: underline;
}


/* ===== CONTACT BOX ===== */

.contact-box {
  background: #ffffff;

  border-radius: 0.75rem;

  padding: 1.25rem;

  border: 1px solid #e5e7eb;

  max-width: 520px;
}


/* ===== CONTACT FORM ===== */

#contact form{
  margin-top:1.5rem;
  max-width:420px;
}

#contact input,
#contact textarea{
  width:100%;

  padding:0.5rem;

  margin-top:0.3rem;

  border:1px solid #d1d5db;

  border-radius:0.4rem;

  font-family:var(--font-base);
}

#contact textarea{
  resize:vertical;
}

#contact button{
  margin-top:0.8rem;

  padding:0.5rem 1rem;

  border-radius:0.4rem;

  border:none;

  background:var(--accent);

  color:white;

  cursor:pointer;
}

#contact button:hover{
  background:#1d4ed8;
}


/* ===== BUTTON ===== */

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 0.6rem 1.3rem;

  border-radius: 999px;

  background: var(--accent);

  color: #ffffff;

  font-size: 0.95rem;

  text-decoration: none;

  border: none;

  margin-top:1rem;
}

.button:hover {
  background: #1d4ed8;
}


/* ===== FOOTER ===== */

footer {
  max-width:960px;
  margin:0 auto;

  padding:1.5rem;

  color: #6b7280;

  font-size: 0.95rem;
}
