/* Font Family: Montserrat, Open Sans, Poppins */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@300;400;600&family=Poppins:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@500&display=swap');

/* Variables */

:root {
    --primary-color: #1D5D9B;
    --button-bg-color: #ecebfa;
    --button-hover: #0f5fcf;
    --primary-shadow-color: #e1c1c1;
    --secondary-color: #0d081a;
    --tertiary-color: #202040;
    --navbar-color: #0d081a;
    --secondary-grey: #48464b;
    --project-card-shadow: #d2d2d2;
    --body-bg: #FAF3F0;
    --footer-color: #2a5694;
    --footer-heading: #ecebfa;
    --skill-color: #2a5694;
    --button-color: #ecebfa;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    
}

html {
    scroll-behavior: smooth;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 10px;
}

body {
    /* background: rgb(250,243,240); */
/* background: linear-gradient(135deg, rgba(250,243,240,1) 0%, rgba(255,210,191,1) 53%, rgba(255,176,142,1) 100%); */
background-color: var(--body-bg);
    transition: 0.5s;
    color: var(--tertiary-color);
}

h2 {
    color: var(--tertiary-color);
}

img {
    width: 100%;
    height: 100%;
}

a {
    color: var(--tertiary-color);
    text-decoration: none;
}

p {
    font-size: 1.55rem;
    color: var(--tertiary-color);
}

section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 90%;
    height: 100%;
    margin: 0 auto;
    max-width: 1500px;
}

.primary-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--button-color);
    font-size: 1.3rem;
    text-align: center;
    padding: 0.6em 1em;
    border-radius: 50px;
    transition: transform 0.2s ease;
}

.primary-btn:hover{
    transform: scale(1.05);
    background: var(--button-hover);
    color: #ffffff
}

.buttons {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
}

.buttons svg {
    width: 50px;
    color: var(--primary-color);
}

.outline {
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    border: 2px solid var(--primary-color);
}

.section-heading {
    font-size: clamp(2.5rem, 10.5vw, 7rem);
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    position: relative;
    margin-bottom: 10rem;
}

.section-heading::before {
    content: attr(data-outline);
    position: absolute;
    left: 2%;
    top: -20%;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--primary-color);
    opacity: 0.3;
    z-index: -1;
}

/* navigation section */

#navigation {
    position: fixed;
    right: 20px;
    top: 20px;
    height: auto;
    z-index: 100;
}

#navigation .nav-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--primary-color);
    border-radius: 50%;
}

#navigation .nav-icon svg {
    color: #fff;
    width: 70%;
}

#nav-content {
    position: fixed;
    right: 0;
    top: 0;
    width: 35%;
    height: 100%;
    max-width: 800px;
    z-index: 100;
    background-color: var(--navbar-color);
    color: #ecebfa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: translateX(110%);
    transition: 0.3s ease-in-out transform;
}

#nav-content.show {
    transform: translateX(0%);
    box-shadow: -6px 0 30px 7px rgba(60, 60, 71, 0.137);
}

#nav-content .section-heading {
    text-align: left;
}

#nav-content .section-heading::before {
    -webkit-text-stroke: 1.5px var(--secondary-grey);
    text-align: left;
}

#nav-content .wrapper {
    width: 60%;
    position: relative;
}

#nav-content ul {
    list-style-type: none;
    text-align: left;
}

#nav-content ul li {
    margin-bottom: 2rem;
    /* background-color: red; */
}

#nav-content ul li a {
    display: inline-block;
    color: #ecebfa;
    width: 100%;
    font-size: 4rem;
    font-family: 'Montserrat', sans-serif;
}

#nav-content ul li a::after {
    content: attr(data-text);
    pointer-events: none;
    position: absolute;
    /* right: 0; */
    right: -150px;
    bottom: 45%;
    width: 100%;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--secondary-grey);
    opacity: 0;
    z-index: 1;
    text-align: center;
    transform: rotate(90deg) scale(3);
    transition: 0.3s ease;
    transition-property: opacity, transform;
}

