/* Homepage specific enhancements */

/* Typography utilities (homepage local) */
.text-xs {
    font-size: var(--font-scale-xs, .75rem);
    line-height: 1.25;
}

/* KPI section tweaks reuse grid spacing from components; only deltas */
#kpi .card {
    text-align: left;
}

#kpi .metric {
    font-size: clamp(1.5rem, 3vw + .5rem, 2.75rem);
    font-weight: 600;
    display: inline-block;
    min-width: 2.5ch;
}

#kpi .muted {
    display: inline-block;
    margin-top: .25rem;
}

/* Hero refinements */
.hero {
    position: relative;
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--color-bg) 0%, transparent 60%);
    pointer-events: none;
    opacity: .85;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero .headline-overlay {
    mix-blend-mode: normal;
}

.hero .cta-row {
    flex-wrap: wrap;
}

@media (max-width:60rem) {
    #kpi .grid {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }
}

@media (max-width:48rem) {
    #kpi .metric {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }
}

@media (max-width:30rem) {
    #kpi .metric {
        font-size: 2rem;
    }

    .hero::after {
        background: linear-gradient(165deg, var(--color-bg) 0%, transparent 55%);
    }
}

/* (Removed misplaced @charset) */

/*
* DEMIROSGB WEBSITE 
* Generated by Mefamex (mefamex.com)
* Created on  : 2025-08-08 
* Last update : 2025-08-08-T14:00:00Z
* Copyright 2024 Hakan DEMİREL
* This css file is for the main page of website.
* Title : style.css
*/


/* Main Content Styles */
main {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    max-width: 100%;
    height: fit-content;
    max-height: 100%;
    margin: 0px;
    padding: 0rem 0px 4rem 0px;
}

/*
*
*
*
*
*
*
*/

main #headline {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    padding-top: 4rem;
}

main #headline .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    -webkit-filter: blur(0.1rem);
    filter: blur(0.1rem) opacity(0.58);
    box-shadow: inset 0 0 0.5rem rgba(0, 0, 0, 0.3);
}

main #headline img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
    content-visibility: auto;
    --mask: linear-gradient(transparent 0%, black 4rem, black 90%, transparent 100%);
    -webkit-mask-image: var(--mask);
    mask-image: var(--mask);
}

main #headline .headline-overlay {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

main #headline .headline-overlay h1 {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: fit-content;
    padding: 0;
    margin-block: 2rem 0;
    margin-inline: auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-primary);
    cursor: default;
    font-family: sans-serif;
    font-weight: 600;
    text-wrap: nowrap;
    font-size: var(--font-scale-xxl, clamp(2rem, 5vw + 1rem, 3rem));
    line-height: 1em;
}

main #headline h1 span {
    display: inline-block;
    position: relative;
    padding: 0.2em 0.1em;
    margin-block: 0.05em;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(0.2rem);
}

main #headline .headline-overlay ul {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 25rem;
    max-width: 100%;
    height: 2.5rem;
    margin-block: 0;
    margin-inline: auto;
    padding: 0;
    overflow: hidden;
}

main .headline-overlay li {
    position: absolute;
    top: -2rem;
    inset-inline: 0;
    display: inline;
    width: fit-content;
    margin: 0 auto;
    padding: 0.2em 0.5em;
    align-self: center;
    justify-self: anchor-center;
    background: none;
    text-align: center;
    color: var(--text-primary);
    font-size: var(--font-scale-sm, .9rem);
    border-radius: 0.5rem;
    cursor: default;
    opacity: 0;
    transition: all 0.5s ease;
}

main .headline-overlay li::before {
    content: " ";
    position: absolute;
    inset: 0;
    background-color: var(--accent-primary-light);
    border-radius: inherit;

    opacity: 0;
}

main .headline-overlay li.show::before {
    opacity: 0.4;
    transition: all 3s normal;
}

main .headline-overlay li.show {
    opacity: 1;
    top: 0;
    animation: slideUp 1s ease-in-out backwards;
}

main .headline-overlay ul:hover li {
    border-radius: 0;
    background-color: var(--accent-primary-light);
    font-size: 1rem;
    transition: all 0.5s ease 0.2s;

    &::before {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        top: 5rem;
        opacity: 0;
    }

    100% {
        top: 0rem;
    }

}

