/*========================= GOOGLE FONTS  ===============*/
/* Poppins is loaded non-blocking from index.html (an @import here delayed the first paint) */

/*========================= VARIBLE CSS  ===============*/
:root {
    --header-height: 3rem;

    /*============ Colors ==========*/
    /* Change favorite color */
    --hue-color: 250; /*Purple 250 - Green 142 - Blue 230 - Pink 340*/

    /* HSL color mode */
    --first-color: hsl(var(--hue-color), 69%, 61%);
    --first-color-second: hsl(var(--hue-color), 59%, 61%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --title-color: hsl(var(--hue-color), 8%, 15%);
    --text-color: hsl(var(--hue-color), 8%, 45%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --input-color: hsl(var(--hue-color), 70%, 96%);
    --body-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: #fff;
    --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);
    --border-color: hsl(var(--hue-color), 40%, 92%);
    --success-color: hsl(142, 60%, 30%);
    --success-bg: hsla(142, 60%, 45%, .1);
    --error-color: hsl(0, 70%, 48%);
    --error-bg: hsla(0, 80%, 55%, .08);

    /*============ Effects ==========*/
    --glow-color: hsla(var(--hue-color), 69%, 61%, .45);
    --shadow-sm: 0 2px 8px -2px hsla(var(--hue-color), 30%, 30%, .12);
    --shadow-md: 0 10px 30px -12px hsla(var(--hue-color), 30%, 30%, .25);
    --shadow-lg: 0 22px 45px -18px hsla(var(--hue-color), 40%, 30%, .35);
    --ease-out: cubic-bezier(.22, 1, .36, 1);

    /*============ font and typography ==========*/
    --body-font: 'Poppins', sans-serif;

    /* .5rem = 8px, 1rem = 16px, 1.5rem =24px ...*/
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*============ font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;

     /*============ Margin Bottom ==========*/
     /* .25rem = 4px, .5rem = 8px, .75rem = 12px ...*/
     --mb-0-25: .25rem;
     --mb-0-5: .5rem;
     --mb-0-75: .75rem;
     --mb-1: 1rem;
     --mb-1-5: 1.5rem;
     --mb-2: 2rem;
     --mb-2-5: 2.5rem;
     --mb-3: 3rem;

     /*============ z index ==========*/
     --z-tooltip: 10;
     --z-fixed: 100;
     --z-modal: 1000;

     /* Lets height animate to/from auto (skills accordion) in supporting browsers */
     interpolate-size: allow-keywords;
}


/* font size for large device */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }

}

/*============ Variable Dark theme ==========*/

body.dark-theme{
      /* HSL color mode */
      --first-color-second: hsl(var(--hue-color), 30%, 8%);
      --title-color: hsl(var(--hue-color), 8%, 95%);
      --text-color: hsl(var(--hue-color), 8%, 75%);
      --input-color: hsl(var(--hue-color), 29%, 16%);
      --body-color: hsl(var(--hue-color), 28%, 12%);
      --container-color: hsl(var(--hue-color), 29%, 16%);
      --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
      --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
      --border-color: hsl(var(--hue-color), 20%, 22%);
      --success-color: hsl(142, 55%, 70%);
      --success-bg: hsla(142, 60%, 45%, .14);
      --error-color: hsl(0, 85%, 72%);
      --error-bg: hsla(0, 80%, 60%, .12);
      --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, .35);
      --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .55);
      --shadow-lg: 0 22px 45px -18px rgba(0, 0, 0, .7);
}


/*============ Button Dark/Light ==========*/
.nav_btns{
    display: flex;
    align-items: center;
}

.change-theme{
    font-size: 1.25rem;
    color: var(--title-color);
    margin-right: var(--mb-1);
    cursor: pointer;
    transition: color .3s, transform .5s var(--ease-out);
}

.change-theme:hover{
    color: var(--first-color);
    transform: rotate(20deg);
}

/*============ BASE ==========*/
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}

body{
    margin: 0 0 var(--header-height) 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color .4s, color .4s;
}

/* Soft decorative light behind the whole page (no filters: cheap to paint) */
body::before{
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(42rem 32rem at 100% -5%, hsla(var(--hue-color), 90%, 75%, .16), transparent 70%),
        radial-gradient(36rem 30rem at -10% 105%, hsla(calc(var(--hue-color) + 40), 90%, 75%, .12), transparent 70%);
}

body.dark-theme::before{
    background:
        radial-gradient(42rem 32rem at 100% -5%, hsla(var(--hue-color), 70%, 55%, .14), transparent 70%),
        radial-gradient(36rem 30rem at -10% 105%, hsla(calc(var(--hue-color) + 40), 70%, 55%, .08), transparent 70%);
}

h1,h2,h3,h4{
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

img{
    max-width: 100%;
    height: auto;
}

/* Visible keyboard focus everywhere */
:focus-visible{
    outline: 2px solid var(--first-color);
    outline-offset: 3px;
    border-radius: .25rem;
}


/*============ REUSABLE CSS CLASSES ==========*/
.section{
    padding: 2rem 0 4rem;
}

.section_title{
    font-size: var(--h1-font-size);
}

/* small accent bar under every section title */
.section_title::after{
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    margin: .5rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--first-color), var(--first-color-lighter));
}

.section_subtitle{
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-3);
}

.section_title{
    text-align: center;
}
.section_subtitle{
    text-align: center;
}


