* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

:root {
    --main: #4594f1;
    --main-transition: 0.3s;
}

/* start main title */
.main-title {
    margin: 100px auto;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid black;
    width: fit-content;
    position: relative;
    z-index: 1;
    transition: var(--main-transition);
}

.main-title:hover {
    color: white;
    border-color: white;
    transition-delay: 0.4s;
}

.main-title::before {
    content: "";
    height: 12px;
    width: 12px;
    background-color: var(--main);
    position: absolute;
    border-radius: 50%;
    left: -30px;
    top: 50%;
    transform: translatey(-50%);
}

.main-title:after {
    content: "";
    height: 12px;
    width: 12px;
    background-color: var(--main);
    position: absolute;
    border-radius: 50%;
    right: -30px;
    top: 50%;
    transform: translatey(-50%);
}

.main-title:hover::before {
    z-index: -1;
    animation: left-move var(--main-transition) linear forwards;
}

.main-title:hover::after {
    z-index: -1;
    animation: right-move var(--main-transition) linear forwards;
}

@keyframes left-move {
    50% {
        left: 0;
        height: 12px;
        width: 12px;
    }

    100% {
        left: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
}

@keyframes right-move {
    50% {
        right: 0;
        height: 12px;
        width: 12px;
    }

    100% {
        right: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
}

/* end main title */
/* start spikes */
.spikes {
    position: relative;
}

.spikes::after {
    content: '';
    position: absolute;
    right: 0;
    width: 100%;
    z-index: 10;
    display: block;
    height: 35px;
    background-size: 35px 35px;
    background-image: linear-gradient(135deg, #ffffff 25%, transparent 25%), linear-gradient(225deg, #ffffff 25%, transparent 25%);
    background-position: 0 0;
}

/* end spikes */
/* start dots */
.dots {
    position: absolute;
    background-image: url(https://elzerowebschool.github.io/HTML_And_CSS_Template_Three/imgs/dots.png);
    background-repeat: no-repeat;
    height: 186px;
    width: 204px;
}
.dots-up {
    top: 200px;
    right: 0;
}
.dots-down {
    bottom: 75px;
    left: 0;
}
/* end dots */
/* start navbar */
nav div>a {
    color: var(--main) !important;
}

nav {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.10);
}

nav div div div>a {
    position: relative;
    color: black !important;
    overflow: hidden;
}

nav div div div>a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: var(--main);
    top: 0;
    left: -100%;
    transition: var(--main-transition);
}

nav div div div>a:hover {
    color: var(--main) !important;
    background-color: #fafafa;
}

nav div div div>a:hover::before {
    left: 0;
    transition: var(--main-transition);
}

/* start mega menu */
nav .mega {
    position: relative;
}

nav .mega-menu img {
    max-width: 100%;
}

nav .mega-menu {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 1px #ececec inset;
    width: 100%;
    top: calc(100% + 50px);
    left: 0;
    padding: 30px;
    border-bottom: 3px solid var(--main);
    z-index: -1;
    opacity: 0;
    display: flex;
    justify-content: space-evenly;
    gap: 30px;
    transition: top 0.3s, opacity var(--main-transition);
}

nav .megamenu:hover .mega-menu {
    opacity: 1;
    z-index: 1;
    top: 100%;
}

nav .mega-menu .links li a {
    color: var(--main) !important;
    display: block;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid #e9e9e9;
    overflow: hidden;
    min-width: 240px;
    position: relative;
}

nav .mega-menu .links li a::before {
    content: "";
    position: absolute;
    background-color: #fafafa;
    height: 100%;
    width: 100%;
    top: 0;
    left: -100%;
    z-index: -1;
    transition: var(--main-transition);
}

nav .mega-menu .links li a:hover::before {
    left: 0;
}

nav .mega-menu .links li svg {
    padding-right: 15px;
}

@media (max-width: 991px) {
    nav .mega-menu img {
        display: none;
    }

    nav .mega-menu {
        justify-content: center;
        gap: 0;
    }
}

@media (max-width: 767px) {
    nav .mega-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px 20px 0px 20px;
    }
}

/* end mega menu */

/* end navbar */
/* start header */
header {
    height: calc(100vh - 110px);
    position: relative;
}

header::before {
    content: "";
    position: absolute;
    background-color: #ececec;
    height: 100%;
    width: 100%;
    z-index: -1;
    top: -100px;
    transform: skewY(-6deg);
}

header img {
    position: relative;
    width: 100%;
    animation: up-and-down 5s linear infinite;
}

@keyframes up-and-down {

    0%,
    100% {
        top: 0;
    }

    50% {
        top: -50px;
    }
}

.angles {
    color: var(--main);
}

@media (max-width: 991px) {
    header .text {
        text-align: center;
        margin-bottom: 25px;
    }

    header img {
        width: 60%;
        left: 50%;
        transform: translatex(-50%);
    }

    @keyframes up-and-down {}
}

@media (max-width: 767px) {
    header img {
        width: 80%;
    }
}

/* end header */
/* start articles */
.articles .card {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.10);
    transition: 0.3s;
}