#nav-content ul li a:hover::after {
    opacity: 1;
    transform: scale(3) translateY(10px) rotate(90deg);
}

#nav-content .close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    color: var(--body-bg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: 0.3s ease background-color;
}

#nav-content .close-btn svg {
    width: 80%;
}

#nav-content .close-btn:hover {
    background-color: crimson;
}

#nav-content nav ul li svg {
    max-width: 5rem;
    cursor: pointer;
    /* margin: 2rem; */
    /* background-color: red; */
}

@media only screen and (max-width: 768px) {
    #navigation {
        right: 10px;
        top: 10px;
    }
    #nav-content {
        width: 60%;
    }
    #nav-content nav ul li a::before {
        display: none;
    }
    #nav-content .section-heading {
        text-align: left;
        margin-bottom: 5rem;
    }
    #nav-content nav ul li a {
        font-size: 2.5rem;
    }
}

.hide {
    display: none;
}

.adjust {
    margin-top: -20px;
    /* top: 10px; */
}

/* Hero Section */

#hero {
    height: 80vh;
    width: 100%;
    padding-top: 1rem;
    margin-top: 1rem;
    
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
}

#hero .container .left {
    flex: 4;
    
}

#hero .container .right {
    flex: 6;
}

#hero .container .right img{
    transition: 0.3s ease transform;

}

#hero .container .right img:hover{
    transform: scale(1.05);
}

#hero .left .subheading {
    font-size: 1.8rem;
    font-weight: 500;
    margin-left: 1.8rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-family: 'Roboto Mono', monospace;
    opacity: 0;
    animation: fade 0.3s ease-in forwards;
    animation-delay: 1s;
}

#hero .left .heading {
    font-size: 6rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

#hero .left .heading .wrapper {
    display: inline-block;
    overflow: hidden;
}

#hero .left .heading .wrapper span {
    color: var(--tertiary-color);
    position: relative;
    bottom: -70px;
    animation: reveal 1s ease-in-out forwards;
}

@keyframes reveal {
    0% {
        bottom: -70px;
    }
    100% {
        bottom: 0px;
    }
}

@keyframes fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#hero .left .desc {
    margin-top: 2.5rem;
    max-width: 400px;
    opacity: 0;
    animation: fade 0.3s ease-in forwards;
    animation-delay: 1s;
}

#hero .left .desc span {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

#hero .left .buttons {
    opacity: 0;
    animation: fade 0.3s ease-in forwards;
    animation-delay: 1s;
}

#hero .right {
    text-align: right;
}

#hero .right img {
    width: 100%;
    max-width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px var(--primary-shadow-color);
    animation: fade 0.5s ease-in-out forwards;
    transition: transform 0.3s ease-in-out;
    z-index: 100;
}

/* #hero .right img:hover {
    transform: scale(1.1);
} */

@media only screen and (max-width: 760px) {
    html {
        font-size: 9px;
    }
    #hero {
        height: 70vh;
        margin-top: 7rem;
    }
    #hero .container {
        flex-direction: column;
    }
    #hero .container .right {
        text-align: center;
        flex: 1;
        margin-top: 2rem;
        /* margin-bottom: 1rem; */
    }
    #hero .container .right img {
        width: 100%;
        height: 175px;
        object-position: 50% 40%;
        margin-bottom: 3rem;
    }
    #hero .container .left {
        text-align: center;
        padding-right: 0;
        flex: 1;
        height: fit-content;
        /* margin-top: 1rem; */
    }
    #hero .left .buttons {
        justify-content: center;
    }
    #hero .container .left .heading {
        font-size: 4.2rem;
        margin: 0 auto;
    }
    #hero .container .left .desc {
        margin: 0 auto;
        margin-top: 2rem;
    }
}

@media only screen and (max-width: 950px) {
    #hero .container .right {
        flex: 6;
    }
}

/* About section */

#about {
    padding-top: 0rem;
}

#about .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

#about .left {
    padding: 2rem 5rem;
    text-align: center;
    
}

