@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@300;600&family=Ubuntu:wght@400;500;700&display=swap');

/* ----------------- */
/* Custom properties */
/* ----------------- */

:root{
    /* fonts familly */
    --ff-overpass:'Overpass', sans-serif;
    --ff-ubuntu:'Ubuntu', sans-serif;

    /* colors */
    --primary-text : hsl(356, 100%, 66%);
    --primary-hover : hsl(355, 100%, 74%);
    --primary-heading : hsl(208, 49%, 24%);

    --light :  hsl(0, 0%, 100%);
    --footer-text :hsl(240, 2%, 79%);
    --body-text :hsl(207, 13%, 34%);
    --footer-bg :hsl(240, 10%, 16%);

    --Very-light-red: hsl(13, 100%, 72%);
    --Light-red: hsl(353, 100%, 62%);

    --Very-dark-gray-blue: hsl(237, 17%, 21%);
    --Very-dark-desaturated-blue: hsl(237, 23%, 32%);

    /* font-sizes */
    /* mobile */
    --fs-1: 1.85rem;
    --fs-2: 1.5rem;
    --fs-3: 1.56rem;
    --fs-4: 1.25rem;
    --fs-5: 0.9375rem;
    --fs-6: 2rem;

       

}
@media (min-width:45em) {
    :root{
    --fs-1: 3.75rem;
    --fs-2: 2.375rem;
    --fs-3: 1.82rem;
    --fs-4: 1.125rem;
    --fs-5: 1rem;
    --fs-6: 2.25rem;
    }
}




/* -------------------- */
/* Reset                */
/* -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body{
    overflow-x: hidden;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-weight: normal;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    
  }
  
  /* Make images easier to work with */
  img,
  picture {
    max-width: 100%;
    display: block;
    height: auto;
  }
  
  /* Inherit fonts for inputs and buttons */
  input,
  button,
  textarea,
  select {
    font: inherit;
  }
  
  ul {
    list-style: none;
    padding-inline:0 ;
  }
  a{
      text-decoration: none;
  }
  /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
  @media (prefers-reduced-motion: reduce) {
    html:focus-within {
      scroll-behavior: auto;
    }
  
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }


/* ------------------ */
/* Utility classes    */
/* ------------------ */
.under-line{
    text-decoration: underline;
}

.flex {
    display: flex;
    gap: var(--gap, 1rem);
  }

.flex-col {
    flex-direction: column;
}  
.grid {
display: grid;
gap: var(--gap, 1rem);
}

.d-block {
display: block;
}

.d-none {
    display: none;
}
.show {
   
    display: block!important ;
    
}
p{
line-height: 2em;

}

h2 ,h3 {
    padding-bottom: 1em;
}
section {
    padding-top: 6.25rem;
}
section * {
    text-align: center;
}
section p {
    padding-inline:2em ;
}

section h3 {
    max-width: 80%;
    padding-top: 2em;
    margin: auto;
}

.transparent {
    background-color: transparent;
}

.flow > *:where(:not(:first-child)) {
margin-top: var(--flow-space, 1rem);
}

.container {

margin-inline: auto;
/* max-width: 120rem; */
}

.grid-container {
display: grid;
padding-inline: 1rem;
text-align: center;
place-items: end center;
}

/* colors--------------- */




/* typography */

.overpass-light {
    font-family: var(--ff-overpass);
    font-weight: 300;
}
.overpass-bold {
    font-family: var(--ff-overpass);
    font-weight: 600;
}

.ubunto-light {
    font-family: var(--ff-ubuntu);
    font-weight: 400;

}

.ubunto-meduim {
    font-family: var(--ff-ubuntu);
    font-weight: 500;

}
.ubunto-bold {
    font-family: var(--ff-ubuntu);
    font-weight: 600;

}
/* fonts */
.fs-1{
    font-size: var(--fs-1);
}
.fs-2 {
    font-size: var(--fs-2);
}
.fs-3 {
    font-size: var(--fs-3);
}
.fs-4 {
    font-size: var(--fs-4);
}
.fs-5 {
    font-size: var(--fs-5);
}
.fs-6 {
    font-size: var(--fs-6);
}

