* {
    box-sizing: border-box !important;
}

:root {
    --main-color: 0, 120, 255;
    --transition-anchor: 0.3s;
    --transition-icon: 0.6s;
    --white-color: #fff;
    --blue-color: rgb(0, 120, 255);
    --dark-blue-color: #0062d3;
    --light-blue-color: #cde1f8;
    --black-color: #1e1e1e;
    --light-gray-color: #F5F5F5;
    --dark-gray-color: #4e4e4e;
}

body {
    background-color: #f5f5f5;
    position: relative;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    cursor: pointer;
}

/* --------------------- start Nav Bar -------------------- */
.navbar {
    background-color: rgba(0, 0, 0, 0.1);
}

.navbar .navbar-brand {
    font-weight: 600;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar button[aria-expanded] {
    border: none;
    transition: var(--transition-anchor);
}

.navbar button[aria-expanded="true"] {
    border: 0.2rem solid #fff;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}

.navbar-dark .navbar-nav .nav-link:is(.active, .show),
.navbar-dark .navbar-nav .nav-link:hover {
    transition: var(--transition-anchor);
}

.navbar-dark .navbar-nav .nav-link.nav-link:is(.active, .show):before,
.navbar-dark .navbar-nav .nav-link::before {
    content: "";
    width: 100%;
    height: 0.2rem;
    background-color: rgb(var(--main-color));
    display: block;
    transform: translateY(1.8rem);
    transition: var(--transition-anchor);
}

.navbar-dark .navbar-nav .nav-link::before {
    width: 0;
}

.navbar-dark .navbar-nav .nav-link:hover:before {
    width: 100%;
}

.dropdown-menu {
    min-width: 13rem;
}

.deep-dropdown-item {
    display: none;
    transition: padding var(--transition-anchor) ease-in-out;
}

.deep-dropdown-menu:hover .deep-dropdown-item {
    display: inline;
}

.deep-dropdown-item:hover {
    padding-left: 0.6rem;
    color: rgb(var(--main-color)) !important;
}

.deep-dropdown-menu {
    background-color: #fff;
    transition: all 0.4s ease-in-out;
}

body:has(#home:target) nav ul li:nth-child(1) a::before {
    width: 100%;
}

body:has(#about:target) nav ul li:nth-child(2) a::before {
    width: 100%;
}

body:has(#about:target) nav ul li:nth-child(1) a::before {
    width: 0%;
}

body:has(#services:target) nav ul li:nth-child(3) a::before {
    width: 100%;
}

body:has(#services:target) nav ul li:nth-child(1) a::before {
    width: 0%;
}

body:has(#portfolio:target) nav ul li:nth-child(4) a::before {
    width: 100%;
}

body:has(#portfolio:target) nav ul li:nth-child(1) a::before {
    width: 0%;
}
body:has(#blog:target) nav ul li:nth-child(5) a::before {
    width: 100%;
}

body:has(#blog:target) nav ul li:nth-child(1) a::before {
    width: 0%;
}
body:has(#contact:target) nav ul li:nth-child(7) a::before {
    width: 100%;
}

body:has(#contact:target) nav ul li:nth-child(1) a::before {
    width: 0%;
}


/* --------------------- End Nav Bar -------------------- */

/* ----------------- Start Home Section ----------------- */
#home{
    position: relative;
    z-index: 999;
}
#home.bg-style {
    background-image: url("../images/hero-bg.jpg");
}

/* ---- Start Content ---- */
#home .content {
    text-align: center;
}

#home .content h1 {
    font-size: 4.5rem;
}

#home .content .typed::after {
    content: "";
    font-size: 2.5rem;
    font-weight: 600;
    padding-right: 0.4rem;
    border-right: 0.4rem solid #fff;
    animation: typed 10s ease-in-out infinite;
}

.bg-style {
    background: no-repeat center fixed;
    background-size: cover;
    z-index: 1;
    position: relative;
}

