/* =========================================
   CNC MAKİNE İMALATI SAYFASI ÖZEL TASARIMI
   (KUSURSUZ HİZALAMA VE MODERN YAPI)
========================================= */

/* SABİT GENİŞLİK VE HİZALAMA (KIRMIZI ÇİZGİMİZ) */
.cm-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* --- 1. HERO ALANI --- */
.cm-hero {
    position: relative;
    height: 250px;
    margin-top: 80px; 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax efekti */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cm-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(220, 38, 38, 0.8) 100%);
    z-index: 1;
}

.cm-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 850px;
    padding: 0 20px;
    animation: fadeUp 0.8s ease forwards;
}

.cm-hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cm-hero-content h1 span { color: #ef4444; }
.cm-hero-content p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.9); line-height: 1.6; }

/* --- 2. GİRİŞ VE VİZYON ALANI --- */
.cm-intro {
    background-color: var(--zemin-beyaz);
    padding: 100px 5%;
}

.cm-intro-grid {
    display: flex;
    gap: 60px;
    align-items: center;
}

.cm-intro-sol { flex: 1.2; }
.cm-intro-sol h2 { font-size: 2.4rem; font-weight: 800; color: var(--yazi-koyu); margin-bottom: 15px; line-height: 1.2; }
.ayrac-cizgi { width: 60px; height: 4px; background: var(--vurgu-gradient); border-radius: 2px; margin-bottom: 25px; }
.cm-intro-sol p { font-size: 1.1rem; color: var(--yazi-acik); line-height: 1.7; margin-bottom: 15px; }

.cm-intro-sag { 
    flex: 1; 
    position: relative;
}

.cm-intro-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: block;
}

.yerli-uretim-rozet {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--vurgu-gradient);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    border: 8px solid #fff;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.yerli-uretim-rozet i { font-size: 2rem; margin-bottom: 5px; }
.yerli-uretim-rozet span { font-weight: 700; text-align: center; line-height: 1.2; font-size: 1rem;}

