/*
===========================================================================
 EXCLUSIVE ON themeforest.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Project Name		: Persone - Responsive CV/Resume Template
 Author 			: Yahya Essam
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Copyright (c) 2016 - 2020 Yahya Essam - https://themeforest.net/user/yahyaessam
===========================================================================
  Content Table
===========================================================================
[1] General
[2] Loading Animation
[3] Nav Bar
[4] Header
[5] About
[6] Features
[7] Portfolio
[8] Contact
[9] Footer
[10] Responsive
===========================================================================
*/

/* ====================
[1] General
==================== */

* {
    box-sizing: border-box;
}

html {
    height:100%;
}
body {
    height:100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}
.rip {
    height:100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 22px;
}

a, button {
    outline: none;
}

a, a:hover, a:focus {
    outline: none;
    text-decoration: none;
}
p {
    line-height: 1.7;
    letter-spacing: .5px;
}
section {
    padding: 100px 0;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    height: 3px;
    width: 50px;
    top: 50px;
    left: calc(50% - 25px);
}

.sub-title {
    display: inline-block;
    max-width: 450px;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 300;
    margin: 15px auto;
    color: #333;
    padding: 10px;
    line-height: 25px;
}

.persone_totop {
    position: fixed;
    bottom: 40px;
    right: 55px;
    z-index: 100;
    overflow: hidden;
    outline: 1px solid rgba(255, 255, 255, .2);
    padding: 22px;
    border-radius: 3px;
    display: inline-block;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -ms-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
}

.persone_totop:after {
    width: 0px;
    height: 0px;
    position: absolute;
    content: '';
    border: 5px solid transparent;
    border-bottom-color: #fff;
    top: 14px;
    left: 17px;
    z-index: 2;
}
.persone_totop:before {
    position: absolute;
    content: "";
    top: 0px;
    height: 100%;
    left: -75%;
    width: 0%;
    background-color: #000;
    transform: skew(50deg);
    transition-duration: .6s;
    z-index: 1;
}

.persone_totop.opened {
    opacity: 1;
    visibility: visible;
    bottom: 55px;
}
.persone_totop:hover:before {
    width: 290%;
}
body::-webkit-scrollbar {
    width: .6em;
}

body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
    background-color: rgba(1, 1, 1, .6);
    outline: 1px solid #333;
}
.background-image {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height:100%;
    background-image:url('../control/img/stars-2.jpg');
}

/* =====================
[2] Loading Animation
===================== */

.loading {
    display: table;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
}

.table-cell {
    display: table-cell;
    vertical-align: middle;
}

.sk-fading-circle {
    margin: 100px auto;
    width: 69px;
    height: 60px;
    position: relative;
}

