/* ------------------- */
/* Custom properties   */
/* ------------------- */

:root {
    /* colors */
    --clr-dark: 230 35% 7%;
    --clr-light: 231 77% 90%;
    --clr-white: 0 0% 100%;
    
    /* font-sizes */
    --fs-900: clamp(5rem, 8vw + 1rem, 9.375rem);
    --fs-800: 3.5rem;
    --fs-700: 1.5rem;
    --fs-600: 1rem;
    --fs-500: 1rem;
    --fs-400: 0.9375rem;
    --fs-300: 1rem;
    --fs-200: 0.875rem;
    
    /* font-families */
    --ff-serif: "Bellefair", serif;
    --ff-sans-cond: "Barlow Condensed", sans-serif;
    --ff-sans-normal: "Barlow", sans-serif;
}

@media (min-width: 35em) {
    :root {
        --fs-800: 5rem;
        --fs-700: 2.5rem;
        --fs-600: 1.5rem;
        --fs-500: 1.25rem;
        --fs-400: 1rem;
    }
}

@media (min-width: 45em) {
    :root {
        /* font-sizes */
        --fs-800: 6.25rem;
        --fs-700: 3.5rem;
        --fs-600: 2rem;
        --fs-500: 1.75rem;
        --fs-400: 1.125rem;
    }
}


/* ------------------- */
/* Reset               */
/* ------------------- */

/* https://piccalil.li/blog/a-modern-css-reset/ */

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

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
    margin: 0; 
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-weight: 400;
}
/* debug */
.debug {
    border: 1px solid red;
  }
/* set up the body */
body {
    font-family: var(--ff-sans-normal);
    font-size: var(--fs-400);
    color: hsl( var(--clr-dark) );
    background-color: hsl( var(--clr-white) );
    line-height: 1.5;
    min-height: 100vh;
    
    display: grid;
    grid-template-rows: min-content 1fr;
    
    overflow-x: hidden;
}

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

