*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
html
{
    scroll-behavior: smooth;
}
.nav
{
    display: flex;
    gap:1em;
    justify-content: center;
    padding: 1em;
}
.nav a
{
    text-decoration: none;
    font-weight: bold;
    color: deepskyblue;
    transition: 0.3s;
}
.nav a:hover
{
    color: red;
    transform: scale(1.1);
}
.space
{
    width: 100%;
    height: 18vh;
}
.first-section
{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.first-section .right
{
    display: flex;
    flex-direction: column;
    gap:0.8em;
    width: 36%;
}
.first-section .right h1
{
    font-size: 2.5em;
}
.first-section .right p
{
    line-height: 1.5em;
}
button {
  position: relative;
  background-color: red;
  color: white;
  border: none;
  padding: 0.8em;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
  max-width: 30%;
  border-radius: 0.4em;
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0%;
  height: 100%;
  background-color:deepskyblue ;
  z-index: -1;
  transition: 0.4s;
  border-radius: 0.4em;
}
button:hover::before {
  width: 100%;
    color: black;
}
.first-section .left
{
   width: 35%;
    display: flex;
    justify-content: center;
}


.second-section
{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.second-section h2
{
    width: 40%;
    display: flex;
    justify-content: center;
    font-size: 1.5em;
}
.second-section .cont
{
    width: 80%;
}
.second-section .prodects
{
    width: 100%;
    display: flex;
    justify-content: center;
    gap:0.5em;
    text-align: center;
}
.second-section .prodects h3
{
    font-weight: bold;
}
.second-section .prodects p
{
    color: red;
}
.second-section .prodects .first,.second-section .prodects .second,.second-section .prodects .third
{
    display: flex;
    flex-direction: column;
    width: 25%;
    gap:0.3em;
}
.second-section .prodects img
{
    width: 90%;
    height: 90%;
    transition: 0.3s;
}
.second-section .prodects img:hover
{
    transform: scale(0.9);
}
.third-section
{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap:0.5em;
    
}
.third-section .cont
{
    width: 80%;
    text-align: center;
    display: flex;
    justify-content: center;
}
.third-section .title
{
    text-align: center;
    max-width: 50%;
}
.third-section .cont .par{
  position: relative;
  text-align: center;
  z-index: 1;
  border-top: 0.3em solid darkred;
    width: 70%;
    border-radius: 0.3em;
    cursor:pointer;
}

.third-section .cont .par::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  z-index: -1;
  transition: 0.4s ease;
    background-color: darkred;
}

.third-section .cont .par:hover::before {
  height: 100%; 
}


.third-section .cont p
{
    color: red;
    font-weight: bold;
    background-color: #dbdada;
    border-radius: 0.5em;
    text-align: center;
    width: 70%;
    padding: 0.2em;
}
.third-section .cont .first,.third-section .cont .second,.third-section .cont .third
{
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:0.2em;
}

.fourth-section
{
    width: 100%;
    height: 40vh;
    display: flex;
    gap:0.5em;
    justify-content: center;
    margin-bottom: 2em;
}
.fourth-section .third
{
    display: flex;
    flex-direction: column;
    gap:0.3em;
    width: 18%;
}

/* Phone styles */
@media (max-width: 649px)
{
    .first-section
    {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: space-between;
        gap:1em;
    }
     .first-section .right
    {
        align-items: center;
    }
    .first-section .right button
    {
    width: 50%;
    max-width: 50%;
    }
    .first-section .left
    {
        width: 80%;
    }
    .second-section
    {
        flex-direction: column;
        align-items: center;
        gap:1em;
    }
    .second-section h2
    {
        width: 100%;
        text-align: center;
    }
    .second-section .prodects
    {
        flex-direction: column;
        align-items: center;
        gap:1em;
    }
    .second-section .prodects .first,.second-section .prodects .second,.second-section .prodects .third
    {
        width: 80%;
    }
    .second-section .prodects img
    {
        padding-left: 2em;
    }
    .third-section
    {
        flex-direction: column;
        align-items: center;
        gap:1em;
    }
    .third-section .cont
    {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: space-between;
        gap:1em;
        width: 100%;
    }
    .third-section .cont .first,.third-section .cont .second,.third-section .cont .third
    {
        width: 80%;
    }
    .fourth-section
    {
        flex-direction: column;
        align-items: center;
        height: auto;
        gap:1em;
    }
    .fourth-section img,.fourth-section .third
{
    width: 80%;
    gap:1em;
}
.fourth-section .third img
{
    width: 100%;
}

}

/* Tablet styles */
@media (min-width: 650px) and (max-width: 1023px)
{
    .first-section .right
    {
        align-items: center;
        text-align: center;
    }
    .first-section .right button
    {
        width: 30%;
    }
   .second-section h2
    {
        width: 50%;
    }
 
}
