/* ==========================================================================
   YANGINEXT YANGIN TEKNOLOJİLERİ — MASTER STYLESHEET (WHITE CORPORATE THEME)
   Modern, Clean, High-Contrast Apple & Bosch Style Industrial Design
   ========================================================================== */

/* --- 1. GLOBAL RESETS & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Oswald:wght@400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: #374151;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* ==========================================================================
   2. HERO VIDEO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -96px;
}

@media screen and (max-width: 1024px) {
    .hero-section {
        margin-top: -76px;
    }
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.40);
    will-change: transform;
    transform: translateZ(0);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.70) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: #ffffff;
    z-index: 2;
    padding: 0 20px;
    max-width: 960px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-title span {
    color: #e63946;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #e5e7eb;
    max-width: 720px;
    margin: 0 auto 36px auto;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    background-color: #e63946;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 9999px;
    box-shadow: 0 6px 24px rgba(230, 57, 70, 0.45);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.hero-btn:hover {
    background-color: #d62836;
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(230, 57, 70, 0.60);
    color: #ffffff;
}

/* ==========================================================================
   3. 20. YIL ÖZEL KURUMSAL BÖLÜM (.yn-about-premium)
   ========================================================================== */
.yn-about-premium {
    padding: 120px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.yn-about-premium::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.04) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.yn-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.yn-about-grid {
    display: flex;
    align-items: center;
    gap: 70px;
    flex-wrap: wrap;
}

.yn-content-side {
    flex: 1;
    min-width: 320px;
}

.yn-badge {
    color: #e63946;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 18px;
    border-left: 3px solid #e63946;
    padding-left: 14px;
    text-transform: uppercase;
}

.yn-main-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.15;
    color: #111827;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.yn-main-title span {
    color: #e63946;
}

.yn-description {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 30px;
}

.yn-stats-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    min-width: 320px;
}

.yn-stat-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.yn-stat-box.accent {
    border-color: rgba(230, 57, 70, 0.22);
    background: linear-gradient(145deg, rgba(230, 57, 70, 0.03) 0%, #f9fafb 100%);
}

.yn-stat-box:hover {
    transform: translateY(-6px);
    background: #ffffff;
    border-color: rgba(230, 57, 70, 0.35);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.yn-icon-wrap {
    font-size: 26px;
    color: #e63946;
    margin-bottom: 16px;
}

.yn-num {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    color: #111827;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.yn-lab {
    font-size: 13.5px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ==========================================================================
   4. FABRİKA MODELLEME ALANI (.yn-modelleme-alani)
   ========================================================================== */
.yn-modelleme-alani {
    background: #f8f9fa;
    padding: 100px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.yn-genis-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.yn-baslik-wrap {
    text-align: center;
    margin-bottom: 45px;
}

.yn-baslik-wrap h2 {
    font-family: 'Oswald', sans-serif;
    color: #e63946;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.25;
}

.yn-baslik-wrap .white-text {
    color: #111827 !important;
}

.yn-map-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
    border: 1px solid #e5e7eb;
    width: 100%;
    background: #ffffff;
}

.yn-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Interactive Dots */
.yn-dot {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 3px solid #e63946;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 16px rgba(230, 57, 70, 0.6);
    transition: all 0.3s ease;
}

.yn-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid #e63946;
    border-radius: 50%;
    animation: ynSignalPulse 1.8s infinite;
}

@keyframes ynSignalPulse {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 360%; height: 360%; opacity: 0; }
}

.yn-dot:hover, .yn-dot.active {
    background: #e63946;
    transform: translate(-50%, -50%) scale(1.25);
    box-shadow: 0 0 24px rgba(230, 57, 70, 0.9);
}

.yn-hint {
    position: absolute;
    bottom: 170%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #ffffff;
    color: #111827;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 30;
}

@media (hover: hover) and (pointer: fine) {
    .yn-dot:hover .yn-hint {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.yn-dot.active .yn-hint {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.yn-hint::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

/* ==========================================================================
   5. REFERANSLAR MARQUEE BÖLÜMÜ (.clients-section)
   ========================================================================== */
.clients-section {
    background-color: #ffffff;
    padding: 80px 0;
    text-align: center;
    color: #111827;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: #111827;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title span {
    color: #e63946;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    padding: 20px 0;
}

.marquee-container::before, .marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.marquee-track {
    display: inline-flex;
    gap: 48px;
    animation: scrollMarquee 24s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.client-logo {
    width: 180px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(100%) opacity(0.45);
    transition: all 0.35s ease;
    cursor: pointer;
    padding: 10px;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   6. HİZMETLER — UZMAN ÇÖZÜMLERİMİZ (#hizmetler)
   ========================================================================== */
#hizmetler.horizontal-snap-section {
    background-color: #f8f9fa;
    padding: 100px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.horizontal-title {
    max-width: 1280px;
    margin: 0 auto 50px auto;
    padding: 0 24px;
    text-align: center;
}

.horizontal-title p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-top: 8px;
}

/* Desktop Horizontal Snap Layout */
@media screen and (min-width: 992px) {
    #hizmetler.horizontal-snap-section {
        height: 100vh;
        overflow: hidden;
        padding: 0;
    }

    #hizmetler.horizontal-snap-section .sticky-wrapper {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0;
    }

    #hizmetler.horizontal-snap-section .horizontal-title {
        margin: 0 auto 30px auto;
        padding: 0 60px;
    }

    #hizmetler.horizontal-snap-section .horizontal-scroll-container {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 32px;
        padding: 0 60px;
        width: max-content;
        max-width: none;
        will-change: transform;
    }

    #hizmetler.horizontal-snap-section .h-card-wrapper {
        flex: 0 0 420px;
        width: 420px;
        height: 540px;
        min-width: 420px;
        max-width: 420px;
    }
}

/* Mobile Vertical Card Stack */
@media screen and (max-width: 991px) {
    .horizontal-scroll-container {
        display: flex;
        flex-direction: column;
        gap: 36px;
        padding: 0 20px;
        max-width: 600px;
        margin: 0 auto;
    }

    .h-card-wrapper {
        width: 100%;
        height: 480px;
    }
}

/* Service Card Design */
.h-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.h-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.h-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.50;
    filter: saturate(1.1);
    z-index: 1;
}

