:root {
    --primary-color: rgb(231, 59, 59);
    --primary-color-rgb: 231, 59, 59;
    --header-height: 120px;
    --extra-font: 'Saira', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: Saira, sans-serif;
    overflow-x: hidden;

    &.active {
        body {
            padding-top: var(--header-height);
        }
    }
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    top: calc(0px - var(--header-height));
    transition: top .3s ease-in-out;
    width: 100%;
    height: var(--header-height);
    z-index: 15;

    &.active {
        top: 0;
        position: fixed;
        background-color: rgba(255, 255, 255, 0.9);
        --header-height: 70px;
        box-shadow: 0 0 10px 0 rgba(var(--primary-color-rgb), 0.15);
        backdrop-filter: blur(5px);
    }

    .nav-toggle {
        width: fit-content;
        margin-left: auto;
        font-size: 32px;
        align-items: center;
        justify-content: center;
        display: none;
    }

    .logo {
        display: block;
        height: var(--header-height);
    }

    nav {
        display: flex;
        align-items: center;
        justify-content: end;
        gap: 5px;

        a {
            transition: all .3s ease-in-out;
            font-size: 15px;
            padding: 5px 10px;
            text-transform: uppercase;

            &:hover {
                color: var(--primary-color);
            }
        }
    }
}

img {
    max-width: 100%;
    max-height: 100%;
}

@keyframes move_x {
    0% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(-15px);
    }

    100% {
        transform: translateX(0px);
    }
}

@keyframes move_y {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

[data-animation] {
    opacity: 0;

    &.animated {
        opacity: unset;
    }
}

main {

    .main-swiper {
        width: 100%;
    }

    .main-breadcrumb {
        position: relative;

        .breadcrumb-img {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: url(../img/footer.jpg);
            background-size: 400px 400px;
            opacity: 0.025;
        }

        .breadcrumb-front {
            position: relative;
            z-index: 1;
            padding: 100px 0;
            width: 100%;
            height: 100%;
            background-color: rgba(101, 64, 143, 0.1);
            color: var(--primary-color);

            h1 {
                font-family: var(--extra-font);
            }

            .breadcrumb-nav {
                display: flex;
                justify-content: flex-end;
                align-items: center;
                flex-wrap: wrap;
                gap: 5px;

                a {
                    font-family: var(--extra-font);
                    padding: 5px 10px;
                    white-space: nowrap;
                    font-size: 25px;

                    &::after {
                        content: ">";
                        pointer-events: none;
                        margin-left: 10px;
                        margin-right: -10px;
                        font-weight: normal !important;
                    }

                    &:last-child {
                        color: rgba(var(--primary-color-rgb), 0.5);

                        &:after {
                            content: "";
                        }
                    }
                }
            }
        }
    }

    section {
        position: relative;
        padding: 50px 0;

        .section-header {
            display: block;
            position: relative;
            overflow: hidden;
            margin-bottom: 30px;

            h3 {
                font-weight: 600;
                font-size: 30px;
                color: black;
            }

            h2 {
                font-size: 20px;
                margin-bottom: 0;
                font-weight: bold;
                font-family: var(--extra-font);
                color: var(--primary-color);
            }
        }
    }

    .details__box {
        text-align: center;
        transition: all .3s ease-in-out;
        width: fit-content;
        margin: 0 auto;
        padding: 30px;
        position: relative;

        iconify-icon {
            font-size: 40px;
            color: var(--primary-color)
        }

        h6 {
            font-size: 40px;
            font-weight: 600;
            margin: 20px 0;
        }

        h5 {
            font-size: 15px;
            font-weight: normal;
            margin-bottom: 0;
        }

        &:after {
            position: absolute;
            content: "";
            left: 50%;
            transform: translateX(-50%);
            bottom: 0;
            height: 0.1px;
            background-color: #666;
            width: 0;
            transition: all .3s ease-in-out;
        }

        &:hover {
            transform: scale(1.1);

            &:after {
                width: 100%;
            }
        }
    }

    .contact-zone {
        padding: 0;
        color: white;

        .contact {
            background-color: var(--primary-color);
            border-top: 1px solid var(--primary-color);
            border-bottom: 1px solid var(--primary-color);
            height: 100%;
            transition: all .3s ease-in-out;
            padding: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            border-right: 0.1px solid rgba(255, 255, 255, 0.25);

            span {
                display: block;
                font-size: 13px;
            }

            h3 {
                font-size: 20px;
                margin: 0;
                line-height: 1;
            }

            iconify-icon {
                font-size: 40px;
            }

            &:hover {
                background-color: white;
                color: var(--primary-color)
            }
        }
    }

    .kurslar {
        .kurs-ara {
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.15);
            padding-bottom: 1rem;

            iconify-icon {
                font-size: 36px;
                color: var(--primary-color);
            }

            input {
                border: 2px solid var(--primary-color) !important;
                padding: 10px 20px;
                width: 500px;

                outline: unset !important;
            }
        }

        .kurs {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 10px;
            border-radius: 10px 30px 10px 30px;
            background-color: rgba(var(--primary-color-rgb), 0.05);
            padding: 20px;
            overflow: hidden;

            .background {
                display: flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                right: 20px;
                bottom: 5px;
                pointer-events: none;
                color: rgba(var(--primary-color-rgb), 0.05);
                font-size: 200px;
                z-index: -1;
                transition: all .3s ease-in-out;
            }

            h2 {
                font-family: var(--extra-font);
                color: var(--primary-color);
                margin-bottom: 0;
            }

            .i {
                display: flex;
                align-items: center;
                gap: 10px;

                iconify-icon {
                    font-size: 20px;
                    color: var(--primary-color);
                }
            }

            &:hover {
                .background {
                    color: rgba(var(--primary-color-rgb), 0.25);
                }
            }
        }
    }

    .contact_form {
        .form-control {
            border: 2px solid var(--primary-color);
            border-radius: 0;
            padding: 10px 20px;
            outline: unset !important;
            box-shadow: unset !important;
        }
    }

}

