/* Genel Navbar Stilleri */
@font-face {
    font-family: 'PoiretOne-Regular';
    src: url('../fonts/PoiretOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito-Regular';
    src: url('../fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FreightSansProBook-Italic';
    src: url('../fonts/FreightSansProBook-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NunitoSans-LightItalic';
    src: url('../fonts/NunitoSans_10pt-LightItalic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}




.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    background: rgba(0, 0, 0, 0.5); /* Saydam arka plan */
    color: white;
    padding: 10px 20px;
    z-index: 1000;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    transition: transform 1s ease-out;
}

@media (max-width: 768px) {
    .slider-container {
        height: 93vh;
    }

    .slide {
        height: 93vh;
    }
}

/* İlk slide aktif olacak şekilde ayarla */
.slide:first-of-type {
    transform: translateX(0);
}

/* Diğer slide'lar sağda gizli olarak başlar */
.slide:not(:first-of-type) {
    transform: translateX(100%);
}


.info-text {
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#image-title {
    color: white;
    position: absolute;
    bottom: 8%;
    right: 40px;  /* Detaylar için farklı bir konumda olabilir. */
    transform: translateX(100px); /* Başlangıçta sağdan giriş için */
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    font-family: 'PoiretOne-Regular', sans-serif;
    font-size: 40px;
    padding-bottom: 10px;
}

#image-details {
    color: white;
    position: absolute;
    bottom: 5%;
    right: 40px;  /* Detaylar için farklı bir konumda olabilir. */
    transform: translateX(-100px); /* Başlangıçta sağdan giriş için */
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    font-family: NunitoSans-LightItalic;
    font-size: 20px;
}


#image-title.active, #image-details.active {
    opacity: 1;
    transform: translateX(0); // Aktif olduğunda orijinal konumuna gel
}

.progress-bars {
    display: flex;
    gap: 10px; /* Çubuklar arasındaki boşluk */
    position: absolute;
    bottom: 5%;
    left: 20px;
}

.progress-bar {
    background-color: rgba(204, 204, 204, 0.5); /* Pasif çubukların saydam rengi */
    height: 3px;
    width: 50px; /* Pasif çubukların genişliği */
    overflow: hidden; /* Dolma animasyonunu sınırlamak için */
    position: relative;
    transition: width 0.5s ease; /* Genişlik değişikliği animasyonu */
    cursor: pointer;
}

.progress-bar.active {
    background-color: rgba(204, 204, 204, 0.5); /* Aktif çubuğun dolmayan kısmının saydam rengi */
    width: 100px; /* Aktif çubuğun genişliği, pasiflerin iki katı */
}

.progress-bar.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: #fff; /* Aktif çubuğun dolan kısmının opak rengi */
    animation: fillBar 15s linear forwards;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: 100%; }
}

.text-section p {
    font-size: 30px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: FreightSansProBook-Italic;
    letter-spacing: -0.36px;
    line-height: 40px;
}

.signature {
    width: 50%;
    display: block;
    margin-bottom: 20px;
    margin-left: 40%;
}

.image-section img {
    width: 100%;
    height: auto;
    clip-path: inset(0 100% 0 0); /* Başlangıçta tüm görsel gizli */
    animation: revealImage 2s ease-out forwards;
    animation-play-state: paused; /* Animasyon başlangıçta duraklatıldı */
}

@keyframes revealImage {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}


.logo-row img {
    width: 100%;
    padding: 10px; /* Logolar arası boşluk */
}
.logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.logo-row .col-6 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideInLeft 1s forwards;
}


.text-right {
    text-align: right;
}


.contact-button {
    font-size: 20px;
    padding: 10px 20px;
    border: 1px solid black;
    background: linear-gradient(to right, white 50%, black 50%);
    background-size: 200% 100%;
    background-position: left bottom;
    color: black;
    cursor: pointer;
    transition: background-position 0.4s ease, color 0.4s ease;
}

.contact-button:hover {
    background-position: right bottom;
    color: white;
}

.projects-section {
    background-color: #ffffff;
    padding: 50px 0 50px 50px;
    font-family: Nunito-Regular;
}

.projects-content {
    display: flex;
    align-items: center;
}

.text-content {
    flex: 2;
    padding-right: 20px;
}

.title-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Add this line */
    border-bottom: black 1px solid;
    margin-right: 10%;
}