.h-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.40) 65%, transparent 100%);
    pointer-events: none;
}

.h-number {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
}

.h-text h3 {
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.h-text p {
    color: #d1d5db;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.h-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e63946;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: auto;
    transition: all 0.25s ease;
    width: fit-content;
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.40);
}

.h-detail-btn:hover {
    background-color: #d62836;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.60);
}

.h-product-3d {
    position: absolute;
    width: 170px;
    right: 14px;
    top: -10px;
    z-index: 30;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.70));
    pointer-events: none;
}

/* ==========================================================================
   7. BLOG BÖLÜMÜ (.blog-section)
   ========================================================================== */
.blog-section {
    background-color: #ffffff;
    padding: 100px 0;
    color: #111827;
}

.blog-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    text-align: left;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.09);
    border-color: rgba(230, 57, 70, 0.25);
}

.blog-image {
    width: 100%;
    height: 210px;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid #e63946;
}

.blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    color: #e63946;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.blog-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #111827;
    line-height: 1.3;
}

.blog-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #e63946;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    margin-top: auto;
}

.read-more:hover {
    color: #d62836;
    transform: translateX(4px);
}

/* ==========================================================================
   8. İLETİŞİM BÖLÜMÜ (.contact-section)
   ========================================================================== */
.contact-section {
    background-color: #f8f9fa;
    padding: 100px 0;
    color: #111827;
    border-top: 1px solid #e5e7eb;
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 320px;
}

.contact-info p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-list li {
    font-size: 1.05rem;
    color: #374151;
}

.info-list li strong {
    color: #e63946;
    font-weight: 700;
}

.contact-form {
    flex: 1;
    min-width: 320px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.input-group {
    margin-bottom: 18px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    color: #111827;
    border-radius: 12px;
    font-size: 0.98rem;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: #e63946;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

/* ==========================================================================
   9. TOAST BİLDİRİMİ (.yn-toast)
   ========================================================================== */
.yn-toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-140%);
    opacity: 0;
    z-index: 9999999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.yn-toast-inner {
    padding: 14px 28px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}

.yn-toast-success .yn-toast-inner {
    background: #10b981;
    color: #ffffff;
}

.yn-toast-error .yn-toast-inner {
    background: #ef4444;
    color: #ffffff;
}

/* ==========================================================================
   10. FINAL OVERRIDE (WHITE THEME HEADER)
   ========================================================================== */
#main-header {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.20) !important;
    border-radius: 9999px !important;
    position: fixed !important;
    top: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px) !important;
    max-width: 1320px !important;
    height: 64px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(25px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.25) !important;
    top: 14px !important;
    height: 64px !important;
    border-radius: 9999px !important;
}

/* PC'de nav linkleri BEYAZ METİN & KIRMIZI BALONCUK HOVER */
@media screen and (min-width: 901px) {
    .nav-links li a {
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    }
    .nav-links li a:hover,
    .yanginext-dropdown:hover > a {
        color: #ffffff !important;
        background: #e63946 !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        box-shadow: 0 4px 16px rgba(230, 57, 70, 0.45) !important;
        transform: translateY(-1px) !important;
    }
    .nav-links li.active-pill a,
    .nav-links li a.active-pill {
        color: #ffffff !important;
        background: #e63946 !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        box-shadow: 0 4px 16px rgba(230, 57, 70, 0.45) !important;
    }
}

/* Sayfa arka planı beyaz */
body {
    background-color: #ffffff !important;
}

/* Header spacer */
.header-spacer {
    height: 96px !important;
}

#yn-mobile-drawer {
    display: none !important;
}

@media (max-width: 1024px) {
    #yn-mobile-drawer {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .header-spacer {
        height: 80px !important;
    }
    #main-header {
        top: 10px !important;
        width: calc(100% - 24px) !important;
        border-radius: 16px !important;
    }
}