.sk-fading-circle .sk-circle {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.sk-fading-circle .sk-circle:before {
    content: '';
    display: block;
    margin: 0 auto;
    width: 15%;
    height: 15%;
    background-color: #FFF;
    border-radius: 100%;
    -webkit-animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
    animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
}

.sk-fading-circle .sk-circle2 {
    -webkit-transform: rotate(30deg);
    -ms-transform: rotate(30deg);
    transform: rotate(30deg);
}

.sk-fading-circle .sk-circle3 {
    -webkit-transform: rotate(60deg);
    -ms-transform: rotate(60deg);
    transform: rotate(60deg);
}

.sk-fading-circle .sk-circle4 {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.sk-fading-circle .sk-circle5 {
    -webkit-transform: rotate(120deg);
    -ms-transform: rotate(120deg);
    transform: rotate(120deg);
}

.sk-fading-circle .sk-circle6 {
    -webkit-transform: rotate(150deg);
    -ms-transform: rotate(150deg);
    transform: rotate(150deg);
}

.sk-fading-circle .sk-circle7 {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.sk-fading-circle .sk-circle8 {
    -webkit-transform: rotate(210deg);
    -ms-transform: rotate(210deg);
    transform: rotate(210deg);
}

.sk-fading-circle .sk-circle9 {
    -webkit-transform: rotate(240deg);
    -ms-transform: rotate(240deg);
    transform: rotate(240deg);
}

.sk-fading-circle .sk-circle10 {
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}

.sk-fading-circle .sk-circle11 {
    -webkit-transform: rotate(300deg);
    -ms-transform: rotate(300deg);
    transform: rotate(300deg);
}

.sk-fading-circle .sk-circle12 {
    -webkit-transform: rotate(330deg);
    -ms-transform: rotate(330deg);
    transform: rotate(330deg);
}

.sk-fading-circle .sk-circle2:before {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.sk-fading-circle .sk-circle3:before {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

.sk-fading-circle .sk-circle4:before {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.sk-fading-circle .sk-circle5:before {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

.sk-fading-circle .sk-circle6:before {
    -webkit-animation-delay: -0.7s;
    animation-delay: -0.7s;
}

.sk-fading-circle .sk-circle7:before {
    -webkit-animation-delay: -0.6s;
    animation-delay: -0.6s;
}

.sk-fading-circle .sk-circle8:before {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}

.sk-fading-circle .sk-circle9:before {
    -webkit-animation-delay: -0.4s;
    animation-delay: -0.4s;
}

.sk-fading-circle .sk-circle10:before {
    -webkit-animation-delay: -0.3s;
    animation-delay: -0.3s;
}

.sk-fading-circle .sk-circle11:before {
    -webkit-animation-delay: -0.2s;
    animation-delay: -0.2s;
}

.sk-fading-circle .sk-circle12:before {
    -webkit-animation-delay: -0.1s;
    animation-delay: -0.1s;
}

@-webkit-keyframes sk-circleFadeDelay {
    0%, 39%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

@keyframes sk-circleFadeDelay {
    0%, 39%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

/* ======================
End Of Loading Animation
====================== */

/* =====================
[3] Nav Bar
===================== */

.custom-navbar {
    border: none;
    margin-bottom: 0;
    background-color: transparent;
    padding: 5px 0px;
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
}

.scroll {
    background-color: #111 !important;
}

.custom-navbar .navbar-brand {
    color: #FFF;
    font-weight: bold;
    font-size: 30px;
    line-height: 35px;
}

.custom-navbar li a.nav-link {
    font-size: 14px;
    color: #FFF;
    line-height: 40px;
    padding-right: 20px !important;
    letter-spacing: 1px;
    text-transform: capitalize;
    font-weight: 500;
}

.custom-navbar a.nav-link:hover, 
.custom-navbar a.nav-link:focus, 
.custom-navbar a.nav-link.active,
.custom-navbar li.active>a.nav-link {
    background-color: transparent;
}
.custom-navbar .navbar-toggler {
    border: none;
    outline: none;
    padding-top: 10px;
    background-color: transparent;
}

.custom-navbar .navbar-toggler .navbar-toggler-icon {
    background-color: #000;
    border-color: transparent;
}

svg.btnToggle path {
    fill: #E02217;
}

@media(min-width:768px) {
    .custom-navbar {
        border-bottom: 0;
    }
    .custom-navbar.top-nav-collapse {
        background: #ffffff;
        box-shadow: 0 40px 100px rgba(0, 0, 0, .2);
        padding: 0px 0;
    }
    .custom-navbar li a.nav-link {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

.special {
    font-weight: bold;
}

@media (max-width:768px) {
    .navbar-collapse {
        text-align: center;
    }
    .custom-navbar li a.nav-link {
        line-height: 20px;
        overflow: hidden;
    }
}


/* ======================
   End NavBar
====================== */

/* =======================
[4] Header
======================= */

.large-header {
    display: none;
    position: relative;
    width: 100%;
    /* background: #333; */
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    z-index: 1;
}

.table {
    display: table;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-align: left;
}

#home h1 {
    color: #f9f9f9;
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-transform: capitalize;
    line-height:1.4;
}
#home.rip {
    height:100%;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
}

#home p {
    font-size: 24px;
    color: #FFF;
    letter-spacing: 1px;
    line-height: 2;
    margin-bottom:27px;
    text-transform: capitalize;
}

#home p span {
    font-weight: 700;
}

#home a:hover, #home a:focus {
    text-decoration: none;
}

/* ====================
   End Header
==================== */

/* ====================
[5] about
==================== */

#about h2 {
    font-weight: bold;
    /* letter-spacing: 1px; */
    margin: 10px 10px 5px 10px;
    text-transform: capitalize;
}
#about h2 span {
    color:#333;
}
#about .strong-p {
	font-size:16px;
    font-weight:500;
}
#about h3 {
    letter-spacing: 1px;
    font-weight: 400;
    margin: 10px;
    font-size: 18px;
}

#about p {
    font-size: 14px;
    font-weight: 300;
    margin: 22px 39px 10px 10px;
    color: #333;
}

#about p span {
    font-weight: 400;
}
#about .buttons-wrapper {
    margin-top:50px;
}
.btn-about {
    display:inline-block;
    position: relative;
    overflow: hidden;
    margin-right: 10px;
    outline: none !important;
    border: none;
    color: #FFF;
    padding: 12px 35px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .5px;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.btn-about:before {
    position: absolute;
    content: "";
    top: 0px;
    height: 100%;
    left: -25px;
    width: 0%;
    background-color: #000;
    transform: skew(50deg);
    transition-duration: .6s;
    z-index: 1;
}

.btn-about:hover {
    color: #fff !important;
    outline: none !important;
}

.btn-about:focus {
    outline: none !important;
}

.btn-about:hover:before {
    width: 180%;
}

.btn-about span {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

#about .profile-img {
    position: relative;
    width: 90%;
    z-index:1;
}

#about .profile-img:after {
    content: '';
    left: 25px;
    top: 25px;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 10px solid #000;
    z-index: -1;
}

