﻿:root {
    --primary-color: #22252a;
    --secondary-color: #2e3238;
    --light-color: #fff;
    --dark-color: #333;
    --font-color: #000;
    --logo-turuncu: #f48420;
    --logo-siyah: #090808;
    --logo-beyaz: #d9d9d9;
}

/* Genel Ayarlar */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--primary-color) !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    background-color: #2e3238;
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    color: white;
}

.container {
    max-width: 75%;
}


.navbar-brand img {
    max-height: 80px;
    height: auto;
    width: auto;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease, font-weight 0.3s ease;
}

    .navbar-dark .navbar-nav .nav-link.active {
        opacity: 1;
        border-bottom: 2px solid #fff;
        padding-bottom: 4px;
    }

/* Tüm tab linkleri varsayılan görünüm (yazı beyaz, arkaplan şeffaf) */
.nav-tabs .nav-link {
    color: #fff;
    background-color: transparent;
    border: none;
}

    /* Aktif sekme özel stil (arkaplan beyaz, yazı koyu) */
    .nav-tabs .nav-link.active {
        background-color: #fff !important;
        color: #333 !important;
        border: none;
        border-radius: .2rem;
    }

    /* Hover efekti */
    .nav-tabs .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* İsteğe bağlı: Sekmelerin alt çizgisini kaldırmak için */
.nav-tabs {
    border-bottom: none;
}



/* PROJECTS */
#all-projects,
#completed-projects,
#ongoing-projects {

    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 20px;
    border-radius: 8px;
}


    /* İçerideki kartlara stil vermek için */
    #all-projects .project-card,
    #completed-projects .project-card,
    #ongoing-projects .project-card {
        height: 481px;
        background-color: #2e3238;
        color: var(--logo-beyaz);
        text-shadow: 1px 1px 6px rgb(0, 0, 0);
        border: none;
        border-radius: 2%;
        width: 100%;
        transition: transform 0.3s ease;
        cursor: pointer;
    }

        #all-projects .project-card:hover,
        #completed-projects .project-card:hover,
        #ongoing-projects .project-card:hover {
            transform: translateY(-5px);
        }

        #all-projects .project-card img,
        #completed-projects .project-card img,
        #ongoing-projects .project-card img {
            width: 100%;
            max-width: 450px;
            aspect-ratio: 1 / 1;
            height: auto;
            object-fit: cover;
            border-radius: 2%;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        #all-projects .project-card .card-body,
        #completed-projects .project-card .card-body,
        #ongoing-projects .project-card .card-body {
            padding: 0.25rem 0.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        #all-projects .project-card .card-title,
        #completed-projects .project-card .card-title,
        #ongoing-projects .project-card .card-title {
            font-size: 1rem;
            margin-bottom: 0;
            text-align: center;
        }



/* HAKKIMIZDA */
#hakkimizda-section {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

    #hakkimizda-section .hakkimizda-baslik {
        color: var(--primary-color);
        text-align: center;
    }

        #hakkimizda-section .hakkimizda-baslik p {
            font-style: italic;
            font-size: 1.1rem;
        }

        #hakkimizda-section .hakkimizda-baslik a {
            color: var(--primary-color);
            text-decoration: none;
        }

            #hakkimizda-section .hakkimizda-baslik a:hover {
                text-decoration: underline;
            }

.hakkimizda-foto {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: 450px;
}
/* FOOTER */
footer a {
    color: white;
    text-decoration: none;
}

    footer a:hover {
        text-decoration: underline;
    }

footer ul {
    list-style: none;
    padding-left: 0;
}

    footer ul li {
        color: white;
        margin-bottom: 0.5rem;
    }

footer .btn-icon {
    color: white;
    border: 1px solid white;
    margin-right: 0.25rem;
}

footer .col-md-2,
footer .col-md-3 {
    padding-bottom: 1rem;
}

/* BUTONLAR */
.btn-light {
    border: none;
}

    .btn-light:hover {
        color: var(--light-color);
        background-color: var(--primary-color);
        border: none;
    }

