/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

/* LAYOUT */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.nav-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none;
}

.nav-logo-link:link,
.nav-logo-link:visited,
.nav-logo-link:hover,
.nav-logo-link:active,
.nav-logo-link:focus-visible {
  text-decoration: none;
  background: transparent;
  color: inherit;
}

.nav-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(200px, 45vw);
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #0dceda;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:link,
.nav-links a:visited,
.nav-links a:hover,
.nav-links a:active {
  background: transparent;
  color: #0dceda;
  text-decoration: none;
  padding: 0;
  display: inline;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #0ab8c4;
}

/* HERO */
.hero {
  position: relative;
  padding: 72px 0 28px;
  text-align: center;
  background-color: #e8eef0;
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.82),
    rgba(255, 255, 255, 0.82)
  ),
  url("images/Couple Portraits-6.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  scroll-margin-top: 88px;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-name {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: #0dceda;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: #0dceda;
}

.hero-lead {
  color: #555;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* BUTTON */
.btn {
  background: #0DCEDA;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  border: none;
  font: inherit;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
}

.btn-linkedin {
  background: #0a66c2;
  color: #fff;
}

.btn-linkedin:hover,
.btn-linkedin:focus-visible {
  background: #004182;
  color: #fff;
}

button.btn {
  border: none;
}

/* SECTIONS */
.section {
  padding: 72px 0;
}

#aboutme.section {
  padding-top: 32px;
}

#projects {
  scroll-margin-top: 88px;
}

.section-title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0dceda;
}

.section-subtitle {
  color: #555;
  margin-bottom: 2.5rem;
  max-width: 40rem;
  font-size: 1rem;
}

.about-intro {
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  color: #333;
  text-align: center;
}

.section-projects {
  background: #f7f7f8;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.dark {
  background: #111;
  color: #fff;
}

/* WHAT I DO — horizontal row */
.what-i-do-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.what-i-do-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1rem;
  border-radius: 8px;
  border: 1px solid #0dceda;
  background: #fff;
}

.what-i-do-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.what-i-do-card p {
  font-size: 0.875rem;
  color: #444;
  line-height: 1.5;
  flex: 1;
}

@media (max-width: 1024px) {
  .what-i-do-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .what-i-do-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .what-i-do-grid {
    grid-template-columns: 1fr;
  }
}

/* LEGACY GRID (if used elsewhere) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* CARD */
.card {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 8px;
}

.card.what-i-do-card {
  border: 1px solid #0dceda;
}

.buy-btn {
  margin-top: 1.25rem;
  display: inline-block;
}

/* PROJECTS — Reify-style selected projects */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid #e5e5e7;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.project-card-reverse {
  flex-direction: row-reverse;
}

.project-card-media {
  flex: 0 1 42%;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f2;
  align-self: stretch;
}

.project-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: linear-gradient(
    145deg,
    rgba(13, 206, 218, 0.14),
    rgba(13, 206, 218, 0.32)
  );
}

.project-card-placeholder-label {
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  font-weight: 800;
  color: #0dceda;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-projects + .section-projects {
  border-top: 1px solid #e0e0e4;
}

.project-card-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.project-card-body {
  flex: 1 1 58%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.25rem 0;
}

.project-card-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.project-card-desc {
  color: #444;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 48ch;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.project-tags li {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
  padding: 0.35rem 0.75rem;
  border: 1px solid #d8d8dc;
  border-radius: 999px;
  background: #fafafa;
}

@media (max-width: 700px) {
  .project-card,
  .project-card-reverse {
    flex-direction: column;
  }

  .project-card-media {
    flex-basis: auto;
    width: 100%;
  }

  .project-card-img {
    max-height: 240px;
  }
}

/* Default link style; exclude buttons and primary CTAs */
a:not(.btn):link,
a:not(.btn):visited {
  background-color: transparent;
  color: #111;
  border: none;
  padding: 0;
  text-align: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline;
}

a:not(.btn):hover,
a:not(.btn):active {
  background-color: transparent;
  color: #0dceda;
}

a.btn:link,
a.btn:visited {
  background: #0dceda;
  color: #fff;
  text-decoration: none;
  border: none;
}

a.btn:hover,
a.btn:active,
a.btn:focus-visible {
  background: #0ab8c4;
  color: #fff;
}

a.btn-linkedin:link,
a.btn-linkedin:visited {
  background: #0a66c2;
  color: #fff;
}

a.btn-linkedin:hover,
a.btn-linkedin:active,
a.btn-linkedin:focus-visible {
  background: #004182;
  color: #fff;
}

.dark .card {
  border-color: #333;
}

/* PROCESS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.steps span {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* FORM */
.contact-form {
  display: grid;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 4px;
}

.contact-form textarea {
  min-height: 120px;
}

/* FOOTER */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid #eee;
  color: #555;
  font-size: 0.9rem;
}
