/**
 * Yazılım Geliştirme Merkezi sayfası — giriş, bakış, süreç ve "kullandığımız çözümler" bölümleri.
 * Ürün kartları ve iletişim çağrısı digital-solutions.css içindeki stilleri kullanır.
 */

.ygm-page {
    --ygm-brand: #32439f;
    --ygm-brand-dark: #263380;
    --ygm-navy: #1e2a6b;
    --ygm-ink: #0f172a;
    --ygm-text: #475569;
    --ygm-line: #e2e8f0;
    --ygm-soft: #f5f6fb;
}

/* ---------- Ortak başlıklar ---------- */

.ygm-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ygm-brand);
}

.ygm-heading {
    margin: 0.5rem 0 0;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--ygm-navy);
}

.ygm-text {
    margin: 1rem 0 0;
    max-width: 44rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--ygm-text);
}

/* ---------- Giriş ---------- */

.ygm-hero {
    position: relative;
    padding: clamp(3rem, 6vw, 4.75rem) 0;
    color: #fff;
    background-color: var(--ygm-brand);
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.5px),
        linear-gradient(135deg, #3f51b5 0%, var(--ygm-brand) 40%, var(--ygm-navy) 100%);
    background-size: 22px 22px, cover;
}

.ygm-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.ygm-hero__badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ygm-hero__title {
    margin: 1.25rem 0 0;
    max-width: 16ch;
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: #fff;
}

.ygm-hero__lead {
    margin: 1.25rem 0 0;
    max-width: 38rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.ygm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.ygm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.35rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ygm-btn--light {
    color: var(--ygm-brand);
    background: #fff;
}

.ygm-btn--light:hover,
.ygm-btn--light:focus-visible {
    color: var(--ygm-navy);
    transform: translateY(-2px);
}

.ygm-btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.ygm-btn--ghost:hover,
.ygm-btn--ghost:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.ygm-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Çalışma alanları kartı */
.ygm-areas {
    padding: 1.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 28px 50px -30px rgba(10, 15, 50, 0.8);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.ygm-areas__title {
    margin: 0 0 1.25rem;
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.ygm-areas__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.ygm-areas__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ygm-areas__item:first-child {
    padding-top: 0;
    border-top: 0;
}

.ygm-areas__item:last-child {
    padding-bottom: 0;
}

.ygm-areas__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    font-size: 1.05rem;
    color: var(--ygm-brand);
    background: #fff;
}

.ygm-areas__item strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 500;
    color: #fff;
}

.ygm-areas__item span span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- Ne yapıyoruz ---------- */

.ygm-work {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: #fff;
}

.ygm-work__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 2.5rem;
    margin-top: 2.75rem;
}

.ygm-work-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ygm-line);
}

.ygm-work-item__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--ygm-brand);
    background: rgba(50, 67, 159, 0.08);
}

.ygm-work-item__title {
    margin: 0.15rem 0 0;
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--ygm-navy);
}

.ygm-work-item__text {
    margin: 0.45rem 0 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--ygm-text);
}

/* ---------- Hedefler ---------- */

.ygm-goals {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    color: #fff;
    background-color: var(--ygm-navy);
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.5px),
        linear-gradient(160deg, var(--ygm-brand-dark) 0%, var(--ygm-navy) 100%);
    background-size: 22px 22px, cover;
}

.ygm-goals__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.ygm-eyebrow--light {
    color: rgba(255, 255, 255, 0.75);
}

.ygm-heading--light {
    color: #fff;
}

.ygm-goals__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.ygm-goal {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.ygm-goal__mark {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 0.8rem;
    color: var(--ygm-brand);
    background: #fff;
}

.ygm-goal__title {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
}

.ygm-goal__text {
    margin: 0.45rem 0 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Teknolojiye bakış ---------- */

.ygm-vision {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: #fff;
}

.ygm-principles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.ygm-principle {
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--ygm-soft);
    box-shadow: inset 0 0 0 1px rgba(50, 67, 159, 0.08);
}

.ygm-principle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    font-size: 1.15rem;
    color: #fff;
    background: var(--ygm-brand);
    box-shadow: 0 12px 22px -12px rgba(50, 67, 159, 0.8);
}

.ygm-principle__title {
    margin: 1.1rem 0 0;
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--ygm-navy);
}

.ygm-principle__text {
    margin: 0.5rem 0 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--ygm-text);
}

/* ---------- Süreç ---------- */

.ygm-process {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: var(--ygm-soft);
    border-top: 1px solid rgba(50, 67, 159, 0.08);
}

.ygm-steps {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.ygm-step {
    position: relative;
    padding-top: 1.5rem;
    border-top: 2px solid var(--ygm-line);
}

/* Adım numarası çizginin üzerinde durur; çizgi adımları birbirine bağlar. */
.ygm-step__num {
    position: absolute;
    top: -1.1rem;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    background: var(--ygm-brand);
    box-shadow: 0 0 0 5px var(--ygm-soft);
}

.ygm-step__title {
    margin: 0.75rem 0 0;
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--ygm-navy);
}

.ygm-step__text {
    margin: 0.5rem 0 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--ygm-text);
}

/* ---------- Kullandığımız çözümler ---------- */

.ygm-used {
    padding: clamp(2.5rem, 5vw, 3.75rem) 0;
    background: #fff;
    border-top: 1px solid rgba(50, 67, 159, 0.08);
}

.ygm-used__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.ygm-used-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--ygm-ink);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--ygm-line), 0 4px 24px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ygm-used-card:hover,
.ygm-used-card:focus-visible {
    color: var(--ygm-ink);
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1.5px var(--ygm-brand), 0 18px 32px -20px rgba(30, 42, 107, 0.55);
    outline: none;
}

.ygm-used-card__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    font-size: 1.25rem;
    color: var(--ygm-brand);
    background: rgba(50, 67, 159, 0.08);
}

.ygm-used-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.ygm-used-card__badge {
    align-self: flex-start;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    background: #eef1f6;
}

.ygm-used-card__title {
    margin-top: 0.55rem;
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--ygm-navy);
}

.ygm-used-card__tagline {
    margin-top: 0.2rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ygm-text);
}

.ygm-used-card__arrow {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ygm-used-card:hover .ygm-used-card__arrow,
.ygm-used-card:focus-visible .ygm-used-card__arrow {
    color: var(--ygm-brand);
    transform: translateX(3px);
}

/* ---------- Duyarlı ---------- */

@media (max-width: 1199.98px) {
    .ygm-principles,
    .ygm-steps,
    .ygm-work__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ygm-goals__grid {
        grid-template-columns: 1fr;
    }

    .ygm-steps {
        row-gap: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .ygm-hero__grid {
        grid-template-columns: 1fr;
    }

    .ygm-hero__title {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .ygm-principles,
    .ygm-steps,
    .ygm-work__grid,
    .ygm-goals__list,
    .ygm-used__grid {
        grid-template-columns: 1fr;
    }

    .ygm-used-card {
        padding: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ygm-btn,
    .ygm-used-card,
    .ygm-used-card__arrow {
        transition: none;
    }
}
