*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
}

body{
    font-family: sans-serif;
    overflow-x: hidden; /* Əlavə boşluqları gizlət */
}

.FirstPage{
    padding: 30px;
    padding-top: 50px;
    background-color: #000000;
    padding-bottom: 0px;
}
nav{
    display: flex;
    
    justify-content: space-around;
    
}

a{
    text-decoration: none;
    color: white;
}

nav img{
    width: 15px;
    height: 15px;
}

nav ul{
    list-style-type: none;
    display: flex;
    gap: 50px;
    align-items: center;
    font-weight: 700;
    font-size: 16px;

}

html{
    scroll-behavior: smooth;
}
hr{
    width: 20px;
    margin-left: 1px;
    height: 2px;
    background-color: #e91f4f;
    top: 5px;
    position: relative;
    border: 1px solid #e91f4f;
}

ul hr{
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;

}

ul>li:hover hr{
    width: 20px;
    opacity: 1;

}

.Introduction{
    display: flex;
    justify-content: center;
    margin-left: 50px;
    
}

.Introduction img{
    width: 600px;
    height: 700px;
    position: relative;
    right:  200px;
    z-index: 0;
    top: 50px;
}

.Introduction hr{
    width: 80px;
    margin-left: 1px;
    height: 3px;
    background-color: #e91f4f;
    top: 5px;
    position: relative;
    border: 1px solid #e91f4f;
}

