:root {
    --fire-red: #cc0000;
    --dark-smoke: #121212;
    --border-gray: #333;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #e9e9e9;
}

/* Navigasyon */
.fire-nav {
    background: var(--dark-smoke);
    color: white;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--fire-red);
}

.fire-nav ul { display: flex; list-style: none; gap: 30px; }
.fire-nav a { color: #ccc; text-decoration: none; font-weight: bold; transition: 0.3s; }
.fire-nav a:hover { color: var(--fire-red); }

/* Hero Alanı */
.hero {
    background: url('itfaiye_arka_plan.jpg') center/cover;
    height: 400px;
    position: relative;
}

.hero-overlay {
    background: rgba(0,0,0,0.7);
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; color: white;
}

/* Rütbe Bölümü (Açılır-Kapanır) */
.rank-container {
    padding: 50px;
    background: white;
    transition: all 0.5s ease-in-out;
    max-height: 1000px;
    overflow: hidden;
}

.hidden {
    max-height: 0;
    padding: 0 50px;
    opacity: 0;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.rank-item {
    background: var(--dark-smoke);
    color: white;
    padding: 20px;
    border-right: 5px solid var(--fire-red);
    font-weight: bold;
}

/* Teklif Kartı */
.offer-card {
    background: white;
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 8px solid var(--fire-red);
}

.damage-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin: 25px 0;
}

.fire-btn {
    width: 100%; padding: 15px;
    background: var(--fire-red);
    color: white; border: none;
    font-weight: bold; cursor: pointer;
    font-style: italic; transition: 0.3s;
}

.fire-btn:hover { background: black; }

/* Ana Buton Tasarımı (3D Efektli ve Keskin) */
.fire-btn, .nav-btn, .rank-toggle-btn, .filter-bar button {
    position: relative;
    background: linear-gradient(145deg, #e30613, #b3050f); /* İtfaiye Kırmızısı Geçişi */
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    font-weight: 900;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 0 #8b0000, 0 8px 15px rgba(0,0,0,0.3); /* Altıncı katman 3D hissi */
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%); /* İtfaiye rütbe çizgileri gibi eğik kesim */
    margin: 10px;
    outline: none;
}

/* Üzerine Gelince (Hover) Efekti */
.fire-btn:hover, .nav-btn:hover, .rank-toggle-btn:hover, .filter-bar button:hover {
    transform: translateY(-2px); /* Hafif yukarı kalkma */
    background: linear-gradient(145deg, #ff0000, #cc0000);
    box-shadow: 0 6px 0 #8b0000, 0 12px 20px rgba(227, 6, 19, 0.4); /* Kırmızı parlama (Emergency Light) */
}

/* Tıklama (Active) Efekti */
.fire-btn:active, .nav-btn:active, .rank-toggle-btn:active, .filter-bar button:active {
    transform: translateY(4px); /* Butonun içine çökmesi */
    box-shadow: 0 0 0 #8b0000, 0 2px 5px rgba(0,0,0,0.3);
}

/* Parlama Efekti (Işık Süzmesi Geçişi) */
.fire-btn::after, .nav-btn::after, .rank-toggle-btn::after, .filter-bar button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.5s;
}

.fire-btn:hover::after, .nav-btn:hover::after, .rank-toggle-btn:hover::after, .filter-bar button:hover::after {
    left: 120%; /* Farenin geçtiği yöne doğru ışık kayar */
}

/* Filtre Butonları İçin Özel Renk (Seçili Buton Siyah) */
.filter-bar button.active {
    background: #1a1a1b;
    box-shadow: 0 4px 0 #000000;
}
/* Filtreleme Buton Grubu */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.filter-bar button {
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border: none;
    font-weight: bold;
    font-style: italic;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%); /* Rütbe eğimi  */
    transition: 0.3s;
}

.filter-bar button:hover {
    background: #D31111; /* İtfaiye Kırmızısı */
    transform: scale(1.05);
}

/* Ekipman Kartları */
.fire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 8%;
}

.fire-card {
    background: #fff;
    border-top: 5px solid #D31111;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-align: center;
    padding-bottom: 20px;
}

.fire-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Lightbox (Bilgi Penceresi) */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

#modalImg {
    max-width: 90%;
    max-height: 70vh;
    border: 3px solid #D31111;
    margin-bottom: 20px;
}
/* Form Konteynırı Geneli */
.form-container {
    max-width: 650px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    border-top: 10px solid #D31111; /* İtfaiye Kırmızısı */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Yazı Giriş Alanları (Email, Tel, Textarea) */
input[type="email"], 
input[type="tel"], 
input[type="text"], 
textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    background-color: #fcfcfc;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #333;
    box-sizing: border-box; /* Padding taşmasını engeller */
    transition: all 0.3s ease;
    border-radius: 0; /* Keskin köşeler için */
    outline: none;
}

/* Odaklanma (Focus) Efekti - Alarm Işığı Gibi */
input:focus, textarea:focus {
    border-color: #D31111; /* Odaklanınca kırmızıya döner */
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(211, 17, 17, 0.15);
    transform: translateX(5px); /* Yazmaya başlayınca hafif sağa kayar */
}

/* Placeholder (İpucu Yazısı) Stili */
::placeholder {
    color: #aaa;
    font-style: italic;
    font-size: 14px;
}

/* Form Başlıkları */
.form-container h2 {
    font-family: 'Oswald', sans-serif;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #1a1a1b;
}

/* Checkbox Alanı