/*---------------- import fonts ------------------*/
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ultra&display=swap');

/*-----------------------using root variable for colors----------------------*/
:root {
    --light-color: #f8f8f8;
    --dark-color: #121212;
    --secondary-color: #00CFFF;
    --tertiary-color: #1A1A1A;
    --visibility-color: rgb(26, 26, 26, 0.7);
    --darker-visibility-color: rgba(10, 10, 10, 0.9);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    color: var(--light-color);
    background-color: var(--dark-color);
    font-family: 'Ubuntu', sans-serif;
}
/*------------------------This is a mobile first approach----------------------*/
/*--------------------------header and navigation----------------------------*/
header {
    position: fixed;
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}
.bg-banner{
    position: absolute;
    background-image: url("../assets/images/bg-banner2.jpg");
    height: 70%;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}
header .logo {
    font-family: 'Ultra', serif;
    display: block;
    margin-left: 30px;
    padding: 0 15px;
    opacity: 0.9;
    border-radius: 8px;
    z-index: 3;
    align-items: center;
    background-color: rgba(10, 10, 10, 0.6);
}
.logo a {
    text-decoration: none;
    font-size: 3rem;
    color: var(--light-color);
}
.navup {
    transform: translateY(-100px);
}
header ul {
    background-color: var(--darker-visibility-color);
}
header .nav-menu li {
    list-style: none;
    text-align: center;
}
header li a.nav-link {
    text-decoration: none;
    color: var(--light-color);
    font-size: 2.5rem;
    padding: 5px auto;
}
.nav-link {
    transition: 0.7s ease;
}
.nav-link:hover {
    color: var(--secondary-color);
}

/*--------------------------------hamburger menu styling------------------------------*/
.hamburger {
    cursor: pointer;
    margin-right: 40px;
    z-index: 1;
    padding: 3px 8px;
    background-color: var(--visibility-color);
}
/*-----------------------------hamburger vertical bar------------------------------ */
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    --webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--light-color);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
    position: fixed;
    left: -100%;
    top: 10%;
    width: 100%;
    transition: 0.3s;
}
.nav-menu.active {
    left: 0;
}

/*-------------- hide the social icons to be shown in desktop view only ---------------*/
.social {
    display: none;
}
.fa-square-gitlab:hover,
.fa-github:hover,
.fa-instagram:hover {
    color: #8109EF;
}
.fa-twitter:hover,
.fa-facebook:hover,
.fa-linkedin:hover {
    color: #1A8CD8;
}
/*-------------------------- Hero section with button ------------------------*/
#home {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-direction: column;
    height: 390px;
}
#home h1 {
    font-size: 1.9rem;
}
#home h2 {
    color: var(--secondary-color);
}
.banner-and-image {
    display: flex;
    justify-content: space-around;
    margin-top: 250px;
    align-items: center;
}
.banner-text {
    background-color: var(--visibility-color);
    border-radius: 5px;
}
.banner-text,
.know-more {
    background-color: var(--visibility-color);
}
.know-more{
    text-decoration: none;
    color: var(--light-color);
    padding: 8px;
    width: 25%;
    margin: 90px auto 15px;
}
.know-more:hover{
    color: var(--secondary-color);
}
#home img {
    width: 30%;
    border-radius: 50%;
}

/*------------------------------- wrapper of all sections ----------------------*/
main {
    margin: 130px 10px 15px 10px;
}
main p,
main li,
footer p,
footer li {
    font-family: 'Lora', serif;
}
main h2 {
    text-align: center;
    font-size: 2rem;
}

/*------------------------- uniform styles for each section ----------------------------*/
#about,
#skills,
#projects,
#contact {
    background-image: linear-gradient(to right, var(--dark-color), var(--tertiary-color));
    padding: 20px;
}
#about,
#skills,
#projects{
    margin: 45px auto;
}

/*-----------------------start of about section styling------------------------*/
#about {
    padding: 20px;
}

/*--------------------------------- skills section styling ---------------------*/
.tech-content {
    display: flex;
    justify-content: space-around;
}
.intermediate ul {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}
.tech-content li {
    list-style: none;
}
.tech-content li,
.coreskills-content li {
    padding: 5px;
}
.tech-content img {
    border-radius: 50%;
    width: 50px;
}
.coreskills-container {
    padding-top: 20px;
}

/*----------------------------- projects section styling -------------------------------*/
#projects {
    padding: 30px;
}
#projects .carousel-caption {
    background-color: var(--visibility-color);
    border-radius: 5px;
}
#projects button {
    background-color: var(--tertiary-color);
    width: 10%;
}
#projects .carousel-img{
    height: 70vh;
}

/*---------------------------- contact section styling ------------------------------------*/
#contact h2 {
    margin-bottom: 20px;
}
.contact-details {
    padding-top: 15px;
    padding-bottom: 40px;
}
.phone,
.email,
.location {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 1.4rem;
}
.send-email-desc{
    text-align: center;
    font-size: 1.6rem;
}
#contact form {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
#contact input {
    width: 45%;
    color: var(--light-color);
}
#contact input,
#contact textarea {
    margin-bottom: 15px;
    background-color: var(--tertiary-color);
}
#contact button {
    padding: 5px 10px;
    margin-bottom: 15px;
    width: 50%;
    align-self: center;
}
#contact textarea {
    height: 300px;
    color: var(--light-color);
}
#contact input,
#contact textarea,
#contact button {
    font-family: 'Lora', sans-serif;
}
.message-button {
    display: flex;
    flex-direction: column;
    width: 95%;
}
.fa-paper-plane {
    padding-right: 10px;
}

/*---------------------------start of footer styling-----------------------------*/
footer {
    margin-top: 40px;
    margin-bottom: 40px;
}
footer .icons{
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}
.fa-brands{
    color: var(--light-color);
}
.icons a {
    margin-left: 5px;
    margin-right: 5px;
}
.nav-footer {
    list-style: none;
    display: flex;
    justify-content: center;
    padding-top: 20px;
}
.nav-footer li {
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
    font-size: 0.8rem;
}
footer p {
    font-size: 0.8rem;
    text-align: center;
}