/* ============================= */
/* Base / Reset */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================================= */
/* Typographic & Font Families */
/* ================================= */
/* Use additional font families */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* Headings use secondary font for contrast */
.site-title, .section__heading {
  font-family: 'Merriweather', serif;
  font-weight: 700;
}

/* ================================= */
/* Color Palette */
/* ================================= */
:root {
  --primary-color: #2A7FC2;
  --secondary-color: #1AAE9F;
  --accent-color: #F5A623;
  --text-dark: #333333;
  --bg-light: #fafafa;
}

.site-header {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

/* ================================= */
/* Layout and Box Model */
/* ================================= */
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.project {
  background: white;
  border: 1px solid #e1e1e1;
  padding: 1.5rem;
  /* Transformation on hover */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* ================================= */
/* Transitions, Transformations, Animations */
/* ================================= */
/* Image hover scale transformation */
.project__image {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.project__image:hover {
  transform: scale(1.05);
}

/* Section fade-in animation on load */
.section {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Link hover transition */
.nav__link {
  text-decoration: none;
  color: white;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}
.nav__link:hover {
  color: var(--accent-color);
}

/* ================================= */
/* Responsive / Media Queries */
/* ================================= */
@media (max-width: 600px) {
  .site-title {
    font-size: 2.2rem;
  }
  .work__grid {
    grid-template-columns: 1fr;
  }
}

/* ================================= */
/* Accessibility & Interaction States */
/* ================================= */
.nav__link:focus,
.btn:focus {
  outline: 3px dashed var(--accent-color);
  outline-offset: 2px;
}

/* ================================= */
/* Comments (for clarity) */
/* ================================= */
/* Header styles: set background + center text */
/* Project card hover: lift effect for interactive feel */
/* Animation: sections fade up as user scrolls / loads */