#about .left .card {
    box-shadow: 0px 0px 25px var(--primary-shadow-color);
    padding: 5rem 3rem;
    border-radius: 20px;
    min-height: 200px;
    min-width: 250px;
    max-width: 450px;
    transition: 0.3s ease transform;
    background-color: var(--button-bg-color);
}

#about .left .card:hover {
    transform: scale(1.05);
    z-index: 1;
}

#about .left .card .img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    margin-bottom: 4rem;
}

#about .left .card .img img {
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 40%;
}

#about .left .card .card-desc {
    color: var(--secondary-grey);
    margin-bottom: 2rem;

}

#about .left .card card-name {
    font-size: rem;
    margin-bottom: 0.2rem;
}

#about .left .card .card-sub-title {
    font-size: 1.4rem;
}

#about .subheading {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#about .right .slogan {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

#about .right .right-text {
    color: var(--secondary-grey);
}

@media only screen and (max-width: 768px) {
    #about .wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }
    #about .right .buttons {
        flex-direction: column;
    }
    #about .right .buttons a {
        text-align: center;
    }
}

/* skills section */

#skills {
    padding-top: 5rem;
    padding-bottom: 5rem;
    max-width: 100vw;
}

.s-box-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content:center;
    max-width: 100%;
    /* display:grid; */
    /* align-items: center;
    justify-content: center;
    gap: 5rem; */
    /* grid-template-columns: repeat(3, 1fr); */
    /* grid-gap: 1.5rem; */
    /* place-items: center; */
}

.skill-box {
    background-color: var(--button-bg-color);
    box-shadow: 0 0 20px var(--primary-shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 1rem;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease;
    min-width: 100px;
    /* max-width: 350px; */
    min-height: 50px;
}

.skill-box:hover {
    transform: scale(1.1);
}

.s-box-icon {
    /* overflow: hidden; */
    margin-right: 10px;
    /* margin-left: 10px; */
    width: 85px;
    height: 60px;
    font-size: 5.5rem;
    border-radius: 50;
    /* background-color: red; */
    /* text-align: center; */
}

.s-box-icon img {
    width: 50px;
    height: 50px;
    /* border-radius: 50%; */
    margin-left: auto;
    margin-right: auto;
    /* display: flex; */
    object-fit:contain;
    /* justify-content: center; */
    /* align-items: center; */
    /* background-color: #000; */
    /* font-size: 1.1rem; */
}

.s-box-text strong {
    color: var(--skill-color);
    /* padding-top: 15rem; */
    font-size: 1.8rem;
    font-weight: 600;
    margin-right: 10px;
}

/* .s-box-text p{
	color:#747474;
	font-size: 0.9rem;
} */

.fa-html5 {
    color: #FF5733;
    /* width: auto; */
}

.fa-css3-alt {
    color: #416cdf;
}

.fa-js {
    color: #f98231;
}

@media only screen and (max-width: 900px) {
    /* #skills {
        padding: 0rem 0 5rem 0;
    } */
    .s-box-container {
        grid-template-columns: 1fr;
    }
    #skills .s-box-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Projects section */

#projects {
    padding: 2rem 0;
}

#projects .all-items {
    display: grid;
    place-items: center;
}

#projects .item {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 5rem;
}

#projects .item:nth-child(even) {
    flex-direction: row-reverse;
}

#projects .item .left {
    flex: 1;
}

#projects .item .right {
    flex: 1;
    /* margin-left: -px; */
    background-color: var(--body-bg);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 0 10px var(--project-card-shadow);
    z-index: 2;
    transition: transform 0.3s ease-in-out;
}

#projects .item .right:hover {
    transform: scale(1.05);
    cursor: default;
}

#projects .item.item:nth-child(even) .right {
    margin-left: 0;
}

#projects .item.item:nth-child(even) .left {
    /* margin-left: -150px; */
}

#projects .item .left .img {
    height: 300px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 0 20px #0b6af031;
    position: relative;
}

