/**
 * Typography & Text styles
 */

/* html is set to 62.5% so that all the REM measurements are based on 10px sizing. So basically 1.5rem = 15px */
html {
  font-size: 62.5%;
}
body {
  font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
  line-height: 1.6;
  font-weight: 400;
  font-family: "Roboto", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #171D3A;
}
/** 
Buttons */
.button {
  position: relative;
  display: inline-block;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  background-color: hotpink;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.button span {
  position: relative;
  z-index: 2;
}

.button::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: darkviolet;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
}

.button:hover::after {
  transform: scaleX(1);
}

/** Image size */
img {
  max-width: 100%;
  height: auto;
  display: block; /* prevents whitespace under images */
}
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; /* space between images */
}
.portfolio-gallery img {
  height: auto;
  object-fit: contain;
}
.project-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 4rem;
}
.project-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 4rem;
}

.project-row img {
  width: 40%;
  max-width: 400px;
  height: auto;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.project-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .project-row {
    flex-direction: column;
  }

  .project-row img {
    width: 100%;
    max-width: none;
  }
}
.project-row.reverse {
  flex-direction: row-reverse;
}

/**
 * Links
 */
a {
  font-weight: normal;
  text-decoration: none; 
  color:#A500B8;
}
a:focus {
  outline: thin dotted;
}

small {
  font-size: 75%;
}

/**
 * Headings
 */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1;
  text-rendering: optimizeLegibility; /*  voodoo to enable ligatures and kerning | https://developer.mozilla.org/en-US/docs/CSS/text-rendering */
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 300;
}
h1 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
h2 { font-size: 3.0rem; line-height: 1.3;  letter-spacing: -.1rem; }
h3 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
h4 { font-size: 1.8rem; line-height: 1.5;  letter-spacing: -.05rem; }
h5 { font-size: 1.5rem; line-height: 1.6;  letter-spacing: 0; }
h6 { font-size: 1.4rem; line-height: 1.6;  letter-spacing: 0; }

/**
 * Paragraphs
 */
p {
  margin: 0 auto 1.5em auto; /* bottom margin for paragraphs */
}
p + p {

}

/**
 * Quotes & Blockquotes
 */
q {
  quotes: '\00201C' '\00201D';
}
q:before {
  content: open-quote;
}
q:after {
  content: close-quote;
}

blockquote {
  /*background-color: #F8F8F8;*/
  border-left: 2px solid #AFC0D2;
  margin: 1.6em 10%;
  padding: .75em 1em;
  font-size:1.8rem;
}
blockquote p:last-child {
  margin-bottom: 0;  
}

/**
 * Layout styles
 */

/* Full size background image */
html, #container, .inner { background-color:#E7EBFD;}
body {
  max-width:1200px;
  margin:25px auto;
}
header, #content, footer { 
  background-color:#E7EBFD; 
  padding:25px;
  color:#171D3A; 
}
iframe {
  max-width:100%;
}

/* Menu Links */
ul.main-menu {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  list-style: none;
}
ul.main-menu li a {
  margin-right:20px;
  font-size:2.0rem;
  border-bottom: solid transparent 3px;
  color:#171D3A;
}
ul.main-menu li a:hover {
  color:#95ACF9;
}
ul.main-menu li a.active {
  color:#171D3A;
  border-bottom-color:#F598FF;
}

/* Utility classes */
.hide {
  display:none;
}
.show {
  display:block;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 6rem 0;
}

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

.hero h1 {
  font-size: 4.8rem;
  margin-bottom: 1.5rem;
}

.hero-intro {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-image img {
  max-width: 360px;
  border-radius: 1rem;
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image img {
    max-width: 280px;
  }
}
.button.outline {
  background: transparent;
  border: 2px solid hotpink;
  color: hotpink;
}

.button.outline::after {
  background-color: hotpink;
}