section.exp-skills {
    background-color: #fff;
    padding: 0 0 100px 0;
}

/* .exp-skills h3 {
    letter-spacing:1px;
    color:#333;
    padding:0;
    margin:20px auto 50px;
    font-size:42px;
    line-height:55px;
} */

.exp-skills h2 span {
    font-weight: 300;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 7px;
    background-color: #f5f5f5;
    margin: 40px 0;
    overflow: visible;
}

.progress-bar .label {
    background-color: #fff;
    color: #000;
    font-weight: bold;
    width: 120px;
    height: 25px;
    bottom: 7px;
    position: absolute;
    text-align: left;
    font-size: 12px;
    line-height: 2;
    z-index: 2;
}

.skills-wrapper {
    overflow: hidden;
}

.progress-percentage {
    height: 100%;
    width: 100%;
}

.progress-percent {
    position: absolute;
    right: 0;
    top: 4px;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    line-height: 2;
}

.single-exp {
    position: relative;
    margin-top: 25px;
    height: 45px;
}

.stamp {
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    position: absolute;
    top: -48px;
    right: 10px;
    width: 100px;
    height: 100px;
    line-height: 1.5;
    text-align: center;
    opacity: .5;
    transform: rotate(-35deg);
    border-radius: 50%;
    border: 5px solid #111;
}

.stamp p {
    margin-top: 32px;
}

.stamp:after {
    content: '';
    position: absolute;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 2px solid #777;
    top: 7px;
    left: 7px;
}

.position {
    font-size: 13px;
    letter-spacing: .5px;
    padding: 3px 20px;
    color: #fff;
    font-weight: bold;
}

/* ====================
   End about
==================== */

/* ====================
[6] Services
==================== */

#services {
    background-color: rgba(221, 221, 221, 0.4);
    box-sizing: border-box;
}

#services h2 {
    letter-spacing: 1px;
    text-transform: capitalize;
    color: #222;
}

#services .sub-title {
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 300;
    margin: 15px auto;
    color: #333;
    padding: 10px;
    line-height: 25px;
}

.feature p {
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 300;
    line-height: 25px;
    margin: 20px auto;
    padding: 10px;
    color: #333;
    -webkit-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
}

.feature {
    padding: 20px 0;
    background: none repeat scroll 0 0 #fff;
    color: #777;
    box-shadow: 0 0 20px rgba(9, 9, 9, .1);
    margin: 15px auto;
    -webkit-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
}

.feature h3 {
    color: #333;
    -webkit-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
}

.feature:hover {
    color: #FFF !important;
    transform: translate(0, -12px);
    box-shadow: 0px 9px 29px rgba(51, 51, 51, 0.55);
    transition: all .5s ease-in-out;
    -webkit-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
}

.feature:hover h3, .feature:hover p {
    color: #FFF;
}

.feature i {
    font-size: 40px;
    padding: 20px 0;
}

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

