/* variables */
:root{
    --main-color: #387be0;
    --blue:#0000ff;
    --blue-dark:#18293c;
    --orange:#ffa500;
    --green-yellow:#cddc39;
    --pale-blue:#39a7e7;
    --bright-pink:#be48f5;
    --neon-green:rgb(68, 242, 62);
    --green-bright: #00ff66;
    --white:#ffffff;
    --white-alpha-40:rgba(255,255,255,0.40);
    --white-alpha-25:rgba(255,255,255,0.25);
    --backdrop-filter-blur:blur(5px); /* still not supported in Firefox! */

    --clr-neon: #ffffff;
    --clr-bg: hsl(323 21% 16%);
}


/** global settings **/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    outline: none;
}

::before,
::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-image: linear-gradient(to bottom right, var(--pale-blue), rgb(46, 163, 125));
    background-attachment: fixed;
    font-size: 16px;
    font-family: 'Fira Code', monospace; /* I added this from google fonts Roboto */
    font-weight: 300;

    color: var(--blue-dark);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    padding: 35px 15px;
}

body.hide-scrolling {
    overflow-y: hidden;
}

body::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: var(--green-yellow);
    z-index: -1;
    opacity: 0.12;
}

a {
    text-decoration: none;
}

h1,
h2 {
    font-weight: 700;
}

h3, 
h4, 
h5,
h6 {
    font-weight: 500;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

ul {
    list-style: none;
}

section {
    background-color: var(--white-alpha-25);
    border: 1px solid var(--white-alpha-40);
    min-height: calc(100vh - 70px);
    border-radius: 10px;
    backdrop-filter: var(--backdrop-filter-blur);
    display: none;
}

section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out forwards;
}

section.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

.main {
    max-width: 1100px;
    margin: auto;
    transition: all 0.5s ease-in-out;
    position: relative;
}

.main.fade-out {
    opacity: 0;
}

.container {
    padding: 0 40px;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.align-items-center {
    align-items: center;
}

.hidden {
    display: none !important;
}

.sec-padding {
    padding: 80px 0;
}

.flex-end {
    justify-content: flex-end;
}

/* ---------Section Title */

.section-title {
    padding: 0 15px;
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 40px;
    margin-top: 1.5rem;
    text-transform: capitalize;
}

/*---------- Custom Scrollbar */

::-webkit-scrollbar {
    width: 1rem;
}

::-webkit-scrollbar-track {
    background-color: var(--white);
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}


/*------- Buttons */

button {
    font-family: inherit;
    user-select: none;
}

.btn {
    line-height: 1.5;
    background-color: var(--white-alpha-25);
    border: 1px solid var(--white-alpha-40);
    padding: 10px 28px;
    display: inline-block;
    border-radius: 10px;
    color: var(--main-color);
    font-weight: 500;
    text-transform: capitalize;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    transition: color 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: #4aadcd;
    z-index: -1;
    transition: width 0.3s ease;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: var(--white);
}

.btn.pp-close {
    background-color: #73c0b8;
}
.btn.pp-close:hover {
    background-color: var(--white-alpha-40);
    transform: scale(1.1);
}


/* --------Animation Keyframes */

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(0.2);
    }
    50% {
        transform: scale(1);
    }
}

@keyframes bounceTop {
    0%, 100% {
        transform: translateY(-50px);
    }
    50% {
        transform: translateY(0px);
    }
}