.articles .card:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.20);
    transform: translateY(-10px);
}

.articles .card-link a,
.articles .card-link svg {
    color: var(--main) !important;
}

.articles .card:hover .card-link .tgt {
    animation: move-arrow var(--main-transition) linear infinite;
}

@keyframes move-arrow {
    100% {
        transform: translatex(10px);
    }
}

/* end articles */
/* start gallery */
.gallery {
    background-color: #ececec;
    position: relative;
}

.gallery .box {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.20);
}

.gallery .box .image {
    position: relative;
    overflow: hidden;
}

.gallery .box .image::before {
    content: "";
    position: absolute;
    background-color: rgba(255, 255, 255, 0.2);
    height: 10px;
    width: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 1;
}

.gallery .box .image:hover::before {
    animation: flashing 0.7s;
}

@keyframes flashing {

    0%,
    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        height: 200%;
        width: 200%;
    }
}

.gallery .box .image img {
    transition: 0.3s;
}

.gallery .box .image:hover img {
    transform: rotate(-5deg) scale(1.1);
}

/* end gallery */
/* start features */
.features .image {
    position: relative;
    overflow: hidden;
}

.features .image::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
}

.features .box-1 .image::before {
    background-color: rgba(220, 53, 70, 0.50);
}

.features .box-2 .image::before {
    background-color: rgba(25, 135, 84, 0.50);
}

.features .box-3 .image::before {
    background-color: rgba(13, 202, 240, 0.50);
}

.features .image::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    border-style: solid;
    border-width: 0px 0px 150px 500px;
    border-color: transparent transparent white transparent;
    transition: 0.3s;
}

.features .box-1:hover .image::after,
.features .box-2:hover .image::after,
.features .box-3:hover .image::after {
    border-width: 0 500px 150px 00px;
}

.features h1 {
    position: relative;
    width: fit-content;
    margin: auto;
}

.features h1::before {
    content: "";
    position: absolute;
    height: 5px;
    width: 75%;
    top: 100%;
    left: 50%;
    transform: translatex(-50%);
}

.features .box-1 h1::before {
    background-color: #dc3545;
}

.features .box-2 h1::before {
    background-color: #198754;
}

.features .box-3 h1::before {
    background-color: #0dcaf0;
}

