/* --- ROOT VARIABLES & HEAVY INDUSTRIAL LIGHT THEME --- */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-darker: #f1f5f9;
    --border-color: #cbd5e1;
    
    --primary-orange: #ea580c;
    --orange-glow: rgba(234, 88, 12, 0.2);
    --navy-blue: #0f172a;
    --steel-gray: #475569;
    
    --text-title: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* KESİNLİKLE RESİMSİZ, SAF TEKNİK CAD IZGARASI ARKA PLAN */
body {
    background-color: var(--bg-main);
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 25px 25px;
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.section {
    padding: 90px 0;
    position: relative;
}

.bg-darker {
    background-color: var(--bg-darker);
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

/* --- TYPOGRAPHY & TECHNICAL ACCENTS --- */
h1, h2, h3, h4 {
    color: var(--text-title);
}

.section-tag {
    font-family: var(--font-sub);
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    margin-top: 8px;
    border-radius: 2px;
}

.text-center .section-title::after {
    margin: 8px auto 0 auto;
}

.gradient-text {
    color: var(--primary-orange);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-sub);
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary-orange);
    color: #fff;
    box-shadow: 0 4px 15px var(--orange-glow);
    border-bottom: 3px solid #9a3412;
}

.btn-primary:hover {
    background: #c2410c;
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--navy-blue);
    color: #fff;
    border-bottom: 3px solid #0284c7;
}

.btn-outline:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--primary-orange);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--navy-blue);
    border: 2px solid var(--primary-orange);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-gear {
    font-size: 22px;
    color: var(--primary-orange);
}

.logo-bold {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--navy-blue);
}

.logo-accent {
    color: var(--primary-orange);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    margin-left: 3px;
}

.logo-sub {
    font-size: 9px;
    font-family: var(--font-sub);
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--steel-gray);
    display: block;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--text-title);
    text-decoration: none;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-orange);
}

.btn-contact {
    background: var(--primary-orange);
    padding: 8px 18px;
    border-radius: 4px;
    color: #fff !important;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 170px 0 90px 0;
    background: linear-gradient(180deg, #e2e8f0 0%, var(--bg-main) 100%);
    border-bottom: 2px solid var(--border-color);
}

.badge-industrial {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy-blue);
    border-left: 4px solid var(--primary-orange);
    color: #fff;
    padding: 8px 16px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtext {
    font-size: 18px;
    max-width: 780px;
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--navy-blue);
    padding: 20px;
    border-radius: 4px;
    box-shadow: var(--card-shadow);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 900;
    color: var(--navy-blue);
    display: block;
}

.stat-number small {
    font-size: 16px;
    color: var(--primary-orange);
    margin-left: 4px;
}

.stat-label {
    font-size: 13px;
    font-family: var(--font-sub);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- CARDS & PARKUR --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.parkur-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--navy-blue);
    padding: 30px;
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.parkur-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--primary-orange);
}

.parkur-card.highlighted {
    border-top: 4px solid var(--primary-orange);
}

.card-badge {
    display: inline-block;
    font-size: 12px;
    font-family: var(--font-sub);
    font-weight: 700;
    background: var(--navy-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.badge-amber { background: var(--primary-orange); }

.card-icon {
    font-size: 38px;
    color: var(--navy-blue);
    margin-bottom: 15px;
}

.parkur-specs {
    list-style: none;
    margin-top: 20px;
}

.parkur-specs li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.parkur-specs strong {
    color: var(--navy-blue);
    font-family: var(--font-sub);
    font-size: 16px;
}

/* VISUAL CARD - RESİMSİZ, KOYU LACİVERT İMALAT PANOSU */
.visual-card {
    background: var(--navy-blue);
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-orange);
    box-shadow: var(--card-shadow);
}

.visual-card h3 { color: #fff; font-family: var(--font-heading); margin-bottom: 15px; }
.visual-card p { color: #cbd5e1; }
.visual-icon { font-size: 40px; color: var(--primary-orange); margin-bottom: 20px; }

/* SERVICES & REFERENCES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--navy-blue);
    box-shadow: var(--card-shadow);
}

.service-box i {
    font-size: 36px;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.service-box h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 10px;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.ref-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 18px;
    text-align: center;
    font-family: var(--font-sub);
    font-weight: 700;
    color: var(--navy-blue);
    border-radius: 4px;
    border-bottom: 2px solid var(--border-color);
}

/* CONTACT */
.contact-form-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-orange);
    box-shadow: var(--card-shadow);
}

.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.btn-full { width: 100%; justify-content: center; }

.info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.info-item i { font-size: 22px; color: var(--primary-orange); margin-top: 2px; }
.info-item h4 { font-family: var(--font-sub); font-size: 18px; color: var(--navy-blue); }
.info-item a { color: var(--text-body); text-decoration: none; font-weight: 600; }

.footer {
    background: var(--navy-blue);
    color: #94a3b8;
    padding: 30px 0;
    font-size: 14px;
    border-top: 4px solid var(--primary-orange);
    text-align: center;
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 30px; }
    .nav-menu { display: none; }
}
/* PROGRAMLAR TABS & CALC STYLES */
.program-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: var(--navy-blue);
    padding: 12px 24px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--navy-blue);
    color: #ffffff;
    border-color: var(--navy-blue);
}