/* make form elements easier to work with */
input,
button,
textarea,
select {
    font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ------------------- */
/* Utility classes     */
/* ------------------- */

/* general */

.flex {
    display: flex;
    gap: var(--gap, 1rem);
}

.grid {
    display: grid;
    gap: var(--gap, 1rem);
}

.d-block {
    display: block;
}

.flow > *:where(:not(:first-child)) {
    margin-top: var(--flow-space, 1rem);
}

.flow--space-small {
    --flow-space: .75rem;
}

.container {
    padding-inline: 2em;
    margin-inline: auto;
    max-width: 80rem;
}


/* for this site */
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;        
  }
  
  html {
    font-size: 62.5%;
  }
  
  body {
    font-family: "Montserrat", sans-serif;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  li,
  button,
  label,
  input,
  a,
  p {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 4rem;
  }
  
  h3 {
    font-size: 2.5rem;
  }
  
  h4,
  h5 {
    font-size: 2rem;
  }
  
  ul {
    list-style: none;
  }
  
  a {
    text-decoration: none;
    color: #2c2c2c;
  }
  /* header */
  .main-head {
    width: 95%;
    margin: 0 0 0 auto;
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    min-height: 10vh;
    width: 60%;
    flex-wrap: wrap;
  }
  
  nav .logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    flex: 1 1 10rem;
  }
  
  nav .logo h1 {
    margin: 2rem;
  }

  nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
    flex: 1 1 40rem;
  }
  /* header  */
  /* Intro */
  .intro {
    min-height: 90vh;
    width: 90%;
    margin: auto;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    flex-direction: row;
  }
  
  .intro h3 {
    /* font-size: 8rem;
    padding-top: 2rem; */
    font-size: 6rem;
    padding: .5rem 0rem;
    background: linear-gradient(left, #38d39f, #38a4d3);
    background-clip: text;
    display: inline-block;
  }
  
  .intro p {
    padding-top: 2rem;
    color: #2c2c2c;
  }
  
  .splash {
    position: absolute;
    top: 0%;
    right: 0%;
    height: 100%;
    z-index: -1;
  }
  
  .intro-social {
    margin-top: 4rem;
  }
  
  .intro-social a {
    margin-right: 5rem;
  }
  
  .active {
    background: #2c2c2c;
    color: white;
    padding: 1rem 3rem;
    border-radius: 2rem;
  }
  
  .intro-text,
  .intro-images {
    flex: 1 1 40rem;
  }
  
  #plant-left {
    animation: plant 1.5s ease infinite alternate;
  }
  
  #plant-right {
    animation: plant 1.5s ease infinite alternate 0.5s;
  }
  
  #me {
    animation: me 1s ease infinite alternate;
    transform-origin: bottom;
  }
  
  #clock-arrow {
    animation: clock 1.5s infinite linear;
    transform-box: fill-box;
    transform-origin: bottom;
  }
  
  @keyframes me {
    from {
      
     transform: rotateZ(-5deg);
    }
    to {
      
    transform: rotateZ(5deg);
    }
  }
  

  
  @keyframes plant {
    from {
    transform: translateY(0%);
    }
    to {
      
    transform: translateY(-30%);
    }
  }
  

  
  @keyframes clock {
    from {
     transform: rotateZ(0deg);
    }
    to {
      transform: rotateZ(360deg);
    }
  }

  /* for shaking hand */
  .hand-wave {
    display: inline-block;
    font-size: 7rem; /* Adjust size as needed */
    animation: wave 1s infinite;
    transform-origin: 70% 70%; /* Adjust the origin to make it look like a wave */
  }

  @media screen and (max-width:45rem) {
    .hand-wave {
        display: inline-block;
        font-size: 5rem; /* Adjust size as needed */
        animation: wave 1s infinite;
        transform-origin: 70% 70%; /* Adjust the origin to make it look like a wave */
      }
  }
  
  @keyframes wave {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-20deg); }
    30% { transform: rotate(0deg); }
    45% { transform: rotate(20deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
  }
  /* intro */

  /* contact */
  .form-section {
    padding: 1.5rem;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-top: 3rem;
  }
  
  .form-section form {
    padding: 3rem 10rem;
    box-shadow: 0px .7rem .7rem rgba(0, 0, 0, 0.2), 0px 1.2rem 3.5rem rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 2rem;
  }
  
  .form-section form input,
  .form-section form textarea {
    margin: 2rem;
  }
  
  .form-section form input:focus,
  .form-section form textarea:focus {
    outline: 1px solid black;
  }
  
  .form-section form textarea {
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
  }
  
  .form-section form button {
    width: 100%;
    padding: 2rem;
    background: #515151;
    color: white;
  }
  
  .form-section form button:focus {
    background: #33696b;
  }
  /* contact */

  /* footer */
  footer {
    background: #515151;
    color: white;
    min-height: 10vh;
    padding: 0% 5%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
  }
  
  footer ul {
    flex: 1 1 40rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
  }
  
  footer h4 {
    flex: 1 1 40rem;
  }
  /* footer */
  @media screen and (max-width: 1332px) {
    html {
      font-size: 53%;
    }
    .splash {
      display: none;
    }
    svg {
      width: 80%;
    }
    nav {
      width: 100%;
    }
   
  }
  
  @media screen and (max-width: 754px) {
    html {
      font-size: 45%;
    }
    svg {
      height: 60%;
    }
    .main-head {
      width: 100%;
    }
    nav .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1 1 20rem;
    margin-top: 2rem;
    }
    nav ul {
    flex: 1 1 60rem;
    margin: 2rem 0rem;
    }
    .intro-text {
      margin-top: .2rem;
      text-align: center;
    }
    .intro-images {
      text-align: center;
    }
    .intro-social {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: row;
    }
    .intro-social a {
      margin: 2rem;
    }
    .elena,
    .travelly {
      flex: 1 1 50rem;
    }
    .elena img,
    .travelly img {
      width: 100%;
      height: 100%;
    }
    form {
      padding: 0rem;
      width: 100%;
    }
    footer ul {
      display: grid;
    }
  
  }


  /* for blogs section */
 
.card > * {
    font-size: 1.125rem;
    /* line-height: 1.6; */
}

.card {
  border: 1px solid hsl(0 0% 80%);
  border-radius: 0.5rem;
  padding: 1rem;
}

projects {
    display: grid;
    gap: 1rem;
    max-width: 90vw;
    margin-right: auto;
    margin-left: auto;
   padding: 1rem;
  }

 
  
  .date {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.9;
    padding: 1rem;
  }
  
  .tags {
    list-style: none;
    margin: 0;
    padding: 0;
  
    display: flex;
    gap: 0.5rem;
  
    flex-wrap: wrap;
  }
  
  .tag {
    font-size: 2.5rem;
    font-weight: 700;
    background-color: hsl(0 0% 90%);
    color: hsl(0 0% 30%);
    border: 1px solid hsl(0 0% 70%);
    border-radius: 1rem;
    padding: 0.125em 0.75em;
  }

  .title {
      font-size: 5rem;
      font-weight: 900;
  }
  .summary {
      font-size: 4rem;
      font-weight: 700;
  }
  projects .read {
    font-size: 4rem;
    background: white;
    color: black;
    padding: 1.5rem;
    /* border-radius: 2rem;
    border: 1px solid black; */
  }
  projects .read  > a {
    color: black;
    border: 1px solid black;
    padding: 1rem;
    margin: 1rem;
    border-radius: 2rem;
    text-decoration: underline;
    
  }
 