/*============ LAYOUT ==========*/
.container{
    max-width: 768px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid{
    display: grid;
    gap: 1.5rem;
}

.header{
width: 100%;
position: fixed;
bottom: 0;
left: 0;
z-index: var(--z-fixed);
background-color: var(--body-color);
transition: background-color .4s, box-shadow .4s;
}

/*============ NAV ==========*/
.nav{
max-width: 968px;
height: var(--header-height);
display: flex;
justify-content: space-between;
align-items: center;
}

.nav_logo,
.nav_toggle{
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: color .3s;
}

.nav_logo:hover{
    color: var(--first-color);
}

.nav_toggle{
    font-size: 1.1rem;
    cursor: pointer;
}

.nav_toggle:hover{
    color: var(--first-color);
}

@media screen and (max-width: 767px) {
    .nav_menu{
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--body-color);
        padding: 2rem 1.5rem 4rem;
        box-shadow: 0 -8px 30px rgba(0,0,0,.15);
        border-radius: 1.5rem 1.5rem 0 0;
        transform: translateY(100%);
        visibility: hidden;
        transition: transform .45s var(--ease-out), visibility .45s;
    }

    /* menu items cascade in when the sheet opens */
    .nav_item{
        opacity: 0;
        transform: translateY(10px);
        transition: opacity .35s, transform .35s var(--ease-out);
    }
    .show-menu .nav_item{
        opacity: 1;
        transform: none;
    }
    .show-menu .nav_item:nth-child(2){ transition-delay: .04s; }
    .show-menu .nav_item:nth-child(3){ transition-delay: .08s; }
    .show-menu .nav_item:nth-child(4){ transition-delay: .12s; }
    .show-menu .nav_item:nth-child(5){ transition-delay: .16s; }
    .show-menu .nav_item:nth-child(6){ transition-delay: .2s; }
}


.nav_list{
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nav_link{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: color .3s;
}

.nav_link:hover{
    color: var(--first-color);
}

.nav_icon{
    font-size: 1.2rem;
    transition: transform .3s var(--ease-out);
}

.nav_link:hover .nav_icon{
    transform: translateY(-2px);
}

.nav_close{
    position: absolute;
    right: 1.3rem;
    bottom: .5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--first-color);
    transition: color .3s, transform .3s var(--ease-out);
}

.nav_close:hover{
    color: var(--first-color-alt);
    transform: rotate(90deg);
}

/* show menu */
.show-menu{
    transform: translateY(0);
    visibility: visible;
}

/*active link */
.active-link{
    color: var(--first-color);
}


/* change background header */
.scroll-header{
    box-shadow: 0 -1px 4px rgba(0,0,0,.15);
}


/*============ HOME ==========*/
.home_container{
    gap: 1rem;
}

.home_content{
    grid-template-columns: .5fr 3fr;
    padding-top: 3.5rem;
    align-items: center;
}

.home_social{
    display: grid;
    grid-template-columns: max-content;
    row-gap: 1rem;
}

.home_social-icon{
    font-size: 1.5rem;
    color: var(--first-color);
    display: inline-block;
    transition: color .3s, transform .3s var(--ease-out);
}

.home_social-icon:hover{
    color: var(--first-color-alt);
    transform: translateY(-3px) scale(1.1);
}

.home_blob{
    width: 200px;
    fill: var(--first-color);
}

/*-- Hero photo --
  .home_img           sizing + decorative shapes
  .home_img-frame     gradient backdrop, gentle float
  .home_blob-img      transparent cut-out, head rises above the backdrop
  Width is controlled by --hero-img-width (see media queries). */
.home_img{
    --hero-img-width: 200px;
    position: relative;
    width: var(--hero-img-width);
    justify-self: center;
    isolation: isolate;
}

.home_img-frame{
    position: relative;
    /* crops the portrait just below the hands; increase the 2nd number to show more */
    aspect-ratio: 3 / 4;
    animation: hero-float 7s ease-in-out infinite;
}

/* gradient backdrop the cut-out stands on */
.home_img-frame::before{
    content: '';
    position: absolute;
    inset: 22% 0 0 0;
    z-index: -1;
    border-radius: 2rem;
    background:
        radial-gradient(120% 80% at 30% 0%, hsla(0, 0%, 100%, .35), transparent 60%),
        linear-gradient(160deg, var(--first-color-lighter) 0%, var(--first-color) 55%, var(--first-color-alt) 100%);
    box-shadow: 0 30px 60px -25px var(--glow-color), inset 0 1px 0 hsla(0, 0%, 100%, .4);
}

.home_img-frame picture{
    display: block;
    height: 100%;
}

.home_blob-img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* clip only the bottom corners to match the backdrop; the head may overflow the top */
    clip-path: inset(-50% 0 0 0 round 0 0 2rem 2rem);
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .18));
}

/* Fallback if a non-transparent photo is used: add class "home_img--photo" to .home_img */
.home_img--photo .home_img-frame::before{
    inset: 0;
}
.home_img--photo .home_blob-img{
    clip-path: inset(0 round 2rem);
    filter: none;
}

.home_img-glow{
    position: absolute;
    inset: 15% -15% -5%;
    z-index: -2;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow-color), transparent);
    opacity: .55;
    filter: blur(24px);
    pointer-events: none;
}

.home_img-shape{
    position: absolute;
    pointer-events: none;
}

.home_img-shape--ring{
    width: 4.5rem;
    height: 4.5rem;
    top: 8%;
    right: -1.25rem;
    border: 2px solid hsla(var(--hue-color), 69%, 61%, .45);
    border-radius: 50%;
    animation: hero-drift 9s ease-in-out infinite;
}

.home_img-shape--dot{
    width: 1.1rem;
    height: 1.1rem;
    bottom: 12%;
    left: -.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--first-color-lighter), var(--first-color));
    box-shadow: 0 6px 14px -4px var(--glow-color);
    animation: hero-drift 7s ease-in-out infinite reverse;
}