/* ====================
[7] Portfolio 
==================== */

#portfolio .sub-title {
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 300;
    margin: 15px auto;
    color: #333;
    padding: 10px;
    line-height: 25px;
}

figure {
    position: relative;
    overflow: hidden;
    background: #3085a3;
    text-align: center;
    cursor: pointer;
    margin: 15px auto;
}

figure img {
    position: relative;
    display: block;
    opacity: 0.8;
    width: 100%;
    max-height: 500;
}

figure figcaption {
    padding: 2em;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

figure figcaption::before, figure figcaption::after {
    pointer-events: none;
}

figure figcaption, figure figcaption>a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

figure figcaption>a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

figure h2 {
    word-spacing: -0.15em;
    font-weight: 300;
}

figure h2 span {
    font-weight: 800;
}

figure h2, figure p {
    margin: 0;
}

figure p {
    letter-spacing: 1px;
    font-size: 14px;
}

figure.effect img {
    opacity: 0.95;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: scale3d(1.05, 1.05, 1);
    transform: scale3d(1.05, 1.05, 1);
}

figure.effect figcaption::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    content: '';
    -webkit-transition: -webkit-transform 0.6s;
    transition: transform 0.6s;
    -webkit-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, -100%, 0);
    transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, -100%, 0);
}

figure.effect p {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 3em;
    padding: 0 1em;
    max-width: 150px;
    border-right: 4px solid #fff;
    text-align: right;
    opacity: 0;
    -webkit-transition: opacity 0.35s;
    transition: opacity 0.35s;
}

figure.effect h2 {
    text-align: left;
}

figure.effect:hover img {
    opacity: 0.6;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
}

figure.effect:hover figcaption::before {
    -webkit-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, 100%, 0);
    transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, 100%, 0);
}

figure.effect:hover p {
    opacity: 1;
    -webkit-transition-delay: 0.1s;
    transition-delay: 0.1s;
}

/* =====================
   End portfolio
===================== */

/* =============
Testimonials
============== */

#testimonials {
    background-color: #fafafa;
}

.testi_boxes {
    max-width: 750px;
}

.client_review {
    font-size: 15px;
    padding: 5px 10px;
}

.client_name {
    font-size: 14px;
    font-weight: bold;
}

.owl-theme .owl-controls .owl-page {
    margin: 20px 0px;
}

.owl-theme .owl-controls .owl-page span {
    display: block;
    width: 12px;
    height: 6px;
    margin: 5px 4px;
    filter: Alpha(Opacity=50);
    opacity: 0.5;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    transition: all 0.5s;
    background: #e65f78;
}

.owl-theme .owl-controls .owl-page.active span {
    width: 20px;
}

/* ================
End Testimonials
=================== */

/* ====================
Hire Me
==================== */

#hire-me {
    background-color: #222;
}

#hire-me p {
    font-size: 15px;
    color: #DDD;
    letter-spacing: 1px;
    font-weight: 300;
}

#hire-me h3 {
    letter-spacing: 1px;
    color: #f5f5f5;
    padding: 0;
    margin: 20px auto 50px;
    font-size: 42px;
    line-height: 55px;
}

#hire-me h3 span {
    font-weight: 300;
}

/* ====================
   End Hire Me 
==================== */

/* ====================
[8] Contact
==================== */

#contact .overlay {
    background-color: rgba(2, 2, 2, .7);
    padding: 100px 0;
}

#contact h2 {
    color: #f6f6f6;
}

#contact .sub-title {
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 300;
    margin: 15px auto;
    color: #f9f9f9;
    padding: 10px;
    line-height: 25px;
}

#contact input, #contact textarea {
    width: 100%;
    border-radius: 6px;
    margin: 10px auto;
    outline: none;
    height: 46px;
    text-indent: 10px;
    border: none;
    background-color: rgba(5, 5, 5, 0.3);
    color: #FFF;
    font-size: 14px;
    letter-spacing: 1px;
}

#contact textarea {
    resize: none;
    height: 90px;
    line-height: 25px;
}

#contact div.btn {
    width: 100%;
}

#contact .info {
    background-color: rgba(5, 5, 5, .3);
    color: #f9f9f9;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    padding: 10px;
    width: 100%;
    display: table;
    text-align: left;
    -webkit-transition: all .27s ease-in-out;
    transition: all .27s ease-in-out;
}