.tab-btn.active {
    border-bottom: 3px solid var(--primary-orange);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.calc-card {
    max-width: 650px;
    margin: 0 auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-orange);
    box-shadow: var(--card-shadow);
}

.calc-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--navy-blue);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.res-box {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed var(--border-color);
}

.res-box h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 12px;
}

.calc-table {
    width: 100%;
    border-collapse: collapse;
}

.calc-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-sub);
    font-size: 15px;
}

.calc-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--navy-blue);
}
/* ZİNCİR DİŞLİ TABLO VE KART DÜZENİ */
.zincir-calc-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.zincir-calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.zincir-calc-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
}

.btn-clear {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    font-weight: bold;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-clear:hover {
    background: #0369a1;
}

.zincir-calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
}

.zincir-calc-table th, .zincir-calc-table td {
    border: 1px solid #cbd5e1;
    padding: 6px 4px;
}

.zincir-calc-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
}

.zincir-calc-table .table-main-title th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: bold;
}

.zincir-calc-table .sub-label td {
    font-size: 12px;
    color: #64748b;
    background: #fafafa;
}

.zincir-calc-table .val-row td {
    font-size: 14px;
    font-weight: bold;
    color: #0284c7; /* Yavuzlar Dişli mavi renk vurgusu */
    background: #ffffff;
}

.input-readonly {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    text-align: center;
    width: 100%;
    font-weight: bold;
    color: #334155;
    padding: 4px;
}

.zincir-calc-table select, .zincir-calc-table input[type="number"] {
    width: 100%;
    padding: 4px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    box-sizing: border-box;
}
/* ZİNCİR DİŞLİ YAN YANA GÖRÜNÜM (GRID) */
.zincir-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* Sol ve Sağ Eşit İki Sütun */
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* KART TASARIMLARI */
.zincir-calc-card, .zincir-table-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.zincir-table-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    color: #1e293b;
}

/* SAĞ TABLO STİLLERİ VE ÇERÇEVESİ */
.table-responsive {
    max-height: 480px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.zincir-standart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: center;
}

.zincir-standart-table th {
    background: #f1f5f9;
    color: #1e293b;
    padding: 6px;
    border: 1px solid #cbd5e1;
    position: sticky;
    top: 0;
    z-index: 2;
}

.zincir-standart-table td {
    padding: 5px;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.zincir-standart-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.zincir-standart-table tbody tr:hover {
    background-color: #e0f2fe;
}

@media (max-width: 992px) {
    .zincir-grid {
        grid-template-columns: 1fr; /* Mobilde alt alta geçer */
    }
}
/* ==========================================
   MOBİL EKRAN İYİLEŞTİRMELERİ (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {

    /* 1. Tab Butonlarını Yan Kaydırılabilir Yap */
    .program-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .program-tabs .tab-btn {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 8px 14px;
    }

    /* 2. Form Girdilerini Tek Sütuna Düşür */
    .calc-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .calc-grid .form-group {
        grid-column: span 1 !important;
    }

    /* 3. Zincir Dişli Çift Kolonlu Yapısını Alt Alta Al */
    .zincir-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 4. Düz ve Helis Dişli Sonuç Tabloları */
    .calc-table tr {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .calc-table td {
        font-size: 13px;
        padding: 2px 0;
    }
    .calc-table td:last-child {
        text-align: right;
    }

    /* 5. Zincir Dişli Karmaşık Tablo Mobil Düzenlemesi */
    .zincir-calc-table th, 
    .zincir-calc-table td {
        font-size: 11px !important;
        padding: 6px 3px !important;
    }
    .zincir-calc-table input, 
    .zincir-calc-table select {
        font-size: 12px !important;
        padding: 4px !important;
    }

    /* 6. Geniş Tablolar İçin Yatay Kaydırma Desteği */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 10px;
    }
    .zincir-standart-table {
        min-width: 500px; /* Tablo içeriğinin ezilmesini önler */
    }
}
/* --- UYARI KUTUSU (Düz/Helis Undercut ve Kavrama) --- */
.uyari-kutu {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
}
.uyari-kutu strong {
    color: #856404;
}

/* --- SELECT / FORM İYİLEŞTİRME --- */
.calc-grid select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-body);
    cursor: pointer;
    transition: border-color 0.2s;
}
.calc-grid select:hover {
    border-color: var(--primary-orange);
}
.calc-grid select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
}

/* --- HELİS KAVRAMA TABLOSU --- */
#helis_kavrama .calc-table td {
    padding: 8px 0;
}
#helis_kavrama .calc-table td:first-child {
    color: var(--text-muted);
}
#helis_kavrama .calc-table td:last-child {
    text-align: right;
    font-weight: 700;
}

/* --- INPUT AS-YOU-TYPE VISUAL FEEDBACK --- */
.form-group input:valid:not(:placeholder-shown) {
    border-color: #28a745;
}
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* --- PARKUR MAKİNE GÖRSELİ --- */
.parkur-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.parkur-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 200, 255, 0.2);
}
.parkur-image[style*="display: none"] {
    display: none;
}

/* --- GOOGLE MAPS EMBED --- */
.map-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 0;
}
.map-container iframe {
    display: block;
    width: 100%;
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: whatsapp-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    color: white;
}
.whatsapp-float:active {
    transform: scale(0.95);
}
@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    50% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0);
    }
}
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 18px;
        right: 18px;
    }
}
