@import url("./fonts.css");
@import url("./reset.css");
@import url("./components.css");
@import url("./responsive.css");

:root {
  --font-size-base: 14px;
  --font-size-mobile: 11px;
  --font-size-small: 10px;
  --line-height-base: 1.425;
  --line-height-mobile: 1.4;
  --line-height-small: 1.3;
  --color-text: #000;
  --color-bg: #fff;
  --color-white: #fff;
  --color-text-slide-bg: #1a1a1a;
  --color-dark-bg: #1a1a1a;
  --project-primary-color: #1a1a1a;
  --spacing-small: 8px;
  --spacing-medium: 16px;
  --spacing-large: 20px;
  --spacing-xl: 24px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

#logo-top,
#logo-bottom {
  height: 2.5rem;
  width: auto;
}

#logo-top path,
#logo-bottom path {
  fill: var(--logo-color, #000);
}

/* About text styling to match top logo color */
.about-text h1,
.about-text p {
  color: var(--logo-color, #000) !important;
}

/* Footer text styling to match bottom logo color */
.footer-contact p a {
  color: var(--logo-color, #000) !important;
}

.about-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: var(--color-bg);
  scroll-snap-align: start;
}

@media (min-width: 1200px) {
  .about-section {
    min-height: 50vh;
    justify-content: flex-start;
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

.about-content {
  max-width: 600px;
  text-align: center;
  width: 100%;
}

@media (min-width: 1200px) {
  .about-content {
    max-width: 600px;
    text-align: left;
  }
}

.about-content h1 {
  font-size: inherit;
  font-weight: 600;
  color: inherit;
  margin-bottom: var(--spacing-medium);
}

.about-text {
  margin-bottom: 0;
}

.about-text p {
  margin-bottom: var(--spacing-medium);
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-align: inherit;
  max-width: 100%;
}

.about-contact p {
  margin-bottom: var(--spacing-small);
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-align: inherit;
}

.about-contact a,
.about-text a {
  color: inherit;
  text-decoration: underline;
}

.about-contact a:hover,
.about-text a:hover {
  text-decoration: none;
}

.project {
  min-height: 50vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
}

.project-title {
  position: absolute;
  top: var(--spacing-large);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  font-size: inherit;
  font-weight: normal;
  color: var(--color-white);
  text-align: inherit;
  pointer-events: none;
}

.project-carousel {
  display: flex;
  width: 100%;
  height: 50vh;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-padding: 0;
  position: relative;
}

.project-carousel::-webkit-scrollbar {
  display: none;
}

.slide {
  min-width: 100vw;
  height: auto;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin: 0;
  position: relative;
}

@media (min-width: 720px) {
  .project {
    min-height: 100vh;
  }

  .project-carousel {
    height: 100vh;
  }

  .slide {
    height: 100vh;
    min-height: 100vh;
  }
}

@media (min-width: 1200px) {
  .slide {
    min-width: 50vw;
  }
}

.slide:nth-child(odd) {
  background: #fff;
  color: #000;
}

.slide:nth-child(even) {
  background: color-mix(in srgb, var(--project-primary-color) 100%, black 20%);
  color: #fff;
}

.slide-content {
  max-width: 600px;
  text-align: center;
  padding: 1rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.slide-content h2 {
  display: none;
}

.slide-content p {
  margin-bottom: var(--spacing-medium);
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.slide-content strong {
  font-weight: 600;
}

.slide-content em {
  font-style: italic;
}

.slide-content a {
  color: inherit;
  text-decoration: underline;
}

.slide-content a:hover {
  text-decoration: none;
}

.image-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-image) center/cover;
  overflow: hidden;
}

.image-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(55px);
  transform: scale(1.95);
  mix-blend-mode: normal;
  z-index: 1;
  background-repeat: no-repeat;
  overflow: hidden;
}

.image-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.1);
  z-index: 1;
}

.image-slide img {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  z-index: 3;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

@media (min-width: 1200px) {
  .image-slide img {
    max-width: calc(50vw - 10vw);
    max-height: 80vh;
  }
}

.footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 2.5rem;
  scroll-snap-align: start;
}

.footer-content {
  max-width: 600px;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.footer-contact p {
  margin-bottom: var(--spacing-medium);
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-align: inherit;
}

.footer-message p {
  margin-bottom: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-align: inherit;
  font-style: italic;
}

.footer-contact p:last-child {
  margin-bottom: 0;
}

.footer-contact a {
  color: inherit;
  text-decoration: underline;
  margin-right: var(--spacing-medium);
}

.footer-contact a:last-child {
  margin-right: 0;
}

.footer-contact a:hover {
  text-decoration: none;
}

@media (min-width: 1200px) {
  .footer {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .footer-content {
    max-width: 600px;
    text-align: center;
  }
}

a:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

button:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.about-text p::selection,
.slide-content p::selection,
.footer-contact p::selection,
.footer-message p::selection {
  background-color: #f4a6a6;
  color: #000;
}

.about-text p::-moz-selection,
.slide-content p::-moz-selection,
.footer-contact p::-moz-selection,
.footer-message p::-moz-selection {
  background-color: #f4a6a6;
  color: #000;
}

.project-title,
.slide-counter,
.image-slide,
.image-slide img,
.click-zone {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