.home_img-shape--dots{
    width: 4rem;
    height: 3rem;
    top: 30%;
    left: -1.75rem;
    z-index: -1;
    opacity: .5;
    background-image: radial-gradient(var(--first-color) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
}

@keyframes hero-float{
    0%, 100%{ translate: 0 0; }
    50%{ translate: 0 -10px; }
}

@keyframes hero-drift{
    0%, 100%{ translate: 0 0; }
    50%{ translate: 6px -8px; }
}

.home_data{
    grid-column: 1/3;
}

.home_title{
    font-size: var(--big-font-size);
}

.home_subtitle{
    font-size: var(--h3-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-75);
}

.home_description{
    margin-bottom: var(--mb-2);
}

.home_scroll{
    /* display: none; */
}

.home_scroll-button{
    color: var(--first-color);
    transition: .3s;
}

.home_scroll-button:hover{
    transform: translateY(.25rem);
}

.home_scroll-mouse{
    font-size: 2rem;
}

.home_scroll-name{
    font-size: var(--small-font-size);
    color: var(--title-color);
    margin-right: var(--mb-0-25);
}

.home_scroll-arrow{
    font-size: 1.25rem;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce{
    0%, 100%{ translate: 0 0; }
    50%{ translate: 0 4px; }
}

/*============BUTTONS ==========*/
.button{
    display: inline-block;
    background-color: var(--first-color-second);
    background-image: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 5rem;
    font-family: inherit;
    font-size: inherit;
    font-weight: var(--font-medium);
    cursor: pointer;
    box-shadow: 0 8px 20px -8px var(--glow-color);
    transition: transform .3s var(--ease-out), box-shadow .3s, background-color .3s, color .3s;
}

.button:hover{
    background-color: var(--first-color);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -10px hsla(var(--hue-color), 69%, 55%, .7);
}

.button:active{
    transform: translateY(-1px) scale(.97);
    box-shadow: 0 6px 14px -8px var(--glow-color);
}

.button_icon{
    font-size: 1.25rem;
    margin-left: var(--mb-0-5);
    transition: transform .3s var(--ease-out);
}

.button:hover .button_icon{
    transform: translateX(.25rem);
}

.button--white{
    background-color: #fff;
    background-image: none;
    color: var(--first-color);
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35);
}

.button--white:hover{
    background-color: #fff ;
    box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45);
}

.button--flex{
    display: inline-flex;
    align-items: center;
}

.button--small{
    padding: .75rem 1rem;
}

.button--link{
    padding: 0;
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    color: var(--first-color);
}

.button--link:hover,
.button--link:active{
    background-color: transparent;
    color: var(--first-color);
    box-shadow: none;
    transform: none;
}

.button:disabled{
    cursor: progress;
    opacity: .85;
    transform: none;
}


/*============ ABOUT ==========*/
.about_img{
    width: 200px;
    border-radius: 1rem;
    justify-self: center;
    align-self: center;
    box-shadow: var(--shadow-md);
}

.about_description{
    text-align: center;
    margin-bottom: var(--mb-2-5);
}

.about_info{
    display: flex;
    justify-content: space-evenly;
    margin-bottom: var(--mb-2-5);
}