/* text color */
.dark-blue-text {
color: var(--Very-dark-gray-blue);
}

.light-text{
    color: var(--light);
}

.footer-text {
    color: var(--footer-text);
}


/* ------------------- */
/* Compontents         */
/* ------------------- */
nav {
    background-color: var(--Very-light-red);
    padding-block: 1em;
    place-items: center;
    padding-inline: 1em;
}
@media (min-width:45em) {
    nav{
        padding-inline: clamp(2em,5vw,9.5em);
    }

    
}


i{
    padding-inline-start: 5px;
}

.dropdown {
    position: relative;
    
}

.dropdown-menu {
    position: absolute;
    background-color: var(--light);
    width: 9em;
    text-align: start;
    padding: 1em;
    --flow-space: 0.4em;
    border-radius: 5px;
    box-shadow: 0 1rem 3rem 0 rgb(0 0 0 / 15%);
    margin-top: 2em;
    top: 0;
    left: 0;
    display: none;
      

}


.drop-down-btns {
    font-family: var(--ff-ubuntu);
    font-weight: 300;
    color: var(--light);

}
.dropdown-menu li {
    font-family: var(--ff-overpass);
    font-weight: 300;
    cursor: pointer;
}
.dropdown-menu li:hover {
    font-weight: 600;   

}
.login-btn{
    background-color: transparent;
    border: none;
    font-family: var(--ff-ubuntu);
    font-weight: 500;
    color: var(--Very-dark-gray-blue);
    cursor: pointer;
}
@media (min-width:45em) {
 .login-btn{
     color: var(--light);
 }
    

}


.rounded-btn {
    background-color: var(--light);
    border-radius: 5rem;
    color: var(--Light-red);
    border: none;
    cursor: pointer;
    width: 9.5rem;
    padding-block: 1em;
}

.rounded-btn:hover{
    background-color: var(--primary-hover);
    color: var(--light);
}
.rounded-btn-reversed{
    background-color: transparent;
    color: var(--light);
    border: 1px solid white;
     
}
.rounded-btn-reversed:hover{
    background-color: var(--light);
    color: var(--Light-red);
}


.nav {
   display: grid;
   grid-template-columns: 7.5em 1fr 1fr ;
   gap: 2em;
   position: fixed;
   top:0;
   left:0;
   right: 0;
   z-index: 2000;

}

.nav-tags{
    --gap:1em;
    justify-self: start;
    display: none;
}

.nav-log{
    justify-self: end;
    display: none;
    
}

@media (min-width:45em) {
    .nav-tags{
        display: block;
    }
    .nav-log {
        display: block;
    }
}



.menu-btn {
    top: 50%;
    right: 2em;
    transform: translate(-50%, -50%);
    position: absolute;
    width: 40px;
    display: block;

  }



.menu-btn:before,
.menu-btn:after,
.menu-btn div {
  background: #fff;
  content: "";
  display: block;
  height: 5px;
  border-radius: 3px;
  margin: 7px 0;
  transition: 0.5s;
}
.menu-btn.opened:before {
  transform: translateY(12px) rotate(135deg);
}
.menu-btn.opened:after {
  transform: translateY(-12px) rotate(-135deg);
}
.menu-btn.opened div {
  transform: scale(0);
}


@media (min-width:45em) {
    .menu-btn {
        display: none;
    }
    
}

.heading-container {
    height: 38rem;
    /* border: 1px solid transparent; */
    text-align: center;
    color: var(--light);
    background-image: url("./images/bg-pattern-intro-mobile.svg"), linear-gradient(to right,var(--Very-light-red), var(--Light-red)); 
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto;
    border-bottom-left-radius: 10rem;


    
}

@media (min-width:45em) {
    .heading-container{
        background-image: url("./images/bg-pattern-intro-desktop.svg"), linear-gradient(to right,var(--Very-light-red), var(--Light-red)); 
        background-position: left 25% center;
    }
    
}

.heading-container h1 {
    padding-top: 15rem;
}
.heading-container .heading-btns{
    justify-content: center;
    margin-top: 2em;
}