.Introduction div{
    margin-top: 100px;
    width: 700px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.Introduction p{
    font-size: 78px;
    font-weight: 800;
    z-index: 10;
}

button{
    width: 190px;
    height: 59px;
    background-color: black;
    border: 2px solid #e91f4f;
    font-size: 16px;
    font-weight: 700;
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

button::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #e91f4f;
    z-index: -1;
    transition: width 0.2s linear;
}

button:hover::before{
    width: 100%;
}

.Future{
    display: flex;
    font-size: 17px;
    gap: 30px;
    justify-content: center;
}

.Future p{
    font-weight: 400 !important;
}

.Future div svg{
    width: 50px;
    height: 50px;
    stroke: #e91f4f;
    
    transition: stroke 0.2s ease;
}

.Future div:hover svg{
    width: 50px;
    height: 50px;
    stroke: white;

}

.Future div{
    width: 395px;
    height: 400px;
    transition: 0.5s linear;
    padding: 30px;
    background-color: #1b1b1b;
    z-index: 10;
    position: relative;
}

 
.Future h2{
    color: white;
    font-size: 26px;
    padding-top: 70px;
    padding-bottom: 5px;
}

.Future hr{
    margin-bottom: 40px;
    width: 40px;
    border: 1px solid white;
}

.Future div:hover{
    background-color: #e91f4f;

}


.Color{
    width: 420px;
    height: 70px;
    background-color: #e91f4f;
    position: relative;
    bottom: 50px;
    right: 113px;
    justify-self: right;
}

.Border{
    width: 2px;
    height: 30px;
    margin: 0 auto;
    position: relative;
    bottom: 70px;
    background-color: #e91f4f;
}





.Services hr{
    width: 50px;
    
    height: 2px;
    background-color: #e91f4f;
    top: 5px;
    position: relative;
    border: 1px solid #e91f4f;
}

 h2{
    color: black;
    padding-top: 50px;
    padding-bottom: 20px;
    font-size: 48px;
    font-weight: 700;
}

 h3{
    color: #e91f4f;
    font-size: 18px;
    
}

.Grid{
    display: grid;
    grid-template-columns: auto auto auto;
    gap:30px;
    margin-top: 30px;
    justify-content: center;

    
}

.Grid div{
    background-color: #f1f1f1;
    display: flex;
    padding: 40px 30px;
    font-size: 19px;
    text-align: center;
    width: 380px;
    height: 104px;
    font-weight: 700;
    justify-content: space-between;
    overflow: hidden; /* BURA! */
    position: relative; /* bəzən lazım olur */
  
}

.Grid div p{
    color: #000000;
    transition: all 0.4s ease;
}

.Grid svg{
    stroke: #827f7d;
    font-size: 24px;
    transition: all 0.4s linear;

}

.Grid svg:nth-child(1){
    width: 0; /* yer tutmur */
    opacity: 0;
    transition: all 0.4s ease;
    stroke-width: 1px;
    position: absolute;
    stroke: #827f7d !important;
    flex-shrink: 0; /* ikonun sıxılmaması üçün */

}

.Grid div:hover{
    background-color: #e91f4f;
}

.Grid div:hover svg:nth-child(1){
    width: 100px !important; 
    height: 100px !important;
    margin-bottom: 20px !important;
    opacity: 1;
    
    transform: translateX(-50px)translateY(-40px); 
}

.Grid div:hover p{
    transform: translateX(50px);
    color: white;
} 

.Grid div:hover svg{
    transform: translateX(10px);
    stroke: white;
}

.Border2{
    width: 2px;
    height: 60px;
    margin: 0 auto;
    position: relative;
    top: 80px;
    margin-bottom: 200px;
    background-color: #e91f4f;
}


.ThirdPage{
    padding: 100px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.ThirdPage hr{
    width: 50px;
    
    height: 2px;
    background-color: #e91f4f;
    top: 5px;
    position: relative;
    border: 1px solid #e91f4f;   
}

.Works{
    width: 1200px;
    margin: 0 auto;
}

.ThirdPage h2{
    color: black;
    padding-top: 50px;
    padding-bottom: 20px;
    font-size: 48px;
    font-weight: 700;
}
.ThirdPage h3{
    color: #e91f4f;
    font-size: 18px;
    
}
.ViewAllButton{
    width: 123.85px;
    height: 49.2px;
    background-color: white;
    border: 2px solid #e91f4f;
    font-size: 16px;
    font-weight: 700;
    color: black;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    transition: color 0.2s linear;
    margin-top: 50px;
}

.ViewAllButton::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #e91f4f;
    z-index: -1;
    transition: width 0.2s linear;
}

.ViewAllButton:hover{
    color: white; 
}

.ViewAllButton:hover::before{
    width: 100%;
}

.images{
    display: flex;
    gap: 10px;
    margin-top: 80px;
    margin-bottom: 20px;
}

.images>div{
    width: 500px;
    height: 500px;
    overflow: hidden; 
    position: relative;
}

.images>div>img{
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    background-color: #000000;
    filter: grayscale(100%);
    transition: transform 0.3s ease; 
}


.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    
}

.overlay h3{
    color: white;
    font-size: 28px;
    margin: 0;
}

.overlay p{
    color: white;
    font-size: 20px;
    margin-top: 10px;
}

.images>div:hover .overlay{
    opacity: 1;
    cursor: pointer;
}

.images>div:hover>img{
    transform: scale(1.2);
    filter: grayscale(0%);

}

.Choose{
    display: flex;
    gap: 10px;
    justify-content: center;
    position: relative;
}

.Choose>div{
    border: 1px solid #827f7d;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin-top: 0px;

}

.Choose>div:hover{
    border: 1px solid #e91f4f;   
}

.Choose>div:nth-child(1){
    width: 15px;
    height: 15px;
    border: 1px solid #e91f4f;
    background-color: #e91f4f;
    position: relative;
    top: -1px;
}

.Border3{
    width: 2px;
    height: 60px;
    margin: 0 auto;
    position: relative;
    top: 80px;
    margin-bottom: 200px;
    background-color: #e91f4f;  
}


.About{
    width: 1200px;
    margin: 0 auto;
}

.About hr{
    width: 50px;
    
    height: 2px;
    background-color: #e91f4f;
    top: 5px;
    position: relative;
    border: 1px solid #e91f4f;
}

