body {
  margin: 0;
  font-family: "Exo", sans-serif;
  line-height: 1.6;
  color: #fff;
  background: #0d1117;
  text-align: center;
  display: flex;
  flex-direction: column;       /* stack vertically on small screens */
  align-items: center;          /* center horizontally */
  justify-content: center;
  gap: 1rem;
}

header {
  padding: 2rem 1rem;
}

.logo {
  display: block;
  margin: 0 auto 1rem;
  height: 50%;
  width: auto;
}

h1 {
  font-size: 2.5rem;
  margin: 0;
}

/* Hero sub-header */
.hero-subheader {
  font-size: 2.1rem;
  color: #ccc;
  max-width: 700px;
  margin: 0.5rem auto 0;
}

.taglines {
  padding: 1rem 1rem;
}

#snap {
    display: block;
    width: 100%;
    max-width: 700px;       /* slightly taller than container for parallax movement */
    max-height: 20%;
    margin: 0 auto 1rem;
    object-fit: cover;            /* crop instead of stretching */
    object-position: center;      /* center cropping */

    /* Rectangular fade: top-bottom and left-right */
    -webkit-mask-image: 
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-composite: intersect; /* combine gradients */

    mask-image: 
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    mask-composite: intersect; /* combine gradients */
}

address {
  font-style: normal;
  text-align: left;
}

a{
  text-decoration: none;
  color: red;
}

#contact {
  padding: 2rem 1rem;
}

.contact-info {
    display: grid;
    grid-template-columns: max-content 1fr; /* labels auto-width, values fill remaining */
    gap: 0.3rem 1rem;                       /* row gap, column gap */
    font-style: normal;                     /* remove default italic */
}

.contact-info .row {
    display: contents; /* allow grid children to align properly */
}

.contact-info .label {
    font-weight: bold;
    justify-self: end;  /* right-align labels */
}

.contact-info .value {
    justify-self: start; /* left-align content */
}

hr {
  margin: 2rem 0;
}

#contact .tagline {
    font-style: normal;
    color: #eee;
    margin-bottom: 1rem;
    max-width: 600px;
}

form {
  margin-top: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  text-align: start;
}

form input,
form textarea {
    width: 100%;           /* fit form width */
    box-sizing: border-box;/* include padding/border in width */
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
  background: #d32f2f;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  margin: auto;
}

button:hover {
  background: #b71c1c;
}

footer {
  padding: 1rem;
  font-size: 0.8rem;
}