:root {
    --primary-color: #ee1d23;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Taşma Sorunu Çözümü - Bu kodları CSS dosyanızın başına ekleyin */

/* Genel taşma kontrolü */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Container'lar için taşma kontrolü */
.container, .container-fluid {
    overflow-x: hidden;
    /* max-width: 100%; */
}

/* Row'lar için taşma kontrolü */
.row {
    /* margin-left: 0;
    margin-right: 0; */
    /* overflow-x: hidden;
    overflow-y: hidden; */
}

/* Hero section taşma düzeltmesi */
.hero {
    overflow-x: hidden;
    width: 100%;
}

.hero::before {
    max-width: 50%;
    overflow: hidden;
}

/* Navbar taşma düzeltmesi */
.navbar {
    width: 100%;
    overflow-x: hidden;
}

.navbar-collapse {
    overflow-x: hidden;
}

/* Service cards için taşma düzeltmesi */
.service-card {
    max-width: 100%;
    /* overflow: hidden; */
    word-wrap: break-word;
}

/* Form elements taşma düzeltmesi */
.form-control {
    max-width: 100%;
    box-sizing: border-box;
}

/* Contact info taşma düzeltmesi */
.contact-info {
    max-width: 100%;
    overflow: hidden;
}

.contact-item {
    flex-wrap: wrap;
    word-break: break-word;
}

/* Footer taşma düzeltmesi */
.footer {
    overflow-x: hidden;
    width: 100%;
}

.footer-links {
    word-wrap: break-word;
}

/* Responsive düzeltmeler */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .service-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    position: relative;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, rgba(238, 29, 35, 0.05) 0%, rgba(238, 29, 35, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn-primary-custom {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.btn-primary-custom:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 29, 35, 0.3);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 29, 35, 0.3);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Services */
.services {
    background: var(--bg-light);
    overflow: hidden;
    min-height: max-content;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
}

/* Why Choose Us */
.why-choose {
    background: linear-gradient(135deg, rgba(238, 29, 35, 0.05) 0%, rgba(238, 29, 35, 0.1) 100%);
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
    margin: 0;
}

/* About */
.about-img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Testimonials */
.testimonials {
    background: var(--bg-light);
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    margin: 0 15px;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 600;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-dark);
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Contact */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(238, 29, 35, 0.25);
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(238, 29, 35, 0.4);
}

/* Footer */
.footer {
    background: #222;
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        display: block;
        text-align: center;
        margin: 10px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
}

.whatsapp-btn {
    background-color: #25D366;
}

.call-btn {
    background-color: var(--primary-color);
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 168px;
    right: 24px;
    width: 50px;
    height: 50px;
    background-color: var(--text-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-color);
}