﻿.mainPageTitle {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 4%;
    padding-left: 5%;
    text-align: start;
}

    .mainPageTitle > h1 {
        font-family: none;
        font-size: 45px;
    }

    .mainPageTitle > span {
        color: gray;
        font-size: large;
    }

/*#region Slider*/
.sliderContainer {
    overflow: hidden;
    position: relative;
}

.slider {
    position: relative;
    width: 100%;
    height: 680px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(1);
    z-index: 0;
    pointer-events: none;
    animation: none;
}

    .slide.active {
        animation: slideInFadeZoom 2s ease-out forwards;
        z-index: 1;
        pointer-events: auto;
    }

@keyframes slideInFadeZoom {
    0% {
        opacity: 0.6;
        transform: scale(1) translateY(0px);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}



.slide > img {
    width: 100%;
    height: auto;
    display: block;
}

.slide > div {
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 40%;
    right: 0;
    padding: 0 10%;
    z-index: 1;
    color: white;
    opacity: 0;
}

    /* İçeriğe özel animasyon: Başlık önce gelir, sonra açıklama */
    .slide > div.activeContent {
        animation: slideFadeZoom 1s ease-out;
        opacity: 1; /* animasyon sonunda görünür */
    }

@keyframes slideFadeZoom {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95); /* Başlangıçta yukarıdan */
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Başlık animasyonu: Yukarıdan aşağıya gelir, sonra açıklama */
.slide > div.activeContent h1 {
    animation: fadeInHeader 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(-30px); /* Yukarıdan aşağıya */
    animation-delay: 1.5s;
}

.slide > div.activeContent p {
    animation: fadeInDescription 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(-30px); /* Aynı yön: yukarıdan aşağıya */
    animation-delay: 3s;
}


/* Başlık animasyonunun keyframes'i */
@keyframes fadeInHeader {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDescription {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Görsel responsive kalsın */
.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slide > div > h1 {
    max-width: 40%;
    font-size: 50px;
}

.slide > div > p {
    margin-top: 15px !important;
    font-size: 20px;
    max-width: 40%;
}

.slide > img {
    filter: brightness(30%);
}

.sliderButtons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
}

#prev, #next {
    margin: 0 5px;
    background-color: #00000000;
    color: #999999;
    border: none;
    cursor: pointer;
    font-size: 40px;
    width: 60px;
    border-radius: 50%;
    transition: background-color 0.5s ease-in-out;
}

    #prev:hover, #next:hover {
        color: var(--lmc-orange);
    }
/*#endregion*/
/*#region About Us*/
.aboutusContainer {
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin: 5% 3%;
    padding: 2% 15%;
    gap: 10%;
}

.aboutusContainer {
    animation: border-angle-rotate 8s infinite linear;
    border-top: 0.2rem solid transparent;
    border-bottom: 0.2rem solid transparent;
    background: linear-gradient(white, white) padding-box, conic-gradient( from var(--border-angle), var(--lmc-soft-orange) 50%, white ) border-box;
}

#aboutusBtn {
    text-decoration: none;
    margin: 5% 0 0 65%;
}

.aboutusImg > img {
    width: 120%;
}

.aboutusInfo {
    padding-right: 15%;
}


    .aboutusInfo > div {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 16;
        overflow: hidden;
        max-height: calc(1.7em * 16);
    }

        .aboutusInfo > div > h3 {
            font-size: large;
        }

        .aboutusInfo > div > h1 {
            margin-top: 20px !important;
            font-size: xx-large;
        }

        .aboutusInfo > div > p {
            width: 100%;
            text-align: start;
            display: -webkit-box;
            -webkit-line-clamp: 15;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-size: 17px;
            color: #444;
            flex-grow: 1;
        }

            .aboutusInfo > div > p:first-of-type {
                margin-top: 20px !important;
            }
/*#endregion*/
/*#region Info*/
.infoContainer {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    justify-content: center;
    align-items: center;
    gap: 1%;
    padding: 0 5%
}

    .infoContainer > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
        padding: 15% 3%;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 10px gray;
        transition: transform 0.5s ease, box-shadow 0.5s ease;
        height: 70%;
    }

        .infoContainer > div:nth-of-type(1):hover {
            box-shadow: 0 4px 10px #a10606;
            transform: translateY(-15px);
        }

        .infoContainer > div:nth-of-type(2):hover {
            box-shadow: 0 4px 10px var(--lmc-orange);
            transform: translateY(-15px);
        }

        .infoContainer > div:nth-of-type(3):hover {
            box-shadow: 0 4px 10px #c7c100;
            transform: translateY(-15px);
        }

        .infoContainer > div:nth-of-type(4):hover {
            box-shadow: 0 4px 10px #3d9bdd;
            transform: translateY(-15px);
        }


        .infoContainer > div > img {
            width: 30%;
            object-fit: contain;
        }


