/* DeviRa - Dijital Pazarlama Ajansı | Modern & Creative */

:root {
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --dark: #0f0f14;
    --dark-soft: #1a1a24;
    --accent: #22d3ee;
    /* Okunabilirlik: yüksek kontrast (WCAG AA+) */
    --text-muted: rgba(255, 255, 255, 0.95);
    --text-soft: rgba(255, 255, 255, 0.9);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: #e4e4e7;
    font-size: 1rem;
    line-height: 1.6;
    /* Yazıların keskin ve düzgün görünmesi için */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--primary);
    font-weight: 600;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    font-stretch: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.section-desc {
    max-width: 560px;
    color: var(--text-muted);
}

/* Header */
.site-header {
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.navbar-brand img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.brand-devi { color: #fff; }
.brand-ra { color: var(--primary); }

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary);
}

.btn-cta {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.btn-cta:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.navbar-toggler {
    color: rgba(255,255,255,0.8);
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.75) 0%, rgba(15, 15, 20, 0.85) 100%),
                radial-gradient(ellipse 80% 60% at 50% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-label {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-title .text-primary { color: var(--primary) !important; }

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    height: clamp(64px, 14vw, 100px);
    width: auto;
    max-width: min(320px, 85vw);
    object-fit: contain;
    -webkit-font-smoothing: antialiased;
}

.hero-tagline {
    color: #fff;
    font-weight: 600;
}

.hero-desc {
    max-width: 480px;
    font-size: 1.1rem;
    color: var(--text-muted) !important;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    color: var(--text-soft);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Section dark */
.section-dark {
    background: var(--dark-soft);
}

/* Neden Biz / genel bölüm metinleri - yatay bozulma yok, okunaklı */
section .section-title,
section .text-muted,
section .list-unstyled span {
    letter-spacing: 0;
    font-stretch: normal;
}

section .list-unstyled {
    color: #fff;
}

section .list-unstyled span {
    color: inherit;
}

/* Service cards (home) */
.service-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.service-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.service-card .small,
.service-card .text-white-50 {
    color: var(--text-muted) !important;
}

.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    color: var(--primary);
    font-size: 1.5rem;
}

/* Service cards (services list) */
.service-card-lg {
    background: var(--dark-soft);
    border-radius: 1.25rem;
    transition: transform 0.25s, box-shadow 0.25s;
}

.service-card-lg:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.service-icon-lg {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(34, 211, 238, 0.15));
    border-radius: 1rem;
    color: var(--primary);
    font-size: 1.75rem;
}

.link-arrow {
    font-weight: 600;
    font-size: 0.9rem;
}

.service-card-lg:hover .link-arrow {
    color: var(--accent) !important;
}

/* Hizmetler listesi: başlık ve açıklama net okunsun */
.service-card-lg .h4,
.service-card-lg h3 {
    color: #fff !important;
}

.service-card-lg .text-muted {
    color: var(--text-muted) !important;
}

/* Page hero (inner pages) - başlık altı açıklama okunaklı */
.page-hero {
    background: linear-gradient(180deg, var(--dark-soft) 0%, var(--dark) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.page-hero-compact {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
}

.page-hero h1,
.page-hero .display-5 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.page-hero .lead,
.page-hero .text-muted {
    color: #fff !important;
    font-weight: 500;
}

.page-content-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}
@media (min-width: 992px) {
    .page-content-section { padding-bottom: 4rem; }
}

/* Bootstrap text-muted override (koyu tema) */
.text-muted {
    color: var(--text-muted) !important;
}

.breadcrumb {
    --bs-breadcrumb-divider: "›";
}

.breadcrumb-item a {
    color: var(--text-soft);
    text-decoration: none;
}

.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: #fff; }

.service-icon-hero {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 1.25rem;
    color: var(--primary);
    font-size: 2.25rem;
}

/* Content body (rich text from DB) - yüksek kontrast */
.content-body {
    font-size: 1.05rem;
    color: #fff;
}

.content-body p {
    color: var(--text-muted);
}

.content-body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.content-body p { margin-bottom: 1rem; }
.content-body h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { margin-top: 1.25rem; margin-bottom: 0.5rem; font-size: 1.25rem; color: #fff; font-weight: 600; font-family: var(--font-heading); }
.content-body ul, .content-body ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-muted); }
.content-body a { color: var(--primary); text-decoration: none; }
.content-body a:hover { text-decoration: underline; }

/* Check list */
.check-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    color: var(--primary);
}

/* Ratio container images */
.ratio img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* CTA section - metin yatay bastırılmış/gerilmiş görünmesin */
.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2rem;
    margin: 0 1rem;
}

.section-cta .section-title,
.section-cta .text-white-50,
.section-cta .btn {
    letter-spacing: 0;
    font-stretch: normal;
}

.section-cta .section-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-cta .text-white-50 {
    color: rgba(255, 255, 255, 0.95) !important;
}

.section-cta .btn {
    font-family: var(--font-body);
    font-weight: 600;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Footer */
.site-footer {
    background: var(--dark-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer a,
.site-footer .text-white-50 {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--primary);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
}

.footer-logo {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.fw-600 { font-weight: 600; }

/* Forms */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 0.75rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-outline-light:hover {
    color: var(--dark);
}

.text-white {
    color: #fff !important;
}

/* Koyu tema: Bootstrap text-white-50 / text-muted okunaklı olsun */
.text-white-50 {
    color: var(--text-muted) !important;
}

/* Referanslar kartları - belirgin kutu, sitedeki koyu tema ile uyumlu */
.card.referans-card {
    background-color: rgba(26, 26, 36, 0.95) !important;
    background: rgba(26, 26, 36, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.referans-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
}

.referans-card .card-body {
    color: #fff !important;
    background: transparent !important;
    background-color: transparent !important;
}

.referans-card .card-body * {
    color: inherit;
}

.referans-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

/* Logo alanı - her zaman görünür kutu */
.referans-logo {
    min-height: 64px;
    width: 100%;
    max-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.referans-logo img {
    max-height: 44px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.referans-logo .referans-logo-fallback {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(165, 180, 252, 0.9);
    letter-spacing: 0.05em;
}

/* Utilities */
.tracking-wide { letter-spacing: 0.05em; }
.min-vh-50 { min-height: 50vh; }

/* AOS delay helpers */
[data-aos] { pointer-events: auto; }

/* Responsive */
@media (max-width: 991.98px) {
    .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .section-cta { 
        margin: 0 0.5rem; 
        border-radius: 1rem;
        padding: 3rem 1.5rem !important;
    }
    .section-cta .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
    }
    .navbar {
        padding: 1rem 0;
        min-height: 70px;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section .btn-lg { width: 100%; }
    .section-cta {
        padding: 2.5rem 1rem !important;
        margin: 0 0.25rem;
    }
    .section-cta .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem) !important;
        margin-bottom: 1rem !important;
    }
    .section-cta .text-white-50 {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }
    .navbar {
        padding: 0.75rem 0;
        min-height: 60px;
    }
    .navbar-brand {
        font-size: 1.35rem;
    }
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    .navbar-nav .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        margin-top: 0.5rem;
    }
    /* Mobilde tüm section'ların düzgün yüklenmesi için */
    section {
        min-height: auto !important;
        overflow: visible !important;
    }
    /* Mobilde scroll performansı */
    * {
        -webkit-overflow-scrolling: touch;
    }
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
