/********** Template CSS **********/
/* Version: 1.0.5 */

/* Professional Font Import - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Inter Font for all text elements */
body {
    font-family: "Inter", sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", sans-serif !important;
    font-weight: 600 !important;
}

p, span, div, a, button, input, textarea, select, label {
    font-family: "Inter", sans-serif !important;
}

/* Exclude Font Awesome icons from Poppins font */
.fa, .fas, .far, .fal, .fab, .bi, [class^="fa-"], [class*=" fa-"], [class^="bi-"], [class*=" bi-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "Bootstrap Icons" !important;
}

.bg-white {
    background-color: #f6f5f6 !important;
}
.bg-primary {
    background-color: #ffffff !important;
}
.border-primary {
    border-color: #0064b5 !important;
}

.text-primary {
    color: #0064b5 !important;
}
.text-warning {
    color: #0065b6 !important;
}

:root {
    --primary: #0064b5;
    --secondary: #51CFED;
    --light: #F8F2F0;
    --dark: #060315;
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-sm-social {
    width: 32px;
    height: 32px!important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    background-color: transparent;
}

.btn-sm-social:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
    border-top: none !important;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 10px;
    padding: 30px 20px;
    color: var(--dark) !important;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    outline: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 80px;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: 20px;
        left: 50%; 
        transform: translateX(-50%);
        transition: all 0.3s ease;
        background-color: var(--primary);
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 80%;
        left: 50%;
        transform: translateX(-50%);
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
/* Desktop slider height */
.header-carousel {
    width: 100%;
    overflow: hidden;
}

.header-carousel .owl-carousel-item {
    position: relative;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background-color: #060315;
    width: 100%;
}

.header-carousel .owl-carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

@media (max-width: 768px) {
    .header-carousel {
        width: 100%;
        overflow: hidden;
    }

    .header-carousel .owl-carousel-item {
        position: relative;
        height: 50vh;
        min-height: 300px;
        max-height: 60vh;
        background-color: #060315;
        width: 100%;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(135deg, #0064b5 0%, #51CFED 100%);
    padding: 40px 0 30px 0;
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
    font-size: 2.5rem !important;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
.about-text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.about-text .container {
    width: 100%;
}

@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service, Price & Team ***/
.service-item,
.price-item,
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item img,
.team-item img {
    transition: .5s;
}

.service-item .overflow-hidden {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .overflow-hidden a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .overflow-hidden img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Son service-item'ı ortala - tek başına kaldığında */
@media (min-width: 992px) {
    .service-item:last-child,
    .row.g-4 > .col-md-6.col-lg-4:has(.service-item):last-child {
        margin-left: auto;
        margin-right: auto;
    }
}

.service-item:hover img,
.team-item:hover img {
    transform: scale(1.1);
}

.service-item a.btn-slide,
.price-item a.btn-slide,
.team-item div.btn-slide {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: 0;
}

.service-item a.btn-slide i,
.service-item a.btn-slide span,
.price-item a.btn-slide i,
.price-item a.btn-slide span,
.team-item div.btn-slide i,
.team-item div.btn-slide span {
    position: relative;
    height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 0 35px 35px 0;
    transition: .5s;
    z-index: 2;
}

.team-item div.btn-slide span a i {
    padding: 0 10px;
}

.team-item div.btn-slide span a:hover i {
    background: var(--secondary);
}

.service-item a.btn-slide span,
.price-item a.btn-slide span,
.team-item div.btn-slide span {
    padding-left: 0;
    left: -100%;
    z-index: 1;
}

.service-item:hover a.btn-slide i,
.price-item:hover a.btn-slide i,
.team-item:hover div.btn-slide i {
    border-radius: 0;
}

.service-item:hover a.btn-slide span,
.price-item:hover a.btn-slide span,
.team-item:hover div.btn-slide span {
    left: 0;
}

.service-item a.btn-slide:hover i,
.service-item a.btn-slide:hover span,
.price-item a.btn-slide:hover i,
.price-item a.btn-slide:hover span {
    background: var(--secondary);
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    animation: pulse 1s ease-out .5s;
}

.testimonial-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact-page {
        max-width: 100% !important;
    }

    .contact-page .contact-form  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/map.png) center center no-repeat;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.footer > .container {
    position: relative;
    z-index: 1;
}

.footer .row {
    justify-content: center;
}

.footer .col-lg-3,
.footer .col-lg-4 {
    text-align: center;
    margin-bottom: 2rem;
}

.footer h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.footer .fst-italic {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
}

.footer .btn.btn-social {
    margin: 0 5px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.footer .btn.btn-social:hover {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 100, 181, 0.4);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: none;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.footer .btn.btn-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer .btn.btn-link:hover {
    color: #ffffff;
    letter-spacing: 0;
    padding-left: 0;
    text-decoration: none;
}

.footer .btn.btn-link:hover::before {
    width: 40px;
}

.footer .copyright {
    padding: 30px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2rem;
}

.footer .copyright a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .copyright a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
}

@media (min-width: 768px) {
    .footer .col-lg-3,
    .footer .col-lg-4 {
        text-align: left;
    }
    
    .footer h4::after {
        left: 0;
        transform: none;
    }
    
    .footer .btn.btn-link {
        text-align: left;
    }
    
    .footer .btn.btn-link::before {
        left: 0;
        transform: none;
    }
}

/* Referanslar Bölümü */
.reference-item {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.reference-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 100, 181, 0.1);
    transform: translateY(-5px);
}

.reference-item h5 {
    color: var(--dark);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Referanslar grid düzeni - simetrik görünüm için */
.row.g-4 > [class*="col-"] {
    display: flex;
}

.row.g-4 > [class*="col-"] > div {
    width: 100%;
}

/* Referanslar bölümü için özel düzenleme */
.container-xxl .row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

.container-xxl .row.g-4 > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.container-xxl .row.g-4 > [class*="col-"] > .reference-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Referanslar için son eleman ortalamasını kaldır - tüm referanslar sola yaslı olsun */
.references-row > .col-md-6.col-lg-4:last-child {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Galeri Bölümü */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 4px 20px rgba(0, 100, 181, 0.3);
    transform: translateY(-5px);
}

.gallery-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-color: #f5f5f5;
}

.gallery-image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-image-wrapper a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease, opacity 0.5s ease, filter 0.5s ease;
    background-color: #f5f5f5;
    display: block;
}

.gallery-image[src=""] {
    opacity: 0;
}

.gallery-image:not([src=""]) {
    opacity: 1;
}

/* Resim yüklenirken blur efekti */
.gallery-image.loading {
    filter: blur(5px);
    opacity: 0.5;
}

/* Resim yüklendiğinde */
.gallery-image.loaded {
    filter: blur(0);
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Modal Stilleri */
#galleryModal .modal-content {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

#galleryModal .modal-body {
    min-height: 100vh;
}

#galleryModal #modalImage {
    cursor: zoom-in;
}

/* Gallery Modal Navigation Buttons */
#galleryModal #prevButton,
#galleryModal #nextButton {
    transition: all 0.3s ease;
    opacity: 0.8;
}

#galleryModal #prevButton:hover,
#galleryModal #nextButton:hover {
    opacity: 1;
    transform: scale(1.1);
}

#galleryModal #prevButton:disabled,
#galleryModal #nextButton:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

#galleryModal #prevButton:disabled:hover,
#galleryModal #nextButton:disabled:hover {
    transform: scale(1);
}

/* Mobil için düzenlemeler */
@media (max-width: 768px) {
    .gallery-image-wrapper {
        height: 250px;
    }
    
    #galleryModal #prevButton,
    #galleryModal #nextButton {
        width: 45px !important;
        height: 45px !important;
        font-size: 0.9rem;
    }
    
    #galleryModal #prevButton {
        left: 10px !important;
        margin-left: 0 !important;
    }
    
    #galleryModal #nextButton {
        right: 10px !important;
        margin-right: 0 !important;
    }
}