.text-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.navigation-icons {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.navigation-icons span {
    font-size: 30px;
    font-weight: 100;
    margin: 0 5px;
    cursor: pointer;
}


.text-content p {
    font-size: 18px;
    margin: 10px 0;
}

.projects-button {
    border: 1px solid #000;
    padding: 10px 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 20px;
    transition: border 0.3s ease;
    margin-top: 40px;
    border: 1px solid black;
    background: linear-gradient(to right, white 50%, black 50%);
    background-size: 200% 100%;
    background-position: left bottom;
    color: black;
    cursor: pointer;
    transition: background-position 0.4s ease, color 0.4s ease;
}

.projects-button:hover {
    background-position: right bottom;
    color: white;
}

.image-content {
    flex: 5;
    overflow: hidden;
    position: relative;
}

.image-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.project-image {
    flex-shrink: 0;
    width: calc(100% - 40px); /* Görseller arasında boşluk için */
    margin-right: 40px; /* Görseller arasında boşluk için */
}

/* İlk ve ikinci görselin hizalanması */
.image-content {
    width: 100%;
    display: flex;
    overflow: hidden;
    padding-right: 30%; /* Sağ tarafta ikinci görselin yarısı için boşluk bırak */
}

.project-image:first-child {
    margin-right: 40px; /* İlk görselin tamamı görünsün diye boşluk bırak */
}

@media (max-width: 767px) {
    .projects-content {
        flex-direction: column;
    }
    .image-content {
        width: 100%;
        padding-right: 0;
    }
    .project-image {
        width: 100%;
        margin-right: 0;
    }
}


/* Masaüstü ve büyük ekranlar için padding */
.body-con {
    padding: 0 70px;
}

.contact-text {
    font-size: 28px;
    font-style: italic;
    font-family: FreightSansProBook-Italic;
}

/* Mobil cihazlar için padding: 20px */
@media (max-width: 768px) {
    .body-con {
        padding: 0 20px;
    }
}

/* Masaüstü görünümü */
.services-mobile {
    display: none;
}
@media (max-width: 768px) {
    /* Mobil görünüm */
    .services-desktop {
        display: none;
    }
    .services-mobile {
        display: block;
    }
}

/* Sadece bu belirli sütunlar için mobilde ortalama */
@media (max-width: 768px) {
    .center-text {
        text-align: center; /* Metni mobilde ortala */
        margin-bottom: 15px; /* Alt boşluk ekleyelim */
    }

    .center-button {
        text-align: center; /* Butonu mobilde ortala */
    }

    .contact-button {
        display: inline-block; /* Butonun ortalanmasını sağlamak için */
        margin-top: 10px;
        font-size: 12px;
        padding: 4px 8px;
    }
}


/* Mobil Projeler */
.mobile-projects {
    display: none; /* Başlangıçta gizli */
    padding: 20px 0;
    text-align: center;
}

/* Title Container */
.project-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    padding: 0 20px;
}

/* Title Text */
.project-title {
    font-size: 30px;
    font-family: 'Nunito-Regular', sans-serif;
    font-weight: 700;
    font-style: normal;
    margin: 0;
}

/* Arrow Icon */
.project-arrow {
    font-size: 30px;
    font-weight: bold;
    color: black;
    position: relative;
}

/* Underline */
.title-underline {
    width: calc(100% - 40px);
    height: 1px;
    background-color: black;
    position: relative;
    top: -10px; /* Çizginin başlıkla hizalanması için negatif margin */
    padding: 0 20px;
    margin: 0 20px;
}

/* Slider Yapısı */
.mobile-projects-slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox için scrollbar gizler */
}

.mobile-projects-slider::-webkit-scrollbar {
    display: none; /* Diğer tarayıcılar için scrollbar gizler */
}

.mobile-project-item {
    flex: 0 0 auto;
    width: 70%;
    margin: 0 10px;
    scroll-snap-align: center;
    background-color: #ffffff;
    overflow: hidden;
    transition: transform 0.3s ease;
}
/* Title Link Styling (linkin tüm alanı kapsamasını sağlar) */
.project-title-link {
    text-decoration: none; /* Altı çizili olmasını engeller */
    color: inherit; /* Mevcut renk ayarını korur */
    display: block; /* Linkin tüm container'ı kapsaması için block yapıyoruz */
}
.mobile-project-image {
    width: 100%;
    height: 500px; /* Mobilde dikey bir kesit alabilmek için yükseklik belirleyelim */
    object-fit: cover; /* Görseli keserken taşan kısmı gizle */
    object-position: center; /* Görselin ortasından bir kesit al */
}

.mobile-project-info {
    padding: 10px;
}

.mobile-project-info h3 {
    font-size: 20px;
    margin: 10px 0;
}

.mobile-project-info p {
    font-size: 14px;
    color: #666;
}

/* Slider Navigation */
.slider-navigation {
    margin-top: 15px;
}

.slider-navigation span {
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    background-color: black;
    color: white;
    border-radius: 50%;
    margin: 0 5px;
}



/* Desktop için Mobil Görünümü Gizle */
@media (min-width: 768px) {
    .mobile-projects {
        display: none;
    }
}

/* Mobile için Desktop Görünümünü Gizle */
@media (max-width: 767px) {
    .desktop-projects {
        display: none;
    }
    .mobile-projects {
        display: block;
    }
    #image-title {
        color: white;
        position: absolute;
        bottom: 8%;
        right: 40px;  /* Detaylar için farklı bir konumda olabilir. */
        transform: translateX(100px); /* Başlangıçta sağdan giriş için */
        opacity: 0;
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        font-family: 'PoiretOne-Regular', sans-serif;
        font-size: 22px;
        padding-bottom: 10px;
    }

    #image-details {
        color: white;
        position: absolute;
        bottom: 6%;
        right: 40px;  /* Detaylar için farklı bir konumda olabilir. */
        transform: translateX(-100px); /* Başlangıçta sağdan giriş için */
        opacity: 0;
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        font-family: NunitoSans-LightItalic;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .image-section {
        order: -1; /* Görseli metnin üstüne alır */
    }
    .text-section p {
        font-size: 22px;
        line-height: 1.6;
        margin-bottom: 20px;
        letter-spacing: -0.36px;
        line-height: 40px;
    }
    .contact-text {
        font-size: 20px;
    }

}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10; /* Slaytların üstünde görünmesi için */
  cursor: pointer;
  font-size: 2rem;
  color: white; /* Renk tercihinize göre */
  opacity: 0.7;
  transition: opacity 0.3s;
}

.arrow:hover {
  opacity: 1; /* Hover efektinde görünürlüğü arttırın */
}

.arrow-left {
  left: 20px; /* Ekranın sol kenarından boşluk */
}

.arrow-right {
  right: 20px; /* Ekranın sağ kenarından boşluk */
}
