/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
/*
Document
========
*/
/**
Use a better box model (opinionated).
*/
*,
::before,
::after {
  box-sizing: border-box;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the line height in all browsers.
3. Prevent adjustments of font size after orientation changes in iOS.
4. Use a more readable tab size (opinionated).
*/
html {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; /* 1 */
  line-height: 1.15; /* 2 */
  -webkit-text-size-adjust: 100%; /* 3 */
  tab-size: 4; /* 4 */
}

/*
Sections
========
*/
/**
Remove the margin in all browsers.
*/
body {
  margin: 0;
}

/*
Text-level semantics
====================
*/
/**
Add the correct font weight in Chrome and Safari.
*/
b,
strong {
  font-weight: bolder;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
Tabular data
============
*/
/**
Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/
table {
  border-color: currentcolor;
}

/*
Forms
=====
*/
/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/
legend {
  padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Interactive
===========
*/
/*
Add the correct display in Chrome and Safari.
*/
summary {
  display: list-item;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  font-family: "IBM Plex Sans", sans-serif;
  background-color: #f4cee3;
  color: #222831;
}

h1,
h2,
h3 {
  font-family: "DM Serif Display", serif;
  color: #d24720;
}

h2 {
  font-size: 3rem;
  margin: 0 0.7rem;
}

.main__section {
  padding: 0 2rem;
  margin: 2rem 0;
  scroll-margin-top: 6rem;
}

#nav-toggle:checked ~ .header__nav-list {
  max-height: 350px;
  padding-right: 2rem;
}

#nav-toggle:checked ~ .overlay {
  opacity: 1;
  pointer-events: auto;
}

.project-card__toggle:checked ~ .project-card__inner {
  transform: rotateY(180deg);
}

.project-card__toggle:checked + .project-card__click-area {
  pointer-events: none;
}

.header {
  position: sticky;
  background-color: #f8e2ee;
  top: 0;
  z-index: 200;
}
.header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
}
.header__logo {
  font-family: "Meddon", cursive;
  font-size: 1.8rem;
  text-decoration: none;
  font-weight: 800;
  color: #d24720;
  padding-left: 1rem;
}
.header__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  opacity: 0.75;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #b79aaa;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: right;
  align-items: flex-end;
  padding-right: 2rem;
  z-index: 20;
  position: absolute;
}
.header__nav-link {
  font-family: "DM Serif Display", serif;
  font-style: italic;
  font-size: 2rem;
  text-decoration: none;
  color: #ac1703;
}
.header__burger {
  font-size: 2.5rem;
  cursor: pointer;
  color: #d24720;
  padding-right: 2rem;
}

.overlay {
  position: fixed;
  top: 4.7rem;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 5;
}

.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.hero__intro {
  font-style: italic;
  text-align: center;
}
.hero__title {
  justify-content: center;
  align-items: center;
  font-size: 5rem;
}
.hero__tagline {
  font-size: 1.1rem;
}
.hero__image {
  object-fit: cover;
  width: 100%;
  height: auto;
}
.hero__cta {
  display: none;
}

.about__text {
  font-style: italic;
  line-height: 1.4rem;
}

.techstack__grid {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2rem 0 6rem 0;
}
.techstack__item {
  flex: 0 0 calc(50% - 1rem);
  justify-content: center;
  text-align: center;
  border: 1px solid #d24720;
  border-radius: 30px 0 30px 0;
  background-color: #f8e2ee;
  padding: 3rem;
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 400;
}

.projects__grid {
  display: grid;
  margin: 2rem 0 6rem 0;
  gap: 3rem;
}

.project-card {
  position: relative;
  perspective: 1000px;
}
.project-card__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.project-card__click-area {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
}
.project-card__inner {
  position: relative;
  width: 100%;
  height: 230px;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
.project-card__face {
  position: absolute;
  inset: 0;
  background-color: #f8e2ee;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 1.2rem 1.2rem 1.6rem;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}
.project-card__face--front {
  transform: rotateY(0deg);
}
.project-card__face--back {
  transform: rotateY(180deg);
}
.project-card__flip-back {
  position: absolute;
  top: 0.7rem;
  left: 0.9rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: #d24720;
  z-index: 4;
}
.project-card__image-wrapper {
  border-radius: 8px;
  overflow: hidden;
}
.project-card__image {
  width: 100%;
  object-fit: cover;
  display: block;
}
.project-card__title {
  font-size: 1.5rem;
  margin-top: 0;
  color: #d24720;
  text-align: center;
}
.project-card__title--back {
  text-align: end;
}
.project-card__description {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.2rem;
  text-align: end;
}
.project-card__button {
  margin-top: auto;
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #d24720;
  color: #f8e2ee;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  max-width: 50%;
  text-align: center;
  margin-left: auto;
}

.footer {
  background-color: #f8e2ee;
  padding: 3rem 2rem;
  border-radius: 30px 30px 0 0;
  text-align: center;
  color: #b79aaa;
  margin-top: 4rem;
}
.footer__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer__email {
  margin: 0;
  font-style: italic;
  font-size: 1.2rem;
}
.footer__email-link {
  color: #b79aaa;
  text-decoration: underline;
}
.footer__socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.footer__social-link {
  color: #b79aaa;
  text-decoration: none;
  font-family: "DM Serif Display", serif;
  font-style: italic;
  font-size: 1.2rem;
  transition: opacity 0.3s ease;
}
.footer__social-link:hover {
  opacity: 0.7;
}
.footer__copyright {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (hover: hover) and (pointer: fine) {
  .project-card__click-area:hover ~ .project-card__inner {
    transform: rotateY(180deg);
  }
}
@media screen and (min-width: 768px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .header__burger, .header__checkbox {
    display: none;
  }
  .header__nav-list {
    position: static;
    max-height: none;
    padding-right: 2rem;
    background: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  .header__logo {
    padding-left: 2rem;
  }
  .header__nav-link {
    font-size: 1.2rem;
    padding: 0 8px;
    border-radius: 999px;
  }
  .header__nav-link:hover {
    background-color: #ac1703;
    color: #f8e2ee;
  }
  .hero {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    min-height: 100vh;
  }
  .hero__intro {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    text-align: left;
  }
  .hero__media {
    flex: 1;
    min-width: 0;
  }
  .hero__title, .hero__description {
    text-align: center;
  }
  .hero__cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background-color: #d24720;
    color: #f8e2ee;
    text-decoration: none;
    font-family: "DM Serif Display", serif;
    font-style: italic;
    font-size: 1.4rem;
    border-radius: 999px;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  .hero__cta:hover {
    background-color: #ac1703;
    transform: translateY(-2px);
  }
  .projects__grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/*# sourceMappingURL=style.css.map */
