/*
================
Fonts
================
*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


/*
================
Variables
================
*/
:root {
    /* primary colors */
    --clr-primary-50:  #e6eeff;
    --clr-primary-100: #cddcff;
    --clr-primary-200: #9abaff;
    --clr-primary-300: #6897ff;
    --clr-primary-400: #3575ff;
    --clr-primary-500: #0352ff;
    --clr-primary-600: #0242cc;
    --clr-primary-700: #023199;
    --clr-primary-800: #012166;
    --clr-primary-900: #011033;

    /* neutral colors */
    --clr-neutral-50:  #e8e8e9;
    --clr-neutral-100: #d1d0d3;
    --clr-neutral-200: #a3a1a7;
    --clr-neutral-300: #76727b;
    --clr-neutral-400: #48434f;
    --clr-neutral-500: #1a1423;
    --clr-neutral-600: #15101c;
    --clr-neutral-700: #100c15;
    --clr-neutral-800: #0a080e;
    --clr-neutral-900: #050407;

    /* success colors */
    --clr-success-50:  #eaeeea;
    --clr-success-100: #d4dcd5;
    --clr-success-200: #a9b9ab;
    --clr-success-300: #7e9682;
    --clr-success-400: #537358;
    --clr-success-500: #28502e;
    --clr-success-600: #204025;
    --clr-success-700: #18301c;
    --clr-success-800: #102012;
    --clr-success-900: #081009;

    /* warning colors */
    --clr-warning-50:  #fdf9eb;
    --clr-warning-100: #fbf3d7;
    --clr-warning-200: #f7e7ae;
    --clr-warning-300: #f2dc86;
    --clr-warning-400: #eed05d;
    --clr-warning-500: #eac435;
    --clr-warning-600: #bb9d2a;
    --clr-warning-700: #8c7620;
    --clr-warning-800: #5e4e15;
    --clr-warning-900: #2f270b;

    /* destructive colors */
    --clr-warning-50:  #fdeaee;
    --clr-warning-100: #fcd6dd;
    --clr-warning-200: #f9acbb;
    --clr-warning-300: #f58398;
    --clr-warning-400: #f25976;
    --clr-warning-500: #ef3054;
    --clr-warning-600: #bf2643;
    --clr-warning-700: #8f1d32;
    --clr-warning-800: #601322;
    --clr-warning-900: #300a11;

    /* pure colors */
    --clr-white:  #ffffff;
    --clr-black:  #000000;

    /* fonts */
    --ff-primary: 'Poppins', sans-serif;
    
    /* box-shadow */
    --shadow-sm: 0px 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-base: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0px 4px 4px rgba(0, 0, 0, 0.25), 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner:  inset 0px 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-hover: 4px 4px 0px #140E2F;

    /* border-radius */
    --radius-sm: 2px;
    --radius-base: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-3xl: 24px;
    --radius-full: 9999px;

    /* Other variables */
    --transition: all 0.3s linear;
    --max-width: 1170px;
}

/*
================
Global Styles
================
*/
html {
    font-size: 100%;
} /*16px*/


*, ::before, ::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--clr-white);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    color: var(--clr-neutral-900);
    scroll-behavior: smooth;
}

ul {
    list-style-type: none;
    padding: 0;
}

a {
    text-decoration: none;
    cursor: pointer;
}

img:not(.nav-logo) {
    width: 100%;
    display: block;
}

