@charset "UTF-8";

/*
* MEFAMEX WEBSITE (https://mefamex.com/) 
* Generated by Mefamex  
* Created on  : 2024-08-20 
* Last update : 2025-03-19-T00:00:00Z 
* Copyright 2024 Mefamex 
* Licensed under MIT (https://github.com/Mefamex/) 
* This css file is for the home page of the Mefamex website.
* Title : home.css
*/

/* compozit module için font ve renkler ileride ayarlanacak */
/*
:root {
    --color-bg-main: rgb(4 5 31);
    --color-white: rgb(241 241 241);
    --color-white-2: rgb(213, 213, 213);
}*/

* {
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.noSelect {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.noDrag {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.noPointer {
    pointer-events: none;
}

html {
    /* Scroll Performansı */
    scroll-behavior: smooth;
    touch-action: manipulation;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 0;
    background-color: rgb(3, 3, 20);
    color: white;
    font-family: ui-sans-serif, -apple-system, system-ui, Segoe UI, Helvetica, Apple Color Emoji, Arial, sans-serif, Segoe UI Emoji, Segoe UI Symbol;
}

#background_img {
    position: fixed;
    justify-self: center;
    object-fit: cover;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -99;
    /*will-change: transform;*/
    content-visibility: auto;
    /*contain: paint;*/
}

#background_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header {
    display: flex;
    flex-direction: column;
    position: absolute;
    color: rgb(242, 242, 242);
    width: 100%;
    margin: 0 0 1rem 0;
    height: auto;
    top: 0;
    left: 0;
    z-index: 5;
    height: fit-content;
    align-items: center;
    animation: entranceUp 0.5s cubic-bezier(1, 0, 0, 0);
}

header h1 {
    font-family: "Gill Sans MT";
    margin: 1rem 0 0 0;
    font-size: 10vw;
    line-height: 0.8;
    text-shadow: 0.1rem 0.05rem 0.1rem rgba(0, 255, 0, 0.9), -0.05rem -0.15rem 0.1rem rgba(255, 0, 0, 0.9);
    text-decoration: 0.4vw solid underline;
}

main {
    display: flex;
    flex-direction: column;
    height: fit-content;
    min-height: 99vh;
    max-width: max(98vw, 100%);
    margin-inline: auto;
    width: 100%;
    margin: 0;
    padding: 0;
    /* performans hızlandırma */
    /* will-change: transform; */
    /* content-visibility: auto; */
    /* contain: paint; */
}

main #left_card {
    display: flex;
    flex-direction: column;
    margin: 0;
    height: fit-content;
    width: 25vw;
    align-self: flex-start;
    justify-self: center;
    align-items: center;
    justify-items: center;
    animation: entranceLeft 1s cubic-bezier(1, 0, 0, 0);
    top: 0;
    left: 0;
    /* performans hızlandırma */
    /*will-change: transform;*/
    content-visibility: auto;
    /*contain: content;*/
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
}

main #left_card #mefamex_logo {
    width: auto;
    height: 13vw;
    max-width: 100%;
    padding-inline: 1vw;
    object-fit: contain;
    text-align: center;
    backdrop-filter: blur(2px);
    border-bottom-color: rgba(255, 255, 255, 0.4);
    border-top-color: rgba(255, 150, 150, 0.4);
    border-style: solid;
    border-width: 0.2rem 0 0.4rem 0;
    border-radius: 13% 13% 26% 26%;
    background-color: rgba(0, 0, 0, 0.2);
}

main #left_card #mefamex_logo img {
    width: auto;
    height: 100%;
    object-fit: contain;
    /*filter: drop-shadow(0 0 0.3vw rgba(255, 255, 255, 0.8));*/
}