@keyframes rotateSelf {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}
/*#endregion*/
/*#region Partners */
.partnersContainer {
    margin: 5% 3%;
    text-align: center;
    padding: 2% 0;
    animation: border-angle-rotate 8s infinite linear;
    border-top: 0.2rem solid transparent;
    background: linear-gradient(white, white) padding-box, conic-gradient( from var(--border-angle), var(--lmc-soft-orange) 30%, white ) border-box;
}

    .partnersContainer > div:last-of-type {
        margin-top: 1%;
        display: flex;
        justify-content: center;
    }

    .partnersContainer > div:nth-of-type(2) {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 0 4%;
    }

        .partnersContainer > div:nth-of-type(2) > a {
            border-right: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
        }

            .partnersContainer > div:nth-of-type(2) > a:nth-child(3n) {
                border-right: none;
            }

            .partnersContainer > div:nth-of-type(2) > a:nth-last-child(-n+3) {
                border-bottom: none;
            }

        .partnersContainer > div:nth-of-type(2) > a {
            background-color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: 0.4s ease-in-out;
            cursor: pointer;
        }

            .partnersContainer > div:nth-of-type(2) > a:hover {
                transform: translateY(-15px);
                box-shadow: rgba(239, 124, 0, 0.12) 0px 2px 4px 0px, var(--lmc-orange) 0px 2px 16px 0px;
            }

            .partnersContainer > div:nth-of-type(2) > a > img {
                width: 50%;
                max-width: 100%;
                height: auto;
                object-fit: contain;
                display: block;
            }
/*#endregion*/
/*#region Services */
.blogContainer {
    margin: 5% 3%;
    padding: 2% 0;
    text-align: center;
    animation: border-angle-rotate 8s infinite linear;
    border-top: 0.2rem solid transparent;
    border-bottom: 0.2rem solid transparent;
    background: linear-gradient(white, white) padding-box, conic-gradient( from var(--border-angle), var(--lmc-soft-orange) 50%, white ) border-box;
}

    .blogContainer > div:last-of-type {
        margin-top: 5%;
        display: flex;
        justify-content: center;
    }

    .blogContainer > div:nth-of-type(2) {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 0 4%;
        gap: 5%;
        align-items: stretch;
    }

        .blogContainer > div:nth-of-type(2) > a {
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 20px;
            padding: 10px;
            background-color: white;
            transition: transform 0.4s ease;
            height: 100%;
            min-height: 100%;
        }

            .blogContainer > div:nth-of-type(2) > a:hover {
                transform: scale(1.05);
            }

            .blogContainer > div:nth-of-type(2) > a > img {
                width: 100%;
                height: auto;
                object-fit: cover;
                box-shadow: 0 5px 20px 5px gray;
            }

            .blogContainer > div:nth-of-type(2) > a > h3 {
                margin: 0;
                font-size: 1.1rem;
                font-weight: 600;
            }

            .blogContainer > div:nth-of-type(2) > a > p {
                width: 100%;
                text-align: start;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
                font-size: 0.95rem;
                color: #444;
                flex-grow: 1;
                word-break: normal;
                overflow-wrap: break-word;
                line-height: 1.5;
                padding-bottom: 0.3rem;
            }