@keyframes bounceTop2 {
    0%, 100% {
        transform: translateY(-65px);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes spin {
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}

/* Background circles */

.bg-circles {
    position: fixed;
    top: 0;
    height: 100%;
    max-width: 1200px;
    width: calc(100% - 30px);
    left: 50%;
    transform: translateX(-50%);
}

.bg-circles div {
    position: absolute;
    border-radius: 50%;
}

.bg-circles .circle-1 {
    height: 60px;
    width: 60px;
    background-color: var(--blue);
    left: 16%;
    top: 22%;
    opacity: 0.3;
    /* animation: zoomInOut 8s linear infinite;  this is set in Keyframes :) */
}

.bg-circles .circle-2 {
    height: 80px;
    width: 80px;
    background-color: var(--main-color);
    left: 30%;
    top: 50%;
    opacity: 0.4;
    /* animation: bounceTop 5s ease-in-out infinite;  this is set in Keyframes :) */
}

.bg-circles .circle-3 {
    height: 120px;
    width: 120px;
    background-color: var(--main-color);
    top: 20%;
    right: -60px;
    opacity: 0.6;
}

.bg-circles .circle-4 {
    height: 50px;
    width: 50px;
    background-color: var(--green-yellow);
    top: 20%;
    left: -30px;
    opacity: 0.6;
}

.bg-circles .circle-5 {
    height: 70px;
    width: 70px;
    background-color: var(--green-yellow);
    right: 20%;
    top: 80%;
    opacity: 0.4;
    /* animation: bounceTop2 4s ease-in-out infinite;  this is set in Keyframes :) */
}

.bg-circles .circle-6 {
    height: 50px;
    width: 50px;
    background-color: var(--white);
    right: 15%;
    top: 10%;
    opacity: 0.3;
    /* animation: zoomInOut 8s linear infinite;  this is set in Keyframes :) */
}
/* -------------- Squares ------------- */

.bg-squares {
    position: fixed;
    top: 0;
    height: 100%;
    max-width: 1200px;
    width: calc(100% - 30px);
    left: 50%;
    transform: translateX(-50%);
}

.bg-squares div {
    position: absolute;
    border-radius: 10%;
}
.square-1 {
    height: 46px;
    width: 46px;
    background-color: var(--bright-pink);
    right: 99%;
    top: 76%;
    opacity: 0.3;
}

.square-2 {
    height: 60px;
    width: 60px;
    background-color: var(--blue);
    right: 71%;
    top: 88%;
    opacity: 0.3;
}

.square-3 {
    height: 90px;
    width: 90px;
    background-color: var(--white);
    right: -4%;
    top: 72%;
    opacity: 0.3;
    border-radius: none;
}


/*-------- Overlay */

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: transparent;
    z-index: 200;
    visibility: hidden;
}

.overlay.active {
    visibility: visible;
}


/*--------- Page Loader */

.page-loader {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 999;
    background-color: var(--white-alpha-25);
    backdrop-filter: var(--backdrop-filter-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

.page-loader.fade-out {
    opacity: 0;
}

.page-loader div {
    border: 2px solid transparent;
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
    animation: spin 1s linear infinite;

}
.page-loader div:nth-child(1) {
    height: 60px;
    width: 60px;
    border-color: var(--main-color);
}

.page-loader div:nth-child(2) {
    height: 45px;
    width: 45px;
    border-color: var(--bright-pink);
    animation-duration: 1.2s ;
}

.page-loader div:nth-child(3) {
    height: 30px;
    width: 30px;
    border-color: var(--green-yellow);
}

/* -------Header - Nav Bar------- */

.nav-bar {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 1rem;
    justify-content: center;
    margin-left: 1rem;
    box-shadow: 1px 1px 8px #5b70a1;
    border-radius: 10px;
}

.main-menu-bar {
    display: flex;
    justify-content: space-evenly;
	margin-top: 5px;

}
.main-menu-bar a {
	padding: 10px 15px;
	text-transform: uppercase;
	text-align: center;
	display: block;

    color: var(--white);
    font-weight: 500;
	font-size: 18px;
    font-family: inherit;
    text-shadow: 1px 1px 0px #3b7fcb;
}

.main-menu-bar a:hover {
	color: var(--white);
    text-shadow: none;
    background-color: #49adcbab;
}

.header-panel {
    width: 100%;
	padding-top: 0.2em;
	padding-bottom: 0.2em;
	border: 1px solid var(--white-alpha-40);
	background-color: var(--white-alpha-25);
	border-radius: 10px;
}

.main-menu-bar li {
    border-left: 2px solid var(--white-alpha-25);
    border-right: 2px solid var(--white-alpha-25);
}


/* -------Header */

.header {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1;
    padding: 20px 0 0;
}

.header.active {
    position: fixed;
    top: 35px;
    padding: 20px 15px;
}

.header.active .container {
    max-width: 1200px;
    margin: auto;
}

.header .nav-toggler {
    display: none;
}

.header .nav-toggler.hide {
    opacity: 0;
    transition: none;
}

.header .nav-toggler span {
    height: 2px;
    width: 24px;
    background-color: var(--main-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.header.active .nav-toggler span {
    background-color: transparent;
}
.header .nav-toggler span::before,
.header .nav-toggler span::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
    transition: all 0.3s ease;
}

.header .nav-toggler span::before {
    left: 0;
    transform: translateY(-8px);
}

.header.active .nav-toggler span::before {
    transform: rotate(45deg);
}

.header .nav-toggler span::after {
    right: 0;
    transform: translateY(8px);
}

.header.active .nav-toggler span::after {
    transform: rotate(-45deg);
}

.header:not(.active) .nav-toggler:hover span::before,
.header:not(.active) .nav-toggler:hover span::after {
    width: 50%;
}

.header .nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    padding: 35px 15px;
    overflow-y: auto;
    visibility: hidden;
}

.header.active .nav {
    visibility: visible;
}

.header .nav-inner {
    min-height: calc(100vh - 70px);
    max-width: 1200px;
    margin: auto;
    background-color: var(--white-alpha-25);
    border: 1px solid var(--white-alpha-40);
    backdrop-filter: var(--backdrop-filter-blur);
    padding: 50px 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.header.active .nav-inner {
    opacity: 1;

}

.header .nav-inner ul li {
    text-align: center;
}

.header .nav-inner ul li a {
    font-size: 40px;
    text-transform: capitalize;
    color: var(--blue-dark);
    display: block;
    font-weight: 500;
    padding: 8px 15px;
    transition: color 0.3s ease;
    position: relative;
}

.header .nav-inner ul li a::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    height: 90%;
    width: 0;
    background-color: var(--white-alpha-25);
    z-index: -1;
    transition: width 0.2s ease;
}

.header .nav-inner ul li a:hover::before {
    width: 100%;
}

.header .nav-inner ul li a:hover {
    color: var(--main-color);
}


/* -----------------Home section */

.home-section {
    padding: 7.5rem 0 0 0;
}

.home-section.active {
    display: flex;
}

.home-text,
.home-img {
    width: 50%;
    padding: 15px;
}

.home-text p {
    font-size: 18px;
}

.home-text p:last-of-type {
    padding: 1rem 0;
}

.home-text h1 {
    font-size: 50px;
    text-transform: capitalize;
}

.home-text h2 {
    font-size: 20px;
    text-transform: capitalize;
    font-weight: 300;
    margin: 0 0 30px 0;
}

.home-text .btn {
    margin: 0 15px 15px 0;
}

.home-img .img-box {
    max-width: 390px;
    background-color: var(--white-alpha-25);
    border-radius: 10px;
    border: 8px solid var(--white-alpha-25);
    margin: auto;
}

.home-img .img-box img {
    width: 100%;
    border-radius: 5px;
}

/* ---------------About Section */

.about-img {
    width: 40%;
    padding: 0 15px;
}

.about-text {
    width: 60%;
    padding: 0 15px;
}

.about-img .img-box {
    background-color: var(--white-alpha-25);
    max-width: 380px;
    border: 1px solid var(--white-alpha-40);
    margin: auto;
    border-radius: 10px;
}

.about-img .img-box img {
    width: 100%;
}

.about-text h3 {
    text-transform: capitalize;
    font-size: 20px;
    margin: 20px 0;
}

.about-text .skills {
    display: flex;
    flex-wrap: wrap;
}

.about-text .skill-item {
    background-color: var(--white-alpha-25);
    border: 1px solid var(--white-alpha-40);
    padding: 5px 15px;
    text-transform: capitalize;
    margin: 0 10px 10px 0;
    border-radius: 10px;
}

.about-tabs {
    margin-top: 20px;
}

.about-tabs .tab-item {
    padding: 2px 0;
    background-color: transparent;
    border: none;
    text-transform: capitalize;
    display: inline-block;
    color: var(--blue-dark);
    font-size: 20px;
    cursor: pointer;
    font-weight: 500;
    margin: 0 30px 0 0;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.about-tabs .tab-item:last-child {
    margin: 0;
}

.about-tabs .tab-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background-color: var(--blue-dark);
    transition: width 0.3s ease;
}

.about-tabs .tab-item:hover::before {
    width: 100%;
}

.about-tabs .tab-item.active::before {
    width: 100%;
    background-color: var(--main-color);
}

.about-tabs .tab-item.active {
    color: var(--main-color);
    opacity: 1;
    cursor: auto;
}

.about-text .timeline {
    position: relative;
}

.about-text .timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 1px;
    top: 0;
    left: 5px;
    background-color: var(--main-color);
}

.about-text .tab-content {
    padding: 40px 0;
    display: none;
}

.about-text .tab-content.active {
    display: block;
}

.about-text .timeline-item {
    margin-bottom: 30px;
    position: relative;
    padding: 10px 0 0 40px;
}

.about-text .timeline-item::before {
    content: '';
    position: absolute;
    height: 11px;
    width: 11px;
    background-color: var(--main-color);
    left: 0;
    top: 16px;
    border-radius: 10px;
}

.about-text .timeline-item:last-child {
    margin-bottom: 0;
}

.about-text .timeline-item .date {
    display: block;
    color: var(--main-color);
    font-weight: 400;
    margin: 0 0 10px;
}

.about-text .timeline-item h4 {
    font-size: 18px;
    text-transform: capitalize;
    margin: 0 0 10px;

}

.about-text .timeline-item h4 span {
    font-weight: 400;
}

.about-text .btn {
    margin: 0 15px 15px 0;
}

/* ------------- Portfolio Section */

.portfolio-section {
    padding-bottom: 50px;
}

.portfolio-item {
    width: calc((100% / 2) - 30px); /* will change this as portfolio items are added. If 3 add /3 and so on  */
    margin: 0 15px 30px;
}

.portfolio-item-thumbnail {
    padding: 10px;
    background-color: var(--white-alpha-25);
    border: 1px solid var(--white-alpha-40);
    border-radius: 10px;
}

.portfolio-item-thumbnail img {
    width: 100%;
    border-radius: 10px;
}

.portfolio-item h3 {
    font-size: 20px;
    text-transform: capitalize;
    margin: 20px 0;
}

.portfolio-item-details {
    display: none;
}

/* Portfolio popup */

.portfolio-popup {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 200;
    visibility: hidden; /* hides the pop up */
    overflow-y: auto ;
}

.portfolio-popup.open {
    visibility: visible;
    overflow-y: auto;
}

.pp-inner {
    min-height: 100vh;
    padding: 40px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-content {
    background-color: var(--white-alpha-25);
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    border: 1px solid var(--white-alpha-40);
    backdrop-filter: var(--backdrop-filter-blur);
    opacity: 0;
    transform: scale(0.9);
}

.portfolio-popup.open .pp-content {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease;
}

.pp-header {
    position: relative;
}

.pp-header .btn {
    height: 40px;
    width: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -50px;
    top: -50px;
}

.pp-thumbnail img {
    border-radius: 10px;
}

.pp-header h3 {
    font-size: 25px;
    text-transform: capitalize;
    margin: 20px 0 15px;
}

.pp-body .description {
    margin-bottom: 20px;
}

.pp-body .general-info li {
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: capitalize;
}

.pp-body .general-info li span {
    font-weight: 300;
}

.pp-body .general-info li a {
    text-transform: lowercase;
    color: var(--main-color);
}

/* Contact Section */

.contact-form {
    width: 80%;
    padding: 0 1rem;
}

.contact-info {
    width: 100%;
    padding: 0 1rem;
}

.contact-form .input-group {
    width: 100%;
    margin-bottom: 30px;
}

.col-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 2rem;
}

.input-group h2 {
    padding: 0.3rem;
    font-size: 1.3rem;
}

.contact-form .input-control::placeholder {
    color: var(--blue-dark);
    opacity: 0.8;
    font-weight: 300;
}

.contact-form .input-control {
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-weight: 400;
    font-size: 16px;
    background-color: var(--white-alpha-25);
    padding: 0 20px;
    color: var(--blue-dark);
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-form .input-control:focus {
    border-color: var(--white-alpha-40);
    background-color: #ffffffba;
}

.contact-form textarea.input-control {
    height: 120px;
    resize: none;
    padding-top: 15px;
}

.contact-info-item {
    margin: 0 0 30px;
    padding: 0 0 0 20px;
}

.contact-info-item h4 {
    font-size: 20px;
    text-transform: capitalize;
    margin: 0 0 5px;
}

.contact-info-item .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    background-color: var(--white-alpha-25);
    border: 1px solid var(--white-alpha-40);
    color: var(--main-color);
    border-radius: 10px;
    margin: 6px 4px 0 0;
    transition: all 0.3s ease;
}

.contact-info-item .social-links a:hover {
    color: var(--white);
    background-color: var(--main-color);
}

.social-links {
    margin-top: 1rem;
}

/* Tech stack Bar  */

#tech-stack {
    display: flex;
    justify-content: center;
    background-image: linear-gradient(89deg, #5eb1962e, #5eb1962e);
    margin: 1rem;
  }

.tech-img {
    height: 2.5rem;
    margin: 1rem;
    background-color: var(--white-alpha-40);
    border: 1px solid var(--white-alpha-25);
    border-radius: 5px;
}

.tech-img:hover {
    transform: scale(1.5);
}

/* Footer */

footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

footer a {
    font-family: inherit;
    color: var(--white-alpha-40);
    z-index: 1;
}

/* Responsive --------------   */

@media (max-width: 991px) {
    /* .container {
        padding: 0;
    } */
    .home-text,
    .home-img {
        width: 100%;
    }
    .home-text {
        text-align: center;
    }
    .home-img {
        order: -1;
    }
    .home-img .img-box {
        max-width: 300px;
    }
    .home-text .btn {
        margin: 0 7px 15px;
    }
    .portfolio-item {
        width: calc(50% - 30px);
    }
    .contact-info-item .social-links a {
        height: 36px;
        width: 36px;
    }
}

@media (max-width: 767px) {

    .row {
        display: flex;
        flex-flow: row wrap;
    }
    .contact-form, 
    .contact-info,
    .about-img,
    .about-text {
        width: 100%;
    }
    .about-text {
        margin-top: 30px;
    }
    .portfolio-item {
        width: calc(100% - 30px);
    }
    .pp-inner {
        padding: 30px 15px;
    }
    .contact-info {
        order: -1;
        margin-bottom: 15px;
    }
    .contact-info-item {
        padding: 0;
    }
}

@media (max-width: 575px) {

    .header .nav-toggler {
            width: 50px;
            height: 50px;
            border: none;
            cursor: pointer;
            border-radius: 25%;
            background-color: var(--white-alpha-25);
            border: 1px solid var(--white-alpha-40);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 15px;
            z-index: 1;
            transition: opacity 0.3s ease-in-out;
    }

    .nav-bar {
        display: none;
    }

    .section-title h2,
    .header .nav-inner ul li a {
        font-size: 35px;
    }
    .home-text h1 {
        font-size: 30px;
    }
    .home-text h2 {
        font-size: 15px;
    }
    .pp-header h3 {
        font-size: 20px;
    }

    #tech-stack {
        background-image: none;
    }

    .tech-img {
        margin: 0.3rem;
    }

}


/*  Typing effect  */

#hello-text::after {
    content: "|";
    animation: blink 1s infinite;
  }
  
  @keyframes blink {
    0%, 100% {opacity: 1;}
    50% {opacity: 0;}
  }