/* ======================================================= */
/* 1. KÖK TANIMLAMALAR (TÜM TEMEL DEĞİŞKENLER) */
/* ======================================================= */
:root {
    /* Drone Tech Koyu Tema Renk Paleti */
    --ti-bg: #050814;
    /* Ana Koyu Arka Plan (Neredeyse Siyah) */
    --ti-bg-alt: #0d111f;
    /* Hafif Koyu Arka Plan (Bölümler Arası Fark) */
    --ti-primary: #ebb134;
    /* Turuncu/Sarı Vurgu Rengi */
    --ti-text: #f9fafb;
    /* Açık Metin Rengi */
    --ti-text-muted: #ffffff;
    /* İkincil Metin Rengi (Gri) */
    --ti-border: #1f2933;
    /* Sınır/Çizgi Rengi */

    /* Genel Yapı Değişkenleri */
    --ti-header-height: 80px;
    --ti-transition: 0.3s ease;
    --ti-max-width: 1120px;
    --ti-radius-base: 8px;
    --ti-shadow-base: 0 8px 18px rgba(0, 0, 0, 0.2);
    --ti-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ======================================================= */
/* 2. GENEL VE TEMEL STİLLER (SIFIRLAMA) */
/* ======================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,

body {
    margin: 0;
    font-family: var(--ti-font-main);
    line-height: 1.6;
    background: var(--ti-bg);
    color: var(--ti-text);
    overflow-x: hidden;
}

.ti-container {
    width: 100%;
    max-width: var(--ti-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3 {
    line-height: 1.2;
    color: var(--ti-text);
}

/* ======================================================= */
/* 3. HEADER VE NAVİGASYON STİLİ */
/* ======================================================= */
.ti-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ti-header-height);
    z-index: 20;
    background: rgba(5, 8, 20, 0.55);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ti-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ti-logo img {
    height: 55px;
    width: auto;
}

.ti-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.ti-nav a {
    text-decoration: none;
    color: var(--ti-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color var(--ti-transition), border-color var(--ti-transition);
}

.ti-nav a:hover,
.ti-nav .active-link {
    color: var(--ti-text);
    border-color: var(--ti-primary);
}

/* Mobil Hamburger Buton ve Dropdown Stilleri (Gerekirse açılıp kapanma JS ile sağlanmalı) */
.ti-nav-toggle {
    display: none;
    /* Masaüstünde gizle */
}

/* Diğer dropdown ve mobil menü stilleri buraya eklenebilir */

/* ======================================================= */
/* 4. LAYOUT VE BÖLÜM STİLLERİ */
/* ======================================================= */

.ti-main {
    padding-top: var(--ti-header-height);
    /* Header altından başla */
}

.ti-section {
    padding: 100px 0;
}

.ti-section-dark {
    background: var(--ti-bg);
}

.ti-section-alt {
    background: var(--ti-bg-alt);
}

/* Aksesuarlar */
.ti-eyebrow {
    display: block;
    color: var(--ti-primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ti-center-text h1,
.ti-center-text h2,
.ti-center-text .ti-section-intro-center {
    text-align: center;
}

.ti-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.ti-section-intro-center {
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--ti-text-muted);
}

/* --- 4.1. HERO BÖLÜMÜ (Normal/Small) --- */
.ti-hero {
    position: relative;
    height: 70vh;
    /* Veya 45vh (Small Hero) */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.ti-hero-small {
    height: 45vh;
}

.ti-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5, 8, 20, 0.85), rgba(5, 8, 20, 0.7));
    z-index: 1;
}

.ti-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: var(--ti-text);
    padding: 0 20px;
}

.ti-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.ti-hero-content p {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #e0e0e0;
}


/* --- 4.2. İKİ KOLONLU LAYOUT (GÖRSEL + METİN) --- */
.two-column {
    display: grid;
    /* Görsel: 1.2fr, Metin: 1fr - Metin kolonunun daha dar kalmasını sağlar */
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.ti-image-box {
    position: relative;
}

.ti-image-box img {
    width: 100%;
    display: block;
    border-radius: var(--ti-radius-base);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Metin İçerik Kutusu - SAĞA HİZALAMA ÇÖZÜMÜ BURADA */
.ti-text-content {
    max-width: 550px;
    padding: 0;
    /* Metin bloğunu sağa dayamak için kullanılır (Makine sayfasındaki yerleşim için) */
    margin-left: auto;
    margin-right: 0;
}

.ti-text-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: right;
    /* Başlığı sağa hizala */
}

.ti-text-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 30px;
    text-align: right;
    /* Paragrafı sağa hizala */
}

.ti-eyebrow {
    text-align: right;
    /* Eyebrow'u sağa hizala */
}


/* Kabiliyetler Listesi Stili (Metin Sağda Olacak Şekilde Düzenlendi) */
.ti-list-features {
    text-align: right;
    /* Listeyi içeren div'i sağa hizala */
}

.ti-list-features h3 {
    font-size: 1rem;
    color: var(--ti-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ti-list-features ul {
    list-style: none;
    padding: 0;
}

.ti-list-features li {
    padding-left: 0;
    padding-right: 1.5rem;
    /* Madde işareti sağa geçtiği için padding'i sağa ekle */
    position: relative;
    margin-bottom: 8px;
    color: var(--ti-text-muted);
}

.ti-list-features li::before {
    content: "•";
    position: absolute;
    left: unset;
    right: 0;
    /* Madde işaretini sağa taşı */
    color: var(--ti-primary);
    font-weight: bold;
}

/* Sol Metin - Sağ Görsel (reverse-on-mobile sınıfı, Üretim sayfasındaki gibi) */
.reverse-on-mobile {
    grid-template-areas: "text image";
}

/* --- 4.3. MALZEME KARTLARI (MATERIAL GRID) --- */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    text-align: center;
}

.material-card {
    background: var(--ti-bg);
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-base);
    padding: 25px;
    box-shadow: var(--ti-shadow-base);
}