p {
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5 {
  /* margin: 3rem 0 1.38rem; */
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  color: var(--clr-neutral-900);
  letter-spacing: var(--spacing);
}


h1 {
  font-size: 2.441rem;
}

h2 {
    font-size: 1.953rem;
}

h3 {
    font-size: 1.563rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

small, .text_small {
    font-size: 0.6rem;
}

@media screen and (min-width:768px) {
    h1 {
  font-size: 3.052rem;
}

h2 {
    font-size: 2.441rem;
}

h3 {
    font-size: 1.953rem;
}

h4 {
    font-size: 1.563rem;
}

h5 {
    font-size: 1.25rem;
}
}

/*
================
Global Classes
================
*/

.btn-primary {
    background: var(--clr-primary-500);
    color: var(--clr-white);
    padding: .6rem 2rem;
    box-shadow: var(--shadow-base);
    border-radius: var(--radius-base);
    transition: var(--transition);
    font-weight: 500;
    text-transform: capitalize;
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    background: var(--clr-primary-600);
}

.section {
    padding: 2rem 0;
}

.section-center {
    margin: 0 auto;
    max-width: var(--max-width);
    width: 95vw;
}

.dot {
    width: 4px;
    height: 4px;
    background: var(--clr-primary-500);
    border-radius: 50%;
}

.tittle {
    color: var(--clr-primary-500);
}

.section-tittle {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 3rem 0 4rem 0;
}


@media screen and (min-width: 769px) {
     .section {
    padding: 3rem 0;
    }
    .section-center {
        width: 90vw;
    }
    .dot {
    width: 6px;
    height: 6px;
}
    .section-tittle {
    margin: 3rem 0 4rem 0;
}
}
@media screen and (min-width: 1025px) {
    .section {
    padding: 4rem 0;
    }
    .section-center {
        width: 90vw;
    }
    .dot {
    width: 6px;
    height: 6px;
}
    .section-tittle {
    margin: 3rem 0 5rem 0;
}
}


/*
================
Navbar
================
*/
.nav {
    background: var(--clr-black);
    padding: 1.4rem 0;
}

.nav-logo {
    height: 2.4rem;
}

.nav-btn {
    width: 2.4rem;
    height: 2.4rem;
    border: transparent;
    background: transparent;
    transition: var(--transition);
    color: var(--clr-white);
    cursor: pointer;
}

.nav-links {
    display: none;
}

.nav-link {
    text-decoration: none;
    font-weight: 400;
    color: var(--clr-white);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--clr-primary-200);
}

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

.navbar-fixed {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 2;
    box-shadow: var(--shadow-base);
    background: var(--clr-black);
}

@media screen and (min-width: 769px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 3rem;
    }
    .nav-btn {
        display: none;
    }

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

    .nav-logo {
    height: 3rem;
}
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 90%;
    background: var(--clr-neutral-800);
    padding: 4rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7rem;
    z-index: 3;
    transform: translateX(100%);
    transition: var(--transition);
}

.show-sidebar {
    transform: translateX(0);
}

.close-btn {
    width: 2.4rem;
    height: 2.4rem;
    border: transparent;
    background: transparent;
    transition: var(--transition);
    color: var(--clr-white);
    position: absolute;
    top: 1.8rem;
    right: 1rem;
    cursor: pointer;

}

.close-btn:hover {
    color: var(--clr-neutral-100);
}

.sidebar-social-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;   
}

.social-link {
    color: var(--clr-white);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: space-between;
    align-items: center;
}

.sidebar-link {
    text-align: center;
    color: var(--clr-white);
}

.sidebar .btn-full {
    display: block;
    width: 100%;
    background: var(--clr-primary-50);
    color: var(--clr-primary-500);
    border: 2px solid #140E2F;
    box-shadow: var(--shadow-base);
    border-radius: var(--radius-md);
    padding: 1rem 6rem;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
}



/*
================
Hero
================
*/

.hero {
    background: url(./img/unsplash_yapBRdPWxik.jpg) center/cover no-repeat;
    width: 100%;
    height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    -webkit-clip-path: polygon(100% 0, 100% 95%, 50% 100%, 0 95%, 0 0);
            clip-path: polygon(100% 0, 100% 95%, 50% 100%, 0 95%, 0 0);
}

.sub-heading {
    color: var(--clr-primary-200);
    font-size: 1.25rem;
}

.heading, .role {
    color: var(--clr-white);
    margin-top: 3rem;
}

.heading {
    font-size: 42px;
}

.role {
    font-size: 14px;
}

.img-cont {
    width: 8rem;
    border-radius: 50%;
    height: 8rem;
    margin: 0 auto;
    left: 50%;
    top: 0%;
    transform: translate(-50%, -50%);
    border: 4px solid var(--clr-primary-500);
    overflow: hidden;
    position: absolute;
}

.img-cont .user-img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: top;
       object-position: top;
    -webkit-filter: grayscale(100%);
            filter: grayscale(100%);
}

.about {
    position: relative;
}

.name, .job-description, .details {
    text-align: center;
   
}

.job-description, .details {
    font-size: 18px;
}

.name {
    font-size: 28px;
     margin-top: 4rem;
     color: var(--clr-neutral-800);
}

.job-description {
    margin-top: 1rem;
    color: var(--clr-neutral-400);
    font-weight: 400;
}

