/* ============================
   RESET & BASE
   ============================ */
* {
  box-sizing: border-box; /* padding/border no longer add to an element's set width */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1c1c1e;
  background: #ffffff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* footer sticks to bottom even on short pages */
  
}

/* A reusable "accent" color — change this ONE value to re-theme the whole site */
:root {
  --accent: #0a6c99;
  --header-text:#ffffff;
  --ink: #212121;
  --muted: #212121;
  --border: #92d9ff;
  --button-desel: #92d9ff;
  --button-sel: #ffffff;
}

html {
  background: var(--accent);
}

img {
  -webkit-user-drag: none;
}

@view-transition {
  navigation: auto;
}

/* ============================
   HEADER + NAV
   ============================ */
header {
  background: var(--accent);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

header .site-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--header-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

header .site-title img {
  height: 32px;
  width: auto;
}

nav a {
  color: var(--button-desel);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--header-text);
}

nav a.active {
  color: var(--header-text);
  border-bottom: 2px solid var(--button-sel);
  font-weight: 800;
}

/* ============================
   MAIN CONTENT AREA
   ============================ */
main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ============================
   HOME / ABOUT PAGE
   ============================ */
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.hero p {
  max-width: 600px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 1rem;
}

.btn:hover {
  opacity: 0.9;
}

/* ============================
   PROJECTS GRID
   This is CSS Grid: instead of one column stacking top to bottom
   (like flexbox column), grid lets you define a 2D layout.
   ============================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 equal-width columns */
  gap: 1.5rem;
  margin-top: 2rem;
}

/* On narrow screens, drop to a single column */
@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

a.project-card {
  border: 0.5px solid #0e8cc6;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

a.project-card:hover {
  transform: translateY(-4px);
  border: 1.5px solid var(--accent);
}

.project-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #eef0f4; /* placeholder color until you add real images */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops images to fill the box without distorting */
}

.project-card .info {
  padding: 1rem;
}

.project-card h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
}

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

/* ============================
   PROJECT PIC GRID
   This is CSS Grid: instead of one column stacking top to bottom
   (like flexbox column), grid lets you define a 2D layout.
   ============================ */
.projpic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 equal-width columns */
  gap: 1.5rem;
  margin-top: 2rem;
}

/* On narrow screens, drop to a single column */
@media (max-width: 600px) {
  .projpic-grid {
    grid-template-columns: 1fr;
  }
}

.projpic-card .thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #eef0f4; /* placeholder color until you add real images */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.projpic-card .thumb img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover /* crops images to fill the box without distorting */
}

.projpic-header h1 {
  margin: 1.5rem 0 0 5rem;
}

.projpic-header p {
  margin: 0 0 0 5rem;
}

/* ============================
   PHOTOS GRID
   This is CSS Grid: instead of one column stacking top to bottom
   (like flexbox column), grid lets you define a 2D layout.
   ============================ */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;

  /* full-bleed trick */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  padding-left: 5rem;
  padding-right: 5rem;
  padding-bottom: 5rem;
}

body {
  overflow-x: hidden;
}

/* On narrow screens, drop to a single column */
@media (max-width: 600px) {
  .photos-grid {
    grid-template-columns: 1fr;
  }
}

.photos-card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef0f4; /* placeholder color until you add real images */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.photos-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover /* crops images to fill the box without distorting */
}

.photos-header h1 {
  margin: 1.5rem 0 0 5rem;
}

.photos-header p {
  margin: 0 0 0 5rem;
}

/* ============================
   PHOTOS LIGHTBOX
   ============================ */

 .lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

/* ============================
   PROJECT DETAIL PAGE
   ============================ */
.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
 
.back-link:hover {
  color: var(--ink);
}
 
.project-hero {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 8px;
  overflow: hidden;
  background: #eef0f4;
  margin-bottom: 1.5rem;
}
 
.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 
.project-detail h1 {
  margin-bottom: 0.25rem;
}
 
.project-detail .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================
   FOOTER
   ============================ */
footer {
  background: var(--accent);
  padding: 1.5em 2rem;
  border-top: 0px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright p{
 text-align: left;
 color: var(--header-text);
 font-size: 0.85rem;
  }

.credit p{
 text-align: right;
 color: var(--header-text);
 font-size: 0.85rem;
}
