/* ====================================================
   YAPALI İNŞAAT - ULTRA PREMIUM SLIDER CSS (TAM SÜRÜM)
   ==================================================== */

/* --- GENEL SLIDER DEĞİŞKENLERİ --- */
:root {
    --slider-dark:       #04142c;
    --slider-blue:       #0047b3;
    --slider-light-blue: #0cacf0;
    --text-primary:      #0b2b5e;
    --gold:              #d4a017;
}

/* ====================================================
   ÇOKLU SLIDER KATMAN VE GEÇİŞ KURALLARI
   ==================================================== */
.slider-track-container {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
}

.slide-item {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1; display: flex; align-items: center;
}

.slide-item.active {
    opacity: 1; visibility: visible; z-index: 5;
}

/* TinyMCE Listelerinin Açılır Pencerede Muazzam Durması İçin */
.d-features-wrapper ul {
    list-style: none !important; padding: 0 !important; margin: 0 0 28px 0 !important;
    display: grid; grid-template-columns: 1fr; gap: 12px;
}
.d-features-wrapper ul li {
    display: flex !important; align-items: flex-start !important; gap: 10px !important;
    font-size: 14px !important; font-weight: 600 !important; color: var(--text-primary) !important;
}
.d-features-wrapper ul li::before {
    content: "✓" !important; color: var(--slider-light-blue) !important; font-weight: 900 !important; font-size: 15px;
}

/* ====================================================
   SLIDER KAPSAYICI & ARKA PLAN
   ==================================================== */
.ultra-slider-wrapper {
    position: relative; width: 100%; height: 100vh; min-height: 800px;
    overflow: hidden; background-color: #f8f9fa; display: flex; align-items: center;
}
.slider-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slider-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.bg-gradient-mask {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.95) 10%, rgba(255,255,255,0.7) 42%, rgba(255,255,255,0) 56%, rgba(255,255,255,0) 30%);
}
.tech-particles {
    position: absolute; inset: 0; z-index: 3;
    background-image: radial-gradient(circle, rgba(12,172,240,0.1) 1px, transparent 1px);
    background-size: 50px 50px; animation: backgroundDrift 30s linear infinite; opacity: 0.5;
}
@keyframes backgroundDrift { 0% { background-position: 0 0; } 100% { background-position: 500px 500px; } }

/* ====================================================
   İÇERİK KONTEYNERI VE ANİMASYONLAR
   ==================================================== */
.slider-content-container {
    position: relative; z-index: 10; width: 100%; max-width: 1500px;
    margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center;
}
.slider-text-box { max-width: 680px; margin-top: -30px; }

@keyframes slideUpFade { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }

/* Sadece aktif slayt geldiğinde animasyonların tetiklenmesi */
.slide-item.active .slider-badge.anim-element { animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.1s; }
.slide-item.active .slider-title.anim-element { animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s; }
.slide-item.active .project-stats-hud.anim-element { animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.3s; }
.slide-item.active .slider-desc.anim-element { animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.4s; }
.slide-item.active .slider-actions.anim-element { animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.5s; }
.slide-item.active .promo-video-block.anim-element { animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.6s; }

.slider-badge {
    opacity: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
    background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(10px);
    border: 1px solid rgba(12, 172, 240, 0.25); border-radius: 50px;
    font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
    color: var(--text-primary); margin-bottom: 22px; width: fit-content;
}
.badge-dot {
    width: 6px; height: 6px; background: var(--slider-light-blue); border-radius: 50%;
    display: inline-block; animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }

.slider-title {
    opacity: 0; font-size: 4.8rem; line-height: 1.08; font-weight: 900; color: var(--text-primary); margin-bottom: 30px; letter-spacing: -1px;
}
.slider-title .text-blue { color: var(--slider-light-blue); }

/* ====================================================
   MİNİMALİST HUD ROZETLERİ
   ==================================================== */
.project-stats-hud {
    opacity: 0; display: flex; gap: 30px; margin-bottom: 28px; align-items: flex-start; flex-wrap: wrap;
}
.stat-badge { display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: default; }