.details {
    width: 95%;
    margin-top: 2rem;
    color: var(--clr-neutral-300);
    font-weight: 300;
    line-height: 2;
    font-size: 16px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

@media screen and (max-width:360px) {
    .img-cont {
    width: 7rem;
    height: 7rem;
    border: 3px solid var(--clr-primary-500);
}
    .name {
    font-size: 24px;
    margin-top: 3rem;
    margin-bottom: .75rem;
}
    .job-description {
    margin-top: 0;
    font-size: 1rem;
}
    .details {
    margin-top: 1.5rem;
    font-size: 14px;
}
}

@media screen and (min-width:361px) {
    .img-cont {
    width: 8rem;
    height: 8rem;
    border: 3px solid var(--clr-primary-500);
}
    .name {
    font-size: 26px;
    margin-top: 3rem;
    margin-bottom: .75rem;
}
    .job-description {
    margin-top: 0;
    font-size: 1rem;
}
    .details {
    margin-top: 1.5rem;
    font-size: 14px;
}
}

@media screen and (min-width:481px) {
    .name {
    font-size: 28px;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
}
    .job-description {
    margin-top: .5rem;
    font-size: 17px;
}
    .details {
    margin-top: 1.5rem;
    font-size: 15px;
}
}


@media screen and (min-width: 769px) {
    .details {
    width: 80%;
    font-size: 16px;
}
    .hero {
    height: 70vh;
    -webkit-clip-path: polygon(100% 0, 100% 80%, 50% 100%, 0 80%, 0 0);
            clip-path: polygon(100% 0, 100% 80%, 50% 100%, 0 80%, 0 0);
}
    .heading {
    font-size: 48px;
}
    .sub-heading {
    font-size: 1.953rem;
}
    .name {
    font-size: 36px;
    margin-top: 2rem;
}
    .role {
    font-size: 18px;
}
    .img-cont {
    width: 10rem;
    height: 10rem;
    border: 4px solid var(--clr-primary-500);
}
    .job-description {
    margin-top: 1rem;
    font-size: 19px;
}
}

@media screen and (min-width: 1025px) {
    .details {
    font-size: 17px;
}
}

/*
================
Services
================
*/

.services .card {
    background: #fefefe;
    box-shadow: var(--shadow-lg);
    height: 300px;
    padding: 4rem 1rem 4rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-neutral-50);
    position: relative;
    width: 100%;
    transition: var(--transition);
}

.services .card:hover {
    transform: scale(1.02);
}
.icon-cont {
    width: 5rem;
    height: 5rem;
    background: var(--clr-primary-50);
    border-radius: 50%;
    position: absolute;
    top: 0;
    transform: translateY(-50%);
}

.icon-cont .icon {
    width: 100%;
    height: 100%;
    padding: 1.2rem;
    color: var(--clr-primary-500);
}

.card h4 {
    color: var(--clr-neutral-500);
}

.card p {
    margin-top: 1rem;
    color: var(--clr-neutral-300);
    font-weight: 300;
}

.services .card-center {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5rem 2rem;
}


@media screen and (max-width:360px) {
    .services .card-center {
    gap: 3rem 2rem;
}
    .services .card {
    height: 250px;
    padding: 3rem 1rem 3rem 2rem;
}
    .icon-cont {
    width: 3rem;
    height: 3rem;
}
    .icon-cont .icon {
    padding: .8rem;
}
    .card h4 {
    font-size: 18px;
    }

    .card p {
    margin-top: 1rem;
    font-size: 14px;
}
}

@media screen and (min-width:361px) {
    .services .card-center {
    gap: 3rem 2rem;
}
    .services .card {
    height: 230px;
    padding: 3rem 1rem 0 2rem;
}
    .icon-cont {
    width: 3rem;
    height: 3rem;
}
    .icon-cont .icon {
    padding: .8rem;
}
    .card h4 {
    font-size: 18px;
    }
    .card p {
    margin-top: 1rem;
    font-size: 14px;
}
}

@media screen and (min-width:481px) {
    .services .card {
    height: 240px;
}
    .card p {
    font-size: 16px;
}
}

@media screen and (min-width:1025px) {
    .card p {
    font-size: 16px;
}
}

/*
================
Portfolio
================
*/

.portfolio .cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio .card {
    transition: var(--transition);
}
.portfolio .card:hover{
    transform: scale(1.02);
}
.card-special {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.portfolio .project-img {
    border-radius: var(--radius-base);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 360px){
    .btn-primary {
    padding: .5rem 1.25rem;
    font-size: 14px;
    margin-bottom: 2rem;
}
}

@media screen and (min-width:361px){
    .btn-primary {
    padding: .5rem 1.25rem;
    font-size: 14px;
    margin-bottom: 2rem;
}
}

/*
================
Contact
================
*/

.contact {
    background: #F7F7F7;
}

.contact-icon {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--clr-primary-500);
}