#main_cards {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    height: fit-content;
    min-height: calc(95vh - 12vw);
    margin: 1rem 0 0 0;
    padding-inline: clamp(1rem, 3vw, 3rem);
    padding-block: 1rem;
    gap: 2rem 0;
    align-content: center;
    justify-content: space-evenly;
    align-items: center;
    align-content: space-evenly;
    /* performans hızlandırma */
    /*will-change: transform;*/
    /*contain: content;*/
    content-visibility: auto;
}

.card {
    /* Flex özellikler ve vendor prefix'ler */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 25rem;
    flex: 1 1 25rem;
    /* Boyutlandırma */
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    margin-inline: 2vw;
    /* İçerik düzeni */
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0.5rem 1.3rem;
    font-size: 1.2rem;
    /* Kenarlık ve arka plan */
    border: 0.1rem solid rgb(47, 45, 80);
    border-radius: 3.5em 1.5em;
    background: -webkit-linear-gradient(top, rgb(37, 0, 38) 15%, rgb(0, 63, 65));
    background: -moz-linear-gradient(top, rgb(37, 0, 38) 15%, rgb(0, 63, 65));
    background: linear-gradient(to bottom, rgb(37, 0, 38) 15%, rgb(0, 63, 65));

    /* Geçiş efektleri */
    -webkit-transition: all 0.3s ease, outline 0.1s ease;
    -moz-transition: all 0.3s ease, outline 0.1s ease;
    -o-transition: all 0.3s ease, outline 0.1s ease;
    transition: all 0.3s ease, outline 0.1s ease;
    transition: all 0.3s ease, outline 0.1s ease;

    /* Animasyon */
    -webkit-animation: opacity-0-1 1s cubic-bezier(0.2, 1, 1, -0.4) 1s both;
    -moz-animation: opacity-0-1 1s cubic-bezier(0.2, 1, 1, -0.4) 1s both;
    -o-animation: opacity-0-1 1s cubic-bezier(0.2, 1, 1, -0.4) 1s both;
    animation: opacity-0-1 1s cubic-bezier(0.2, 1, 1, -0.4) 1s both;
    opacity: 0;

    /* Performans optimizasyonları */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    -moz-perspective: 1000px;
    perspective: 1000px;
}

.card:hover {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 0 1rem rgba(255, 255, 255, 0.7), 0 0 0.3rem rgba(255, 255, 255, 0.5);
    -moz-box-shadow: 0 0 1rem rgba(255, 255, 255, 0.7), 0 0 0.3rem rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 1rem rgba(255, 255, 255, 0.7), 0 0 0.3rem rgba(255, 255, 255, 0.5);
    background-color: rgb(0, 19, 19);
}

.card:hover h2 {
    text-decoration-color: rgb(0, 157, 255)
}

.card:hover a {
    transform: scale(1.1);
}


.card:focus-visible {
    outline: 0.5rem double white;
}

/*
.card::after {
    content: "";
    z-index: -1;
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(37, 0, 38) 0%, rgba(0, 218, 222, 0.2) 100%);
    border-radius: inherit;
    filter: blur(5px);
    opacity: 0.6;
}
*/
.card h2 {
    font-size: 1.6em;
    margin: 0px;
    padding: 0.5rem 0 1rem 0;
    ;
    align-self: center;
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-decoration: underline;
    text-decoration-color: rgba(255, 50, 50, 0.3);
    cursor: pointer;
    transition: all 0.2s normal;
}

.card h2 a {
    all: inherit;
    margin: 0;
    padding: 0;
}

.card p {
    align-self: flex-start;
    text-align: start;
    font-size: 0.9em;
    line-height: 1.5;
    margin-block-start: 0;
    margin-block-end: 0.2rem;
}

.card p a {
    color: rgb(200, 225, 255);
}

/* GPU Hızlandırma */
/*.card, #background_img, header, #left_card {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, opacity;
    contain: layout style paint;
}*/

/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background-color: #2f2f2f67;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #7e7e7e8e;
    border-radius: 10px;
    border: 2px solid #ff000075;
}

