:root {
    --primary: #005885;
    --primary-hover: #004064;
    --primary-light: #cbd5e1;
    --accent: #e8a317;
    --bg-body: #f4f6f8;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
}

/* SLIDER İÇİ ÇOKLU KARE FOTOĞRAF GRIDI */
.slide-image-wrapper.slider-grid-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    background: #0f172a;
    box-sizing: border-box;
}

.grid-photo-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.grid-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.grid-photo-item:hover img {
    transform: scale(1.05);
}

/* Portfolyo Kartı Temel Yapısı */
.portfolio-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 16px 32px rgba(15, 61, 94, 0.18) !important;
}

.portfolio-card-img-container img {
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-img-container img {
    transform: scale(1.08);
}

.portfolio-desc-reveal {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.portfolio-card:hover .portfolio-desc-reveal {
    max-height: 150px;
    opacity: 1;
    margin-top: 8px;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

html, body { 
    height: 100%; 
}

body { 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    margin: 0;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

/* HEADER & NAVBAR */
header {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 0; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    cursor: pointer; 
}

.logo-img { 
    height: 50px; 
    width: auto; 
    object-fit: contain; 
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.logo-title { font-size: 18px; font-weight: 700; color: #374151; }
.brand-highlight { color: var(--primary); font-weight: 900; }
.logo-subtitle { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; margin-top: 2px; }

.nav-menu { display: flex; align-items: center; gap: 16px; }
.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background-color: #f1f5f9; }

.container { 
    max-width: 1140px; 
    width: 100%;
    margin: 0 auto; 
    padding: 0 16px; 
    box-sizing: border-box;
}

main, .main-content {
    flex: 1 0 auto;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 40px;
}

.tab-content { display: none; width: 100%; }
.tab-content.active { display: block; }

/* SLIDER SECTION */
.slider-section { margin-bottom: 24px; }
.slider-wrapper { 
    position: relative; 
    background-color: #0f172a; 
    color: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.slide-container { 
    display: flex; 
    transition: transform 0.5s ease-in-out; 
}

.slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: center;
    background: #1e293b;
    height: 500px; 
    min-height: 500px;
    max-height: 500px;
}

.slide-content {
    padding: 40px 48px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.slide-tag {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-content h2 { font-size: 26px; font-weight: 800; color: #ffffff; line-height: 1.3; }
.slide-content p { font-size: 15px; color: #94a3b8; line-height: 1.6; }

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
    margin-top: 8px;
    transition: background 0.2s;
}

.slide-btn:hover { background: var(--primary-hover); }

.slide-image-wrapper {
    width: 100%;
    height: 500px; 
    min-height: 500px;
    max-height: 500px;
    position: relative;
    overflow: hidden;
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    display: block;
}

.slider-controls { 
    position: absolute; 
    bottom: 20px; 
    right: 24px; 
    display: flex; 
    gap: 8px; 
    z-index: 10; 
}

.btn-slide { 
    background: rgba(15, 23, 42, 0.7); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: white; 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 18px; 
    transition: all 0.2s ease;
}

.btn-slide:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.used-machines-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.expandable-machine-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* SERVİS BÖLÜMÜ & FORMLAR */
.service-section {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent);
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    width: 100%;
}
.service-header h2 { font-size: 18px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.service-header p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.service-features { display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-item:hover { transform: translateX(4px); box-shadow: 0 4px 8px rgba(0,0,0,0.06); }
.feature-icon-box { width: 38px; height: 38px; background-color: #eff6ff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.feature-text h4 { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.feature-text p { font-size: 11px; color: var(--text-muted); }

.service-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.badge-pill { background-color: #f1f5f9; border: 1px solid #cbd5e1; color: #334155; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 20px; }

.quick-contact-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0f172a, #005885);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 4px;
}
.qc-icon { font-size: 20px; background: rgba(255, 255, 255, 0.15); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.qc-info span { display: block; font-size: 10px; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.5px; }
.qc-info strong { font-size: 15px; font-weight: 800; color: #ffffff; }

.service-form { background: #f8fafc; padding: 14px; border-radius: 8px; border: 1px solid var(--border); }
.form-group { margin-bottom: 10px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 3px; color: #1f2937; }
.form-control { width: 100%; padding: 8px 10px; font-size: 12px; border: 1px solid var(--border); border-radius: 6px; outline: none; box-sizing: border-box; }
.btn-submit-service {
    width: 100%; background-color: var(--success); color: white; border: none; padding: 10px;
    border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background 0.2s;
}

footer { 
    background-color: #0f172a; 
    color: #94a3b8; 
    font-size: 12px; 
    text-align: center; 
    padding: 16px 0; 
    width: 100%;
    flex-shrink: 0;
}

@media (max-width: 868px) {
    .nav-menu { display: none; }
    .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .slide { grid-template-columns: 1fr; }
    .slide-image-wrapper { height: 220px; min-height: 220px; order: -1; }
    .slide-content { padding: 20px; }
    .slide-content h2 { font-size: 18px; }
}
/* Sol Sabit Katalog Stilleri - Güncellenmiş ve Çakışmasız */
.fixed-left-catalog {
    position: fixed;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    z-index: 99;
    width: 220px; /* Genişlik içerik çakışmasını önlemek için ideal boyuta getirildi */
    border-radius: 0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.catalog-card {
    position: relative;
    width: 100%;
    height: 600px; /* Dikey yükseklik ekran taşmalarını önlemek için optimize edildi */
    background: #0f172a;
    border-radius: 0 !important;
}

.catalog-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.catalog-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 2;
}

.catalog-btn {
    width: 100%;
    background: #0284c7;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 14px;
    border-radius: 0 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
    transition: background 0.2s ease;
}

.catalog-btn:hover {
    background: #0369a1;
}

/* Yeterli sol boşluk olmayan ekranlarda (1600px altı) içeriğin üstüne binmemesi için gizle */
@media (max-width: 1600px) {
    .fixed-left-catalog {
        display: none !important;
    }
}