.bg-style::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* ----------- Animation ----------- */
@keyframes typed {
    0% {
        content: "";
        border-right-color: #fff;
    }

    /* Designer */
    1.5% {
        content: "D";
        border-right-color: #fff;
    }

    3% {
        content: "De";
        border-right-color: #fff;
    }

    4.5% {
        content: "Des";
        border-right-color: #fff;
    }

    6% {
        content: "Desi";
        border-right-color: #fff;
    }

    7.5% {
        content: "Desig";
        border-right-color: #fff;
    }

    9% {
        content: "Design";
        border-right-color: #fff;
    }

    10.5% {
        content: "Designe";
        border-right-color: #fff;
    }

    12% {
        content: "Designer";
        border-right-color: #fff;
    }

    13% {
        content: "Designer";
        border-right-color: transparent;
    }

    14% {
        content: "Designer";
        border-right-color: #fff;
    }

    15% {
        content: "Designer";
        border-right-color: transparent;
    }

    16% {
        content: "Designer";
        border-right-color: #fff;
    }

    17% {
        content: "Designer";
        border-right-color: transparent;
    }

    18% {
        content: "Designer";
        border-right-color: #fff;
    }

    19% {
        content: "Designer";
        border-right-color: transparent;
    }

    20% {
        content: "Designer";
        border-right-color: #fff;
    }

    21.5% {
        content: "Designe";
        border-right-color: #fff;
    }

    23% {
        content: "Design";
        border-right-color: #fff;
    }

    24.5% {
        content: "Desig";
        border-right-color: #fff;
    }

    26% {
        content: "Desi";
        border-right-color: #fff;
    }

    27.5% {
        content: "Des";
        border-right-color: #fff;
    }

    29% {
        content: "De";
        border-right-color: #fff;
    }

    32% {
        content: "De";
        border-right-color: #fff;
    }

    /* Developer */
    33% {
        content: "Dev";
        border-right-color: #fff;
    }

    34.5% {
        content: "Deve";
        border-right-color: #fff;
    }

    36% {
        content: "Devel";
        border-right-color: #fff;
    }

    37.5% {
        content: "Develo";
        border-right-color: #fff;
    }

    39% {
        content: "Develop";
        border-right-color: #fff;
    }

    40.5% {
        content: "Develope";
        border-right-color: #fff;
    }

    42% {
        content: "Developer";
        border-right-color: #fff;
    }

    44% {
        content: "Developer";
        border-right-color: transparent;
    }

    45% {
        content: "Developer";
        border-right-color: #fff;
    }

    46% {
        content: "Developer";
        border-right-color: transparent;
    }

    47% {
        content: "Developer";
        border-right-color: #fff;
    }

    48% {
        content: "Developer";
        border-right-color: transparent;
    }

    49% {
        content: "Developer";
        border-right-color: #fff;
    }

    50% {
        content: "Developer";
        border-right-color: transparent;
    }

    51% {
        content: "Developer";
        border-right-color: #fff;
    }

    52.5% {
        content: "Develope";
        border-right-color: #fff;
    }

    54% {
        content: "Develop";
        border-right-color: #fff;
    }

    55.5% {
        content: "Develo";
        border-right-color: #fff;
    }

    57% {
        content: "Devel";
        border-right-color: #fff;
    }

    58.5% {
        content: "Deve";
        border-right-color: #fff;
    }

    60% {
        content: "Dev";
        border-right-color: #fff;
    }

    61.5% {
        content: "De";
        border-right-color: #fff;
    }

    63% {
        content: "D";
        border-right-color: #fff;
    }

    65% {
        content: "";
        border-right-color: #fff;
    }

    /* Freelaner */
    65.5% {
        content: "F";
        border-right-color: #fff;
    }

    67% {
        content: "Fr";
        border-right-color: #fff;
    }

    68.5% {
        content: "Fre";
        border-right-color: #fff;
    }

    70% {
        content: "Free";
        border-right-color: #fff;
    }

    71.5% {
        content: "Freel";
        border-right-color: #fff;
    }

    73% {
        content: "Freela";
        border-right-color: #fff;
    }

    74.5% {
        content: "Freelan";
        border-right-color: #fff;
    }

    76% {
        content: "Freelanc";
        border-right-color: #fff;
    }

    77.5% {
        content: "Freelance";
        border-right-color: #fff;
    }

    79% {
        content: "Freelancer";
        border-right-color: #fff;
    }

    80.5% {
        content: "Freelancer";
        border-right-color: transparent;
    }

    82% {
        content: "Freelancer";
        border-right-color: #fff;
    }

    83.5% {
        content: "Freelancer";
        border-right-color: transparent;
    }

    85% {
        content: "Freelancer";
        border-right-color: #fff;
    }

    86.5% {
        content: "Freelancer";
        border-right-color: transparent;
    }

    88% {
        content: "Freelancer";
        border-right-color: #fff;
    }

    89.5% {
        content: "Freelancer";
        border-right-color: transparent;
    }

    90% {
        content: "Freelancer";
        border-right-color: #fff;
    }

    90.5% {
        content: "Freelance";
        border-right-color: #fff;
    }

    91.5% {
        content: "Freelanc";
        border-right-color: #fff;
    }

    92.5% {
        content: "Freelan";
        border-right-color: #fff;
    }

    93.5% {
        content: "Freela";
        border-right-color: #fff;
    }

    94.5% {
        content: "Freel";
        border-right-color: #fff;
    }

    95.5% {
        content: "Free";
        border-right-color: #fff;
    }

    96.5% {
        content: "Fre";
        border-right-color: #fff;
    }

    97.5% {
        content: "Fr";
        border-right-color: #fff;
    }

    98.5% {
        content: "F";
        border-right-color: #fff;
    }

    100% {
        content: "";
        border-right-color: #fff;
    }
}

