*,
*::before,
*::after {
    box-sizing: border-box;
}
 
html{
    scroll-behavior: smooth;
}

/* Custom properties */
:root{
    --ff-primary:  "Vollkorn", serif;
    --ff-secondary:  "Domine", serif;

    --fw-reg: 300;
    --fw-bold: 900;

    --clr-light: #FAF2E0;
    --clr-white: #ffff;
    --clr-dark: #000;
    --clr-accent: #f49738;
    --clr-background:#4458be;
    /* --clr-accent: #16e0bd; */
    --clr-lighter: #66f190;


    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;

    --bs: 0.25em 0.25em 0.75em rgb(0,0,0,0.25),
    0.125em 0.125em 0.25em rgb(0,0,0,0.15);
}

@media (min-width: 800px){
    :root{  
        --fs-h1: 4.5rem;
        --fs-h2: 2.50rem;
        --fs-h3: 1.5rem;
        --fs-h4: 1.00rem;
        --fs-body: 1.125rem;
    }
}

/* General styles */

body{
    background: var(--clr-light);
    color: var(--clr-dark);
    margin: 0;
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    line-height: 1.6;
}

section {
    padding: 2em 2em;
}

img{
    display: block;
    max-width: 100%;
}

:focus {
    outline: 3px solid var(--clr-accent);
    outline-offset: 3px;
}

.btn{
    display: inline-block;
    padding: 0.5em 2.5em;
    background: var(--clr-accent);
    color: var(--clr-dark);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--fw-bold);
    transition: transform 200ms ease-in-out;
}


.btn:hover{
    transform: scale(1.1);
}


/* Typography */

h1,
h2,
h3{
    line-height: 1;
    margin: 0;
}

h1{font-size: var(--fs-h1);}
h2 { font-size: var(--fs-h2);}
h3{font-size: var(--fs-h3);}

.section__title{
    margin-bottom: 0.25em;
}

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

.section__title{
    margin-bottom: 0.25em;
}

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

.section__title--description{
    font-weight: var(--fw-reg);
    text-align: center;
}



@media (max-width: 1370px) {

    /* .logo__section{
        display: none !important;
    } */

    .shashank{
        font-size: var(--fs-h3 - 2em);
        font-weight: var(--fw-bold);
        padding: 1em;
    }
    
    .header{
        text-align: right !important;
        left: 70% !important;
    }
}

header{
    display: flex;
    justify-content: space-between;
    padding: 1em;
    color: var(--clr-background);
    background: var(--clr-white);
    /* background-image: url("../image/banner.gif"); */
    height: 8em;
}

.shashank{
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    padding: 1em;
}

.sub-shashank{
    font-weight: bold;
    font-size: var(--fs-h4);
}

.logo__section{
    position: relative;
    /* left: 12%; */
    padding: 0;
    align-items: center;
    align-content: center;
    text-align: center;
    display: grid;
    font-family: var(--ff-primary);
}

.logo__heading {
    margin: 0;
    display: block;
    text-align: center;
}

.logo{
    max-width: 100px;
}

.nav{
    color: var(--clr-accent);
    display: inline-flexbox;
    left: auto;
    right: 0;
    top: 2.75em;
    bottom: auto;
    align-items: center;
}

.nav__list{
    list-style: none;
    display: flex;
    height: 100%;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 0 1em;
}

.nav__item{
    padding: 0 0.75em
}

.nav__link{
    color: inherit;
    font-weight: var(--fw-bold);
    font-size: var(--fs-h3);
    text-decoration: none;
}

.nav__link:hover{
    color: var(--clr-accent);
}
    

.Contact{
    padding-top: 1em;
    align-content: end;
    text-align: end;
    padding-right: 3em;
}


.divider{
    background: var(--clr-lighter);
}

.divider p{
    font-size: 0.095em;
    font-weight: var(--fw-bold);
}


.description, .experiences{
    max-width: 1000px;
    margin: 0 auto;
}

.section .experiences{
    max-width: 70%;
    margin: 0 auto;
}

.section .desciption{
    max-width: 70%;
    margin: 0 auto;
    text-align: center;
}

p{
    margin: 0.5em auto;
    text-align: justify;
}

/* Description of Each Experiences */

@media (min-width: 1150px){
    .description{
        display: grid;
        grid-template-rows: 1fr 200px;
        grid-template-areas: 
            "title"
            "text";
        grid-column-gap: 2em;
    }

    .section__title--description {
        grid-area: title;
    }
}