.about_info-title{
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.about_info-name{
    font-size: var(--smaller-font-size);
}

.about_info-title,
.about_info-name{
    display: block;
    text-align: center;

}

.about_button{
    display: flex;
    justify-content: center;
}

/*============ SKILLS ==========*/
.skills_container{
    row-gap: 0;
}

.skills_header{
    display: flex;
    align-items: center;
    margin-bottom: var(--mb-2-5);
    cursor: pointer;
}

.skills_icon,
.skills_arrow{
    font-size: 2rem;
    color: var(--first-color);
}

.skills_icon{
    margin-right: var(--mb-0-75);
    transition: transform .4s var(--ease-out);
}

.skills_header:hover .skills_icon{
    transform: scale(1.1) rotate(-6deg);
}

.skills_title{
    font-size: var(--h3-font-size);
}

.skills_subtitle{
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.skills_arrow{
    margin-left: auto;
    transition: .4s;
}

.skills_list{
    row-gap: 1.5rem;
    padding-left: 2.7rem;
    transition: height .45s var(--ease-out), margin-bottom .45s var(--ease-out), opacity .45s;
}
.skills_titles{
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--mb-0-5);
}

.skills_name{
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
}

.skills_bar,
.skills_percentage{
    height: 5px;
    border-radius: .25rem;
}

.skills_bar{
    background-color: var(--first-color-lighter);
    overflow: hidden;
}

body.dark-theme .skills_bar{
    background-color: hsla(var(--hue-color), 69%, 61%, .2);
}

.skills_percentage{
    display: block;
    background-color: var(--first-color);
    background-image: linear-gradient(90deg, var(--first-color-alt), var(--first-color), hsl(var(--hue-color), 85%, 72%));
    transform-origin: left center;
    transition: transform 1.3s var(--ease-out);
}

/* Bars start empty and fill when the Skills section scrolls into view (main.js adds .skills-animated),
   and again whenever a closed accordion is opened */
.js .skills_percentage{
    transform: scaleX(0);
}
.js .skills-animated .skills_open .skills_percentage{
    transform: scaleX(1);
}
.skills_date:nth-child(2) .skills_percentage{ transition-delay: .1s; }
.skills_date:nth-child(3) .skills_percentage{ transition-delay: .2s; }
.skills_date:nth-child(4) .skills_percentage{ transition-delay: .3s; }

.skills_html{
    width: 95%;
}
.skills_css{
    width: 77%;
}
.skills_js{
    width: 70%;
}
.skills_react{
    width: 70%;
}

.skills_php{
    width: 65%;
}
.skills_node{
    width: 50%;
}
.skills_firebase{
    width: 90%;
}
.skills_python{
    width: 75%;
}

.skills_figma{
    width: 95%;
}
.skills_sketch{
    width: 90%;
}
.skills_photoshop{
    width: 85%;
}
.skills_canva{
    width: 99%;
}

.skills_close .skills_list{
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.skills_open .skills_list{
    height: max-content;
    margin-bottom: var(--mb-2-5);
    opacity: 1;
}

.skills_open .skills_arrow{
    transform: rotate(-180deg);
}



/*============ QUALIFICATION ==========*/
.qualification_tabs{
    display: flex;
    justify-content: space-evenly;
    margin-bottom: var(--mb-2);
}

.qualification_button{
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    cursor: pointer;
    padding: .5rem 1rem;
    border-radius: 2rem;
    transition: color .3s, background-color .3s;
}

.qualification_button:hover{
    color: var(--first-color);
}

.qualification_icon{
    font-size: 1.2rem;
    margin-right: var(--mb-0-25);
}

.qualification_data{
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    column-gap: 1.5rem;
}

.qualification_title{
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
}

.qualification_subtitle{
    display: inline-block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-1);
}

.qualification_calender{
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

.qualification_rounder{
    display: inline-block;
    width: 13px;
    height: 13px;
    background-color: var(--first-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px hsla(var(--hue-color), 69%, 61%, .18);
}

.qualification_line{
    display: block;
    width: 1px;
    height: 100%;
    background-color: var(--first-color);
    transform: translate(6px, -7px);
}

.qualification [data-content]{
    display: none;
}

.qualification_active[data-content]{
    display: block;
    animation: tab-in .5s var(--ease-out);
}

@keyframes tab-in{
    from{ opacity: 0; translate: 0 12px; }
    to{ opacity: 1; translate: none; }
}

.qualification_button.qualification_active{
    color: var(--first-color);
    background-color: hsla(var(--hue-color), 69%, 61%, .1);
}

/*============ SERVICES ==========*/
.services_container{
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

.services_content{
    position: relative;
    background-color: var(--container-color);
    padding: 3.5rem 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}

/* soft gradient wash that fades in on hover */
.services_content::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, hsla(var(--hue-color), 69%, 61%, .1), transparent 55%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.services_content:hover{
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: hsla(var(--hue-color), 69%, 61%, .35);
}

.services_content:hover::before{
    opacity: 1;
}

.services_icon{
    display: inline-block;
    font-size: 1.5rem;
    color: var(--first-color);
    margin-bottom: var(--mb-1);
    transition: transform .5s var(--ease-out);
}

.services_content:hover .services_icon{
    transform: translateY(-4px) rotate(-8deg) scale(1.12);
}

.services_title{
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
    font-weight: var(--font-medium);
}

.services_button{
    cursor: pointer;
    font-size: var(--small-font-size);
}

.services_button:hover .button_icon{
    transform: translateX(.25rem);
}

.services_modal{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    /* hide only after the fade-out finishes */
    transition: opacity .3s, visibility 0s linear .3s;
}

.services_modal-content{
    position: relative;
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(.96);
    transition: transform .4s var(--ease-out);
}

.services_modal-services{
    row-gap: 1rem;
}

.services_modal-service{
    display: flex;
}

.services_modal-title{
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1-5);
    padding-right: 2rem;
}

.services_modal-close{
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--first-color);
    cursor: pointer;
    transition: transform .3s var(--ease-out);
}

.services_modal-close:hover{
    transform: rotate(90deg);
}

.services_modal-icon{
    color: var(--first-color);
    margin-right: var(--mb-0-25);
}

/* Active Modal */
.active-modal{
    opacity: 1;
    visibility: visible;
    /* visible immediately so focus can move into it */
    transition: opacity .3s, visibility 0s;
}

.active-modal .services_modal-content{
    transform: none;
}

/*============ PORTFOLIO ==========*/
.portfolio_slider{
    position: relative;
}

.portfolio_content{
    padding: .75rem 1.5rem;
}

.portfolio_img-wrap{
    position: relative;
    width: 265px;
    max-width: 100%;
    justify-self: center;
    align-self: center;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform .5s var(--ease-out), box-shadow .5s;
}

/* overlay tint on hover */
.portfolio_img-wrap::after{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, hsla(var(--hue-color), 60%, 25%, .45));
    opacity: 0;
    transition: opacity .5s;
}

.portfolio_img{
    display: block;
    width: 100%;
    transition: transform .8s var(--ease-out);
}

.portfolio_content:hover .portfolio_img-wrap{
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.portfolio_content:hover .portfolio_img{
    transform: scale(1.06);
}

.portfolio_content:hover .portfolio_img-wrap::after{
    opacity: 1;
}

.portfolio_title{
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-5);
}

.portfolio_description{
    margin-bottom: var(--mb-0-75);
}

.portfolio_button:hover .button_icon{
    transform: translateX(.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after{
    content: '';
}

.swiper-portfolio-icon{
    font-size: 2rem;
    color: var(--first-color);
    transition: transform .3s var(--ease-out);
}

.swiper-button-next:hover .swiper-portfolio-icon{
    transform: translateX(3px);
}

.swiper-button-prev:hover .swiper-portfolio-icon{
    transform: translateX(-3px);
}

.swiper-button-prev{
    left: -.5rem;
}

.swiper-button-next{
    right: -.5rem;
}

.portfolio_slider .portfolio_pagination{
    bottom: -2.5rem;
}

.swiper-pagination-bullet{
    transition: width .3s var(--ease-out), background-color .3s, opacity .3s;
}

.swiper-pagination-bullet-active{
    background-color: var(--first-color);
}

/* elongated "pill" for the active portfolio bullet */
.portfolio_pagination .swiper-pagination-bullet-active{
    width: 1.5rem;
    border-radius: 1rem;
}


.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet{
    outline: none;
}

.swiper-button-prev:focus-visible,
.swiper-button-next:focus-visible,
.swiper-pagination-bullet:focus-visible{
    outline: 2px solid var(--first-color);
}



/*============PROJECT IN MIND ==========*/
.project{
    text-align: center;
}

.project_bg{
    background-color: var(--first-color-second);
    background-image: linear-gradient(135deg, var(--first-color-second), var(--first-color-alt));
    padding: 3rem;
}

body.dark-theme .project_bg{
    background-image: none;
}

.project_title{
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-0-75);
}

.project_description{
    margin-bottom: var(--mb-1-5);
}

.project_title,
.project_description{
    color: #fff;
}

.project_img{
    width: 232px;
    justify-self: center;
}


/*============ TESTIMONIAL ==========*/
.testimonial_container{
    padding: .75rem .25rem 3rem;
}

.testimonial_content{
    height: auto;
    background-color: var(--container-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .4s, border-color .4s;
}

.testimonial_content:hover{
    box-shadow: var(--shadow-md);
    border-color: hsla(var(--hue-color), 69%, 61%, .35);
}

.testimonial_data,
.testimonial_header{
    display: flex;
}
.testimonial_data{
    justify-content: space-between;
    margin-bottom: var(--mb-1);
}
.testimonial_img{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: var(--mb-0-75);
    box-shadow: 0 0 0 3px hsla(var(--hue-color), 69%, 61%, .2);
}

.testimonial_name{
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
}

.testimonial_client{
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.testimonial_description{
    margin-bottom: 0;
}

.testimonial_icon-star{
    color: var(--first-color);
}

.testimonial_container .swiper-pagination-testimonial{
    bottom: 0;
}

/*============ CONTACT ME ==========*/
.contact_container{
    row-gap: 3rem;
}
.contact_information{
    display: flex;
    margin-bottom: var(--mb-2);
}

.contact_icon{
    font-size: 2rem;
    color: var(--first-color);
    margin-right: var(--mb-0-75);
    transition: transform .4s var(--ease-out);
}

.contact_information:hover .contact_icon{
    transform: scale(1.1) rotate(-6deg);
}

.contact_title{
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
}

.contact_subtitle{
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    transition: color .3s;
}

a.contact_subtitle:hover{
    color: var(--first-color);
}

.contact_form{
    position: relative;
}

.contact_content{
    background-color: var(--input-color);
    border: 1px solid transparent;
    border-radius: .75rem;
    padding: .75rem 1rem .25rem;
    transition: border-color .3s, box-shadow .3s, background-color .3s;
}

.contact_content:hover{
    border-color: hsla(var(--hue-color), 69%, 61%, .25);
}

.contact_content:focus-within{
    background-color: var(--container-color);
    border-color: var(--first-color);
    box-shadow: 0 0 0 4px hsla(var(--hue-color), 69%, 61%, .15);
}

.contact_label{
    display: block;
    font-size: var(--small-font-size);
    color: var(--title-color);
    transition: color .3s;
}

.contact_content:focus-within .contact_label{
    color: var(--first-color);
}

.contact_input{
    width: 100%;
    background-color: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: var(--normal-font-size);
    border: none;
    outline: none;
    padding: .25rem .5rem .5rem 0;
}

textarea.contact_input{
    resize: vertical;
    min-height: 8rem;
}

/* validation */
.contact_field--invalid .contact_content{
    border-color: var(--error-color);
    box-shadow: 0 0 0 4px var(--error-bg);
}

.contact_field--invalid .contact_label{
    color: var(--error-color);
}

.contact_error{
    margin-top: .4rem;
    padding-left: 1rem;
    font-size: var(--smaller-font-size);
    color: var(--error-color);
    animation: status-in .3s var(--ease-out);
}

.contact_error:empty{
    display: none;
}

/* honeypot: off-screen, never visible to people */
.contact_honeypot{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* submit button loading state */
.contact_spinner{
    display: none;
    width: 1.1rem;
    height: 1.1rem;
    margin-left: var(--mb-0-5);
    border: 2px solid hsla(0, 0%, 100%, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.contact_button.is-loading .button_icon{
    display: none;
}

.contact_button.is-loading .contact_spinner{
    display: inline-block;
}

@keyframes spin{
    to{ transform: rotate(360deg); }
}

/* success / error message */
.contact_status{
    padding: 1rem 1.25rem;
    border-radius: .75rem;
    border: 1px solid transparent;
    font-size: var(--small-font-size);
    line-height: 1.5;
    animation: status-in .4s var(--ease-out);
}

.contact_status--success{
    color: var(--success-color);
    background-color: var(--success-bg);
    border-color: hsla(142, 60%, 40%, .3);
}

.contact_status--error{
    color: var(--error-color);
    background-color: var(--error-bg);
    border-color: hsla(0, 70%, 50%, .3);
}

.contact_status a{
    color: inherit;
    font-weight: var(--font-medium);
    text-decoration: underline;
}

@keyframes status-in{
    from{ opacity: 0; translate: 0 -6px; }
    to{ opacity: 1; translate: none; }
}

/*=========== FOOTER ==========*/
.footer{
    padding: 2rem;
}

.footer_container{
    row-gap: 3.5rem;
}

.footer_bg{
    background-color: var(--first-color-second);
    padding: 2rem 0 3rem;
}

.footer_title{
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-0-25);
}

.footer_subtitle{
    font-size: var(--small-font-size);
}

.footer_links{
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.footer_link,
.footer_social{
    transition: color .3s;
}

.footer_link:hover{
    color: var(--first-color-lighter);
}

.footer_social{
    display: inline-block;
    font-size: 1.25rem;
    margin-right: var(--mb-1-5);
    transition: color .3s, transform .3s var(--ease-out);
}

.footer_social:hover{
    color: var(--first-color-lighter);
    transform: translateY(-3px);
}

.footer_copy{
    font-size: var(--smaller-font-size);
    text-align: center;
    color: var(--text-color-light);
    margin-top: var(--mb-3);
}
.footer_title,
.footer_subtitle,
.footer_link,
.footer_social{
    color: #fff;
}
/*======== SCROLL UP ==========*/
.scrollup{
    position: fixed;
    right: 1rem;
    bottom: -20%;
    background-color: var(--first-color);
    opacity: .85;
    padding: 0 .3rem;
    border-radius: .4rem;
    z-index: var(--z-tooltip);
    box-shadow: 0 8px 20px -8px var(--glow-color);
    transition: bottom .4s var(--ease-out), opacity .3s, background-color .3s, transform .3s var(--ease-out);
}

.scrollup:hover{
    background-color: var(--first-color-alt);
    opacity: 1;
    transform: translateY(-3px);
}

.scrollup_icon{
    font-size: 1.5rem;
    color: #fff;
}


/*show scroll*/
 .show-scroll{
    bottom: 5rem;
 }

 /*======== SCROLL BAR ==========*/
 ::-webkit-scrollbar{
    width: .60rem;
    background-color: var(--scroll-bar-color);
    border-radius: .5rem;
 }

 ::-webkit-scrollbar-thumb{
    background-color: var(--scroll-thumb-color);
    border-radius: .5rem;
 }

 ::-webkit-scrollbar-thumb:hover{
    background-color: var(--text-color-light);
 }

/*============ ANIMATIONS ==========*/
/*-- Page load: header + hero --*/
.header{
    animation: header-in .8s var(--ease-out) both;
}

.home_social{ animation: fade-in .8s var(--ease-out) .7s both; }
.home_title{ animation: fade-up .8s var(--ease-out) .2s both; }
.home_subtitle{ animation: fade-up .8s var(--ease-out) .32s both; }
.home_description{ animation: fade-up .8s var(--ease-out) .44s both; }
.home_data .button{ animation: fade-up .8s var(--ease-out) .56s both; }
.home_img{ animation: scale-in 1s var(--ease-out) .3s both; }
.home_scroll{ animation: fade-in .8s var(--ease-out) 1s both; }

/* NOTE: keyframes end on "none" so no transform lingers on fixed/positioned ancestors */
@keyframes header-in{
    from{ opacity: 0; translate: 0 100%; }
    to{ opacity: 1; translate: none; }
}

@keyframes fade-up{
    from{ opacity: 0; translate: 0 24px; }
    to{ opacity: 1; translate: none; }
}

@keyframes fade-in{
    from{ opacity: 0; }
    to{ opacity: 1; }
}

@keyframes scale-in{
    from{ opacity: 0; scale: .92; translate: 0 16px; }
    to{ opacity: 1; scale: none; translate: none; }
}

/*-- Scroll reveal (main.js adds .is-visible via IntersectionObserver) --
  Uses the individual translate/scale properties so it never fights hover transforms. */
.js [data-reveal]{
    opacity: 0;
}

.js [data-reveal].is-visible{
    animation: reveal-up .8s var(--ease-out) var(--reveal-delay, 0ms) both;
}

.js [data-reveal="left"].is-visible{ animation-name: reveal-left; }
.js [data-reveal="right"].is-visible{ animation-name: reveal-right; }
.js [data-reveal="scale"].is-visible{ animation-name: reveal-scale; }
.js [data-reveal="fade"].is-visible{ animation-name: fade-in; }

@keyframes reveal-up{
    from{ opacity: 0; translate: 0 32px; }
    to{ opacity: 1; translate: none; }
}

@keyframes reveal-left{
    from{ opacity: 0; translate: -40px 0; }
    to{ opacity: 1; translate: none; }
}

@keyframes reveal-right{
    from{ opacity: 0; translate: 40px 0; }
    to{ opacity: 1; translate: none; }
}

@keyframes reveal-scale{
    from{ opacity: 0; scale: .9; }
    to{ opacity: 1; scale: none; }
}

/*============ FEATURED PRODUCT (SELLIVRE) ==========*/
/* Self-contained dark emerald card in Sellivre's brand colors, so it reads the same in light and dark theme. */
.featured{
    padding-top: 1rem;
}

.featured_card{
    --fp-accent: #34d399;
    --fp-accent-soft: #6ee7b7;
    --fp-text: hsla(150, 25%, 88%, .78);
    --fp-line: hsla(150, 40%, 75%, .14);
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 2rem;
    overflow: hidden;
    padding: 2rem 1.5rem 0;
    border-radius: 1.75rem;
    border: 1px solid var(--fp-line);
    color: var(--fp-text);
    background:
        radial-gradient(110% 70% at 100% 0%, hsla(155, 75%, 38%, .38), transparent 60%),
        radial-gradient(80% 55% at 0% 100%, hsla(162, 80%, 42%, .16), transparent 65%),
        linear-gradient(160deg, #0d2f22 0%, #08190f 55%, #061009 100%);
    box-shadow: 0 30px 60px -28px rgba(4, 30, 20, .65);
}

/* faint grid texture, faded toward the edges */
.featured_card::before{
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--fp-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--fp-line) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: .35;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
            mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}

.featured_badge{
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .85rem;
    border-radius: 2rem;
    border: 1px solid hsla(155, 70%, 60%, .25);
    background-color: hsla(155, 70%, 50%, .1);
    color: var(--fp-accent-soft);
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    letter-spacing: .02em;
}

.featured_badge-dot{
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background-color: var(--fp-accent);
    animation: featured-pulse 2.4s ease-out infinite;
}

@keyframes featured-pulse{
    0%{ box-shadow: 0 0 0 0 hsla(155, 70%, 55%, .6); }
    70%, 100%{ box-shadow: 0 0 0 .5rem hsla(155, 70%, 55%, 0); }
}

.featured_title{
    margin: 1rem 0 .25rem;
    color: #fff;
    font-size: var(--big-font-size);
    font-weight: var(--font-semi-bold);
    line-height: 1.1;
    letter-spacing: -.02em;
}

.featured_tagline{
    margin-bottom: var(--mb-1);
    color: var(--fp-accent-soft);
    font-weight: var(--font-medium);
}

.featured_description{
    margin-bottom: var(--mb-1-5);
    line-height: 1.7;
}

.featured_list{
    display: grid;
    gap: 1rem;
    margin-bottom: var(--mb-1-5);
}

.featured_item{
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    font-size: var(--small-font-size);
    line-height: 1.55;
}

.featured_item strong{
    display: block;
    margin-bottom: .1rem;
    color: #fff;
    font-weight: var(--font-semi-bold);
}

.featured_item-icon{
    flex: none;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .8rem;
    border: 1px solid hsla(155, 70%, 60%, .2);
    background: linear-gradient(135deg, hsla(155, 70%, 45%, .28), hsla(155, 70%, 45%, .06));
}

.featured_item-icon svg{
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: var(--fp-accent-soft);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.featured_tags{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.featured_tags li{
    padding: .3rem .8rem;
    border-radius: 2rem;
    border: 1px solid var(--fp-line);
    background-color: hsla(0, 0%, 100%, .03);
    font-size: var(--smaller-font-size);
}

.featured_actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
    margin-top: var(--mb-2);
}

.featured_button,
.featured_button:hover{
    background-color: var(--fp-accent);
    background-image: linear-gradient(135deg, #4ade80 0%, #10b981 100%);
    color: #042417;
    font-weight: var(--font-semi-bold);
}

.featured_button{
    box-shadow: 0 10px 24px -10px hsla(155, 75%, 50%, .65);
}

.featured_button:hover{
    box-shadow: 0 16px 30px -12px hsla(155, 75%, 50%, .85);
}

.featured_note{
    font-size: var(--smaller-font-size);
    color: hsla(150, 25%, 88%, .6);
}

/* Phones rise out of the bottom edge of the card and are cropped by it */
.featured_media{
    position: relative;
    height: 330px;
    margin: 0 -1.5rem;
}

.featured_glow{
    position: absolute;
    left: 50%;
    bottom: -20%;
    width: 120%;
    height: 90%;
    translate: -50% 0;
    background: radial-gradient(closest-side, hsla(155, 80%, 45%, .45), transparent);
    pointer-events: none;
}

.featured_phone{
    position: absolute;
    top: 1.5rem;
    width: min(46%, 175px);
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5));
    transition: translate .6s var(--ease-out), rotate .6s var(--ease-out);
}

.featured_phone--front{
    left: calc(50% - min(44%, 168px));
    rotate: -5deg;
    z-index: 1;
}

.featured_phone--back{
    left: 50%;
    top: 3.25rem;
    rotate: 6deg;
}

.featured_card:hover .featured_phone--front{
    translate: 0 -10px;
    rotate: -3deg;
}

.featured_card:hover .featured_phone--back{
    translate: 0 -6px;
    rotate: 8deg;
}

body.dark-theme .featured_card{
    --fp-line: hsla(150, 40%, 75%, .18);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8);
}

@media screen and (min-width: 568px){
    .featured_card{
        padding: 2.5rem 2.5rem 0;
    }
    .featured_list{
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 1.5rem;
    }
    .featured_media{
        height: 380px;
        margin: 0 -2.5rem;
    }
    .featured_phone{
        width: 200px;
    }
    .featured_phone--front{
        left: calc(50% - 190px);
    }
}

@media screen and (min-width: 768px){
    .featured{
        padding-top: 3rem;
    }
    .featured_card{
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
        padding: 3rem 0 0 3rem;
    }
    .featured_data{
        padding-bottom: 3rem;
    }
    .featured_list{
        grid-template-columns: 1fr;
    }
    .featured_media{
        height: auto;
        margin: 0;
    }
    .featured_phone{
        width: 200px;
        top: auto;
        bottom: -5rem;
    }
    .featured_phone--front{
        left: -.75rem;
    }
    .featured_phone--back{
        left: 7.5rem;
        bottom: -8rem;
    }
}

@media screen and (min-width: 1024px){
    .featured_container{
        max-width: 1000px;
    }
    .featured_card{
        grid-template-columns: 1fr 400px;
        gap: 2rem;
        padding: 3.5rem 0 0 3.5rem;
    }
    .featured_data{
        padding-bottom: 3.5rem;
    }
    .featured_list{
        grid-template-columns: repeat(2, 1fr);
    }
    .featured_phone{
        width: 245px;
    }
    .featured_phone--front{
        left: -.5rem;
    }
    .featured_phone--back{
        left: 9.25rem;
    }
}

/*============ MEDIA QUERIES ==========*/
/*for small devices*/
@media screen and (max-width: 350px){
    .container{
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }

    .nav_menu{
        padding: 2rem .25rem 4rem;
    }

    .nav_list{
        column-gap: 0;
    }

    .home_content{
        grid-template-columns: .25fr 3fr;
    }
    .home_blob{
        width: 180px;
    }
    .home_img{
        --hero-img-width: 170px;
    }

    .skills_title{
        font-size: var(--normal-font-size);
    }

    .qualification_data{
        gap: .5rem;
    }

    .services_container{
        grid-template-columns: max-content;
        justify-content: center;
    }

    .services_content{
        padding-right: 3.5rem;
    }
    .services_modal{
        padding: 0 .5rem;
    }

    .project_img{
        width: 200px;
    }
    .testimonial_data,
    .testimonial_header{
        flex-direction: column;
        align-items: center;
    }
    .testimonial_img{
        margin-right: 0;
        margin-bottom: var(--mb-0-25);
    }
    .testimonial_data,
    .testimonial_description{
        text-align: center;
    }
}

/*for medium devices*/
@media screen and (min-width: 568px){
    .home_content{
        grid-template-columns: max-content 1fr 1fr;
    }
    .home_data{
        grid-column: initial;
    }
    .home_img{
        --hero-img-width: 230px;
        order: 1;
        justify-self: center;
    }

    .about_container,
    .skills_container,
    .portfolio_content,
    .project_container,
    .contact_container,
    .footer_container{
        grid-template-columns: repeat(2, 1fr);
    }
    .qualification_sections{
        display: grid;
        grid-template-columns: 6fr;
        justify-content: center;
    }

}

@media screen and (min-width: 768px){
    .container{
        margin-left: auto;
        margin-right: auto;
    }
    html{
        scroll-padding-top: calc(var(--header-height) + 1.5rem);
    }
    body{
        margin: 0;
    }
    .section{
        padding: 6rem 0 2rem;
    }
    .section_subtitle{
        margin-bottom: 4rem;
    }
    .header{
        top: 0;
        bottom: initial;
    }

    @keyframes header-in{
        from{ opacity: 0; translate: 0 -100%; }
        to{ opacity: 1; translate: none; }
    }

    /* frosted header once the page is scrolled (desktop only: the menu is not position:fixed here) */
    .scroll-header{
        background-color: color-mix(in srgb, var(--body-color) 78%, transparent);
        backdrop-filter: blur(14px) saturate(160%);
        -webkit-backdrop-filter: blur(14px) saturate(160%);
        box-shadow: 0 6px 24px -12px rgba(0,0,0,.2);
    }

    .header,
    .main,
    .footer_container{
        padding: 0 1rem;
    }

    .nav{
        height: calc(var(--header-height) + 1.5rem);
        column-gap: 1rem;
    }

    .nav_icon,
    .nav_close,
    .nav_toggle{
        display: none;
    }
    .nav_list{
        display: flex;
        column-gap: 2rem;
    }
    .nav_menu{
        margin-left: auto;
    }

    /* animated underline for hover + active section */
    .nav_link::after{
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -.4rem;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--first-color), var(--first-color-lighter));
        transform: scaleX(0);
        transition: transform .35s var(--ease-out);
    }
    .nav_link:hover::after,
    .nav_link.active-link::after{
        transform: scaleX(1);
    }

    .change-theme{
        margin: 0;
    }
    .home_container{
        row-gap: 5rem;
    }
    .home_content{
        padding-top: 5.5rem;
        column-gap: 2rem;
    }
    .home_blob{
        width: 270px;
    }
    .home_img{
        --hero-img-width: 270px;
    }
    .home_scroll{
        display: block;
    }
    .home_scroll-button{
        margin-left: 3rem;
    }

    .about_container{
        column-gap: 5rem;
    }
    .about_img{
        width: 350px;
    }
    .about_description{
        text-align: initial;
    }
    .about_info{
        justify-content: space-between;
    }
    .about_button{
        justify-content: initial;
    }

    .qualification_tabs{
        justify-content: center;
    }
    .qualification_button{
        margin: 0 var(--mb-1);
    }
    .qualification_sections{
        grid-template-columns: .5fr;
    }

    .services_container{
        grid-template-columns: repeat(3, 218px);
        justify-content: center;
    }
    .services_icon{
        font-size: 2rem;
    }
    .services_content{
        padding: 6rem 0 2rem 2.5rem;
    }
    .services_modal-content{
        width: 450px;
    }

    .portfolio_img-wrap{
        width: 320px;
    }
    .project{
        text-align: initial;
    }
    .project_bg{
        background: none;
    }
    body.dark-theme .project_bg{
        background: none;
    }
    .project_container{
        background-color: var(--first-color-second);
        background-image: linear-gradient(135deg, var(--first-color-second), var(--first-color-alt));
        border-radius: 1rem;
        padding: 3rem 2.5rem 0;
        grid-template-columns: 1fr max-content;
        column-gap: 3rem;
        box-shadow: var(--shadow-lg);
    }
    body.dark-theme .project_container{
        background-image: none;
    }
    .project_data{
        padding-top: .8rem;
    }

    .footer_container{
        grid-template-columns: repeat(3, 1fr);
    }

    .footer_bg{
        padding: 3rem 0 3.5rem;
    }
    .footer_links{
        flex-direction: row;
        column-gap: 2rem;
    }

    .footer_socials{
        justify-self: flex-end;
    }
    .footer_copy{
        margin-top: 4.5rem;
    }

}


/*for large devices*/
@media screen and (min-width: 1024px){
    .header,
    .main,
    .footer_container{
        padding: 0;
    }
    .home_blob{
        width: 320px;
    }
    .home_img{
        --hero-img-width: 300px;
    }
    .home_social{
        transform: translateX(-6rem);
    }
    .services_container{
        grid-template-columns: repeat(3, 238px);
    }
    .portfolio_content{
        column-gap: 5rem;
    }
    .swiper-portfolio-icon{
        font-size: 3.5rem;
    }
    .swiper-button-prev{
        left: -3.5rem;
    }
    .swiper-button-next{
        right: -3.5rem;
    }
    .portfolio_slider .portfolio_pagination{
        bottom: -4.5rem;
    }
    .contact_form{
        width: 460px;
    }
    .contact_inputs{
        grid-template-columns: repeat(2, 1fr);
    }
}

/*============ REDUCED MOTION ==========*/
@media (prefers-reduced-motion: reduce){
    html{
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after{
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
    }
    .js [data-reveal]{
        opacity: 1;
    }
    /* keep the loading spinner as essential feedback, just slower */
    .contact_button.is-loading .contact_spinner{
        animation-duration: 1.5s !important;
        animation-iteration-count: infinite !important;
    }
}