/* -----------------  End Home Section ------------------ */

/* -----------------  Start About Section ------------------ */
.py-6 {
    padding-block: 80px !important;
}

.fs-7 {
    font-size: 0.8rem !important;
}

.about .box-shadow {
    box-shadow: 0 1px 1px 0 rgb(0 0 0 / 6%), 0 2px 5px 0 rgb(0 0 0 / 20%);
}

#about .personal-data ul li {
    font-size: 1rem;
    width: fit-content;
}

#about .personal-data ul li span {
    font-size: 1.1rem;
    font-weight: 600;
}

#about .skills h2 {
    font-size: 1.3rem;
}

#about .skills div h4 {
    font-weight: normal;
    font-size: 1rem;
}

#about .skills .prg-bar {
    height: 0.7rem;
    background-image: linear-gradient(to right, rgb(var(--main-color)) 85%, rgba(var(--main-color), 0.2) 85%);
}

#about .skills div:nth-of-type(2) .prg-bar {
    background-image: linear-gradient(to right, rgb(var(--main-color)) 75%, rgba(var(--main-color), 0.2) 75%);
}

#about .skills div:nth-of-type(3) .prg-bar {
    background-image: linear-gradient(to right, rgb(var(--main-color)) 50%, rgba(var(--main-color), 0.2) 50%);
}

#about .skills div:last-of-type .prg-bar {
    background-image: linear-gradient(to right, rgb(var(--main-color)) 90%, rgba(var(--main-color), 0.2) 90%);
}

#about .about-info h2::after,
#contact h2::after {
    content: "";
    width: 5rem;
    height: 0.25rem;
    background-color: rgb(var(--main-color));
    position: absolute;
    top: 120%;
    left: 0;
}

#about .about-info p {
    line-height: 1.5;
    color: #4e4e4e;
    font-size: 1.25rem;
    font-weight: 300;
}

/* -----------------   End About Section ------------------ */

/* -----------------   Start Services Section ------------------ */
.services .containar {
    background-color: transparent;
    width: 93%;
}

.services p,
.work p,
.blog p,
.blog span,
.contact p {
    color: var(--dark-gray-color);
}

.line {
    width: 50px;
    height: 4px;
    background-color: var(--blue-color);
}

.services .card .icon {
    width: 100px;
    height: 100px;
    color: var(--black-color);
    border: 8px solid var(--blue-color);
    transition: all 0.5s ease-in-out;
}

