:root {
    --primary: #d32f2f;
    --secondary: #1976d2;
    --dark: #212121;
    --gray: #757575;
    --light: #f5f5f5;
}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; line-height: 1.6; color: var(--dark); }
header { background: var(--dark); color: white; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); }
.logo span { color: white; }
nav a { color: white; text-decoration: none; margin-left: 20px; transition: 0.3s; }
nav a:hover { color: var(--primary); }
.header-right { display: flex; align-items: center; }
.phone-link { background: var(--primary); color: white; padding: 8px 15px; border-radius: 5px; text-decoration: none; margin-left: 20px; font-weight: bold; }

@media (max-width: 768px) {
    header { flex-direction: column; text-align: center; }
    nav { margin-top: 15px; }
    nav a { margin: 0 10px; font-size: 0.9rem; }
    .header-right { margin-top: 10px; }
    .phone-link { margin-left: 0; }
}

 .hero { 
     height: 60vh; 
     position: relative; 
     overflow: hidden; 
     display: flex; 
     flex-direction: column; 
     justify-content: center; 
     align-items: center; 
     color: white; 
     text-align: center; 
     padding: 0 20px; 
 }
 
 .hero-slider {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 1;
 }
 
 .slide {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-size: cover;
     background-position: center;
     opacity: 0;
     animation: slideShow 15s infinite;
 }
 
 .slide:nth-child(2) { animation-delay: 5s; }
 .slide:nth-child(3) { animation-delay: 10s; }
 
 @keyframes slideShow {
     0% { opacity: 0; transform: scale(1.1) translateX(20px); }
     5% { opacity: 1; transform: scale(1.05) translateX(0); }
     33% { opacity: 1; transform: scale(1.05) translateX(0); }
     38% { opacity: 0; transform: scale(1) translateX(-20px); }
     100% { opacity: 0; }
 }
 
 .hero-content {
     position: relative;
     z-index: 2;
     display: flex;
     flex-direction: column;
     align-items: center;
 }
.hero h1 { font-size: 3rem; margin-bottom: 10px; }
@media (max-width: 600px) { .hero h1 { font-size: 2rem; } }

.stats { background: var(--primary); color: white; padding: 40px 10%; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.stat-number { display: block; font-size: 2.5rem; font-weight: bold; }
.stat-label { font-size: 1rem; opacity: 0.9; }

.container { padding: 50px 10%; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border-top: 4px solid var(--primary); }

/* Graph Section Styling */
.graph-section h2 { margin-bottom: 10px; color: white; }
.graph-section p { color: #aaa; margin-bottom: 30px; }
#jobGraph { cursor: crosshair; }
#graph-container:hover #jobGraph { opacity: 0.8; }

/* Tıklanan Bilgi Paneli Stili */
.graph-info-panel {
    margin: 20px auto 0;
    padding: 15px;
    background: #252525;
    border: 1px solid var(--primary);
    border-radius: 5px;
    max-width: 600px;
    color: #eee;
    min-height: 50px;
    transition: all 0.3s ease;
}
.graph-info-panel.active { background: #333; box-shadow: 0 0 15px rgba(211, 47, 47, 0.3); }

.rules-box { background: #fff3f3; padding: 30px; border-radius: 10px; border-left: 10px solid var(--primary); margin-top: 40px; }
.rules-box h2 { color: var(--primary); }
.rules-list { list-style: none; padding: 0; }
.rules-list li { margin-bottom: 15px; padding-left: 30px; position: relative; }
.rules-list li::before { content: '✓'; position: absolute; left: 0; color: green; font-weight: bold; }
.rules-list li.optional { color: var(--gray); font-style: italic; border-left: 2px dashed var(--secondary); padding-left: 35px; margin-left: -5px; }
.rules-list li.optional::before { content: '★'; color: #fbc02d; left: 10px; }

.cta-button { background: var(--primary); color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; display: inline-block; margin-top: 20px; }

.testimonials { background: var(--light); padding: 50px 10%; text-align: center; }
.testimonial-card { font-style: italic; background: white; padding: 20px; border-radius: 8px; margin: 10px; display: inline-block; width: 300px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

footer { background: var(--dark); color: white; padding: 50px 10% 20px; margin-top: 50px; }

/* FAQ Section Styling */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.faq-item { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border-left: 4px solid var(--primary); }
.faq-item h3 { color: var(--dark); margin-top: 0; margin-bottom: 10px; font-size: 1.2rem; }
.faq-item p { color: var(--gray); font-size: 0.95rem; line-height: 1.5; }


.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col h4 { color: var(--primary); margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: white; }
.footer-bottom { text-align: center; border-top: 1px solid #444; margin-top: 40px; padding-top: 20px; font-size: 0.9rem; color: #888; }

/* Hatalı giriş alanlarının (input/select) çerçevesini kırmızı yapar */
.is-invalid {
    border: 1px solid var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
    background-color: #fff8f8 !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    animation: validationFadeIn 0.3s ease-out;
}

@keyframes validationFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.error-text {
    color: #d32f2f;
    font-size: 0.85rem;
    font-weight: bold;
    display: block;    /* Alta inmesini sağlar */
    width: 100%;       /* Satırı kaplar */
    margin-top: 5px;
    margin-bottom: 10px;
}

.input-error {
    border: 2px solid #d32f2f !important;
}
/* Mevcut .grid stilini koru veya bununla güncelle */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px; 
    margin-top: 30px; 
}

/* Hizmet Kartı Düzeni */
.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 0; /* İç boşluğu sıfırladık resim tam otursun */
    border-top: 4px solid var(--primary);
}

/* Resim Alanı - TÜMÜ EŞİT BOYDA */
.image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* Resimleri 16:9 formatında sabitler */
    overflow: hidden;
    background: #f0f0f0;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi bozmadan alanı dolduracak şekilde kırpar */
    display: block;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin-top: 0;
    color: var(--dark);
    font-size: 1.3rem;
}

/* Mobil için ufak dokunuş */
@media (max-width: 600px) {
    .image-wrapper {
        aspect-ratio: 4 / 3; /* Mobilde resimler biraz daha yüksek görünebilir */
    }
}