.subTitle{
    text-align: center;
    margin: 0.75em auto;
}

#services {
    /* margin-top: 5vw; */
    padding: 30px 0;
}

.servicesList {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    grid-gap: 10px;
}

.servicesList div {
    padding: 0.25vw;
    text-align: center;
    align-content: center;
    background: var(--clr-lighter);
    font-size: 0.5vw;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.servicesList div h2 {
    font-size: 1vw; 
    padding-top: 0.35em;
}

.servicesList div a {
    text-decoration: none;
    color: var(--clr-accent);
    font-size: 0.95vw; 
    font-weight: var(--fw-bold);
    display: inline-block;
}

.servicesList div:hover {
    background: #ff004f;
    transform: translateY(-10px);
}

/* Description of Each Experience */

@media (min-width: 1150px){
    .experiences {
        display: grid;
        text-align: center;
        grid-template-rows: auto 1fr auto; /* Adjust row heights as needed */
        grid-column-gap: 2em;
    }

    .has-four-images {
        grid-template-columns: repeat(4, 0.76fr); /* four columns for four images */
        grid-template-areas: 
            "title title title title"
            "body body body body"
            "img1 img2 img3 img4"; /* four images */
    }

    .has-three-images {
        grid-template-columns: repeat(3, 1fr); /* Three columns for three images */
        grid-template-areas: 
            "title title title"
            "body body body"
            "img1 img2 img3"; /* Three images */
    }

    .has-two-images {
        grid-template-columns: repeat(2, 1fr); /* Two columns for two images */
        grid-template-areas: 
            "title title"
            "body body"
            "img1 img2"; /* Two images */
    }

    .has-one-image {
        grid-template-columns: 1fr; /* Single column for one image */
        grid-template-areas: 
            "title"
            "body"
            "img"; /* Single image */
        justify-items: center;
    }
    
    .experience__body {
        grid-area: body; /* Assign the body content to the 'body' grid area */
        text-align: justify;
    }
    
    .experience__img {
        width: 90%; /* Ensure images take up full width of their containers */
        margin-bottom: 0.75em;
        border: 2px solid black;
    }
    .has-four-images .experience__img:nth-child(4) {
        grid-area: img4; /* Assign the first image to the 'img1' grid area */
    }

    .has-four-images .experience__img:nth-child(3) {
        grid-area: img3; /* Assign the first image to the 'img1' grid area */
    }

    .has-four-images .experience__img:nth-child(2) {
        grid-area: img2; /* Assign the second image to the 'img2' grid area */
    }

    .has-four-images .experience__img:nth-child(1) {
        grid-area: img1; /* Assign the first image to the 'img1' grid area */
    }

    .has-three-images .experience__img:nth-child(3) {
        grid-area: img3; /* Assign the first image to the 'img1' grid area */
    }

    .has-three-images .experience__img:nth-child(2) {
        grid-area: img2; /* Assign the second image to the 'img2' grid area */
    }

    .has-three-images .experience__img:nth-child(1) {
        grid-area: img1; /* Assign the first image to the 'img1' grid area */
    }
    
    .has-two-images .experience__img:nth-child(3) {
        grid-area: img1; /* Assign the first image to the 'img1' grid area */
    }

    .has-two-images .experience__img:nth-child(4) {
        grid-area: img2; /* Assign the second image to the 'img2' grid area */
    }

    .has-one-image .experience__img:nth-child(3) {
        grid-area: img; /* Assign the single image to the 'img' grid area */
        justify-self: center;
        width: 60%;
    }
    

    .section__title--experience {
        grid-area: title;
    }

    .back{
        padding-bottom: 1em;
        align-content: center;
        text-align: center;
    }
}

/* footer */

.contact_title{
    color: var(--clr-dark);
}
.contact-me{
    background: var(--clr-light);
    color: var(--clr-accent);
    text-align: center;
    padding: 0.5em 0;
    font-size: var(--fs-h3);
}

.contact-me a{
    color: inherit;
    text-decoration: none;
}

.social-list__link:hover{
    opacity: 0.7;
}

.social-list {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0.35em 0 0;
    padding: 0;
}

.social-list__item{
    margin: 0 0.5em;
}

.social-list__link{
    padding: 0.5em
}

.footer{
    font-size: var(--fs-h3);
    text-align: center;
    background: var(--clr-dark);
    color: var(--clr-accent);
    font-weight: var(--fw-bold);
}

.footer p{
    margin:0;
}

/* .experience__img{
    width: 50%;
} */