* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

:root {
    --color-primary: #0CAFFF;
    --color-secondary: #7CB9E8;
    --color-warning: #6F00FF;
    --color-danger: #641005;
    --color-danger-variant: rgba(247, 88, 64, 0.4);
    --color-white: #fff;
    --color-light: #e3e9ee;
    --color-black: #000;
    --color-bg: #012169;
    --color-bg1: #033bbd;
    --color-bg2: #0CAFFF;
   
    --container-width-lg: 76%;
    --container-width-md: 90%;
    --container-width-sm: 94%;
   
    --transition:all 400ms ease;
}   

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.7;
    color: var(--color-white);
    background: var(--color-bg);
}

.container {
    width: var(--container-width-lg);
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

h1, h2, h3, h4, h5 {
    line-height: 1.2;
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.3rem;
}

a {
    color: var(--color-white);
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background: transparent;
    color: var(--color-white);
    border: var(--color-white);
}

.btn-primary {
    background: var(--color-bg2);
    color: var(--color-white);
}


/*============= NAVBAR ============*/
nav {
    background: var(--color-bg1);
    width: 100vw;
    height: 5rem;
    position: fixed;
    top: 0;
    z-index: 11;
}

.nav__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav button {
    display: flex;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nav__menu a {
    font-size: 1.1rem;
    transition: var(--transition);
    justify-content: right;
}

.nav__menu a:hover {
    color: var(--color-bg2);
} 

/*============= HEADER ============*/
header {
    position: relative;
    top: 7.5rem;
    overflow: hidden;
    height: 70vh;
    margin-bottom: 10rem;
}

.header__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
    height: 100%;
}

.header__left p {
    margin: 2.5rem 0 3.4rem;
}

.header__right img {
    inline-size: 40rem;
}


/*============= SOFTWARE SKILLS ============*/
.software-skills {
    background: var(--color-bg1);
    height: 33rem;
}

/* change navbar style on scroll using javascript */
.window-scroll {
    background: var(--color-bg1);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.skils h1 {
    line-height: 1;
    margin-bottom: 2rem;
}

.skills__container {
    display: grid;
    grid-template-columns: 40% 60%;
}

.skills__left {
    margin-right: 4rem;
}

.skills__left p {
    margin: 1rem 0 3rem;
}

.skills__right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.skills {
    background: #024eff;
    padding: 2rem;
    border-radius: 2rem;
    transition: var(--transition);
}

.skills:hover {
    box-shadow: 0 3rem 3rem rgba(0, 1, 36, 0.3);
    z-index: 1;
}

.skills:nth-child(1) {
    background: #00005b;
}

.skills:nth-child(2) {
    background: #00d4ff;
}

.skills:nth-child(3) {
    background: #df871e;
}

.skills:nth-child(4) {
    background: #e34d25;
}

.skills img {
    inline-size: 3rem;
    background: var(--color-white);
    padding: 0.7rem;
    border-radius: 0.9rem;
}

.skills h5 {
    margin: 2rem 0 1rem;
    font-size: large;
}

.skills p {
    font-size: 0.75rem;
}

/*============= EDUCATION ============*/

.educations {
    margin-top: 6.5rem;
}

.education img {
    inline-size: 25rem;
}

.educations__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.education {
    background: var(--color-bg1);
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}

.education:hover {
    background: transparent;
    border-color: var(--color-primary);
}

.education__info {
    padding: 2rem;
}

.education__info p {
    margin: 1.2rem 0 2rem;
    font-size: 0.9rem;
}

.education__info h6 {
    margin: 1.2rem 0 2rem;
    font-size: 1rem;
    color: #00d4ff;
}

/*============= TESTIMONIALS ============*/
.testimonials__container {
    overflow-x: hidden;
    position: relative;
    margin-bottom: 5rem;
}

.testimonial {
    padding-top: 2rem;
}

.avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 1rem solid var(--color-bg1);
}

.testimonial__info {
    text-align: center;
}

.testimonial__body {
    background: var(--color-bg1);
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
}

.testimonial__body::before {
    content: "";
    display: block;
    background: linear-gradient(135deg,
        transparent,
        var(--color-bg1),
        var(--color-bg1),
        var(--color-primary)  
    );
    width: 3rem;
    height: 3rem;
    position: absolute;
    left: 50%;
    top: -1.5rem;
    transform: rotate(45deg);
}

/*============= FOOTER ============*/
footer {
    background: var(--color-bg1);
    padding-top: 4rem;
    font-size: 1rem;
    padding: 3rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem;
}

.footer__container > div h4 {
    margin-bottom: 1.7rem;
}

.footer__1 p {
    margin: 0 0 2rem;
}

footer ul li {
    margin-bottom: 0.7rem;
}

footer ul li a{
    color: #fff;
    text-decoration: none;
    position: relative;
}

footer ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #0CAFFF;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

footer ul li a:hover::after{
    width: 100%;
}

.social-icons{
    margin-top: 20px;
}

.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #020269;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover{
    color: #fbfbfc;
    transform: translateY(-10px);
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    font-weight: 300;
}