@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
/* 1. Use a more-intuitive box-sizing model */
html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: "inter";
  background-color: #0b0b0b;
  color: white;

}

img {
  border-radius: 12px;
}

input, button, textarea, select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  font-family: "Playfair Display";
  font-style: italic;
  overflow-wrap: break-word;
}

h2{
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D90F23;
}

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: white;
  font-weight: 600;
}

section {
  position: relative;
  background-color: rgba(38, 93, 93, 0);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

#root, #__next {
  isolation: isolate;
}

header {
  position: relative;
  background-color: rgba(38, 93, 93, 0);
  z-index: 1;
}

nav {
  width: 100%;
  padding: 20px 0px;
}

.nav-container {
  max-width: 1440px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0px auto;
  padding: 0px 20px;
}

.nav-logo {
  font-family: "Playfair Display";
  font-weight: 700;
  font-style: italic;
  font-size: 24px;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  justify-content: right;
  gap: 40px;
}

.hero-welcome {
  display: flex;
  justify-content: left;
  max-width: 1440px;
  align-items: center;
  margin: 3em auto;
  padding: 20px;
}

.welcome-text-one {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-style: normal;
  font-size: clamp(2em, 5vw, 3em);
}

.welcome-text-two {
  color: #D90F23;
  font-weight: 700;
  font-size: clamp(2em, 6vw, 4em);
  line-height: 1em;
}

.hero-container {
  display: flex;
  flex-direction: row;
  gap: 80px;
  justify-content: left;
  max-width: 1440px;
  margin: 20px auto 80px;
  padding: 20px;
}

.hero-container img {
  object-fit: cover;
  width: 100%;
}

.hero-left {
  width: 100%;
  max-width: 425px;
  min-width: 100px;
  object-fit: cover;
  border-radius: 10px; 
  padding: 20px;
}

.hero-right {
  padding-top: 3em;
  flex-grow: 1;
  padding: 20px;
}

.hero-text {
  max-width: 50ch;
  font-size: 1.5em;
  font-weight: 500;
}

.hero-text-container{
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding-top: 20px;
}

.text-highlight {
  color: #D90F23;
}

.btn {
  background-color: #ffffff00;
  color: white;
  border-radius: 999px;
  padding: 16px 32px;
  margin: 20px 0px;
  border: solid 1px #D90F23;
  width: fit-content;
}

.btn:hover {
  background-color: #D90F23;
  transition: background-color 200ms ease-in-out;
}

.btn-secondary {
  background-color: #ffffff00;
  color: white;
  border-radius: 999px;
  padding: 16px 32px;
  margin: 20px 0px;
  border: solid 1px #ffffff;
  width: fit-content;
  text-align: center;
}
.btn-secondary:hover {
  background-color: #ffffff;
  color: #D90F23;
  border: solid 1px #ffffff;
  transition: all 200ms ease-in-out;
}

.pattern-overflow-1{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0%;
  left: 0%;
  z-index: -3;
  overflow: hidden;
}

.pattern-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: -50%;
  right: -50%;
  -webkit-animation:spin 10s linear infinite;
  -moz-animation:spin 10s linear infinite;
  animation:spin 100s linear infinite;
  color: #D90F2350;
}

@-moz-keyframes spin { 
  100% { -moz-transform: rotate(360deg); } 
}
@-webkit-keyframes spin { 
  100% { -webkit-transform: rotate(360deg); } 
}
@keyframes spin { 
  100% { 
      -webkit-transform: rotate(360deg); 
      transform:rotate(-360deg); 
  } 
} 

.pattern-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: -50%;
  left: -50%;
  z-index: -2;
  -webkit-animation:spin 4s linear infinite;
  -moz-animation:spin 4s linear infinite;
  animation:spin 100s linear infinite;
  color: #D90F2350;
  }

@-moz-keyframes spin { 
  100% { -moz-transform: rotate(360deg); } 
}
@-webkit-keyframes spin { 
  100% { -webkit-transform: rotate(360deg); } 
}
@keyframes spin { 
  100% { 
      -webkit-transform: rotate(360deg); 
      transform:rotate(-360deg); 
  } 
}

#about {
  padding-top: 100px;
}

.about-container{
  max-width: 90ch;
  margin: 100px auto 200px auto;
  padding: 100px 20px;
  align-items: center;
  text-align: center;
}

.about-container h2{
  color: #D90F23;
  margin-bottom: 40px;

}

.paragraph-large {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}

#projects {
  padding-top: 100px;
  overflow:hidden;
}

.project {
  display: flex;
  margin: 100px 0;
}

.project-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 2;
  padding: 0 32px 0 24px;
}

.project-client {
  font-size: 1.2em;
}

.project-image img {
  object-fit: cover;
  width: 800px;  
  height: 600px;
  flex: 1;
}

.project:nth-child(even) {
  flex-direction: row-reverse;
}

.project h3 {
  font-size: 3em;
  margin-bottom: 10px;
  color: #cf061a;
  line-height: 1.2;
}

footer {
  position: relative;
  overflow: hidden;
}

.footer-cta-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1440px;
  align-items: center;
  margin: 3em auto;
  gap: 20px;
}

footer h3 {
  font-size: clamp(4em, 7vw, 12em);
  text-align: center;
  line-height: 1.2;
}

.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
  align-items: center;
  margin: 5em auto;
  padding: 20px;
}

.footer-link-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-copyright-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 100%;
  align-items: center;
  margin:  auto;
  padding: 20px;
  font-size: 0.9em;
}

.footer-location {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-pattern {
  color: #890916;
  position: absolute;
  z-index: -2;
  top: 0;  
  left: 0;       
  right: 0;   
  bottom: 0;         
  width: 100%;        
  height: 100%;   
  transform: translate(0%, 0%) scale(3);   
  object-fit: cover;
}

.footer-background {
  background-color: #920A18;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0%;
  left: 0%;
  z-index: -3;
}



/* MOBILE STYLES  */

@media (max-width: 768px) {
  
  /* CSS */

.btn-secondary {
  background-color: #ffffff00;
  color: white;
  border-radius: 999px;
  padding: 16px 48px;
  margin: 20px 0px;
  border: solid 1px #ffffff;
  width: 100%;
  text-align: center;
}
.btn-secondary:hover {
  background-color: #ffffff;
  color: #D90F23;
  border: solid 1px #ffffff;
  transition: all 200ms ease-in-out;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  justify-content: right;
  gap: 20px;
}

.hero-container {
  flex-direction: column;
  gap: 20px;
}

.hero-welcome {
  margin: 1em auto;
}

.hero-container {
  gap: 20px;
  margin-bottom: 20px;
}

.hero-container {
  object-fit: cover;
  width: 100%;
}

.hero-container img {
  object-fit: cover;
  width: 100%;
}
  
.pattern-1 {
  width: 100%;
  height: 100%;
  top: -50%;
  right: -50%;
}

.pattern-2 {
  width: 100%;
  height: 100%;
  bottom: -50%;
  left: -50%;
}

#projects {
  padding-top: 40px;
}

.project:nth-child(even) {
  flex-direction: column-reverse;
}

.project:nth-child(odd) {
  flex-direction: column-reverse;
}

.project-image img {
  object-fit: cover;
  width: 100%;  
  height: 600px;
  flex: 1;
}

.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
  align-items: center;
  margin: 2em auto;
  padding: 20px;
}

.footer-link-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  font-size: 1.3em;
}

.footer-copyright-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
  align-items: center;
  margin:  auto;
  padding: 40px;
  font-size: 0.9em;
}

}