/*
*
*
*
*
*/
main #headline .headline-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

main #headline .headline-content .leftListe {
    display: flex;
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    max-height: 100%;
    flex-grow: 1;
    padding: 0;
    margin: 0;
}


main #headline .headline-content .rightListe {
    display: flex;
    flex-shrink: 0;
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    max-height: 100%;
    overflow: auto;
}

main #headline .rightListe ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    max-height: 100%;
    padding: 0 0.5rem;
    margin-block: 2rem 0;
    margin-inline: auto;
    align-items: center;
    justify-content: space-evenly;
    gap: 1em;
}

main #headline .rightListe li {
    position: relative;
    display: inline-block;
    width: 7em;
    max-width: 10rem;
    padding: 0.8em 0.1em;
    text-align: center;
    overflow-wrap: normal;
    border-radius: 1rem;
    color: var(--text-on-primary);
    font-weight: 500;
    line-height: 1.1;
    cursor: default;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out calc(2s + var(--i) * 0.25s) backwards;
    transition: all 0.5s ease;
}

main #headline .rightListe li::before {
    position: absolute;
    content: " ";
    display: block;
    width: 100%;
    height: 100%;
    align-self: center;
    justify-self: flex-end;
    top: 0;
    left: 0;
    opacity: 0.7;
    z-index: -1;
    background-color: var(--secondary-color);
    border-radius: inherit;
    animation: slideLeft 0.5s ease calc(2.3s + var(--i) * 0.25s) backwards;
    transition: all 0.5s ease;
}

@keyframes slideLeft {
    from {
        opacity: 1;
        left: 100%;
    }

    to {
        opacity: 0.9;
        left: 0;
    }
}

main #headline .rightListe li:hover {
    transform: translateX(-.2em);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}

main #headline .rightListe li:hover::before {
    opacity: 1;
    transition: all 0.2s ease;
}

/* =============================
 *  MOBILE / SMALL VIEWPORT TUNING
 * ============================= */
@media (max-width: 48rem) {
    main #headline {
        height: auto;
        max-height: none;
        min-height: 75vh;
        padding-top: 5rem;
        flex-direction: column;
    }

    main #headline .headline-overlay h1 {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
        padding-inline: .5rem;
    }

    main #headline .headline-overlay ul {
        width: 100%;
        height: 2.2rem;
    }

    main #headline .headline-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 0 1rem 2rem;
    }

    main #headline .headline-content .leftListe {
        display: none;
    }

    main #headline .headline-content .rightListe {
        justify-content: center;
    }

    main #headline .rightListe ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: .6rem;
        margin-block: 1.5rem 0;
    }

    main #headline .rightListe li {
        width: 6.5em;
        font-size: var(--font-scale-xs, .75rem);
        padding: .6em .2em;
    }
}

@media (max-width: 30rem) {
    main #headline .rightListe li {
        width: 45%;
        min-width: 6rem;
    }
}

/* =====================================================
 * HERO ( #headline ) REFRESH OVERRIDES
 * Daha temiz tipografi, okunabilirlik ve modern chip etiket yapısı
 * Önceki kuralların üzerinde konumlandırılmıştır.
 * ===================================================== */
#headline {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(4.5rem, 7vh, 6rem) 1.25rem 3rem;
    min-height: min(100svh, 820px);
    max-height: none;
    overflow: hidden;
}

#headline .bg-image {
    -webkit-filter: none;
    filter: none;
}

#headline .bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(12, 16, 25, .88) 0%, rgba(12, 16, 25, .55) 55%, rgba(12, 16, 25, .15) 100%);
    mix-blend-mode: normal;
}

#headline .headline-overlay {
    max-width: 68rem;
    width: 100%;
    margin-inline: auto;
    text-align: center;
}

#headline .headline-overlay h1 {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 700;
    line-height: 1.05;
    gap: .35ch;
    letter-spacing: -.5px;
    margin-bottom: 1.25rem;
}

#headline .headline-overlay h1 span {
    background: none;
    backdrop-filter: none;
    padding: .15em .25em;
}

