/* --- TEMEL DEĞİŞKENLER VE SIFIRLAMA --- */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --section-bg: #f8fafc;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* --- KURUMSAL HEADER VE ÜST MENÜ --- */
.site-header {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.site-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 20px;
}

.logo-compact a {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-compact span {
    color: var(--accent);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.main-nav a:not(.btn-teklif) {
    display: inline-block;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: var(--section-bg);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:not(.btn-teklif):hover {
    color: var(--accent);
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.main-nav .btn-teklif {
    background: var(--accent);
    color: var(--white) !important;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.main-nav .btn-teklif:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- SWİPER VİDEO SLİDER --- */
.swiper {
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.slider-video-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--primary);
}

.slider-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.slider-video-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.15);
    z-index: 2;
}

/* --- DİJİTAL EKOSİSTEM --- */
.ecosystem-split-section {
    padding: 90px 0;
    background: var(--section-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ecosystem-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.eco-card-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eco-card-box:hover {
    border-color: #cbd5e1;
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08);
}

.section-badge {
    display: inline-block;
    background: #eff6ff;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 30px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.eco-intro-side h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.eco-intro-side p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.eco-videos-side-dual {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    min-height: 100%;
}

.youtube-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    width: 100%;
}

.youtube-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.youtube-responsive-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.youtube-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- İKONLU, HIZLI VE POPUP'LI KAYAN ŞERİT (MARQUEE) --- */
.marquee-services-section {
    background: var(--section-bg);
    padding: 40px 0;
    overflow: visible !important;
    position: relative;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    z-index: 10;
}

.marquee-track {
    display: inline-flex;
    gap: 25px;
    animation: marqueeScroll 35s linear infinite;
    white-space: nowrap;
}

.marquee-services-section:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    color: var(--primary);
    padding: 18px 30px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
}

.marquee-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.marquee-item:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
    z-index: 100;
}

.marquee-item:hover .marquee-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-popup-card {
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: var(--white);
    color: var(--text-main);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    font-size: 13px;
    font-weight: normal;
    line-height: 1.5;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    white-space: normal;
    pointer-events: none;
}

.service-popup-card::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
}

.marquee-item:hover .service-popup-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- BAŞLIK / BÖLÜM GENEL --- */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-wrapper h2 {
    font-size: 34px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-title-wrapper p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 650px;
    margin: 0 auto;
}

/* --- REFERANSLARIMIZ --- */
.references-section {
    padding: 80px 0;
    background: var(--white);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.ref-card {
    background: var(--section-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.ref-card:hover {
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

/* --- SABİT HAREKETLİ İLETİŞİM BUTONLARI (WHATSAPP & TELEFON) --- */
.floating-buttons {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.float-btn {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.3s ease !important;
}

.whatsapp-float {
    background-color: #25d366 !important;
    color: #ffffff !important;
}

.phone-float {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

.float-btn:hover {
    transform: scale(1.1) !important;
}

/* --- RESPONSİVE (MOBİL) UYUMLULUK --- */
@media (max-width: 992px) {
    .hamburger-btn {
        display: flex;
    }

    .site-header-container {
        height: 80px;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: 20px 24px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .main-nav a:not(.btn-teklif) {
        display: block;
        width: 100%;
        text-align: left;
        font-size: 15px;
        white-space: normal;
    }

    .main-nav .btn-teklif {
        text-align: center;
        display: block;
        width: 100%;
        font-size: 15px;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    .ecosystem-split-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .eco-intro-side h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .swiper {
        height: 360px;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }

    .floating-buttons {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        gap: 12px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .float-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
}