.GridSecond{
    display: grid;
    grid-template-columns: 2fr 1fr; /* Sol 2 hissə, sağ 1 hissə */
    grid-template-rows: 1fr 1fr; /* 2 sıra */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-left: -20px;
    padding: 50px 20px;
    height: 720px; /* Ümumi hündürlük ver */
}

.GridSecond>div{
    position: relative;
    overflow: hidden;
    /* height: 350px; */

}

.GridSecond>div:nth-child(1){
    grid-row: 1 / 3; /* 2 sıranı tutur */
    height: auto;
}

.GridSecond>div>img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(100%);
}

.GridSecond>div:hover img{
    filter: grayscale(30%);
}

.Text{
    position: absolute;
    left: 30px;
    bottom: 30px;
    color: white;
    font-size: 17px;

}

.Text h2{
    color: white;
    font-size: 20px;
    margin-bottom: -15px;
    font-weight: 700x;
}


.WhoWeare{
    display: flex;
    width: 1200px;
    gap: 50px;
    margin: 0 auto;
}

.WhoWeare h3{
    color: black;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px;
    margin-top: 50px;
}

.WhoWeare p{
    color: #827f7d;
    font-size: 17px;
}

.Cliets{
    width: 1200px;
    display: flex;
    margin: 0 auto;
    gap: 50px;
}

.Cliets>div>img{
    width: 500px;
    height: 90%;
    object-fit: cover;
}

.miniborder{
    width: 30px;
    height: 2px;
    
    position: relative;

    background-color: #e91f4f;  
}


.News{
    text-align: center;
}

.News h2{
    font-weight: 700;
}

.News p{
    color: #e91f4f;
    font-weight: 700;
}

.images>div{
    width: 500px;
    height: 500px;
    overflow: hidden; 
    position: relative;
}