.contact .contact-inner {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact .ruler {
    height: 5rem;
    width: 1px;
    background: #D9D9D9;
}

.contact .contact-details {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-details h5 {
    color: var(--clr-neutral-400);
}

.contact-details p {
    margin-bottom: 0;
    color: var(--clr-neutral-300);
    font-weight: 300;
    font-size: 1.1rem;
}

.contact .left {
    display: grid;
    gap: 2rem;
    width: 100%;
}

.contact .contact-center {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.right {
    width: 100%;
}


.contact-form {
    width: 100%;
}

.form-controls {
    display: block;
    margin-top: 1rem;
    width: 100%;
    padding: 1rem 0 1rem .8rem;
    border-radius: var(--radius-base);
    border: 1.6px solid var(--clr-neutral-200);
}

::-webkit-input-placeholder {
    font-family: var(--ff-primary);
    font-size: 14px;
    font-weight: 300;
    color: var(--clr-neutral-300);
}

::-moz-placeholder {
    font-family: var(--ff-primary);
    font-size: 14px;
    font-weight: 300;
    color: var(--clr-neutral-300);
}

:-ms-input-placeholder {
    font-family: var(--ff-primary);
    font-size: 14px;
    font-weight: 300;
    color: var(--clr-neutral-300);
}

::-ms-input-placeholder {
    font-family: var(--ff-primary);
    font-size: 14px;
    font-weight: 300;
    color: var(--clr-neutral-300);
}

::placeholder {
    font-family: var(--ff-primary);
    font-size: 14px;
    font-weight: 300;
    color: var(--clr-neutral-300);
}

.btn {
    width: 100%;
    display: block;
    margin-top: 1rem;
    border: none;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    background: var(--clr-primary-500);
    color: var(--clr-white);
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--clr-primary-600);
}


@media screen and (max-width:360px) {
    .contact-icon {
    width: 1.5rem;
    height: 1.5rem;
}
    .contact .contact-inner {
    gap: 1rem;
    margin-left: 2rem;
}

    .contact-details h5 {
    font-size: 14px;
}
    .contact-details p {
    font-size: 14px;
}
    .form-controls {
    margin-top: 1rem;
    padding: 0.8rem 0 0.8rem 0.8rem;
}
    .btn {
    padding: .75rem 0;
    font-size: 14px;
}
}

@media screen and (min-width:361px) {
    .contact-icon {
    width: 1.5rem;
    height: 1.5rem;
}
    .contact .contact-inner {
    gap: 1rem;
    margin-left: 3rem;
}
    .contact-details p {
    font-size: 14px;
}
    .form-controls {
    margin-top: 1rem;
    padding: 0.8rem 0 0.8rem 0.8rem;
}
    .btn {
    padding: .75rem 0;
    font-size: 14px;
}
}

@media screen and (min-width:481px) {
    .contact .contact-inner {
    margin-left: 5rem;
}
    .contact-form {
    width: 90%;
    margin: 0 auto;
}
}

@media screen and (min-width: 769px) {
    .contact .contact-center {
    flex-direction: row;
    gap: 3rem;
}
    .contact .contact-inner {
    margin-left: 0;
}
    .contact-form {
    width: 100%;
    margin: 0;
}
    .contact-details h5 {
    font-size: 1rem;
}
    .contact-details p {
    font-size: 16px;
}
.btn {
    font-size: 1rem;
}
}

@media screen and (min-width: 1025px) {
    ::-webkit-input-placeholder {
    font-size: 16px;
    }
    ::-moz-placeholder {
    font-size: 16px;
    }
    :-ms-input-placeholder {
    font-size: 16px;
    }
    ::-ms-input-placeholder {
    font-size: 16px;
    }
    ::placeholder {
    font-size: 16px;
    }
    .contact-details h5 {
    font-size: 18px;
}
    .contact-details p {
    font-size: 17px;
}
}



/*
================
Footer
================
*/

.footer {
     background: #414141;
     padding: 4rem 0 0 0;
}

.footer-top {
    display: grid;
    place-items: center;
    gap: 2rem;
}

.footer .footer-logo {
    width: 12rem;
    
}

.footer-top p {
    color: var(--clr-neutral-100);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.social-icon-cont {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    padding: .8rem;
    transition: var(--transition);
}

.social-icon {
    width: 100%;
    height: 100%;
    color: var(--clr-white);
}

.social-icon-cont:hover .social-icon {
    color: var(--clr-primary-400);
}

.footer-bottom p {
    background: #363636;
    padding: 2rem 0;
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 0;
    color: #D8D8D8;
    font-weight: 400;
}

@media screen and (max-width:360px){
    .social-icon-cont {
    width: 3rem;
    height: 3rem;
    padding: .7rem;
}
    .footer .footer-logo {
    width: 8rem;
}
    .footer-top p {
    font-size: 13px;
}
    .footer-bottom p {
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 13px;
}
}


@media screen and (min-width:361px){
    .social-icon-cont {
    width: 3.5rem;
    height: 3.5rem;
    padding: .8rem;
}
    .footer .footer-logo {
    width: 8rem;
}
    .footer-top p {
    font-size: 13px;
}
    .footer-bottom p {
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 12px;
}
}

@media screen and (min-width:481px){
    .footer-bottom p, .footer-top p {
    font-size: 14px;
}
}

@media screen and (min-width:769px){
    .footer .footer-logo {
    width: 9rem;
}
    .social-icon-cont {
    width: 3.8rem;
    height: 3.8rem;
}
}

@media screen and (min-width:1025px){
    .footer .footer-logo {
    width: 10rem;
}
    .footer-bottom p, .footer-top p {
    font-size: 1rem;
}
}