/* --- 3. MAKİNE ÖZELLİKLERİ --- */
.cm-ozellikler-bg {
    background-color: var(--zemin-gri);
    padding: 100px 5%;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.cm-baslik-merkez { text-align: center; margin-bottom: 60px; }
.cm-baslik-merkez h2 { font-size: 2.4rem; font-weight: 800; color: var(--yazi-koyu); margin-bottom: 15px; }
.cm-baslik-merkez p { font-size: 1.1rem; color: var(--yazi-acik); max-width: 700px; margin: 0 auto; }

.cm-ozellik-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

.cm-ozellik-karti {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.cm-ozellik-karti:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(220, 38, 38, 0.1);
}

.ozellik-ikon {
    width: 65px; height: 65px;
    background: var(--vurgu-hafif);
    color: var(--vurgu-duz);
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.cm-ozellik-karti:hover .ozellik-ikon {
    background: var(--vurgu-gradient);
    color: #fff;
    transform: rotateY(180deg);
}

.cm-ozellik-karti h3 { font-size: 1.3rem; font-weight: 700; color: var(--yazi-koyu); margin-bottom: 15px; }
.cm-ozellik-karti p { font-size: 0.95rem; color: var(--yazi-acik); line-height: 1.6; }

/* --- 4. SATIŞ SONRASI DESTEK --- */
.cm-destek {
    background-color: #0f172a; /* Çok koyu lacivert/siyah */
    padding: 100px 5%;
    color: #fff;
    overflow: hidden;
}

.cm-destek-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.cm-destek-icerik { flex: 1.2; }
.cm-destek-icerik h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 40px; line-height: 1.2; }

.destek-liste { display: flex; flex-direction: column; gap: 25px; }
.destek-liste li { display: flex; align-items: flex-start; gap: 20px; }
.destek-liste li i { color: #ef4444; font-size: 1.5rem; margin-top: 5px; }
.destek-liste li strong { display: block; font-size: 1.15rem; color: #fff; margin-bottom: 5px; }
.destek-liste li span { font-size: 1rem; color: #94a3b8; line-height: 1.6; }

.cm-destek-gorsel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

/* Geometrik animasyonlu alan */
.teknik-cember-alani {
    position: relative;
    width: 300px; height: 300px;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    animation: cemberDon 20s linear infinite;
}

@keyframes cemberDon { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.merkez-ikon {
    width: 100px; height: 100px;
    background: var(--vurgu-gradient);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 3rem; color: #fff;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
    animation: cemberDon 20s linear infinite reverse; /* İçi ters dönsün düz dursun */
}

.yapi-ikon {
    position: absolute;
    width: 60px; height: 60px;
    background: #1e293b;
    border: 2px solid #ef4444;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; color: #fff;
    animation: cemberDon 20s linear infinite reverse;
}

.i-1 { top: -30px; left: 50%; margin-left: -30px; }
.i-2 { bottom: -30px; left: 50%; margin-left: -30px; }
.i-3 { left: -30px; top: 50%; margin-top: -30px; }
.i-4 { right: -30px; top: 50%; margin-top: -30px; }

/* --- MOBİL UYUM --- */
@media (max-width: 1024px) {
    .cm-intro-grid { flex-direction: column; }
    .yerli-uretim-rozet { bottom: 20px; right: 20px; border-width: 4px; }
    .cm-ozellik-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .cm-destek-flex { flex-direction: column; }
    .cm-destek-gorsel { margin-top: 40px; }
}

@media (max-width: 768px) {
    .cm-hero-content h1 { font-size: 2.2rem; }
    .cm-ozellik-grid { grid-template-columns: 1fr !important; }
    .teknik-cember-alani { width: 250px; height: 250px; }
}
/* Modal quick view */
.cm-model-btn {
    border: none;
    cursor: pointer;
}

.cm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 30px;
    z-index: 99999;
}

.cm-modal-overlay.active {
    display: flex;
}

.cm-modal {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    animation: cmModalFade 0.3s ease;
}

@keyframes cmModalFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cm-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: all 0.25s ease;
}

.cm-modal-close:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.cm-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
}

.cm-modal-image-wrap {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-right: 1px solid rgba(0,0,0,0.06);
}

.cm-modal-image-wrap img {
    width: 100%;
    max-height: 470px;
    object-fit: contain;
    display: block;
}

.cm-modal-content {
    padding: 70px 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cm-modal-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.cm-modal-content h3 {
    font-size: 2.3rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
}

.cm-modal-content p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 24px;
}

.cm-modal-box {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 24px;
}

.cm-modal-box h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}

.cm-modal-box ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cm-modal-box ul li {
    position: relative;
    padding-left: 22px;
    color: #475569;
    line-height: 1.6;
}

.cm-modal-box ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
}

.cm-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cm-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.22);
}

body.cm-modal-open {
    overflow: hidden;
}

@media (max-width: 992px) {
    .cm-modal-grid {
        grid-template-columns: 1fr;
    }

    .cm-modal {
        max-width: 760px;
    }

    .cm-modal-image-wrap {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        padding: 30px;
    }

    .cm-modal-image-wrap img {
        max-height: 320px;
    }

    .cm-modal-content {
        padding: 38px 28px 30px;
    }

    .cm-modal-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .cm-modal-overlay {
        padding: 14px;
        align-items: flex-end;
    }

    .cm-modal {
        border-radius: 22px 22px 0 0;
        max-width: 100%;
    }

    .cm-modal-content h3 {
        font-size: 1.45rem;
    }

    .cm-modal-content p {
        font-size: 0.98rem;
    }

    .cm-modal-image-wrap img {
        max-height: 240px;
    }
}
/* --- MAKİNE MODELLERİ --- */
.cm-modeller {
    background: #ffffff;
    padding: 100px 5%;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.cm-model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cm-model-kart {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.35s ease;
}

.cm-model-kart:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.cm-model-gorsel {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.cm-model-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cm-model-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
}

.cm-model-icerik {
    padding: 28px 26px 30px;
}

.cm-model-icerik h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--yazi-koyu);
    margin-bottom: 14px;
    line-height: 1.3;
}

.cm-model-icerik p {
    font-size: 0.98rem;
    color: var(--yazi-acik);
    line-height: 1.7;
    margin-bottom: 20px;
}

.cm-model-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--vurgu-gradient);
    color: #fff;
    border: none;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cm-model-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
}

@media (max-width: 1024px) {
    .cm-model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cm-model-grid {
        grid-template-columns: 1fr;
    }
}