/**
 * Main Stylesheet for the Corporate Website
 */

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Header Styles */
.top-bar {
    font-size: 0.85em;
    background-color: var(--dark-color);
    color: #fff;
    padding: 0.4rem 0;
}

.top-bar .contact-info span {
    display: inline-block;
    margin-right: 15px;
    font-size: 0.85rem;
}

.top-bar .contact-info span i {
    margin-right: 5px;
}

.top-bar .social-links a {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.9rem;
    color: #fff;
    transition: all 0.3s ease;
}

.top-bar .social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.header .navbar {
    padding: 15px 0;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 50px;
}

.navbar .nav-item {
    margin: 0 2px;
    display: flex;
    align-items: center;
}

.navbar .nav-link {
    padding: 0.5rem 0.8rem !important;
    margin: 0 0.2rem;
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: none;
    transition: width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.2s ease;
    opacity: 0;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
    opacity: 1;
}

/* Slider Section */
.slider-section {
    position: relative;
    overflow: hidden;
}

.slider-section .carousel {
    height: 600px;
}

.slider-section .carousel-inner,
.slider-section .carousel-item {
    height: 100%;
}

.slider-section .carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-section .carousel-caption {
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
    top: 50%;
    margin-top: -120px;
    width: 80%;
    max-width: 800px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 5px;
}

.slider-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.slider-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Features Section */
.features-section {
    padding: 30px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.feature-box {
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.feature-box i {
    color: var(--primary-color);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 20px auto 0;
}

.service-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--primary-color);
    transition: height 0.3s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card .service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--heading-color);
}

.service-card p {
    margin-bottom: 20px;
    color: #6c757d;
}

.service-card .btn {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-card .btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    border-radius: 10px;
    color: #fff;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cta-description {
    margin-bottom: 0;
    opacity: 0.9;
}

.cta-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--dark-color);
    color: #fff;
    transform: translateY(-3px);
}

/* About Section */
.about-section {
    background-color: #fff;
    padding: 80px 0;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.about-image img {
    width: 100%;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    background-color: var(--primary-color) !important;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-content h2 {
    position: relative;
    margin-bottom: 25px;
    color: var(--heading-color);
}

.about-content h2:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-content .text-primary {
    color: var(--primary-color) !important;
}

.about-content .icon-box {
    background-color: var(--primary-color) !important;
}

/* Footer */
.footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 0;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: #fff;
    padding-left: 5px;
    text-decoration: none;
}

.footer .social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.footer .social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #111;
    padding: 15px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    color: #999;
    font-size: 0.9rem;
}

/* Sayfa Başına Dön Butonu */
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color, #1a5f7a);
    color: white;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    text-decoration: none;
    opacity: 1;
    visibility: visible;
    position: relative; /* tooltip için */
}

.back-to-top i {
    font-size: 22px;
}

.back-to-top:hover {
    background-color: var(--primary-dark, #164450);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    color: white;
}

/* Floating Butonlar */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    position: relative;
}

.floating-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    color: white;
}

.floating-button i {
    font-size: 22px;
}

.floating-button::before {
    content: attr(title);
    position: absolute;
    right: 60px;
    padding: 5px 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.floating-button:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Buton Renkleri */
.phone-button {
    background-color: #4CAF50;
}

.whatsapp-button {
    background-color: #25D366;
}

.contact-button {
    background-color: #2196F3;
}

/* References Section */
.references {
    background-color: #f8f9fa;
    padding: 80px 0;
}

/* Ana sayfadaki referans kartları */
.reference-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    height: 230px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.reference-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.reference-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color, #3498db));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reference-item:hover::after {
    transform: scaleX(1);
}