.invert-hover {
    background-color: #fff;
    color: #393E46;
    border: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

    .invert-hover:hover {
        background-color: var(--primary-color) !important;
        color: var(--light-color) !important;
        border-color: var(--light-color) !important;
    }

.invert-hover-2 {
    background-color: var(--light-color) !important;
    color: var(--primary-color) !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

    .invert-hover-2:hover {
        background-color: var(--primary-color) !important;
        color: var(--light-color) !important;
        border-color: var(--light-color) !important;
    }

/* LOGO FADE */
#logo-fade {
    background-color: #393E46;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

    #logo-fade.visible {
        opacity: 1 !important;
        pointer-events: all;
        background-color: #393E46 !important;
        transition: opacity 0.6s ease;
    }

.nav-link:focus {
    outline: none;
}

.tab-pane {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

    .tab-pane.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        position: relative;
        height: auto;
        overflow: visible;
    }




/* RESPONSIVE */
@media (min-width: 1400px) {
    .row-cols-lg-2 {
        --bs-columns: 2;
    }

    #all-projects .project-card img {
        width: 100%;
        max-width: 500px;
        height: 500px;
        display: block;
    }

    #all-projects .project-card {
        height: 531px;
    }
    #completed-projects .project-card img {
        width: 100%;
        max-width: 500px;
        height: 500px;
        display: block;
    }

    #completed-projects .project-card {
        height: 531px;
    }
    #ongoing-projects .project-card img {
        width: 100%;
        max-width: 500px;
        height: 500px;
        display: block;
    }

    #ongoing-projects .project-card {
        height: 531px;
    }
}

@media (min-width: 991.98px) and (max-width: 1400px) {
    .row-cols-md-2 {
        --bs-columns: 2;
    }

    #all-projects .project-card img {
        width: 100%;
        max-width: 370px;
        height: 370px;
        display: block;
    }
    #all-projects .project-card {
        height: 401px;
    }
    #completed-projects .project-card img {
        width: 100%;
        max-width: 370px;
        height: 370px;
        display: block;
    }

    #completed-projects .project-card {
        height: 401px;
    }
    #ongoing-projects .project-card img {
        width: 100%;
        max-width: 370px;
        height: 370px;
        display: block;
    }

    #ongoing-projects .project-card {
        height: 401px;
    }
    }

@media (min-width: 768px) and (max-width: 991.98px) {
    .row-cols-md-2 {
        --bs-columns: 2;
    }

    #all-projects .project-card {
        height: auto;
    }

        #all-projects .project-card .card-img-top {
            height: 400px;
        }
    #completed-projects .project-card {
        height: auto;
    }

        #completed-projects .project-card .card-img-top {
            height: 400px;
        }
    #ongoing-projects .project-card {
        height: auto;
    }

    #ongoing-projects .project-card .card-img-top {
        height: 400px;
    }
}

@media (max-width: 767.98px) {

        #all-projects {
        display: flex;
        flex-direction: column;
    }

    .hakkimizda-foto {
        max-width: 100%;
        height: 250px;
    }

    #hakkimizda-section .hakkimizda-baslik p {
        font-style: italic;
        font-size: 0.8rem;
    }

    #hakkimizda-section .hakkimizda-baslik h2 {
        margin-top: 1.5rem;
    }

    #all-projects .project-card .card-img {
        width: 100%;
        max-width: 300px;
        height: 300px;
        display: block;
    }

    #all-projects .project-card {
        height: 331px;
        width: 100%;
    }
    #completed-projects .project-card .card-img {
        width: 100%;
        max-width: 300px;
        height: 300px;
        display: block;
    }

    #completed-projects .project-card {
        height: 331px;
        width: 100%;
    }
    #ongoing-projects .project-card .card-img {
        width: 100%;
        max-width: 300px;
        height: 300px;
        display: block;
    }

    #ongoing-projects .project-card {
        height: 331px;
        width: 100%;
    }

    .card-body h5 {
        font-size: 1rem;
    }

    .card-body p {
        font-size: 0.85rem;
    }

    .navbar-brand img {
        height: 75px;
        width: auto;
    }
}

.thumbnail-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
}
