@import url("https://fonts.googleapis.com/css2?family=Hurricane&display=swap");

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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

:root {
  --color-bg: #373b40;
  --color-bg-secondary: #585d65;
  --color-primary: #fff;
  --color-secondary: #68e0cf;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  background: var(--color-bg);
  color: var(--color-primary);
}

a {
  text-decoration: none;
  color: var(--color-primary);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  background: var(--color-bg-secondary);
  border-radius: 20px;
  margin: 1rem 0;
}

.main-nav {
  display: flex;
}

.main-nav a {
  padding: 10px 15px 10px 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.logo a {
  padding: 10px 15px;
  font-size: 1.5rem;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.logo a:hover {
  color: var(--color-secondary);
}

.main-nav a:hover {
  color: var(--color-secondary);
}

.flex-container {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.flex-container > * {
  flex: 1;
}

.flex-container .info > * {
  margin: 0.8rem 0;
}

.flex-container h1 {
  line-height: 2.5rem;
}

.portfolio {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.portfolio img {
  widht: 250px;
  height: 250px;
  margin: 1rem;
  border: 3px solid #000;
  box-shadow: 3px 3px 8px 0px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
}

.portfolio img:hover {
  cursor: pointer;
  transform: scale(1.1);
}

a.btn {
  padding: 15px 25px;
  display: inline-block;
  text-align: center;
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid #585d65;
  cursor: pointer;
  border-radius: 64px;
  transition: all 0.3s ease-in-out;
}

a.btn:hover {
  background: var(--color-secondary);
}

.title {
  display: inline-block;
  font-family: "Hurricane", cursive;
  font-size: 4rem;
  margin: 4rem 0;
  transition: all 0.3s ease-in-out;
}

.title:hover {
  color: var(--color-secondary);
}

footer {
  padding: 2rem;
  float: right;
}

.contact-form {
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-form form input,
.contact-form form textarea {
  border: 0;
  outline: 0;
  padding: 1em;
  border-radius: 8px;
  display: inline-block;
  width: 100%;
  margin-top: 1em;
  font-family: inherit;
  background-color: #f2f2f2;
}
.contact-form form #input-submit {
  color: var(--color-primary);
  background-color: var(--color-bg-secondary);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.contact-form form #input-submit:hover {
  background-color: var(--color-secondary);
}
.contact-form form textarea {
  height: 126px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 2rem;
  }
  .flex-container {
    flex-direction: column;
    align-items: start;
    gap: 1rem;
  }

  .portfolio img {
    max-width: 35vw;
    height: auto;
  }
}
