/* Modern Styles for Has Yiğit Oto Kurtarma */

:root {
    --primary-color: #202C45; /* Dark blue for professionalism */
    --secondary-color: #0d6efd; /* Blue for trust */
    --accent-color: #dc3545; /* Red for urgency */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1a2438;
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #0b5ed7;
    color: white;
}

.btn-danger {
    background: var(--accent-color);
    color: white;
}

.btn-danger:hover {
    background: #bb2d3b;
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #157347;
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: #212529;
}

.btn-warning:hover {
    background: #ffca2c;
    color: #212529;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    background: white !important;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    border-radius: 50%;
    margin-right: 15px;
    width: 60px !important;
    height: 60px !important;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    color: var(--dark-color) !important;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 70%;
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white !important;
}

/* Hero Slider */
.hero-section {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.carousel-item {
    height: 80vh;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background: rgba(32, 44, 69, 0.85);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 600px;
    text-align: left;
    left: 10%;
    right: auto;
    bottom: 20%;
}

.carousel-caption h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(32, 44, 69, 0.5);
    border-radius: 50%;
    padding: 20px;
    width: 30px;
    height: 30px;
}

/* Emergency Call Button */
.emergency-section {
    position: relative;
    margin: -50px 0 50px;
    z-index: 10;
}

.emergency-btn {
    background: var(--accent-color);
    color: white;
    border-radius: 50px;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
    transition: var(--transition);
}

.emergency-btn:hover {
    background: #bb2d3b;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.5);
}

.emergency-btn i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Services Cards */
.services-section {
    background: #f8f9fa;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: none;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card .card-body {
    padding: 30px;
    text-align: center;
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.service-card .card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Emergency Image */
.emergency-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.emergency-image img {
    transition: var(--transition);
    width: 100%;
    height: auto;
    max-width: 100%;
}

.emergency-image:hover img {
    transform: scale(1.05);
}

/* Quick Contact */
.contact-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    border: none;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-card .card-body {
    padding: 30px;
}

.contact-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-card .bi-telephone-fill {
    color: var(--primary-color);
}

.contact-card .bi-whatsapp {
    color: #25d366;
}

.contact-card .bi-envelope-fill {
    color: var(--warning-color);
}

/* Blog Section */
.blog-section {
    background: #f8f9fa;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-img {
    height: auto;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
}

.blog-card .card-body {
    padding: 25px;
}

.blog-card .card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.blog-card .card-text {
    color: #666;
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
    opacity: 0.1;
}

.testimonials-section h2 {
    color: white;
}

.testimonials-section h2:after {
    background: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.testimonial-card .card-body {
    padding: 30px;
    text-align: center;
}

.testimonial-card .bi-star-fill {
    color: #ffc107;
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial-card .card-text {
    font-style: italic;
    margin: 20px 0;
    font-size: 1.1rem;
}

.testimonial-card .card-title {
    color: white;
    font-weight: 600;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

.testimonials-section:hover .carousel-control-prev, 
.testimonials-section:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Location Section */
.location-section {
    text-align: center;
    padding: 60px 0;
}

.location-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.location-section .lead {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 0;
    position: relative;
}

.footer h5 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer .bi {
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer .bi:hover {
    transform: translateY(-5px);
    color: var(--accent-color);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 65px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        height: 70vh;
    }
    
    .carousel-item {
        height: 70vh;
    }
    
    .carousel-caption {
        max-width: 80%;
        bottom: 15%;
        padding: 20px;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .navbar-brand img {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }
    
    .carousel-item {
        height: 60vh;
    }
    
    .carousel-caption {
        max-width: 90%;
        left: 5%;
        bottom: 10%;
        padding: 15px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .emergency-section {
        margin: -30px 0 30px;
    }
    
    .emergency-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        line-height: 55px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .navbar-brand img {
        width: 45px !important;
        height: 45px !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 50vh;
    }
    
    .carousel-item {
        height: 50vh;
    }
    
    .carousel-caption {
        display: none;
    }
    
    .emergency-section {
        margin: -20px 0 20px;
    }
    
    .emergency-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .service-card .card-body {
        padding: 20px;
    }
    
    .contact-card .card-body {
        padding: 20px;
    }
    
    .blog-card .card-body {
        padding: 20px;
    }
    
    .navbar-brand img {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Blog Section Specific */
.card-img-top {
    height: auto;
    object-fit: contain;
}