#headline .headline-overlay h1 span:last-child {
    position: relative;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#headline .hero-sub {
    font-size: clamp(.95rem, .7rem + .7vw, 1.2rem);
    color: var(--text-on-primary, #f5f7fa);
    max-width: 48rem;
    margin-inline: auto;
    line-height: 1.4;
}

#headline .hero-cta, #headline .hero-cta .btn {
    position: relative;
    z-index: 2;
}

#headline .hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

/* Dönen listeyi chip etiket setine dönüştür */
#headline .headline-overlay ul {
    height: auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: .25rem;
    padding: 0;
}

#headline .headline-overlay ul li {
    position: relative !important;
    top: 0 !important;
    opacity: 1 !important;
    animation: none !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    padding: .45em .85em;
    font-size: var(--font-scale-xs, .75rem);
    font-weight: 500;
    letter-spacing: .4px;
    border-radius: 999px;
    transition: background .3s ease, transform .3s ease;
}

#headline .headline-overlay ul li.show {
    background: rgba(255, 255, 255, 0.14);
}

#headline .headline-overlay ul li:hover {
    background: rgba(255, 255, 255, .25);
    transform: translateY(-2px);
}

/* Yan listeyi (rightListe) desktop'ta alt banda çevir */
#headline .headline-content {
    position: relative;
    width: 100%;
    max-width: 68rem;
    margin: 1.25rem auto 0;
    display: flex;
    justify-content: center;
}

#headline .headline-content .rightListe ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 0;
    padding: 0;
}

#headline .headline-content .rightListe li {
    width: auto;
    min-width: auto;
    font-size: var(--font-scale-xs, .75rem);
    font-weight: 500;
    padding: .55em .9em;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-on-primary, #fff);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    animation: none;
    transform: none;
    transition: background .3s ease, box-shadow .3s ease;
}

#headline .headline-content .rightListe li::before {
    display: none;
}

#headline .headline-content .rightListe li:hover {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .25);
}

/* Responsive ölçek */
@media (max-width: 60rem) {
    #headline {
        min-height: unset;
        padding-top: clamp(5rem, 9vh, 6.5rem);
    }

    #headline .headline-overlay h1 {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    #headline .headline-overlay ul li {
        font-size: calc(var(--font-scale-xs, .75rem) - .05rem);
    }
}

@media (max-width: 48rem) {
    #headline {
        padding: clamp(4.5rem, 8vh, 6rem) 1rem 2.75rem;
    }

    #headline .hero-cta {
        margin-top: 1.25rem;
    }

    #headline .headline-content {
        display: none;
    }
}

@media (max-width: 30rem) {
    #headline .headline-overlay h1 {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
    }

    #headline .headline-overlay ul {
        gap: .4rem;
    }

    #headline .headline-overlay ul li {
        font-size: calc(var(--font-scale-xs, .75rem) - .1rem);
        padding: .45em .75em;
    }
}

/* Reduce motion: animasyon geçişlerini yumuşat */
@media (prefers-reduced-motion: reduce) {
    #headline * {
        animation: none !important;
        transition: none !important;
    }
}

/* =====================================================
 * MEDIA ELEMENT OPTIMIZATION (Hero & Reference Logos)
 * Boyut stabilizasyonu + tutarlı görünüm
 * ===================================================== */
.hero .bg-image picture, .hero .bg-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero .bg-image img {
    object-fit: cover;
    object-position: center;
}

#ref-logos, #ref-logos picture {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

#ref-logos {
    align-items: center;
}

#ref-logos picture {
    position: relative;
    width: 150px;
    height: 100px;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: .35rem .5rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .75rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px -2px rgba(0, 0, 0, .25);
    transition: box-shadow .3s ease, transform .3s ease;
}

#ref-logos picture:hover {
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .4);
    transform: translateY(-3px);
}

#ref-logos img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) contrast(.9) opacity(.85);
    transition: filter .4s ease;
}

#ref-logos picture:hover img {
    filter: none;
}

@media (max-width:48rem) {
    #ref-logos picture {
        width: 120px;
        height: 80px;
    }
}