/*
--------
CSS Resets
--------
*/

/*  Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  /*  Remove default margin */
  * {
    margin: 0;
    padding: 0;
  }
  
  html{
    /*  setting default font size */
    font-size: 18px;
    /*  min height for the component */
    height: 100%;
  }
  
  body {
    /*  Add accessible line-height */
    line-height: 1.5;
    /*  Improve text rendering */
    -webkit-font-smoothing: antialiased;
    /*  layout styles for body */
    font-family: 'Barlow', sans-serif;
    min-height: 100vh;
    position: relative;

  }
  
  /*  Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  /*  Inherit fonts for form controls */
  input, button, textarea, select, a {
    font-family: 'Barlow Condensed', sans-serif;
  }
  
  /*  Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  
  
  /*
     Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }

/*
--------
CSS Variables
--------
*/

:root{

    /* Colors */
    --color-primary: hsl(0, 100%, 68%);
    --color-heading: hsl(230, 29%, 20%);
    --color-body: hsl(230, 11%, 40%);
    --color-muted: hsl(231, 7%, 65%);
    --color-bg: hsl(207, 33%, 95%);
    --color-text: hsl(0,0%,100%);

    /* sized: font-size, padding, margin etc */
    --spacing-lg: 2rem;
    --spacing-md: 1.75rem;
    --spacing-sml: 0.75rem;
}


/*
--------
CSS Layout
--------
*/

/* body bg */
body::after{
    content: '';
    position: absolute;
    background-color: var(--color-bg);
    width: 50%;
    height: 50%;
    z-index: -10;
    right: 0;
    top: 0;
    border-bottom-left-radius: 10%;
}

/* navbar */

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(2rem, 1.8239rem + 0.8451vw, 2.5rem) var(--spacing-md);
}

.navbar .logo{
    width: 24px;
}

.navbar button{
    background: transparent;
    border: transparent;
    cursor: pointer;
}



/* main Section */

main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-block: var(--spacing-md);
    gap: var(--spacing-lg);
    overflow-x: hidden;
}

main .main-img{
    min-width: 130%;
    transform: translate(4%);
}

section.component-info{
    padding: calc(var(--spacing-lg)*1.5) var(--spacing-lg);
    gap: 1rem;
}

.sub-heading{
    gap: 0.5rem;
}

.sub-heading .new{
    background-color: var(--color-heading);
    color: var(--color-text);
    padding: 0.1rem 0.4rem;
    font-weight: 600;
    font-size: 0.83rem;
    border-radius: 0.65rem;
}

.sub-heading .light-text{
    font-size: 0.83rem;
    color: var(--color-muted);
    font-weight: 400;
    letter-spacing: 3px;
}

section.component-info .headline{
    font-size: clamp(2.2rem, 1.7423rem + 1.9531vw, 3.5rem);
    line-height: 1;
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--color-heading);
}

section.component-info .normal-text{
    color: var(--color-body);
}

.btn-flex{
    margin-block: var(--spacing-sml);
}

.btn-flex button{
    background-color: var(--color-primary);
    border: transparent;
    color: var(--color-text);
    font-weight: 600;
    padding: clamp(0.65rem, 0.5356rem + 0.5493vw, 0.975rem) clamp(1.75rem, 1.3099rem + 2.1127vw, 3rem);
    border-radius: 0.3rem;
    cursor: pointer;
    margin-inline-end: 0.5rem;
    font-family: 'Barlow Condensed', sans-serif;
}

.btn-flex span{
    font-size: 0.83rem;
    color: var(--color-muted);
    font-weight: 400;
}


/*
--------
Mobile Navabar
--------
*/

.nav-links{
    position: absolute;
    top: 100px;
    background-color: var(--color-text);
    box-shadow: 0 5px 10px var(--color-body);
    z-index: 10;
    width: 85%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing-sml)*1.5);
    padding-block: calc(var(--spacing-sml)*1.5);
    opacity: 0;
    pointer-events: none;
    visibility: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-links li a{
    font-family: "Barlow Condensed", sans-serif;
    color: var(--color-heading);
    font-weight: 700;
}

.nav-links li.nav-divider{
    width: 100%;
}


.nav-links li.nav-divider .hr-line{
    width: 80%;
    height: 1px;
    background-color: var(--color-muted);
    border: none;
    align-self: stretch;
    margin: 0 auto;
}

.nav-links li a.muted{
    color: var(--color-muted);
}

.nav-links.active{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}




/*
------------
CSS Utilities
------------
*/

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

.flex-col{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.uppercase{
    text-transform: uppercase;
}

a{
    text-decoration: none;
}

li{
    list-style: none;
}


/*
------------
Media Qeuries: Larger Screen 768px
------------
*/

@media(min-width: 768px){
    /*
--------
Desktip Navabar
--------
*/

/* main navbar */
    .navbar{
        max-width: 82%;
        margin: 0 auto;
        /* padding: calc(var(--spacing-lg)*1.25) var(--spacing-md); */
    }

    .navbar .logo{
        width: 36px;
    }


    .toggle-btn{
        display: none;
    }

    /* nav links */

    .nav-links{
        position: static;
        box-shadow: none;
        background-color: transparent;
        transform: none;
        justify-content: flex-end;
        flex-direction: row;
        gap: calc(var(--spacing-md)*1.3);
        padding-block: calc(var(--spacing-sml)*1.5);
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transition: none;
        z-index: inherit;
    }


    .nav-links li.nav-divider{
        width: auto;
    }

    .nav-links  .hr-line{
        display: none;
    }
    .nav-links .nav-circle{
        width: 6px;
        height: 6px;
        background-color: var(--color-muted);
        border-radius: 50%;
    }

    .nav-links li a:hover{
        text-decoration: underline;
    }

    /* main */

    main{
        flex-direction: row-reverse;
        align-items: center;
        justify-content: center;
        overflow: auto;
        max-width: 90%;
        padding: calc(var(--spacing-lg)*2.65) var(--spacing-md);
        margin: 0 auto;
        padding-inline: 0;
        padding-inline-start: 1rem;
        margin-right: 0;
        gap: 1rem;
        height: 100%;
    }

   

    main .main-img{
        min-width: 60%;
        transform: translate(10%);
        flex: 1;
        height: 100%;
    }

    section.component-info{
        padding: 0;
        gap: 1.5rem;
        flex: 1;

    }

    .btn-flex{
        margin-block: var(--spacing-md);
    }

}