.mobile-nav-container{
    position: fixed;
    flex-flow: column;
    inset: 13% 10% auto 10%;
    text-align: center;
    background-color: var(--light);
    padding-bottom: 1em;
    color: var(--Very-dark-gray-blue);
    border-radius: 1rem;
    padding-top: 1rem;
    transform: translateX(200%) skewX(-30deg);
    transition: transform  500ms ease-in;
    z-index:200;
    
    
}
@media (min-width:45em) {
    .mobile-nav-container {
        display: none;
    }
}

.hidden{
    
    transform: translateX(0);
}

.dropdown-menu-m {
    display: none;
    width:80%;
    margin: auto;
    background-color: #EFEFF1;
    border-radius: 10px;
    padding-block: 1em;
}
.rounded-btn-m{
    background-color:var(--Very-light-red) ;
    color: var(--light);
    
}
.nav-log-m {
    width: 90%;
    margin: auto;
    border-top: 1px solid #EFEFF1;
    padding-top: 1em;
}
.mobile-nav span{
    padding-left: 0.5em;
    color: var(--Light-red);
}

.grid-section {
    place-items: center;
}

.section--dark {
    position: relative ;
    background-image: url("./images/bg-pattern-circles.svg"),linear-gradient(to bottom,hsl(237, 17%, 21%),hsl(237, 23%, 32%) ) ;
    background-repeat: no-repeat;
    background-size: 50em,  cover;
    background-position: center bottom 12em ,center center    ;
    margin-top:20em;
    border: 1px solid black;
    padding-bottom: 10em;
    padding-inline: 1em;
    border-top-right-radius:5rem ;
    border-bottom-left-radius: 7rem;

}

#phone-img{
    margin-top: -18rem;

}
.description{
    padding-inline:1rem ;
}
#third-sec-des{
    display: none;
}

footer{
    margin-top: 6em;
    background-color: var(--footer-bg);
    border-top-right-radius: 7rem;
    justify-content: center;
    padding-block: 4rem;
}
footer * {
    text-align: center;
}
footer img {
    margin: auto;
    padding-bottom: 2em;
}
footer .list {
    line-height: 2em;
}

@media (min-width:45em) {
    .first-section{
        margin-top: 8em;
        padding-top: 0em;
        place-items: start;
        position: relative;
        grid-template-columns: 1fr 1.3fr;
        grid-template-areas: 
        'title title'
        'article img';

    }

    .first-section h2 {
        padding-top: 0;
        padding-bottom: 3em;
        justify-self: center;
        grid-area: title;
    }
    .first-section div {
        
        justify-self: start;
        padding-left: 5em;
        grid-area: article;
    }
    p ,h3 ,.section--dark h2 ,.third-section h2 {
        text-align: left;
        padding: 0 !important;
        margin: 0 !important;
    }
    #editor-mobile {
        display: none;
    }
    #editor-desktop {
        display: block;
         
        position: absolute;
        right: -17em;
        top:0em;
        
        justify-self:end;
      
    }

/* /2nd section */
.section--dark{
    place-items: start;
    position: relative;
    grid-template-columns: 1fr 1.2fr;
    background-position: left -11em bottom 12em ,center center    ;
    padding-bottom: 1em;
    padding-top: 2em;
    align-items: center;

    
}
#phone-img{
    margin-top: -10rem;

}
/* third scetion */

#third-sec-mob {
    display: none;
}
.third-section {
        margin-top: 15em;
        margin-bottom: 20em;
        place-items: start;
        position: relative;
        grid-template-columns: 1.2fr 1fr;
        grid-template-areas: 
        '. article ';
}
#third-sec-des {
    display: block; 
    top: -8em;
    position: absolute;
    left: -17.5em;
    justify-self:start

}
.third-section div {
    grid-area: article;
}
/* footer */
footer{
    grid-template-columns: repeat(4,1fr);
    align-items:flex-start  ;
}

footer div ,footer li {
    text-align: left;
}
footer li:hover {
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9em;
}
.attribution{
    grid-column: 1/5;
}
}