.features .box-1 a {
    transition: 0.3s;
    background: linear-gradient(to right, #dc3545 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}

.features .box-2 a {
    transition: 0.3s;
    background: linear-gradient(to right, #198754 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}

.features .box-3 a {
    transition: 0.3s;
    background: linear-gradient(to right, #0dcaf0 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}

.features .box-1:hover a,
.features .box-2:hover a,
.features .box-3:hover a {
    background-position: left bottom;
    color: white !important;
}

/* end features */
/* start comments */
.comments {
    background-color: #ececec;
    position: relative;
}

.comments img {
    position: absolute;
    background-color: #ececec;
    width: 110px;
    padding: 12px;
    top: -60px;
    right: -12px;
}

/* end comments */
/* start team */
.team .box .text {
    margin-left: 80px;
}

.team .box .text h4 {
    color: var(--main);
}

.team .box {
    position: relative;
}

.team .box::before,
.team .box::after {
    content: "";
    position: absolute;
    background-color: #f3f3f3;
    height: 100%;
    right: 0;
    top: 0;
    border-radius: 10px;
    transition: var(--main-transition);
}

.team .box::before {
    width: calc(100% - 80px);
    z-index: -2;
}

.team .box::after {
    z-index: -1;
    width: 0;
    background-color: #e4e4e4;
}

.team .box:hover::after {
    width: calc(100% - 80px);
}

.team .box .image img {
    transition: var(--main-transition);
}

.team .box:hover .image img {
    filter: grayscale(100%);
}

.team .box div a:hover svg {
    color: var(--main) !important;
}

/* end team */
/* start services */
.services {
    background-color: #ececec;
    position: relative;
    counter-reset: services;
}

.services .box {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.20);
    transition: var(--main-transition);
    position: relative;
    margin-bottom: 24px;
}

.services .box svg {
    color: #d5d5d5;
}

.services .box h4 {
    color: var(--main);
    font-weight: bold;
}

.services .box .deta {
    background-color: #f9f9f9;
    position: relative;
}

.services .box .deta::before {
    counter-increment: services;
    content: "0" counter(services);
    position: absolute;
    left: 0;
    top: 0;
    color: white;
    background-color: var(--main);
    font-weight: bold;
    font-size: 30px;
    height: 100%;
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 15px;
}

.services .box .deta::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 50px;
    background: #d5d5d5;
    top: 0;
    left: 20%;
    transform: skewX(-25deg);
}

.services .box:hover {
    transform: translatey(-10px);
}

.services .box::before {
    content: "";
    position: absolute;
    height: 3px;
    width: 0px;
    background: var(--main);
    top: -3px;
    left: 50%;
    transform: translatex(-50%);
    transition: var(--main-transition);
}

.services .box:hover::before {
    width: 100%;
}

/* end services */
/* start skills */
.skills .stats1 .skill h4 {
    margin: 19px auto;
}

.skills .stats1 .skill div {
    position: relative;
    overflow: visible;
}

.skills .stats1 .skill div div {
    background-color: var(--main);
}

.skills .stats1 .skill div div span {
    content: "";
    position: absolute;
    top: -40px;
    right: -17px;
    color: var(--main);
    font-weight: bold;
    border: 1px solid black;
    border-radius: 5px;
    padding: 3px 6px 3px 6px;
}

.skills .stats1 .skill div div::before {
    content: "";
    position: absolute;
    border-style: solid;
    border-color: black transparent transparent transparent;
    border-width: 7px;
    top: -14px;
    right: -5px;
}

@media(max-width:991px) {
    .skills .image img {
        display: none;
    }
}

/* end skills */
/* start works */
.works {
    background-color: #ececec;
}

.works .boxs .box {
    background-color: #f5f5f5;
    width: 100%;
    position: relative;
    z-index: 1;
}

.works .boxs .box .sm-image {
    width: 150px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.works .boxs .box::before {
    content: "";
    position: absolute;
    background-color: #ededed;
    height: 0;
    width: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    transition: 0.3s;
    z-index: -1;
}

.works .boxs .box:hover::before {
    height: 100%;
    width: 100%;
}

@media(max-width:991px) {
    .works .image {
        display: none;
    }

    .works .boxs .box {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .works .boxs .box .sm-image {
        width: 75px;
    }

    .works .boxs .box .text {
        padding: 0 !important;
    }
}

/* start works */
/* start events */
.events .boxs .box .number {
    color: var(--main);
}

.events .label-box {
    background-color: #f3f3f3;
    max-width: 600px;
    margin: auto;
}

@media(max-width:991px) {
    .events .image img {
        display: none;
    }
}

@media(max-width:767px) {
    .events .label-box input {
        margin-bottom: 16px;
    }

    .events .label-box button {
        width: 100%;
    }
}

@media(max-width:575px) {
    .events .boxs .box p:last-child {
        padding: 5px !important;
    }
}

/* end events */
/* start plans */
.plans {
    background-color: #ececec;
    position: relative;
} 

.plans .box {
    background-color: white;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.20);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.plans .box .popular {
    position: absolute;
    background-color: var(--main);
    writing-mode: vertical-lr;
    top: -2px;
    right: 30px;
    padding: 15px 6px 35px 6px;
    font-size: 18px;
}
.plans .box .popular::before {
    content: "";
    position: absolute;
    border-color: transparent transparent white transparent;
    border-style: solid;
    border-width: 20px;
    left: 0;
    bottom: 0px;
}

.plans .box img {
    width: 75px;
}

.plans .box p:first-of-type {
    color: var(--main);
    font-size: 60px;
    font-weight: bold;
    margin: 0;
}

.plans .box ul li svg {
    color: var(--main) !important;
}

.plans .box div a {
    color: var(--main);
    border-color: var(--main) !important;
}
.plans .box div a:hover {
    color: white;
    background-color: var(--main);
    transition: var(--main-transition);
}

.plans .box::before {
    content: "";
    position: absolute;
    background-color: #f9f9f9;
    left: 0;
    width: 0;
    height: 43%;
    transition: var(--main-transition);
    z-index: -1;
}
.plans .box::after {
    content: "";
    position: absolute;
    background-color: #f9f9f9;
    right: 0;
    bottom: 0;
    width: 0;
    height: 57%;
    transition: var(--main-transition);
    z-index: -1;
}
.plans .box:hover::before {
    width: 100%;
}
.plans .box:hover::after {
    width: 100%;
}
.plans .sp {
    transform: translatey(-20px);
}
@media(max-width:991px) {
    .plans .box {
        margin: 16px !important;
        padding: 8px !important;
    }
    .plans .row > div {
        padding: 0 !important;
    }
    .plans .sp {
        transform: translatey(0);
    }
}
/* end plans */
/* start videos */
.videos .left-box div:first-child {
background-color: #f5f5f5;
}
.videos .right-box {
    background-color: #ececec;
    height: 100%;
}
.videos .left-box a:hover {
    color: var(--main) !important;
    background-color: #f9f9f9;
    transition: var(--main-transition);
}
/* end videos */
/* start stats */
.stats {
    background-image: url(https://elzerowebschool.github.io/HTML_And_CSS_Template_Three/imgs/stats.jpg);
    background-size: cover;
    position: relative;
}
.stats::before {
    content: "";
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.stats .box {
    position: relative;
    margin-bottom: 24px;
}
.stats .box::before {
    content: "";
    position: absolute;
    background-color: var(--main);
    height: 0;
    width: 2px;
    bottom: 0;
    left: 0;
    transition: 1s;
}
.stats .box::after {
    content: "";
    position: absolute;
    background-color: var(--main);
    height: 0;
    width: 2px;
    top: 0;
    right: 0;
    transition: 1s;
}
.stats .box:hover::before {
    height: 100%;
}
.stats .box:hover::after {
    height: 100%;
}
.stats .box .number {
    font-size: 50px;
}
.stats .box span:last-child {
    color: var(--main);
    font-weight: bold;
    font-style: italic;
}
/* end stats */
/* start discount */
.left-side {
    background-image: url(https://elzerowebschool.github.io/HTML_And_CSS_Template_Three/imgs/discount-background1.jpg);
    background-size: cover;
    height: 100vh;
    position: relative;
}
.left-side::before {
    content: "";
    position: absolute;
    background-color: rgba(60, 130, 215, 0.98);
    height: 100%;
    width: 100%;
}
.left-side p {
    max-width: 500px;
}
.left-side img {
    max-width: 300px;
}
.right-side {
    height: 100vh;
}
.right-side input,
.right-side textarea {
    background-color: #f9f9f9;
    border-bottom: 1px solid #cccccc !important;
    border-radius: 0;
    margin-bottom: 25px;
    padding: 16px;
}
.right-side a {
    background-color: var(--main);
    transition: 0.3s;
}
.right-side a:hover {
    background-color: #317ace;
}
@media(max-width:991px) {
    .left-side,
    .right-side {
        height: fit-content;
    }
}
/* end discount */
/* start footer */
.footer {
    background-color: #191919;
    position: relative;
}
.footer .brands svg {
    color: #b9b9b9 !important;
    background-color: #313131;
    padding: 15px;
    margin: 5px;
    transition: 0.3s;
}
.footer .brands a:first-child svg {
    padding: 15px 19px 15px 19px;
}
.footer .brands a:first-child svg:hover {
    background-color: #1877f2;
    color: white !important;
}
.footer .brands a:nth-child(2) svg:hover {
    background-color: #1da1f2;
    color: white !important;
}
.footer .brands a:last-child svg:hover {
    background-color: #ff0000;
    color: white !important;
}
.footer .links li {
    border-color: #313131 !important;
}
.footer .links li a svg {
    color: var(--main);
}
.footer .links li a {
    transition: 0.5s;
}
.footer .links li a:hover {
    transform: translatex(10px);
    color: white !important;
}
.footer .time svg {
    color: var(--main);
}
.footer .fgallery img {
    width: 80px;
    border: 3px solid white;
    margin: 4px;
}
.footer > div:last-child {
    border-color: #313131 !important;
}
@media(max-width:575px) {
    .footer {
        text-align: center;
    }
    .footer .links {
        padding: 0 25px;
    }
    .footer .time div {
        flex-direction: column;
        justify-content: center;
    }
}
/* end footer */
