/* ########################################### 
# Hello! Why are you looking at my CSS???
# There is no reason for it! ;)
########################################### */

/* *** COLOURVAR *** */

:root {
  --primary: #0088aaff;
  --secondary: #fcfffbff;
  --tertiary: #262420ff;
  /* --gradient: linear-gradient(90deg, rgba(0,128,170,1) 55%, rgba(5,34,78,1) 100%); */
  --gradient: linear-gradient(135deg, #008fb355 25%, transparent 25%) -40px 0/
      80px 80px,
    linear-gradient(225deg, #008fb3 25%, transparent 25%) -40px 0/ 80px 80px,
    linear-gradient(315deg, #008fb355 25%, transparent 25%) 0px 0/ 80px 80px,
    linear-gradient(45deg, #008fb3 25%, #0088aa 25%) 0px 0/ 80px 80px;
  --accent: #ffbe46;
}

/*********************************************/
/* FONTS */
/*********************************************/
@font-face {
  font-family: "SofiaSans";
  src: url("../fonts/Sofia_Sans/SofiaSans-VariableFont_wght.ttf")
    format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "SofiaSansItalic";
  src: url("../fonts/Sofia_Sans/SofiaSans-Italic-VariableFont_wght.ttf")
    format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Elephant";
  src: url("../fonts/Elephant.otf") format("opentype");
}

/*********************************************/
/* GENERAL */
/*********************************************/

html {
  scroll-behavior: smooth;
  font-size: 17px;
  background-color: var(--tertiary);
}

html,
body {
  margin: 0;
  height: 100%;
  width: 100%;
  padding: 0;
}

a {
  text-decoration: none;
  color: var(--secondary);
}

i {
  font-family: "SofiaSansItalic", sans-serif;
}

/*********************************************/
/* PARAGRAPH */
/*********************************************/

h2 {
  font-family: "Elephant", sans-serif;
  font-size: clamp(3rem, 5vw + 1rem, 4rem);
  margin-bottom: 3rem;
  color: var(--secondary);
}

h3 {
  font-family: "Elephant", sans-serif;
  font-size: 2rem;
  line-height: 1.3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--secondary);
}

h1,
p,
li,
.button-more,
.tabnav {
  font-family: "SofiaSans", sans-serif;
  line-height: 1.4;
  margin: 0.45em 0;
  color: var(--secondary);
}

@media (max-width: 600px) {
  p,li,.button-more,.tabnav { font-size: 1rem; }
}
@media (min-width: 900px) {
  p,li,.button-more,.tabnav { font-size: 1.2rem; }
}

.text-box {
  margin: 0 auto;
  max-width: 70ch;
  padding: 0 2rem;
}

/*********************************************/
/* SECTION */
/*********************************************/

section {
  padding: 5rem 0 6rem 0;
  margin: 0;
  text-align: center;
  border-bottom: 2px solid var(--secondary);
}

/*********************************************/
/* logo */

#Top {
  background: var(--primary);
  background: var(--gradient);
  opacity: 1;

  display: block;
  height: 100vh; /* 50em;*/
  box-sizing: border-box;
  padding: 0;
}

#Top > div {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.top-box:last-child {
  max-width: 40ch;
  margin: 0 2rem;
}

.top-box h1 {
  text-align: left;
}

.top-box img {
  height: auto;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .top-box img { width: 15rem; }
  .top-box h1 {font-size: 1rem;}
}
@media (min-width: 900px) {
  .top-box img { width: 22rem; }
  .top-box h1 {font-size: 1.2rem;}
}

/* BUTTON */
.cta-button {
  text-align: left;
}

.cta-button a {
  font-size: 1.3rem;
  font-family: "Elephant", sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: .4rem 0;
  color: var(--accent);
  /* text-shadow: 2px 2px 0px rgba(0,0,0,0.2); */
}

.cta-button a::before {
  content: "";
  width: 100%;
  height: .25rem;
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--secondary);
  transition: 0.5s transform ease;
  transform: scale3d(0,1,1);
  transform-origin: 0 50%;

  background: var(--accent);
  transform-origin: 100% 50%;
}

.cta-button a:hover::before {
  transform: scale3d(1,1,1);
  transform-origin: 0 50%;
}

/*********************************************/
/* images */

.image-block {
  padding: 0;
  margin: 0;
  height: 120px;

  background-image: url(../images/coastline.webp);
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  border-bottom: 2px solid var(--secondary);
}

.clip-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 40%;
  filter: grayscale(60%);
}

/*********************************************/
/* service */

.item-box div {
  display: inline-block;
  vertical-align: top;
  max-width: 18rem;
  min-width: 15rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.item-box div:nth-child(2) {
  margin-left: 1rem;
  margin-right: 1rem;
}

.item-box img {
  width: 9rem;
  margin-bottom: 1.3rem;
}

/*********************************************/
/* about me */

#AboutMe {
  background: var(--primary);
  background: var(--gradient);
}

#AboutMe div {
  display: inline-block;
  vertical-align: top;
  margin: .6rem;
}

#AboutMe > div > div:last-child {
  text-align: justify;
  hyphens: auto;
}

#AboutMe img {
  width: 17rem;
  height: 17rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--secondary);
  box-shadow: 4px 4px 20px rgb(75, 75, 75);
}

/*********************************************/
/* design work */

#MyWork {
  background-color: var(--secondary);
}

#MyWork h2,
#MyWork p {
  color: var(--primary);
}

.grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

#MyWork img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  box-shadow: 4px 4px 10px rgb(179, 179, 179);
}

/*********************************************/
/* contact */

/* layout see item-box */

/*********************************************/
/* FOOTER */
/*********************************************/

footer {
  padding: 3rem 0 2rem 0;
  text-align: center;
  color: var(--secondary);
}

footer div {
  font-family: "SofiaSans", sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

footer img {
  width: 7.5rem;
}