#projects .item .left .img::after {
    position: absolute;
    content: '';
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
}

#projects .item .left .img img {
    /* padding: 10rem 12rem 10rem 0; */
    object-fit: cover;
    object-position: 50% 1%;
    transition: 0.3s ease transform;
}

#projects .item .left .img:hover img {
    transform: scale(1.1);
    z-index: 1;
}

#projects .item .right .project-title {
    font-size: 2.75rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
}

#projects .item .right .project-sub-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

#projects .item .right .project-desc {
    color: var(--secondary-grey);
    margin-bottom: 3rem;
    text-align: justify;
}

#projects .item .right .buttons .external-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: calc(0.6em - 4px) calc(1.6em - 4px);
}

#projects .item .right .buttons .external-link svg {
    width: 25px;
}

#projects .container .all-items .see-all {
    text-align: center;
    width: 50%;
    /* padding: 1.35rem; */
    /* margin: 10rem; */
}

@media only screen and (max-width: 768px) {
    #projects .item {
        flex-direction: column;
    }
    #projects .item .left {
        width: 100%;
    }
    #projects .item .right {
        width: 90%;
        margin-left: 0;
        margin-top: -150px;
    }
    #projects .item.item:nth-child(even) {
        flex-direction: column;
    }
    #projects .item.item:nth-child(even) .left {
        margin-left: 0;
    }
    #projects .container .all-items .see-all {
        width: 80%;
    }
}

@media only screen and (max-width: 450px) {
    #projects .item .right .buttons {
        flex-direction: column;
    }
    #projects .item .right .buttons a {
        text-align: center;
    }
}

/* Footer Section */

#footer {
    /* background-color: #311580; */
    background-color: var(--footer-color);
    color: var(--body-bg);
    padding: 2rem 0;
    /* text-align: justify; */
}

#footer footer {
    display: flex;
    align-items: flex-start;
    justify-content:space-around;
    gap: 2rem;
}

/* #footer footer .col-1 {
    flex: 4;
} */

/* #footer footer .col-2, #footer footer .col-3, #footer footer .col-4 {
    flex: 3;
}  */

/* #footer footer .col-4 {
	flex: 3;
} */

#footer footer .col-1 .logo img {
    /* max-width: 300px; */
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
    justify-content: center;
    align-items: center;
}

#footer footer .col-1 p {
    color: white;
    /* padding-right: 5rem; */
}

#footer footer .column-heading {
    color: var(--footer-heading);
    font-family: 'Montserrat';
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    line-height: 1.5em;
    background-color: #faf3f018;
    border-radius: 15px;
    padding: 1.5rem;
}

#footer footer ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    align-items: center;
    justify-content: center;
}

#footer footer ul li {
    border-radius: 4px;
}

#footer footer ul li:hover {
    background-color: #ecebfa;
}

#footer footer ul li:hover a {
    color: var(--footer-color);
}

#footer footer ul li a {
    display: inline-block;
    width: 100%;
    color: #ecebfa;
    font-size: 1.7rem;
    padding: 0.5rem;
}

/* #footer footer .col-4 ul {
    display: flex;
    flex-wrap: wrap;
} */

/* #footer footer .col-4 ul li a {
    min-width: 50px;
} */

@media only screen and (max-width: 768px) {
    #footer footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    #footer footer .col-1, #footer footer .col-2, #footer footer .col-3, #footer footer .col-4 {
        width: 100%;
        margin-bottom: 3rem;
    }
    #footer footer .col-4 ul {
        width: fit-content;
        margin: 0 auto;
    }
}

/* copyright Section */

#copyright {
    padding: 1rem 0;
    /* background-color: #221052; */
    background-color: var(--footer-color);
}

#copyright .container {
    margin: 1rem auto;
    text-align: center;
}

#copyright p {
    color: #ecebfa;
    /* margin: 1rem auto; */
    font-size: 1.4rem;
    text-align: center;
}

@media only screen and (max-width: 768px) {
    #copyright p {
        text-align: center;
    }
}