
/* ------------------------- Sayfa 1 (Hero Section) ------------------------- */
.page1 {
    position: relative;
    background-image: url(../img/page1.png);
    margin-top: 10vh;
    width: 100%;
    height: 90vh;
    border-top: none;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    top: 0;
    left: 0;
    z-index: 1;
}
.filter {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); 
    z-index: 1;
}
body > div.container > div.page2.page > div.page2count > div > div.blog-card.blog-card1 > h2{ 
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}
.hero-content h2 {
    font-size:38px;
    margin-bottom: 20px;
}
.hero-content h3{
    font-size: 20px;
    border-bottom: 1px solid white;
    padding-bottom: 10px;
    color: #dda630;
}

.hero-content p {
    font-size: 20px;
    max-width: 600px;
    margin: auto;
}

/* ------------------------- Sayfa 2 (Blog Section) ------------------------- */
.page2{
    display: flex;
}
.page2count {
    width: 100%;
    height: auto;
    background-color: #4f4f4f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 70px 20px;
    text-align: center;
}
.righttext{
    height: -webkit-fill-available;
}
.righttext h1{
    display: inline-block;
    position: absolute;
    font-size: 80px;
    user-select: none;
    line-height: 80px;
    color: rgba(221, 166, 48, 0.15);
    font-weight: 700;
    letter-spacing: 20px;
    transform: rotate(270deg);
    position: absolute;
    right: 80px;
    white-space: nowrap;
    transform-origin: center right;
}
.blog-section {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-evenly;
    margin-top: 20px;
}

.blog-card {
    background-size: cover;
    background-position: center;
    padding: 30px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    overflow: hidden;
    backdrop-filter: blur(5px); 
    max-width: 500px;
    height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.blog-card1{
    background-image: url(../img/blog1.jpg);

}
.blog-card2{
    background-image: url(../img/blog2.jpg);

}

.blog-card:hover .filter {
    transition: 0.5s;
    backdrop-filter: blur(1px);
}

.blog-card:hover .service-item .overlay{
    backdrop-filter: blur(0px);
}
body > div.container > div.page2.page > div.page2count > div > div.blog-card.blog-card2 > h2{
    z-index: 10;
}
.blog-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    z-index: 10;

}

.blog-card p {
    font-size: 16px;
    margin-top: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
    z-index: 10;
}

.read-more {
    font-size: 16px;
    color: #dda630;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    padding: 5px 0;
}

.read-more:hover {
    text-decoration: underline;
    color: #b78826;
}
.page2title {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 20px;
}

.page2text{
    width: 60%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
}
.blogimg img{
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}
/* ------------------------- Sayfa 3 (Bio Section) ------------------------- */

.services{
    color: white;
    margin: auto;
    width: 100%;

}
.services h1 {
    font-size: 36px;
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    margin: auto;
    margin-bottom: 20px;
}
.services-container {
    display: flex;
    overflow-x: auto;
    padding: 20px;
    gap: 15px;
    scroll-snap-type: x mandatory;
}

.service-item {
    position: relative;
    min-width: 300px;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
}

#engineering {
    background-image: url('../img/mimar.png');

}

#real-estate {
    background-image: url('../img/emlak.jpg');


}

#construction {
    background-image: url('../img/insaat2.jpg');
    background-position: center;
    background-repeat: no-repeat;

}

#wedding-hall {
    background-image: url('../img/dugunsalonu.jpg');


}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    top: 0;
    left: 0;
    z-index: 1;
}

.services-container {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0px;
    gap: 15px;
    overflow: hidden; /* Overflow'u gizle */
}

.services-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 15px;
    width: 100%;
}

.service-item {
    min-width: 100%;
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    position: relative;

}
.service-item {
    position: relative;
    width: 100%;
    max-width: 300px; /* Kart boyutu burdan ayarlanır */
    aspect-ratio: 1 / 1; /* Kare kutu olayı */
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.5s ease;
  }
  
  .service-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

  }
  .service-item:hover .overlay {
    backdrop-filter: blur(1px); /* Hover sırasında bulanıklığı kaldır */
  }

  .service-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Foto kutuyu taşırmadan tamamen kaplasın */
    z-index: 1;
  }
  
  .service-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px); 
    background: rgba(0, 0, 0, 0.4); /* Siyah filtre */
    z-index: 2;
  }
  
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    top: 0;
    left: 0;
    z-index: 1;
}

.service-text {
    position: absolute;
    z-index: 2;
    color: white;
    width: 100%;
    padding: 20px;
}

