/* Media Power - Custom Styles */

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* İçerik alanları: sağ/sol %10 boşluk (deneme) — header/footer hariç */
@media (min-width: 1024px) {
    main .container {
        width: 80%;
        max-width: none;
    }
}

/* AOS fallback: JS yüklenene kadar içerik görünür kalsın */
html:not(.aos-init) [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* Site logo */
.site-logo {
    height: calc(5.7rem - 10px);
    width: auto;
    max-width: 340px;
    object-fit: contain;
}

.site-logo--footer {
    height: 5.5rem;
    max-width: 320px;
}

/* Navigation — light header (legacy) */
.nav-link {
    color: rgba(30, 41, 59, 0.8);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: #0284c7;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0284c7;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-active {
    color: #38bdf8 !important;
}

.nav-link-active::after {
    width: 100%;
    background: #38bdf8;
}

/* Navigation — dark header (Media First style) */
.nav-link-dark {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.02em;
    text-transform: None;
    white-space: nowrap;
    display: inline-block;
    transition: color 0.3s;
    position: relative;
}

.nav-link-dark:hover {
    color: #38bdf8;
}

.nav-link-dark::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #38bdf8;
    transition: width 0.3s;
}

.nav-link-dark:hover::after,
.nav-link-dark.nav-link-active::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    color: rgba(30, 41, 59, 0.8);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-nav-link:hover {
    background: #e0f2fe;
    color: #0284c7;
}

.mobile-nav-link-dark {
    display: block;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-nav-link-dark:hover {
    background: rgba(2, 132, 199, 0.25);
    color: #38bdf8;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: #0284c7;
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: 2px solid rgba(15, 23, 42, 0.1);
    color: #0f172a;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: #0284c7;
    color: #0284c7;
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #0284c7;
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.6);
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn-cta:hover::before {
    transform: translateX(100%);
}

/* Hero Slides */
.hero-slide {
    width: 100%;
    height: 100%;
}

.hero-slide-1 {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
}

.hero-slide-2 {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
}

.hero-slide-3 {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
}

/* Brush Stroke Effect */
.brush-stroke {
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #0284c7 100%);
    border-radius: 4px;
    filter: blur(1px);
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-color: rgba(2, 132, 199, 0.2);
}

/* Service Cards */
.service-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #f1f5f9;
    transition: all 0.5s;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: rgba(2, 132, 199, 0.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: #e0f2fe;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    color: #0284c7;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    animation: bounce 0.6s ease;
}

.service-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(to right, #0284c7, #38bdf8);
    transition: width 0.5s;
}

.service-card:hover .service-line {
    width: 100%;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Why Cards */
.why-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.why-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(2, 132, 199, 0.3);
}

.why-icon {
    width: 56px;
    height: 56px;
    background: rgba(2, 132, 199, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #38bdf8;
}

/* Partners Marquee */
.partners-marquee-wrapper {
    position: relative;
}

.partners-marquee-wrapper::before,
.partners-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 128px;
    z-index: 10;
    pointer-events: none;
}

.partners-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}

.partners-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}

.partner-slide {
    width: auto;
}

.partner-logo {
    background: white;
    border-radius: 12px;
    padding: 24px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    min-width: 150px;
    transition: all 0.3s;
}

.partner-logo:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: rgba(2, 132, 199, 0.2);
}

.partner-logo img {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* Contact Form */
.contact-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
    color: #0f172a;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.contact-form textarea {
    resize: none;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    transition: all 0.5s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.hidden {
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid #f1f5f9;
}

/* About Image */
.about-image-wrapper {
    position: relative;
}

.about-image {
    box-shadow: 0 25px 60px rgba(2, 132, 199, 0.2);
}

/* Typed.js cursor */
.typed-cursor {
    color: #0284c7;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Header scroll effect */
#header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: #0284c7;
    color: white;
}

/* Loading state for submit button */
#submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card {
        padding: 24px;
    }

    .service-card {
        padding: 24px;
    }
}

/* Page Hero (inner pages) */
.page-hero {
    min-height: 320px;
}