.material-card h3 {
    font-size: 1.2rem;
    color: var(--ti-text);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--ti-primary);
    padding-bottom: 5px;
    text-align: center;
}

.material-card ul {
    list-style: none;
    padding: 0;
}

.material-card li {
    margin-bottom: 5px;
    color: var(--ti-text-muted);
    text-align: center;
}

/* ======================================================= */
/* 5. FOOTER STİLİ */
/* ======================================================= */
.site-footer {
    background: #020617;
    color: #cbd5e1;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    text-align: left;
}

.footer-contact h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
}

.footer-contact strong {
    color: var(--ti-primary);
    font-weight: 600;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #64748b;
}

/* =========================
   CNC MAKİNE SAYFASI
========================= */

.cnc-page {
    background: #ffffff;
    padding: 80px 0;
}

.cnc-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* Header */
.cnc-page-header {
    margin-bottom: 50px;
}

.cnc-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
}

.cnc-page-header h1 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 14px;
    color: #111;
}

.cnc-page-header p {
    font-size: 20px;
    line-height: 1.7;
    color: #555;
}

/* Grid */
.cnc-machine-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Card */
.cnc-machine-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cnc-machine-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .10);
}

.cnc-highlight {
    border-color: rgba(255, 212, 0, .6);
}

/* Image */
.cnc-machine-image {
    position: relative;
    width: 100%;
    height: 740px;
    background-size: contain;
    /* ÖNEMLİ */
    background-position: center;
    background-repeat: no-repeat;
    /* Taşmayı önler */
}

.cnc-machine-image::after {
    content: "";
    position: absolute;
    inset: 0;
}

.quick-nav {
    /* header yüksekliği kadar düş, kalan alanı full ekran yap */
    min-height: calc(100vh - var(--ti-header-height));
    background: #fff;

    display: flex;
    align-items: center;
    /* dikey ortala */
    justify-content: center;
    /* yatay ortala */

    padding: 20px 0;
    /* çok az nefes */
}

.quick-nav-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.quick-card {
    border-radius: 22px;
    background: #f3c600;
    color: #111;
    text-decoration: none;
    height: clamp(120px, 18vh, 180px);
    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 600;
    letter-spacing: .3px;
}

.quick-card:hover {
    transform: translateY(-2px);
    filter: brightness(0.98);
}

.quick-card:active {
    transform: translateY(0px);
}

/* mobil uyarlama */
@media (max-width: 900px) {
    .quick-nav-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .quick-nav-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* 1fr yerine 2 sütun */
        gap: 14px;
    }

    .quick-card {
        height: clamp(72px, 12vh, 110px);
        /* daha kısa */
        font-size: 14px;
    }
}

#scrollTopBtn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    cursor: pointer;

    background: #ffd400;
    color: #111;
    font-size: 22px;
    font-weight: 900;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    z-index: 999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background: #ffdf33;
    transform: translateY(-2px);
}

/* Badges */
.cnc-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: #ffd400;
    color: #111;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 14px;
}

.cnc-dark {
    background: rgba(255, 212, 0, .95);
}

.cnc-floating {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 14px;
    backdrop-filter: blur(6px);
}

/* Content */
.cnc-machine-content {
    padding: 24px;
}

.cnc-machine-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #111;
}

.cnc-machine-content p {
    font-size: 22px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 14px;
}

.cnc-machine-content ul {
    padding-left: 18px;
    color: #444;
}

.cnc-machine-content li {
    margin-bottom: 8px;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .cnc-machine-grid {
        grid-template-columns: 1fr;
    }

    .cnc-page-header h1 {
        font-size: 34px;
    }

    .cnc-machine-image {
        height: 210px;
    }
}

/* ======================================================= */
/* 6. RESPONSIVE DÜZENLEMELER */
/* ======================================================= */

@media (max-width: 991px) {

    /* Genel Bölüm Düzenlemeleri */
    .ti-section {
        padding: 70px 0;
    }

    /* İki Kolonlu Yapı Mobil Ayarları */
    .two-column {
        grid-template-columns: 1fr;
        /* Tek sütuna düşür */
        gap: 40px;
    }

    .ti-text-content,
    .ti-section-intro-center {
        /* Mobil: Metin, ortalanmış ve sağa dayalı ayarını kaldır */
        text-align: center;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Metin İçeriği Başlıkları Mobil */
    .ti-text-content h2,
    .ti-text-content p,
    .ti-eyebrow {
        text-align: center;
    }

    /* Makine/Kabiliyet Listesi Mobil Düzenleme */
    .ti-list-features {
        text-align: center;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    .ti-list-features li {
        text-align: left;
        /* Madde işaretli listeyi ortalamak yerine sola hizala */
        padding-left: 1.5rem;
        padding-right: 0;
    }

    .ti-list-features li::before {
        left: 0;
        right: unset;
    }

    /* Görsel Sırası Değiştirme (reverse-on-mobile) */
    .reverse-on-mobile .ti-image-box {
        order: 1;
        /* Görseli yukarı taşı */
    }

    .reverse-on-mobile .ti-text-content {
        order: 2;
        /* Metni aşağı taşı */
    }

    /* Hero Bölümü Mobil */
    .ti-hero {
        height: 60vh;
    }

    .ti-hero-content h1 {
        font-size: 2.5rem;
    }

    .ti-hero-content p {
        font-size: 1rem;
    }

    /* Footer Mobil */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}