.service-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.service-text p {
    font-size: 16px;
    margin-bottom: 20px;
}

.read-more {
    font-size: 16px;
    color: #dda630;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
    color: #b78826;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    padding: 10px;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 0;
}

.next {
    right: 0;
}
/* ------------------------- Sayfa 4 (Services) ------------------------- */
.page4 {
    width: 100%;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4f4f4f;
    padding: 20px;
    display: flex;
    text-align: center;
}

.bio-content {
    display: flex;
    align-items: center;
    width: 80%;
    color: rgba(0, 0, 0, 0.4);
    justify-content: space-between;
    background-color: rgb(240, 240, 240);
    border-radius: 90px;
    padding: 20px;
    box-shadow: 0 17px 40px rgba(0, 0, 0, 0.7);
}

.bio-text {
    width: 60%;
}

.bio-text h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.bio-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 10px;
}

.read-more {
    font-size: 21px;
    color: #ffd270;
    text-decoration: none;
    z-index: 9;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

.bio-image {
    width: 30%;
    text-align: center;
}

.bio-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 4px solid #dda630;
    padding: 10px;
}
/* ------------------------- Sayfa 5 Comment ------------------------- */
.page5 {
    width: 100%;
    font-family: "Raleway", sans-serif;

    height: 100vh;
}

  
  .page5photo1 {
    background-image: url(../img/page5photo1.webp);
    background-attachment: fixed;
    border-bottom: 10px solid #dda630;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
  }
  
  .page5photo2 {
    background-image: url(../img/page5photo2.jpeg);
    height: 50vh;
    background-size: cover;
    background-position: center;
  }
  
  .page5photo .filter{
    position: relative;
    backdrop-filter: blur(2px); 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}
  
  .comment-container {
    width: 60%;
    position: relative;
    z-index: 99;
    color: white;
  }
  
  .comment {
    opacity: 0;
    transition: opacity 1s ease;
    position: absolute;
    width: 100%;
    top: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    left: 0;
  }
  
  .comment.active {
    opacity: 1;
    position: relative;
  }
  .comment h1{
    border-bottom: 1px solid #dda630;
    width: 30%;
  }
  .comment p {
    font-style: italic;
    margin-top: 10px;
    z-index: 2;
  }
  
  .comment .customer {
    color: #dda630;
    font-weight: bold;
    margin-top: 10px;
  }
  
  .dots {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .dot {
    width: 15px;
    height: 15px;
    border: 2px solid white;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .dot.active,
  .dot:hover {
    background-color: white;
  }
  .page5photo2 .filter{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: start;
  }
  .page5photo2text{
    font-style: oblique;
    width: 50%;
    font-weight: 600;
    margin: 0 auto;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
  }
  .page5photo2 h1{
    color: #dda630;
  }



/* ------------------------- Media Queries ------------------------- */
/* Media Queries */
@media (max-width: 768px) {



    .page1 {
        height: 80vh;
        background-position: unset;
        background-attachment: initial;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .blog-card {
        padding: 15px;
    }

    .service-item {
        min-width: 100%;
        margin: 10px 0;
    }


    .hero-content h1 {
        font-size: 24px;
    }

    .blog-card {
        padding: 10px;
        margin-top: 20px;
    }

    .service-item {
        min-width: 100%;
        margin: 5px 0;
    }
    .righttext h1 {
        display: none;

    }
    .page2text{
        padding: 0;
        width: 100%;
    }
    .blog-section{
        flex-direction: column;
        align-items: center;
    }

    .page1{
        height: 100vh !important;
    }
    .page{
        height: auto;
    }
    .page4{
        padding: 5px;
    }
    .bio-content {
        flex-direction: column-reverse;
        align-items: center;
        padding: 5px;
        width: 90%;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .bio-text{
        width: 100%;
        text-align: center;
    }
    .page5photo2text {
        font-style: oblique;
        width: 100%;
        font-size: 12px;
        font-weight: 600;
        margin: 0 auto;
        padding: 20px;
        color: rgba(255, 255, 255, 0.8);
    }
    .page5photo2 h1 {
        font-size: 25px;
    }    
    .page5photo2,.page5photo1  .filter{
        text-align: center;
    }
    .bio-text p {
        font-size: 12px;
    }
    .comment h1 {
        width: 100%;
    }


    .comment-container {
        width: 95%;
    }
    .filter{
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: -1;
    }
    .read-more{
        z-index: 9999;
    }
    .service-item .overlay{
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        content: none !important;
        background: rgba(0, 0, 0, 0.4);
    }

        
}