::-webkit-scrollbar-track {
    background-color: #2f2f2f79;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.527);
}

::-webkit-scrollbar-button {
    display: none;
}

/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
@keyframes entranceRight {
    from {
        opacity: 0;
        transform: translateX(15vw);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes entranceBottom {
    from {
        opacity: 0;
        transform: translateY(15vw);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes entranceUp {
    from {
        opacity: 0;
        transform: translate3d(0, -15vw, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes entranceLeft {
    from {
        opacity: 0;
        transform: translateX(-15vw);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@-webkit-keyframes slit-in-vertical {
    0% {
        -webkit-transform: translateZ(-800px) rotateY(90deg);
        transform: translateZ(-800px) rotateY(90deg);
        opacity: 0;
        background-color: white;
    }

    30% {
        -webkit-transform: translateZ(-250px) rotateY(83deg);
        transform: translateZ(-250px) rotateY(83deg);
        opacity: 0.4;
        background-color: white;
    }

    40% {
        -webkit-transform: translateZ(-150px) rotateY(83deg);
        transform: translateZ(-150px) rotateY(80deg);
        opacity: 0.4;
        background-color: white;
    }

    100% {
        -webkit-transform: translateZ(0) rotateY(0);
        transform: translateZ(0) rotateY(0);
        opacity: 1;
    }
}

@keyframes slit-in-vertical {
    0% {
        -webkit-transform: translateZ(-800px) rotateY(90deg);
        transform: translateZ(-800px) rotateY(90deg);
        opacity: 0;
        background-color: white;
    }

    30% {
        -webkit-transform: translateZ(-250px) rotateY(83deg);
        transform: translateZ(-250px) rotateY(83deg);
        opacity: 0.4;
        background-color: white;
    }

    40% {
        -webkit-transform: translateZ(-150px) rotateY(83deg);
        transform: translateZ(-150px) rotateY(80deg);
        opacity: 0.4;
        background-color: white;
    }

    100% {
        -webkit-transform: translateZ(0) rotateY(0);
        transform: translateZ(0) rotateY(0);
        opacity: 1;
    }
}

@-webkit-keyframes opacity-0-1 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes opacity-0-1 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Animasyon fallback */
@supports not (animation-name: opacity-0-1) {
    .card {
        opacity: 1;
    }
}

/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/

@media only screen and (max-width: 40rem) {
    header {
        position: fixed !important;
        margin: 0;
        padding-bottom: 0.75rem;
        -webkit-backdrop-filter: blur(1rem);
        backdrop-filter: blur(1rem);
        box-shadow: 0 0.2rem 1rem 1rem rgba(0, 0, 0, 1);
        border-bottom: 0.2rem solid rgb(0 33 105);
    }

    header h1 {
        margin: 0.5rem 0 0 0;
        font-size: 17vw;
        text-shadow: 0.1rem 0.05rem 0.1rem rgba(0, 255, 0, 0.9), -0.05rem -0.1rem 0.1rem rgba(255, 0, 0, 0.9);

        /*filter: drop-shadow(0.5vw 1vw 0.7vw rgba(255, 0, 0, 0.75));*/
        line-height: 1;
    }

    #left_card {
        position: fixed !important;
        width: 100% !important;
        margin-block: 0;
        margin-inline: auto;
        padding: 30vw 0 0 0;
        animation: entranceUp 0.5s normal 0.5s both !important;
    }

    #mefamex_logo {
        height: 45vh !important;
    }

    #main_cards {
        padding-inline: 1rem;
        gap: 3rem;
        margin-block: calc(55vh + 30vw) 5rem;
    }

    .card {
        /*-webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);*/
        padding-block: 0px 1rem;
        padding-inline: 1rem;
        font-size: 1rem;
        /*box-shadow: 0 0 1vw rgba(255, 225, 225, 0.5);*/
        flex-basis: 90%;
    }

    .card h2 {
        padding: 1rem 0 0.5rem 0;
    }
}