/* Genel Stil */
body {
    background-color: #121212;
    color: #ffffff;
}

a {
    color: #0dcaf0;
    text-decoration: none;
}
a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Profil Resmi */
.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0dcaf0;
}

/* Genel Başlık ve İçerik Düzeni */
section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

#about h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0dcaf0;
    margin: 0.5rem auto 2rem;
}

section p, ul {
    margin-top: 1rem;
    line-height: 1.8;
}

/* "Hakkımda" Kısmı */
#about {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
#about p {
    text-align: center;
}

/* Proje Kartları */
.project-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 450px; /* Sabit minimum yükseklik */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}
.project-card h5 {
    color: #0dcaf0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.project-card p {
    color: #dddddd;
    margin-bottom: auto; /* Metni üstte tutar, butonu alta iter */
    line-height: 1.6;
    flex-grow: 1; /* Metnin kalan alanı doldurmasını sağlar */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: justify;
}
.project-card .btn {
    margin-top: 1rem; /* Butonun her zaman altta olmasını sağlar */
    align-self: flex-start;
}

/* Carousel için özel düzenleme */
#projectCarousel .carousel-item {
    padding: 20px 20px 40px 20px; /* Üst ve alt padding ekledik */
    position: relative;
}

/* Carousel animasyon efektleri */
#projectCarousel .carousel-inner {
    overflow: visible; /* Overflow'u visible yaptık */
    padding: 10px 0; /* Ekstra alan */
}

/* Carousel container'a da padding ekle */
#projectCarousel {
    padding: 20px 0;
}

/* Proje kartları animasyonu */
.project-card {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0);
}

.project-card.slide-out-left {
    transform: translateX(-120%);
    opacity: 0;
}

.project-card.slide-out-right {
    transform: translateX(120%);
    opacity: 0;
}

.project-card.moving-left {
    transform: translateX(-100%);
}

.project-card.moving-right {
    transform: translateX(100%);
}

/* Geçici proje kartları için */
.temp-project-card {
    position: absolute;
    top: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.temp-project-card.from-right {
    right: -100%;
}

.temp-project-card.from-left {
    left: -100%;
}

.temp-project-card.slide-to-position {
    right: 0;
    left: auto;
}

.temp-project-card.slide-to-position-left {
    left: 0;
    right: auto;
}

/* Geçici proje kartları için - Responsive düzeltmeler */
@media (max-width: 767px) {
    .temp-project-card {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .temp-project-card {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .temp-project-card {
        width: 33.33%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Proje kartları için hover efekti */
.project-card:hover {
    transform: translateY(-10px) !important; /* Biraz daha fazla yukarı çıkması için */
    box-shadow: 0 15px 35px rgba(13, 202, 240, 0.4);
    z-index: 10; /* Hover durumunda en üste çık */
    position: relative; /* Z-index'in çalışması için */
}

/* Bildiklerim - Teknoloji Logoları */
.tech-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.tech-logo {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.tech-logo img {
    width: 100%;
    height: auto;
}

/* Sosyal Medya */
.social-links {
    text-align: center;
    padding: 20px 0;
}
.social-logo {
    width: 50px;
    height: 50px;
    margin: 0 15px;
}

/* Footer */
.footer {
    background-color: #0d6efd;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

/* Navbar */
.navbar {
    background-color: #0d6efd;
    padding: 10px;
}
.navbar a {
    color: white !important;
    margin: 0 10px;
}
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    top: 50%;
    transform: translateY(-50%);
    outline: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: none !important;
    box-shadow: none !important;
}

.carousel-control-prev:active,
.carousel-control-next:active {
    outline: none !important;
    transform: translateY(-50%) !important;
}

.carousel-control-prev {
    left: -2%;
}

.carousel-control-next {
    right: -2%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #000;
    border-radius: 50%;
    padding: 10px;
}

/* Proje kartları için container düzenlemesi - Responsive */
#projectCarousel .col-project {
    display: flex;
    margin-bottom: 0;
    padding: 10px 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive grid düzenlemesi */
@media (max-width: 767px) {
    /* Mobil: 1 proje */
    #projectCarousel .col-project {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        min-width: 0; /* Flexbox sorunlarını önler */
    }
    
    #projectCarousel .carousel-item {
        padding: 10px 20px 30px 20px;
    }
    
    .project-card {
        min-height: 350px;
        width: 100%;
        max-width: 100%;
    }
    
    .project-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .project-card h5 {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet: 2 proje */
    #projectCarousel .col-project {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
        min-width: 0;
    }
    
    .project-card p {
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    /* Desktop: 3 proje */
    #projectCarousel .col-project {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        width: 33.333333%;
        min-width: 0;
    }
}

/* Responsive carousel controls */
@media (max-width: 767px) {
    .carousel-control-prev {
        left: 5px;
    }
    
    .carousel-control-next {
        right: 5px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
        padding: 5px;
    }
    
    /* Mobile touch optimizations */
    .carousel-control-prev,
    .carousel-control-next {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        touch-action: manipulation;
    }
}

