/* Custom CSS for Professional Plumbing Website */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffc107 !important;
}

/* Mobil menü açıkken navbar arka planını sabit mavi yap */
@media (max-width: 991.98px) {
    /* Mobil cihazlarda navbar her zaman mavi olsun */
    .navbar {
        background-color: #0d6efd !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-collapse.show {
        background-color: #0d6efd !important;
        border-radius: 10px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .navbar-collapse.show .navbar-nav {
        background-color: transparent;
    }
    
    .navbar-collapse.show .nav-link {
        color: white !important;
        padding: 10px 15px;
        border-radius: 5px;
        margin: 2px 0;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .navbar-collapse.show .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffc107 !important;
        transform: translateX(5px);
    }
    
    /* Mobil menü açıkken navbar'ın kendisi de mavi olsun */
    .navbar.show-mobile-menu {
        background-color: #0d6efd !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    /* Mobil menüde telefon butonu için özel stil */
    .navbar-collapse.show .btn-warning {
        margin-top: 10px;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        padding: 12px 15px;
        border-radius: 8px;
        font-weight: 600;
    }
    
    /* Mobil menüde navbar brand için özel stil */
    .navbar-brand {
        font-size: 1.3rem;
        font-weight: 700;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    transform: none !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/img/hero-bg2.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Service Accordion */
.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.accordion-button {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    padding: 20px 25px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 15px !important;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 25px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.accordion-body h5 {
    color: #0d6efd;
    margin-bottom: 15px;
}

.accordion-body h6 {
    font-size: 0.9rem;
    margin-top: 20px;
}

.accordion-body ul {
    padding-left: 20px;
}

.accordion-body li {
    margin-bottom: 8px;
    color: #666;
}

/* Service Image Container */
.service-image-container {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s ease;
    transform: scale(0.9);
}

.service-image.active {
    opacity: 1;
    transform: scale(1);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.service-image.active .image-overlay {
    transform: translateY(0);
    opacity: 1;
}

.image-overlay h5 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.image-overlay p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Service Cards (Old - keeping for reference) */
.card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    transition: all 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1);
}

/* Feature Icons */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Gallery */
.gallery-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

/* Contact Form */
.contact-form .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 12px 15px;
}

.contact-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.contact-form .btn {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Info */
.contact-info .d-flex {
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-info .d-flex:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.contact-info a {
    color: #0d6efd;
    font-weight: 500;
}

.contact-info a:hover {
    color: #0a58ca;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffc107 !important;
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 15px 15px 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .btn {
        margin-bottom: 10px;
    }
    
    .contact-info .d-flex {
        text-align: center;
        flex-direction: column;
    }
    
    .contact-info .d-flex i {
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
    
    /* Service section responsive */
    .service-image-container {
        height: 400px;
        margin-top: 30px;
    }
    
    .accordion-button {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 20px;
    }
    
    .accordion-body h5 {
        font-size: 1.1rem;
    }
    
    .accordion-body h6 {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation - YORUM SATIRI HALİNE GETİRİLDİ */
/* İhtiyaç duyulduğunda aktif edilebilir */
/*
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading.hidden {
    display: none;
}
*/

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background: #0a58ca;
    transform: translateY(-2px);
}

.scroll-to-top.visible {
    display: flex;
}

/* WhatsApp Fixed Button */
.whatsapp-fixed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.whatsapp-fixed:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-fixed i {
    font-size: 1.5rem;
}

/* Pulse Animation for WhatsApp Button */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
}

/* Custom Button Styles */
.btn-custom {
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Spacing */
section {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

/* Background Patterns */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(13, 110, 253, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
} 