.reference-logo {
    height: 160px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.reference-logo img {
    max-height: 140px;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: grayscale(30%);
}

.reference-item:hover .reference-logo img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.reference-name {
    font-size: 1rem;
    color: #333;
    margin: 0;
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.reference-item:hover .reference-name {
    color: var(--primary-color);
}

/* Referanslar sayfasındaki kart stilleri */
.references-section .reference-item {
    height: auto;
    min-height: 400px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    border: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.references-section .reference-logo {
    height: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.references-section .reference-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0) 60%, rgba(0,0,0,0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.references-section .reference-item:hover .reference-logo::before {
    opacity: 1;
}

.references-section .reference-logo img {
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(30%);
}

.references-section .reference-item:hover .reference-logo img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.references-section .reference-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.references-section .reference-content h4 {
    margin-bottom: 15px;
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 12px;
}

.references-section .reference-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.references-section .description-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.references-section .btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: auto;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.references-section .btn-outline-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.references-section .btn-outline-primary i {
    transition: transform 0.3s ease;
}

.references-section .btn-outline-primary:hover i {
    transform: translateX(4px);
}

/* Mobil Cihazlar için Referans Düzenlemeleri */
@media (max-width: 767px) {
    /* Ana sayfadaki referans kartları için mobil düzenlemeler */
    .reference-item {
        height: 200px;
        padding: 20px 15px;
    }
    
    .reference-logo {
        height: 130px;
        margin-bottom: 15px;
    }
    
    .reference-logo img {
        max-height: 110px;
    }
    
    .reference-name {
        font-size: 0.9rem;
    }
    
    /* Referanslar sayfası için mobil düzenlemeler */
    .references-section .reference-item {
        min-height: 350px;
        padding: 25px 20px;
    }
    
    .references-section .reference-logo {
        height: 140px;
        margin-bottom: 20px;
    }
    
    .references-section .reference-logo img {
        max-height: 120px;
    }
    
    .references-section .reference-content h4 {
        font-size: 1.1rem;
        padding-bottom: 10px;
        margin-bottom: 12px;
    }
    
    .references-section .description-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .references-section .btn-outline-primary {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

/* Navbar Scroll */
.navbar-scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar-scrolled .navbar-brand {
    color: var(--dark-color) !important;
}

.navbar-scrolled .nav-link {
    color: var(--dark-color) !important;
}

.navbar-scrolled .nav-link:hover {
    color: var(--primary-color) !important;
}

.top-bar-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Mobile Menu */
@media (max-width: 991px) {
    .mobile-menu-open {
        overflow: hidden;
    }
    
    /* Eski mobile menu stillerini kaldırıyoruz */
    /* topbar.css dosyasındaki versiyonu kullanılacak */
}

@media (max-width: 767px) {
    .top-bar .contact-info span {
        display: block;
        margin-bottom: 5px;
        text-align: center;
    }
    
    .top-bar .social-links {
        text-align: center;
        margin-top: 5px;
    }
    
    .slider-section .carousel {
        height: 350px;
    }
    
    .slider-section h1 {
        font-size: 1.8rem;
    }
    
    .slider-section p {
        font-size: 1rem;
    }
    
    .slider-section .carousel-caption {
        width: 90%;
        padding: 20px;
        margin-top: -80px;
    }
    
    /* Ana sayfadaki referans kartları için mobil düzenlemeler */
    .reference-item {
        height: 180px;
        padding: 15px;
    }
    
    .reference-logo {
        height: 100px;
        margin-bottom: 10px;
    }
    
    .reference-logo img {
        max-height: 80px;
    }
    
    .reference-name {
        font-size: 0.85rem;
    }
    
    /* Referanslar sayfası için mobil düzenlemeler */
    .references-section .reference-item {
        min-height: 320px;
        padding: 20px;
    }
    
    .references-section .reference-logo {
        height: 120px;
        margin-bottom: 15px;
    }
    
    .references-section .reference-logo img {
        max-height: 90px;
    }
    
    .references-section .reference-content h4 {
        font-size: 1.1rem;
    }
    
    .references-section .description-text {
        font-size: 0.9rem;
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 575px) {
    .slider-section .carousel {
        height: 300px;
    }
    
    .slider-section h1 {
        font-size: 1.5rem;
    }
    
    .slider-section p {
        font-size: 0.9rem;
    }
}

/* Galeri Stilleri */
.gallery-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.filter-buttons {
    margin-bottom: 40px;
}

.filter-buttons .btn {
    margin: 0 5px 10px;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-buttons .btn-outline-primary:hover {
    transform: translateY(-3px);
}

.filter-buttons .active {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-container {
    margin-bottom: 30px;
}

.gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    background-color: #fff;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

.gallery-image {
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-item .content {
    padding: 20px;
    text-align: center;
}

.gallery-item .content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--heading-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.gallery-item .content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.gallery-item .content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 oran */
    height: 0;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 90vh;
    object-fit: contain;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 10000;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Mobil Görünüm */
@media (max-width: 767px) {
    .gallery-item {
        margin-bottom: 20px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .gallery-item .content {
        padding: 15px;
    }
    
    .gallery-item .content h4 {
        font-size: 1.1rem;
    }
    
    .filter-buttons .btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* İletişim Sayfası Stilleri */
.contact-section {
    padding: 70px 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
}

.contact-info h5 {
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form-wrapper {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
}

.service-tags .badge {
    font-size: 0.85rem;
    padding: 8px 15px;
    border-radius: 30px;
}

.emergency-info {
    background-color: #f8f9fa;
}

.map-section {
    background-color: #ffffff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.social-media a {
    padding: 8px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.social-media a:hover {
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}