.page-hero-bg {
    background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
}

.page-hero img {
    object-position: center;
}

/* Content images */
.img-frame {
    position: relative;
    overflow: hidden;
}

.img-frame img {
    transition: transform 0.5s ease;
}

.img-frame:hover img {
    transform: scale(1.03);
}

/* Prose content (service detail HTML from DB) */
.prose-content h3 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0f2fe;
}

.prose-content h3:first-child {
    margin-top: 0;
}

.prose-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.prose-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: rgba(30, 41, 59, 0.75);
    line-height: 1.6;
}

.prose-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    background: #0284c7;
    border-radius: 50%;
}

/* Partner card on references page */
.partner-card img {
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.partner-card:hover img {
    filter: grayscale(0%);
}

/* Neden Media Power kartları */
.why-mp-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.why-mp-card:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.why-mp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.why-mp-card--dark::before {
    background: #0f172a;
}

.why-mp-card--primary::before {
    background: #0284c7;
}

.why-mp-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.why-mp-card--dark .why-mp-badge {
    background: #0f172a;
}

.why-mp-card--primary .why-mp-badge {
    background: #0284c7;
}

/* Site logo — transparent variants */
.site-logo {
    height: calc(5.7rem - 10px);
    width: auto;
    max-width: 340px;
    object-fit: contain;
    background: transparent;
}

.site-logo--footer {
    height: 5.5rem;
    max-width: 320px;
}

.site-logo--on-light {
    /* dark ink logo for white backgrounds */
}

.mf-brand-logo {
    height: 5rem;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    background: transparent;
}

/* ========== Media First tarzı ana sayfa ========== */

.mf-hero {
    position: relative;
    width: 100%;
    line-height: 0;
    background: #0a0a0a;
}

.mf-hero-img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Marka mavisi alan (kırmızı yerine logo mavisi) */
.mf-brand-block {
    background: #0284c7;
    background-image:
        linear-gradient(135deg, rgba(3, 105, 161, 0.35) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(56, 189, 248, 0.12) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mf-brand-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%23ffffff' fill-opacity='0.04' d='M0 40 L20 0 L60 0 L80 40 L60 80 L20 80 Z'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
}

.mf-brand-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.mf-brand-logo {
    height: 5rem;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.mf-highlight-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    backdrop-filter: blur(4px);
}

.mf-highlight-card i {
    font-size: 1.35rem;
    color: #e0f2fe;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.mf-highlight-card span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    text-align: left;
}

/* Alt mavi alan — %30 daha dar */
.mf-about-narrow {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

/* Siyah marquee band — 2x yükseklik ve font */
.mf-marquee {
    background: #000;
    overflow: hidden;
    padding: 2rem 0;
    white-space: nowrap;
}

.mf-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    animation: mf-scroll 28s linear infinite;
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
}

.mf-marquee-track .mf-star {
    color: #38bdf8;
    font-size: 1.35rem;
}

@keyframes mf-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
.mf-footer {
    background: #1a1a1a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.02' d='M50 0 L100 50 L50 100 L0 50 Z'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    color: #fff;
}

.mf-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.5rem;
    background: #0284c7;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s;
}

.mf-footer-cta:hover {
    background: #0369a1;
    transform: translateY(-2px);
    color: #fff;
}

.mf-social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.mf-social:hover {
    background: #0284c7;
    color: #fff;
}

.mf-footer-bar {
    background: #0284c7;
    color: #fff;
    padding: 1rem 0;
    font-weight: 500;
}

.mf-cta {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0ea5e9 100%);
    padding: 5rem 0;
}

#header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .mf-hero-img {
        max-height: 55vh;
        min-height: 280px;
    }

    .mf-brand-logo {
        height: 3.5rem;
    }

    .mf-marquee {
        padding: 1.5rem 0;
    }

    .mf-marquee-track {
        font-size: 1.15rem;
        gap: 1.25rem;
    }

    .mf-marquee-track .mf-star {
        font-size: 0.95rem;
    }

    .mf-about-narrow {
        max-width: 100%;
    }
}