footer {
    position: relative;
    box-shadow: 0 0 10px 0 rgba(var(--primary-color-rgb), 0.15);

    .footer-background {
        opacity: 0.025;
        top: 0;
        left: 0;
        z-index: -1;
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url(../img/foot.jpg);
        background-size: 500px 500px;
    }

    .footer-main {
        padding: 100px 0;
        padding-bottom: 50px;
        height: 100%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0);
    }

    .footer-bottom {
        p {
            font-size: 12px;
            text-align: center;
        }
    }

    img {
        height: 150px;
    }

    h5 {
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .sosyal {
        a {
            background-color: var(--primary-color);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            border-radius: 50%;
            color: white;
            transition: all .3s ease-in-out;
            border: 3px solid var(--primary-color);

            &:hover {
                background-color: white;
                color: var(--primary-color);
            }
        }
    }
}

.primary-button,
.secondary-button {
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
    padding: 7.5px 15px;
    border-radius: 50px;
    text-align: center;
    white-space: nowrap;
    background-color: var(--primary-color);
    color: white;
    font-size: 15px;
    transition: all .3s ease-in-out;
    z-index: 1;
    border: 2px solid var(--primary-color) !important;

    &:before {
        transition: all .3s ease-in-out;
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        z-index: -1;
        border-radius: 50px;
        background-color: white;
    }

    &:hover {
        color: var(--primary-color);

        &:before {
            width: 100%;
        }
    }
}

@keyframes move_y {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.header-animated {
    animation: 5s move_y ease-in-out infinite;
}

.secondary-button {
    background-color: white;
    color: var(--primary-color);

    &::before {
        background-color: var(--primary-color);
    }

    &:hover {
        color: white;
    }
}

.loading {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
        display: block;
        max-height: 256px;
        max-width: 90%;
    }
}

.yukari {
    display: none;
    position: fixed;
    z-index: 5;
    right: 0;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);

    .rotated {
        pointer-events: all;
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-size: 12px;
        transform: translateX(25%) rotate(-90deg);

        .progress {
            position: relative;
            width: 60px;
            height: 1px;
            transition: all .3s ease;
            background-color: #ccc;
            border-radius: 50px;

            i {
                position: absolute;
                width: 0;
                transition: all .3s ease;
                height: 100%;
                border-radius: 50px;
                background-color: var(--primary-color);
            }
        }

        span {
            color: #ccc;
            transition: all .3s ease;
        }

        &:hover {
            .progress {
                background-color: var(--primary-color);
            }

            span {
                color: var(--primary-color);
            }
        }
    }

    &.in-bg {
        .rotated {
            .progress {
                background-color: white;
            }

            span {
                color: white;
            }

            &:hover {
                .progress {
                    background-color: black;
                }

                span {
                    color: black;
                }
            }
        }
    }
}

#alerts__ {
    z-index: 100;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;

    .alert {
        width: fit-content;
        max-width: 350px;
    }
}

@media (max-width: 763px) {

    header {
        --header-height: auto !important;
        flex-direction: column;
        top: 0 !important;
        position: relative !important;

        &.active {
            position: relative !important;
            top: 0 !important;
            --header-height: auto !important;
        }

        &.nav-toggled {
            .nav-toggle {
                iconify-icon {
                    &:first-child {
                        display: none;
                    }

                    &:last-child {
                        display: block;
                    }
                }
            }
        }

        .nav-toggle {
            display: flex;

            iconify-icon:first-child {
                display: block;
            }

            iconify-icon:last-child {
                display: none;
            }
        }

        .logo {
            height: 200px;
        }

        nav {
            flex-direction: column;
            align-items: flex-start;
            margin-bottom: 30px;
        }

        .primary-button,
        .secondary-button {
            width: 100%;
        }
    }

    body {
        padding-top: 0 !important;
    }

    main {
        .contact-zone {
            .contact {
                justify-content: flex-start;

                h3 {
                    font-size: 15px;
                }
            }
        }

        .main-breadcrumb {
            text-align: center;

            .breadcrumb-front {
                .breadcrumb-nav {
                    justify-content: center;
                }
            }
        }
    }
}