.minimal-icon {
    width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(12, 172, 240, 0.25); color: var(--slider-blue);
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.minimal-icon svg { width: 28px; height: 28px; transition: transform 0.3s ease; }

.stat-badge:hover .minimal-icon {
    background: linear-gradient(135deg, var(--slider-light-blue), var(--slider-blue));
    color: #fff; border-color: transparent; transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 71, 179, 0.25);
}
.stat-badge:hover .minimal-icon svg { transform: scale(1.1); }

.stat-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.s-label { font-size: 9px; color: #596275; text-transform: uppercase; font-weight: 800; letter-spacing: 0.8px; margin-bottom: 4px; }
.s-val { font-size: 14px; font-weight: 800; color: var(--text-primary); line-height: 1.3; text-align: center; }

/* ====================================================
   AÇIKLAMA & BUTONLAR
   ==================================================== */
.slider-desc {
    opacity: 0; font-size: 1.1rem; line-height: 1.65; color: #4a5568; margin-bottom: 32px; font-weight: 500; max-width: 520px;
}
.slider-actions { opacity: 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.discover-btn {
    display: inline-flex; align-items: center; gap: 12px; background: #0047b3; border: none; text-decoration: none;
    font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: #fff; padding: 14px 28px; border-radius: 8px; transition: all 0.3s ease;
}
.discover-btn .btn-icon-svg { opacity: 0.9; }
.discover-btn .arrow-svg { transition: transform 0.3s ease; }
.discover-btn:hover { background: #04142c; color: #fff; transform: translateY(-2px); }
.discover-btn:hover .arrow-svg { transform: translateX(5px); }

.details-btn {
    display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1.5px solid rgba(0, 71, 179, 0.4);
    color: var(--slider-blue); padding: 13px 26px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; cursor: pointer; transition: all 0.3s ease;
}
.details-btn:hover { background: rgba(0, 71, 179, 0.05); border-color: var(--slider-blue); transform: translateY(-2px); }

/* ====================================================
   SLIDER NAVIGASYON OKLARI VE NOKTALAR
   ==================================================== */
.slider-nav-overlay { display: flex; align-items: center; gap: 10px; position: absolute; bottom: 90px; right: 30px; z-index: 30; }
.slider-nav-overlay .s-nav-prev, .slider-nav-overlay .s-nav-next {
    width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(10px);
    border: 1.5px solid rgba(0, 71, 179, 0.2); color: var(--slider-blue); display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.slider-nav-overlay .s-nav-prev:hover, .slider-nav-overlay .s-nav-next:hover { background: #fff; box-shadow: 0 6px 18px rgba(0, 71, 179, 0.2); transform: scale(1.05); }
.slider-nav-overlay .s-dots { display: flex; gap: 6px; align-items: center; }
.slider-nav-overlay .dot { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.5); border-radius: 50%; border: 1.5px solid rgba(0, 71, 179, 0.25); transition: all 0.3s; cursor: pointer; }
.slider-nav-overlay .dot.active { width: 24px; border-radius: 10px; background: var(--slider-blue); border-color: transparent; }

/* ====================================================
   TANITIM VİDEOSU BLOĞU
   ==================================================== */
.promo-video-block {
    opacity: 0; position: absolute; bottom: 0; left: 0; z-index: 20; background: linear-gradient(135deg, var(--slider-blue) 0%, #00225e 100%);
    padding: 28px 80px 36px 36px; clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%); display: flex; flex-direction: column;
}
.video-block-inner { display: flex; align-items: center; gap: 18px; }
.premium-play-btn {
    position: relative; width: 58px; height: 58px; border-radius: 50%; background: transparent; border: 1.5px solid rgba(255,255,255,0.35); color: #fff; font-size: 16px; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 5; outline: none; transition: background 0.3s;
}
.premium-play-btn:hover { background: rgba(255,255,255,0.15); }
.pulse-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--slider-light-blue); z-index: 1; animation: ripple 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; }
.pulse-2 { animation-delay: 0.65s; border-color: rgba(255,255,255,0.4); }
@keyframes ripple { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.video-info { display: flex; flex-direction: column; color: #fff; }
.v-subtitle { font-size: 10px; font-weight: 700; color: var(--slider-light-blue); letter-spacing: 1.5px; margin-bottom: 4px; text-transform: uppercase; }
.v-title { font-size: 15px; font-weight: 500; letter-spacing: 0.4px; }

/* ====================================================
   PROJE DETAYLARI MODAL (GLASSMORPHISM)
   ==================================================== */
.details-modal { position: fixed; inset: 0; z-index: 99999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; padding: 20px; }
.details-modal.is-visible { opacity: 1; visibility: visible; }
.details-overlay { position: absolute; inset: 0; background: rgba(4, 20, 44, 0.72); backdrop-filter: blur(10px); cursor: pointer; }
.details-modal-content { position: relative; width: 100%; max-width: 600px; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.8); border-radius: 20px; padding: 40px; box-shadow: 0 30px 60px rgba(0,0,0,0.2), 0 0 30px rgba(12,172,240,0.15); transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 2; }
.details-modal.is-visible .details-modal-content { transform: translateY(0) scale(1); }
.close-details-btn { position: absolute; top: 20px; right: 20px; background: rgba(0,71,179,0.08); border: none; width: 40px; height: 40px; border-radius: 50%; color: var(--slider-blue); cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; }
.close-details-btn:hover { background: var(--slider-blue); color: #fff; transform: rotate(90deg); }
.details-header { margin-bottom: 25px; border-bottom: 1px solid rgba(0,71,179,0.1); padding-bottom: 20px; }
.d-badge { font-size: 10px; font-weight: 800; color: var(--slider-light-blue); letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 8px; }
.details-header h2 { font-size: 2rem; color: var(--text-primary); font-weight: 800; line-height: 1.2; }
.details-header h2 .text-blue { color: var(--slider-light-blue); }
.details-body .d-intro { font-size: 15px; color: #596275; margin-bottom: 22px; font-weight: 500; line-height: 1.65; }
.details-footer { display: flex; gap: 14px; }
.btn-contact, .btn-catalog { flex: 1; text-align: center; padding: 14px; border-radius: 12px; font-size: 13px; font-weight: 700; text-decoration: none; transition: 0.3s; letter-spacing: 0.5px; }
.btn-contact { background: linear-gradient(135deg, var(--slider-light-blue), var(--slider-blue)); color: #fff; box-shadow: 0 8px 20px rgba(12,172,240,0.3); }
.btn-contact:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(12,172,240,0.4); }
.btn-catalog { background: rgba(0,71,179,0.05); color: var(--slider-blue); border: 1.5px solid rgba(0,71,179,0.2); }
.btn-catalog:hover { background: rgba(0,71,179,0.1); }

/* ====================================================
   VİDEO MODAL
   ==================================================== */
.video-modal { position: fixed; inset: 0; z-index: 99999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.video-modal.is-visible { opacity: 1; visibility: visible; }
.video-overlay { position: absolute; inset: 0; background: rgba(0, 5, 15, 0.92); backdrop-filter: blur(15px); cursor: pointer; }
.video-modal-content { position: relative; width: 90%; max-width: 1000px; z-index: 2; transform: scale(0.9); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.video-modal.is-visible .video-modal-content { transform: scale(1); }
.close-video-btn { position: absolute; top: -46px; right: 0; background: transparent; border: none; cursor: pointer; transition: 0.3s; }
.close-video-btn:hover { transform: rotate(90deg); opacity: 0.7; }
.video-wrapper { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(12,172,240,0.2); }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; outline: none; }

/* ====================================================
   1100px ARASI TABLET
   ==================================================== */
@media (max-width: 1100px) {
    .slider-title { font-size: 3.6rem; }
    .bg-gradient-mask {
        background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.96) 38%, rgba(255,255,255,0.65) 52%, rgba(255,255,255,0) 25%, rgba(255,255,255,0) 50%);
    }
}

/* ====================================================
   MOBİL (≤768px) MİNİMALİST UYUM VE DÜZENLEME
   ==================================================== */
@media (max-width: 768px) {
    .ultra-slider-wrapper {
        align-items: center; 
        padding-top: 0; 
        padding-bottom: 140px; /* MOBİLDE İÇERİĞİ YUKARI İTER */
        height: calc(100svh - 100px); 
        min-height: unset; 
        box-sizing: border-box;
    }
    .slide-item { align-items: center; }
    .bg-gradient-mask {
        background: linear-gradient(180deg, rgba(255,255,255,0.93) 0%, rgba(255,255,255,0.88) 35%, rgba(255,255,255,0) 50%, rgba(255,255,255,0) 20%);
    }
    .slider-content-container { padding: 0 20px; flex-direction: column; align-items: flex-start; }
    
    .slider-text-box { 
        margin-top: -50px; /* MOBİLDE İÇERİĞİ HAVAYA KALDIRIR */
        max-width: 100%; 
        display: flex; 
        flex-direction: column; 
        width: 100%; 
    }

    .slider-badge      { order: 1; align-self: flex-start !important; width: fit-content !important; margin-bottom: 10px; }
    .slider-title      { order: 2; font-size: 2.2rem; margin-bottom: 8px; line-height: 1.12; }
    .slider-desc       { order: 3; font-size: 0.92rem; margin-bottom: 16px; line-height: 1.5; color: #1a2538; font-weight: 600; }
    .project-stats-hud { order: 4; margin-bottom: 18px; }
    .slider-actions    { order: 5; }

    .project-stats-hud {
        display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
        gap: 12px !important; margin-bottom: 18px; width: 100%; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch;
    }
    .project-stats-hud::-webkit-scrollbar { display: none; }
    .stat-badge {
        flex-direction: column !important; align-items: center !important; justify-content: center !important;
        gap: 8px !important; background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        padding: 12px 10px !important; border-radius: 14px !important; border: 1px solid rgba(0,71,179,0.12); flex-shrink: 0; min-width: 95px;
    }
    
    .minimal-icon { width: 44px; height: 44px; }
    .minimal-icon svg { width: 22px; height: 22px; }
    .stat-text { align-items: center !important; text-align: center !important; }
    .s-label { font-size: 7px; letter-spacing: 0.3px; margin-bottom: 3px; color: #555; }
    .s-val   { font-size: 10.5px; font-weight: 800; color: var(--text-primary); line-height: 1.2; text-align: center !important; }

    .slider-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-bottom: 16px; }
    .discover-btn {
        width: 100% !important; justify-content: center !important; padding: 11px 8px !important; border-radius: 8px !important;
        font-size: 10.5px !important; letter-spacing: 0.2px !important; white-space: nowrap; gap: 6px !important;
    }
    .discover-btn .btn-icon-svg { display: none; }
    .details-btn {
        width: 100% !important; display: inline-flex !important; justify-content: center !important; align-items: center !important;
        padding: 11px 8px !important; border-radius: 8px !important; font-size: 10.5px !important; letter-spacing: 0.2px !important;
        white-space: nowrap; gap: 6px !important; background: rgba(255,255,255,0.80) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        border: 1.5px solid rgba(0,71,179,0.35) !important; color: var(--slider-blue) !important;
    }

    .slider-nav-overlay { bottom: 80px; right: 16px; gap: 8px; }
    .slider-nav-overlay .s-nav-prev, .slider-nav-overlay .s-nav-next { width: 34px; height: 34px; background: rgba(255,255,255,0.85); }
    .slider-nav-overlay .dot { width: 5px; height: 5px; }
    .slider-nav-overlay .dot.active { width: 15px; }

    .promo-video-block {
        width: 82%; padding: 14px 45px 18px 18px; background: linear-gradient(135deg, rgba(0,71,179,0.85) 0%, rgba(0,34,94,0.9) 100%);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%); border-radius: 0;
    }
    .premium-play-btn { width: 40px; height: 40px; border-width: 1px; }
    .premium-play-btn svg { width: 11px; height: 11px; }
    .v-subtitle { font-size: 8px; letter-spacing: 1px; }
    .v-title { font-size: 12px; font-weight: 600; }
}

/* ≤380px */
@media (max-width: 380px) {
    .ultra-slider-wrapper { height: calc(100svh - 65px); padding-top: 0; }
    .slider-title { font-size: 1.9rem; }
    .stat-badge { padding: 8px !important; min-width: 82px; }
    .minimal-icon { width: 36px; height: 36px; }
    .minimal-icon svg { width: 18px; height: 18px; }
    .s-val { font-size: 9.5px; }
    .slider-nav-overlay { bottom: 76px; }
    .discover-btn, .details-btn { font-size: 9.5px !important; padding: 10px 6px !important; }
}