.services .card:hover .icon {
    color: var(--white-color);
    background-color: var(--blue-color);
    border-color: var(--light-blue-color);
}

/* -----------------    End Services Section ------------------- */

/* -----------------    Start  Facts Section ------------------- */
#facts.bg-style {
    background-image: url("../images/counters-bg.jpg");
}

#facts.bg-style::after,
#testimonial.bg-style::after,
#contact.bg-style::after {
    background-color: rgba(var(--main-color), 0.7);
}

#facts .fact .icon {
    width: 6rem;
    height: 6rem;
    border: 0.4rem solid rgba(255, 255, 255, 0.8);
}

#facts .fact p:last-child {
    font-size: 1.2rem;
}

/* -----------------     End  Fucts Section  ------------------- */

/* -----------------     Start Portfolio Section ------------------- */

#portfolio .card .card-img-top {
    transition: 0.8s;
}

#portfolio .card:hover .card-img-top {
    transform: scale(1.3);
}

#portfolio .card .card-body .content h5 {
    font-size: 1.2rem;
}

#portfolio .card .card-body .content p {
    font-size: 0.7rem;
    color: #4e4e4e;
}

#portfolio .card .card-body .content p span {
    color: rgb(var(--main-color));
    font-weight: 500;
}

#portfolio .card .card-body a {
    width: 2.5rem;
    height: 2.5rem;
    border: .2rem solid rgb(var(--main-color));
}

#portfolio .card .card-body a svg {
    color: rgb(var(--main-color));
    font-size: 1.4rem;
}

#portfolio .card {
    box-shadow: 0 1px 1px 0 rgb(0 0 0 / 6%), 0 2px 5px 0 rgb(0 0 0 / 20%);
}

/* -----------------      end portfolio Section -------------------- */

/* -----------------      Start feedback Section -------------------- */
.feedback,
.contact {
    background-image: url("../images/overlay-bg.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.feedback .layer,
.contact .layer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 120, 255, .7);
}

.carousel-indicators [data-bs-target] {
    border: 0;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background-color: white;
    margin: 0 5px !important;
}

.carousel-item {
    margin-right: -100% !important;
}

/* -----------------       End feedback Section --------------------- */

/* -----------------      Start Blog Section -------------------- */
.card-category {
    top: -15%;
    background-color: rgb(var(--main-color));
}

.card-title {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.card a {
    transition: var(--transition-anchor);
}

.card a:hover {
    color: rgb(var(--main-color)) !important;
}

.card-category h6 {
    font-size: 0.7rem !important;
}

.card-footer img {
    width: 1.8rem;
}

/* -----------------       End Blog Section --------------------- */

/* -----------------      Start Contact Section -------------------- */
#contact .contact-info svg {
    color: rgb(var(--main-color));
}
.bg-style{
    background-image: url('../images/overlay-bg.jpg');
}
#contact button[type="submit"] {
    background-color: rgb(var(--main-color));
    transition: var(--transition-anchor);
}
#contact button[type="submit"]:hover {
    background-color: rgba(var(--main-color), 0.7);
    box-shadow: 0 0 0px 5px rgba(var(--main-color), 0.2);
}
#contact .social-media li {
    width: 3rem;
    height: 3rem;
    border: .25rem solid rgb(var(--main-color));
    transition: var(--transition-icon);
}
#contact .social-media li svg {
    font-size: 1.3rem;
    transition: var(--transition-icon);
}
#contact .social-media li:hover {
    border: .3rem solid #ccdff5;
    background-color: rgb(var(--main-color));
}
#contact .social-media li:hover svg {
    color: #fff;
}
/* -----------------       End Contact Section       --------------- */

/* -----------------      Start Footer Section       --------------- */
footer {
    background-color: #0062D3;
    box-shadow: 3px 4px 16px 0px rgba(0, 0, 0, 0.473) inset;
    position: absolute;
    width: 100%;
}
/* -----------------        End Footer Section       -------------- */

/* -----------------        magic button       -------------- */

.magic-button {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: #0078ff;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    transition: all 0.4s;
}