/*#endregion*/
/*#region Electric Guide */
.electricGuideContainer {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: url('../../images/cable.png') center bottom no-repeat;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.contentArea {
    margin-left: 20%;
    margin-right: 10%;
    display: flex;
}

    .contentArea > div:first-of-type {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 15px;
        margin-top: 3%;
    }

        .contentArea > div:first-of-type > h1 {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 1rem;
            text-align: start;
        }

        .contentArea > div:first-of-type > h3 {
            text-align: start;
        }

    .contentArea > div:last-of-type > img {
        width: 60%;
        margin-top: 5%;
    }
/*#endregion*/
/*#region Container animations */
.animationBox {
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.6s ease-out;
}

    .animationBox.show {
        opacity: 1;
        transform: translateY(0);
    }
/*#endregion*/
/*#region Animations*/
@keyframes border-angle-rotate {
    from {
        --border-angle: 0deg;
    }

    to {
        --border-angle: 360deg;
    }
}

@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
/*#endregion*/
/*#region Responsive*/
/* Telefonlara özel (varsayılan stil) */
@media (max-width: 480px) {
    .slider {
        height: 180px !important;
    }

    .sliderButtons {
        display: none;
    }

    .slide > div {
        top: 20% !important;
    }

        .slide > div > h1 {
            font-size: medium !important;
        }

        .slide > div > p {
            margin-top: 0 !important;
            font-size: x-small !important;
        }

    .aboutusContainer {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin: 5% 1%;
        padding: 2% 4%;
        text-align: center;
    }

    .aboutusInfo {
        padding: 0;
    }

    .aboutusImg > img {
        max-width: 100%;
    }

    .aboutusImg > img {
        width: 55%;
    }

    #aboutusBtn {
        margin: 0;
    }

    .mainPageTitle > span {
        font-size: small !important;
    }

    .mainPageTitle > h1 {
        font-size: 30px !important;
    }

    .infoContainer {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 30px;
    }

        .infoContainer > div {
            max-width: 100%;
        }

            .infoContainer > div > img {
                width: auto;
                width: 60%;
            }

    .partnersContainer > div:nth-of-type(2) {
        grid-template-columns: repeat(1, 1fr);
    }

    .blogContainer > div:nth-of-type(2) {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .partnersContainer > div:nth-of-type(2) > a {
        border: none;
    }

        .partnersContainer > div:nth-of-type(2) > a:not(:last-of-type) {
            border-bottom: 1px solid #ccc;
        }

        .partnersContainer > div:nth-of-type(2) > a > img {
            width: 60% !important;
        }

    .electricGuideContainer > div {
        margin: 0;
    }

        .electricGuideContainer > div > div:first-of-type {
            align-items: normal;
            padding: 0 50px;
            gap: 5px;
        }

    .electricGuideContainer {
        height: 200px;
    }

        .electricGuideContainer > div > div:first-of-type > h1 {
            text-align: center !important;
            font-size: x-large;
        }

        .electricGuideContainer > div > div:first-of-type > h3 {
            text-align: center !important;
            font-size: medium;
        }

        .electricGuideContainer > div > div:first-of-type > a {
            width: 50%;
            margin: auto
        }

        .electricGuideContainer > div > div:last-of-type > img {
            display: none;
        }
}
/* Tablet */
@media (max-width: 820px) {
    .slider {
        max-height: 330px !important;
    }

    .slide > div > h1 {
        font-size: 30px;
    }

    .slide > div > p {
        font-size: 14px;
    }

    .slide > div {
        top: 35%;
    }

    .infoContainer {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 5%;
    }

    .partnersContainer > div:nth-of-type(2) > a > img {
        width: 85%;
    }

    .blogContainer > div:nth-of-type(2) {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 0 4%;
        gap: 5%;
        align-items: stretch;
    }

    .contentArea > div:last-of-type {
        display: none;
    }

    .contentArea > div:first-of-type {
        padding: 0rem 8rem;
    }
}

/* Küçük dizüstü */
@media (max-width: 1024px) {
    .slider {
        height: 440px;
    }

    .slide > div > h1 {
        font-size: 40px;
    }

    .slide > div > p {
        font-size: 18px;
    }

    .slide > div {
        top: 35%;
    }

    .aboutusContainer {
        padding: 2% 1%;
    }

    .contentArea > div:last-of-type > img {
        margin-top: 25%;
    }

    .contentArea > div:first-of-type {
        padding: 0;
        /*padding-left: 10rem;*/
        width: 140%;
    }

    .mainPageTitle > h1 {
        font-size: 35px;
    }
}

/* Büyük dizüstü/masaüstü */
@media (min-width: 1200px) {
}

/* Ultra geniş ekranlar */
@media (min-width: 1400px) {
    .contentArea > div:last-of-type > img {
        margin-top: 0;
        margin-bottom: 5%;
    }

    .contentArea > div:first-of-type {
        padding: 0;
    }
}

/*#endregion*/
