/* || IMPORTS || */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&display=swap');

/* || RESET || */
/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

/*
    2. Remove default margin
  */
* {
    margin: 0;
}

/*
    3. Allow percentage-based heights in the application
  */
html,
body {
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;

}

/*
    Typographic tweaks!
    4. Add accessible line-height
    5. Improve text rendering
  */
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/*
    6. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/*
    7. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
    font: inherit;
}

/*
    8. Avoid text overflows
  */
S p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* || VARIABLES || */
:root {
    /* || COLORS || */
    --clr-primary-100: hsl(0, 0%, 100%);
    --clr-primary-400: hsl(153, 71%, 59%);
    --clr-primary-900: hsl(0, 0%, 8%);

    --clr-secondary-300: hsl(0, 0%, 85%);
    --clr-secondary-800: hsl(0, 0%, 14%);

    /* || FONTS || */
    --ff-primary: 'Space Grotesk', sans-serif;

    /* || FONT-SIZE || */
    --fs-300: 1rem;
    /* 18px */
    --fs-400: 1.5rem;
    /* 24px */
    --fs-500: 1.5rem;
    /* 32px */
    --fs-600: 2rem;
    /* 48px */
    --fs-800: 2.5rem;
    /* 88px */

    /* || FONT-WEIGHT || */

    --fw-medium: 500;
    --fw-bold: 700;

    /* || OTHERS || */
    --border-radius: 1rem;
    --padding-main: 1.5rem;

    --char-spacing-lg: -0.15625rem;
    --char-spacing-md: -0.09375rem;

    --line-height-lg: 5.5;
    --line-height-md: 3.5;
    --line-height-sm: 2;
    --line-height-xs: 1.75;

}

/* || UTILITIES || */


.fw-medium {
    font-weight: var(--fw-medium);
}

.fw-bold {
    font-weight: var(--fw-bold);
}

.fs-300 {
    font-size: var(--fs-300);
}

.fs-400 {
    font-size: var(--fs-400);
}

.fs-500 {
    font-size: var(--fs-500);
}

.fs-600 {
    font-size: var(--fs-600);
}

.fs-800 {
    font-size: var(--fs-800);
}

.char-spacing-lg {
    letter-spacing: var(--char-spacing-lg);
}

.char-spacing-md {
    letter-spacing: var(--char-spacing-md);
}

.line-height-lg {
    line-height: var(--line-height-lg);
}

.line-height-md {
    line-height: var(--line-height-md);
}

.line-height-sm {
    line-height: var(--line-height-sm);
}

.line-height-xs {
    line-height: var(--line-height-xs);
}



/* || GLOBAL || */
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
html {
    scroll-behavior: smooth;
}
html.lenis {
    height: auto;
  }
  
  .lenis.lenis-smooth {
    scroll-behavior: auto;
  }
  
  .lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
  }
  
  .lenis.lenis-stopped {
    overflow: hidden;
  }
  
  .lenis.lenis-scrolling iframe {
    pointer-events: none;
  }

body {
    background-color: var(--clr-primary-900);
    color: var(--clr-primary-100);
    
    font-family: var(--ff-primary);
    display: flex;
    flex-direction: column;
}

.main__content-header{
    opacity: 0;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem;
    max-width: 1110px;
}

.content__divider{
    opacity: 0;
}

.knowledge-item{
    opacity: 0;
}
/* || HEADER || */
.header {
    padding: 1rem 0rem 3rem 0rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.infobar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 10rem;
    width: 100%;
}

.header__right-container {
    width: 100%;
}

.logo__container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1;
}



/* || CONTENT || */
.content__container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.content__header {
    display: grid;
    grid-template-rows: auto auto;
    position: relative;
}

.content__header-right {
    grid-row: 1 / 2;
    max-width: calc(100% - 2rem);
    width: 100%;
    margin: 0 auto;
}

.content__header-right img {
    width: 100%;
    height: 100%;
    margin-bottom: 2rem;
    z-index: -2;
    max-width: 350px;
    margin: 0 auto;
}

.content__header-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    z-index: 1;
}

.underline {
    text-decoration: underline;
    text-decoration-color: var(--clr-primary-400);
}

.content__header-left .content-title {
    line-height: 1;
}

.project__image{
    position: relative;
    width: 100%;
}

.image{
    z-index: 1;
    width: 100%;

}
.transparent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    z-index: 1;
  }
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
  }
  
  .email-error{
    margin-top: 8px;
    color: var(--color-red);
    font-size: 12px;
    display: block;
    text-align: right;
    }
  
  .project__image:hover .transparent-overlay {
    background-color: rgba(0, 0, 0, 0.6);
  }
  
  .project__image:hover .image-overlay {
    opacity: 1;
  }
  .bottom__footer-container{
    padding-bottom: 2rem;
  }
#message{
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--clr-primary-100);
    padding: 1rem;
    width: 100%;
    height: 100%;
    resize: none;
    overflow: auto;
    max-height: 150px;
    

}

.email-error{
    display: none;
}
.button {
    border: none;
    background-color: transparent;
    color: var(--clr-primary-100);
    text-decoration-color: var(--clr-primary-400);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    padding: 0;
}

.button::after {
    content: '';
    display: block;
    width: 70%;
    height: 2px;
    background-color: var(--clr-primary-400);
    transition: all 0.3s;
    margin: 0.3rem auto 0rem auto;
}

