/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   COLOR SYSTEM
========================= */
:root {
  --bg: #f6f5f2;
  --text-primary: #111111;
  --text-secondary: #2b2b2b;

  --accent-maroon: #5a1a1a;
  --accent-olive: #3f4a2c;

  --border-muted: #d6d4cf;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --fast: 0.25s;
  --slow: 0.5s;
}

/* =========================
   BASE
========================= */
body {
  font-family: "Outfit", sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;

  background-color: #f8f1f4;
  background-image:
    url("assets/bg.png"),
    linear-gradient(180deg, #ffdddd 0%, #f8f1f4 100%);
  background-blend-mode: multiply;
}



/* =========================
   TYPOGRAPHY
========================= */
h1 {
  font-size: 2.6rem;
  font-weight: 400;
}

h2 {
  font-size: 1.3rem;
  font-weight: 400;
  max-width: 700px;
  color: var(--text-secondary);
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

/* Paragraphs */
p {
  max-width: 650px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

/* =========================
   HEADING SPACING CONTROL
========================= */
h2 {
  margin-top: 64px;
  margin-bottom: 8px;
  line-height: 1.25;
}

h3 {
  margin-top: 96px;
  margin-bottom: 12px;
  line-height: 1.2;
}

/* Tighten text immediately after headings */
h2 + p,
h3 + p {
  margin-top: 0;
}

h3 + ul {
  margin-top: 8px;
}

/* =========================
   LINKS (OSWALD)
========================= */
a {
  font-family: "Oswald", sans-serif;
  color: var(--accent-maroon);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent-maroon);
  transition: width var(--fast) var(--ease);
}

a:hover::after {
  width: 100%;
}

/* =========================
   NAVIGATION
========================= */
nav {
  display: flex;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid var(--border-muted);
}

.nav-left {
  font-family: "Ballet", cursive;
  font-size: 1.3rem;
}

.nav-right a {
  margin-left: 28px;
  font-size: 0.95rem;
}

/* =========================
   LAYOUT
========================= */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 48px;
}

/* =========================
   HOME NAME
========================= */
.home-name {
  font-family: "Ballet", cursive;
  font-size: 5.6rem;
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}

/* =========================
   FEATURED PROJECTS
========================= */
.featured-projects {
  margin-top: 120px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.project-card {
  border: 1px solid var(--border-muted);
  padding: 32px;
  transition: transform var(--fast) var(--ease),
              border-color var(--fast) var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-olive);
}

.project-card h4 {
  font-size: 1.4rem;
  font-weight: 400;
}

.project-card p {
  margin: 16px 0 32px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 2px;
}

/* =========================
   PROJECT LIST PAGE
========================= */
.project-row {
  border-top: 1px solid var(--border-muted);
  padding: 32px 0;
}

.project-row:last-child {
  border-bottom: 1px solid var(--border-muted);
}

.project-row a {
  display: flex;
  gap: 24px;
  align-items: center;
}

.project-row img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.project-row span {
  display: block;
  margin-top: 8px;
  color: var(--text-secondary);
}

/* =========================
   PROJECT PAGE IMAGES
========================= */
.project-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 48px auto;
  border-radius: 2px;
}

/* =========================
   ANIMATIONS
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp var(--slow) var(--ease) forwards;
  will-change: opacity, transform;
}

.fade-in.delay-1 { animation-delay: 0.1s; }
.fade-in.delay-2 { animation-delay: 0.2s; }
.fade-in.delay-3 { animation-delay: 0.3s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* =========================
   FOOTER
========================= */
footer {
  padding: 48px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 32px;
  }
}
/* =========================
   ABOUT SECTION FIXES
========================= */

/* Remove global h3 spacing ONLY for About */
.about-section h3 {
  margin-top: 0;
}

/* Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Text hierarchy */
.about-intro {
  max-width: 520px;
  margin-bottom: 24px;
}

.about-core {
  font-size: 1.6rem;
  line-height: 1.4;
  max-width: 620px;
  margin: 32px 0;
}

.about-secondary {
  max-width: 520px;
  color: var(--text-secondary);
}

/* Actions */
.about-actions {
  margin-top: 40px;
  display: flex;
  gap: 24px;
  align-items: center;
}

.email-button {
  padding: 10px 18px;
  border: 1px solid var(--border-muted);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Image */
.about-image img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image img {
    max-width: 280px;
  }
}