#contact .info p {
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 25px;
    font-weight: 300;
    text-indent: 10px;
    display: table-cell;
    vertical-align: middle;
}

p.phone:before, p.email:before, p.address:before {
    font-family: "FontAwesome";
    color: #f9f9f9;
}

p.phone:before {
    content: "\f095";
}

p.email:before {
    content: "\f003";
}

p.address:before {
    content: "\f041";
    text-indent: 50px;
}

#contact .info:hover {
    -webkit-transition: all .27s ease-in-out;
    transition: all .27s ease-in-out;
}

/*Success Message Style*/

.form_success {
    width: 100%;
    height: 100%;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    padding: 10px;
    background: rgba(3, 3, 3, .6);
    box-shadow: 0 0 20px #cbcbcb;
    -moz-box-shadow: 0 0 20px #cbcbcb;
    -webkit-box-shadow: 0 0 20px #cbcbcb;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    line-height: 25px;
    color: #f9f9f9;
}

/*Error Messages Style*/

.form_info {
    width: 100%;
    height: 100%;
    text-align: left;
    letter-spacing: .6px;
    padding: 8px 10px 8px 10px;
    font: normal 14px Poppins;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    line-height: 25px;
    color: #f9f9f9;
    background: rgba(9, 9, 9, 0.4);
    transition: all .27s ease-in-out;
}

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

/* ======================
[9] footer
====================== */

#footer {
    background-color: #111;
    color: #ffffff;
    padding: 100px 0;
}

#footer h5 {
    font-size: 14px;
    margin-top: 50px;
}

.name {
    font-weight: bold;
}

.name:hover {
    color: #FFF;
}

#footer .social-media a {
    text-decoration: none;
    color: transparent;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .4);
    margin: 25px 5px;
    font-size: 14px;
}

#footer .fa {
    margin: 5px;
    color: #FFF;
}

#footer .fa:hover {
    color: #FFF;
}

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

/* ====================
   Responsive 
==================== */

/* Medium Layout: 1280px. */

@media only screen and (min-width: 992px) and (max-width: 1200px) {}

/* Tablet Layout: 768px. */

@media only screen and (min-width: 768px) and (max-width: 991px) {
    /*about*/
    #about h2 {
        margin-top: 45px;
    }
    /* contact */
    .custom-navbar li a.nav-link {
        padding-top: 8px;
        padding-bottom: 8px;
        line-height: 21px;
        text-align: center;
    }
}

/* Mobile Layout lower than: 320px. */

@media only screen and (max-width: 768px) {
    /* Nav */
    .custom-navbar .navbar-brand {
        line-height: 20px;
        font-size: 25px;
    }
    .custom-navbar .navbar-toggler .navbar-toggler-icon {
        background-color: #000;
        border-color: transparent;
    }
    /* about */
    #about h2 {
        margin-top: 45px;
    }
    /* contact */
    .tab {
        margin-left: 15px;
    }
    /*portfolio */
    figure {
        max-width: 500px;
        max-height: 500px;
    }
}

/* Wide Mobile Layout: 480px. */

@media only screen and (min-width: 480px) and (max-width: 767px) {}

@media only screen and (max-width: 480px) {
    /* Nav */
    .navbar-collapse {
        background-color: #222;
    }
    .custom-navbar .navbar-toggler .navbar-toggler-icon {
        background-color: #000;
        border-color: transparent;
    }
    .custom-navbar .navbar-brand {
        font-size: 20px;
        line-height: 20px;
        padding-left: 15px;
    }
    /* Home */
    #home p {
        font-size: 14px;
    }
    #home h1 {
        font-size: 20px;
    }
    /* about */
    #about h2 {
        margin-top: 45px;
        line-height: 25px;
    }
    #about p {
        margin: 30px 20px 10px 10px;
    }
    #about h3 {
        line-height: 25px;
    }
    /* portfolio */
    figure h2 {
        font-size: 24px;
    }
    /* Hire Me */
    #hire-me h3 {
        font-size: 30px;
    }
    /* footer */
    #footer .social-media a {
        padding: 10px 10px;
        line-height: 50px;
    }
    #footer p {
        line-height: 25px;
    }
}