.button:hover::after {
    width: 100%;
}

.button:hover {
    color: var(--clr-primary-400);
    transform: scale(1.1);
}

.knowledge__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    position: relative;
    
}

.main__content-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
}

.main__content-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.main__content-projects {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-transform: uppercase;
}

.project__description {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.project__buttons {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.project__image{
    width: 100%;
    height: 100%;
    max-height: 450px;
    overflow: hidden;
    object-fit: contain;
}

.project__image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.header__footer,
.footer {
    background-color: var(--clr-secondary-800);
}

.header__footer-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0rem 1rem 0rem;
}

.header__footer-left {
    text-align: center;
}

.header__footer-right {
    width: 100%;
}

.header__footer-right form {
    display: flex;
    flex-direction: column;
    gap: 2rem;

}

.header__footer-right form input {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--clr-primary-100);
    padding: 1rem;

}

.header__footer-right form input::placeholder {
    text-transform: uppercase;

}

.header__footer-right #message {
   padding-bottom: 5rem;
}

.form__button {
    justify-content: end;
    margin: 2rem 1rem 5rem 1rem;
}

.footer__container{
    margin: 2rem 1rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__right{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.bg-rings{
    position: absolute;
    top: 12%;
    z-index: -1;
    object-position: left;
    transform: translateX(-60%);
    
}

.bg-circle{
    position: absolute;
    bottom: 60%;
    right: 0;
    transform: translateX(30%);
    z-index: 1;
    
}

.bg-rings2{
    position: absolute;
    bottom: -15%;
    z-index: -1;
    right: 0;
    transform: translateX(50%);
    
}

.header__footer{
    position: relative;
}

.bg-rings3{
   position: absolute;
   bottom: -10%;
   transform: translateX(-55%);
   
    
}

.header__footer{
    opacity: 0;
}

@media screen and (min-width: 768px) {
    :root {
        /* || FONT-SIZE || */
        --fs-300: 1.125rem;
        /* 18px */
        --fs-400: 1.5rem;
        /* 24px */
        --fs-500: 2rem;
        /* 32px */
        --fs-600: 3rem;
        /* 48px */
        --fs-800: 4.5rem;
        /* 88px */
    }
    .flex-center{
        margin: 2rem;
    }

 /* || HEADER ||*/
    .infobar{
        flex-direction: row;
        justify-content: space-between;
        max-width: 100%;
        
    }
    .header__right-container{
        width: 12rem;
    }

    .header{
        padding: 0;
        
    }

    .content__divider{
        margin: 0rem 1rem 0rem 1rem;
    }

    /* || CONTENT HEADER ||*/
.content__header
{
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
    margin: 1rem 0rem 2rem 1rem;
    position: relative;
    overflow: hidden;
    min-height: 490px;
    overflow-y: hidden;
    
}

.content__header-right{
    grid-column-start: 2;
    width: 100%;
    height: 100%;

}

.content__header-right img{
    z-index: -1;
    width: auto;
    height: auto;
    position: absolute;
    top: -30%;
    right: 0;
    margin-top: 12rem;
    max-width: none;
    
    
    aspect-ratio: initial;
}

.content__header-left{
text-align: left;
align-items: flex-start;
gap: 4rem;
margin: 0;
}





.knowledge-item{
    max-width: 320px;
    width: 100%;
    text-align: left;
    
}

.knowledge__container{
    flex-direction: row;
    flex-wrap: wrap;
   
    
}

.content__container{
gap: 0;
margin-bottom: 5rem;
}
.projects-divider{
    display: none;
}

.main__content-projects{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 3rem;
}

.project{
    max-width: 325px;
    width: 100%;
    opacity: 0;
}

.project__buttons{
    margin-top: 1rem;
}

.header__footer-container{
    max-width: 440px;
    margin: 0 auto;
}
.form__button{
    max-width: 440px;
    margin: 1rem auto 5rem auto;
    
}

.footer__container{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    width: 100%;
    margin: 2rem 0rem 2.5rem 0rem;
}
.footer__right{
    max-width: 12rem;
    width: 100%;
}
}


@media screen and (min-width: 1124px) {
    :root {
        /* || FONT-SIZE || */
        --fs-300: 1.125rem;
        /* 18px */
        --fs-400: 1.5rem;
        /* 24px */
        --fs-500: 2rem;
        /* 32px */
        --fs-600: 3rem;
        /* 48px */
        --fs-800: 5.5rem;
        /* 88px */
    }

    .flex-center{
        margin: 1rem auto;
        max-width: 1110px;
    }

    .header .flex-center{
        margin: 1rem;
    }

   

    .header{
        width: 100%;
    }

    .project{
        max-width: calc(50% - 1.5rem);
    }

    .header__footer-container{
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        gap: 12rem;
    }

    .form__button{  
        width: 100%;
        margin-bottom: 5rem;
    }

    .header__footer-left{
        text-align: left;
    }

    .bg-circle{
        bottom: 40%;
        left: 55%;
    }
    .content__divider{
width: 100%;   
 }
    .content-description{
        max-width: 50%;
    }

    .content__header{
        min-height: 620px;
    }

    .content__header-left{
        justify-content: flex-start;
        gap: 2rem;
    }

    .bg-rings2{
        
        transform: translateX(80%);
    }
}