.overlay1{
    position: absolute;
    bottom: 30px; 
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.overlay1 h3{
    color: white;
    font-size: 22px;
    margin: 0;
    transition: all 0.4s ease;
}

.overlay1 p{
    color: white;
    font-size: 13px;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.overlay1 svg{
    width: 30px;
    height: 30px;
    opacity: 0; 
    stroke: white;
    transform: translateY(20px);
    transition: all 0.5s ease;
}


.images>div:hover .overlay1{
    bottom: 50px; 
}

.images>div:hover::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.overlay1{
    z-index: 2; 
}

.images>div:hover .overlay1 svg{
    opacity: 1;
    transform: translateY(0);
}

.images>div:hover>img{
    transform: scale(1.2);
    filter: grayscale(0%);
}


footer{
    /* top: -150px; */
    position: relative;
}

.Talk{
    background-color: #1b1b1b;
    width: 100% ;
    height: 350px;

    /* z-index: -1; */

    display: flex;
    justify-content: space-around;
    align-items: center;
}

.Talk h2{
    color: white;
}

.medias{
    display: flex;
    gap: 10px;
    
    
}

.medias svg{
    width: 20px;
    height: 20px;
    fill: white;
    position: relative;
    
}

.medias>div{
    border: 1px solid #e91f4f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease; /* Smooth animasiya */
}

.medias>div:hover svg{
    fill: #e91f4f;
}



.medias>div:hover{
    transform: translateY(-10px); /* Yuxarı çıxır */
}

.Talk button{
    width: 190px;
    height: 59px;
    background-color: #1b1b1b;
    border: 2px solid #e91f4f;
    font-size: 16px;
    font-weight: 700;
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

.Talk button::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #e91f4f;
    z-index: -1;
    transition: width 0.2s linear;
}
 
.Talk>div:nth-child(3) button:hover::before{
    width: 100%;
}

.Numbers{
    background-color: #161616;

    height: 150px;

}

.Numbers>div{
    margin: 0 auto;
    justify-content: space-around;
    text-align: center;
    display: flex;
    width: 1000px;
    
}

.Numbers>div>div{   
    margin-top: 50px;
}

.Numbers h3{
    color: white;
    font-size: 20px;
    margin-bottom: 5px;
}

.Numbers P{
    color: white;
}

.Numbers>div>div:hover p{
    color:#e91f4f;
}

.Numbers>div>div:hover h3{
    color:#e91f4f;
}


.Elaqe{
    background-color: #000000;
    height: 90px;
    display: flex;
    justify-content: space-around;
}

.Elaqe>div{
    margin-top: 35px;
}

.Policy{
    display: flex;
    gap: 15px;
    font-size: 15px;
}

.Policy hr{
    width: 0px;
    opacity: 0;
    transition: all 0.3s ease;
}

.Policy>div:hover p{
    color: #e91f4f;
    cursor: pointer;
}

.Policy>div:hover hr{
    opacity: 1;
    width: 50px;
}


@media screen and (max-width: 1250px) {
    .Works, .About, .WhoWeare, .Cliets, .Services, .Introduction div, .Introduction img, .GridSecond, .News, .ThirdPage {
        width: 100% !important;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    
    .Introduction{
        margin-left: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .Introduction div {
        width: 100%;
        align-items: center;
        margin-top: 50px;
    }
    
    .Introduction img {
        width: 80%;
        height: auto;
        right: 0;
        top: 0;
        margin-top: 50px;
    }

    .Future {
        flex-wrap: wrap;
        padding: 0 20px;
    }
    
    .Future div {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 300px;
    }
    
    .Grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
        width: 100%;
    }
    
    .images {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 0 20px;
    }
    
    .images > div {
        width: 45%;
        height: 300px;
    }

    .GridSecond {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin-left: 0;
        padding: 20px;
    }
    
    .GridSecond > div:nth-child(1) {
        grid-row: auto;
        height: 400px;
    }
    
    .GridSecond > div {
        height: 300px;
    }

    .WhoWeare {
        flex-direction: column;
        width: 100%;
        padding: 20px;
    }
    
    .Cliets {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 20px;
    }
    
    .Cliets > div:nth-child(2) {
        width: 100%;
    }
    
    .Cliets > div > img {
        width: 100%;
        max-width: 100%;
    }
    
    .Talk {
        height: auto;
        flex-direction: column;
        padding: 50px 0;
        gap: 30px;
    }
    
    .Numbers > div {
        width: 100%;
        flex-direction: column;
        gap: 30px;
    }
    
    .Numbers {
        height: auto;
        padding: 30px 0;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .Services > div {
        margin-left: 0 !important;
        margin-bottom: 30px !important;
        text-align: center;
        width: 100%;
    }

    .Works > div {
        width: 100%;
    }
    
    .About > div {
        width: 100%;
    }
    
    .Color, .Border, .Border2, .Border3 {
        display: none;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    nav {
        flex-direction: column;
        padding-bottom: 20px;
        align-items: center;
        gap: 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        padding: 0;
        text-align: center;
    }
    
    .Introduction p {
        font-size: 40px;
        line-height: 1.2;
    }
    
    .Introduction img {
        width: 100%;
    }

    .Grid {
        grid-template-columns: 1fr;
    }
    
    .Grid div {
        width: 100%;
    }
    
    .images > div {
        width: 100%;
        height: auto;
        min-height: 300px;
    }
    
    .ThirdPage h2, .About h2, .Cliets h2, .News h2 {
        font-size: 36px;
    }
    
    .Elaqe {
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        text-align: center;
    }
    
    .Policy {
        flex-direction: column;
        gap: 10px;
    }
    
    .Cliets > div > div[style*="background-color: #e91f4f"] {
        display: none; 
    }
    
    .ThirdPage hr, .About hr, .Cliets hr, .Services hr, .Introduction hr, hr {
        margin: 0 auto;
        margin-bottom: 20px;
    }
    
    .Works > div, .About > div {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .Works button {
        margin-top: 20px;
    }
}
