/* ================================================================
   AYTEM KURUMSAL — HERO & PAGE HERO CSS
   Unified .page-hero sınıfı + animasyonlar + breadcrumb
================================================================ */

/* --- Ortak Hero Arka Plan Animasyonu --- */
@keyframes hero-gradient-shift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes wave-move {
    0%   { transform: translateX(0) translateZ(0) scaleY(1); }
    50%  { transform: translateX(-25%) translateZ(0) scaleY(0.85); }
    100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

/* ================================================================
   ANA SAYFA HEROu — Zengin, Animasyonlu
================================================================ */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--space-24) 0 calc(var(--space-24) + 60px);

    /* Canlı gradient arka plan */
    background: linear-gradient(
        135deg,
        var(--color-dark) 0%,
        #0d2137 25%,
        #0a3052 55%,
        var(--color-dark-mid) 80%,
        var(--color-dark) 100%
    );
    background-size: 300% 300%;
    animation: hero-gradient-shift 12s ease infinite;
}

/* Işık efekti — sol üst mavi parlaklık */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 55%;
    height: 130%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 159, 227, 0.18) 0%,
        rgba(0, 159, 227, 0.06) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

/* Dalga formu — alt kısım */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--color-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

/* Dekoratif nokta ızgara deseni */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 1;
    pointer-events: none;
}

/* Hero içerik animasyonları */
.hero h1 {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    font-family: var(--font-heading);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-white);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-6);
    animation: hero-fade-up 0.8s ease both;
    animation-delay: 0.1s;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Mavi vurgu kelimesi */
.hero h1 .highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-full);
    opacity: 0.7;
}

.hero p {
    font-size: clamp(var(--font-size-md), 2vw, var(--font-size-xl));
    color: rgba(255,255,255,0.8);
    max-width: 640px;
    margin: 0 auto var(--space-10);
    line-height: var(--line-height-relaxed);
    animation: hero-fade-up 0.8s ease both;
    animation-delay: 0.25s;
}

/* CTA Buton Grubu */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: hero-fade-up 0.8s ease both;
    animation-delay: 0.4s;
}

/* İstatistik kartları (opsiyonel) */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-12);
    flex-wrap: wrap;
    animation: hero-fade-up 0.8s ease both;
    animation-delay: 0.55s;
}

.hero-stat-item {
    text-align: center;
    padding: var(--space-4) var(--space-6);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
    min-width: 130px;
}

.hero-stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
    font-family: var(--font-heading);
    line-height: 1;
    display: block;
}

.hero-stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.65);
    margin-top: var(--space-1);
    display: block;
}

/* ================================================================
   SAYFA HEROsu — Alt Sayfalar İçin Ortak Sınıf
   (about, contact, products, blog vs.)
================================================================ */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-20) 0 calc(var(--space-20) + 40px);
    text-align: center;

    background: linear-gradient(
        135deg,
        var(--color-dark) 0%,
        #0d2137 30%,
        #0a3052 60%,
        var(--color-dark-mid) 100%
    );
    background-size: 200% 200%;
    animation: hero-gradient-shift 10s ease infinite;
}

/* Nokta deseni */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 1;
    pointer-events: none;
}

/* Mavi ışık efekti */
.page-hero .page-hero-light {
    position: absolute;
    top: -20%;
    right: 10%;
    width: 40%;
    height: 150%;
    background: radial-gradient(
        ellipse,
        rgba(0, 159, 227, 0.12) 0%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 1;
}

/* Alt dalga */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--color-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

.page-hero .container {
    position: relative;
    z-index: 3;
}

.page-hero h1 {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    font-family: var(--font-heading);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-white);
    margin-bottom: var(--space-4);
    animation: hero-fade-up 0.7s ease both;
    text-shadow: 0 2px 15px rgba(0,0,0,0.25);
}

.page-hero p {
    font-size: var(--font-size-md);
    color: rgba(255,255,255,0.75);
    max-width: 580px;
    margin: 0 auto var(--space-6);
    line-height: var(--line-height-relaxed);
    animation: hero-fade-up 0.7s ease both;
    animation-delay: 0.1s;
}

/* Geriye dönük uyumluluk — eski .hero class'ı alt sayfalarda da kullanılıyor */
section.hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-20) 0 calc(var(--space-20) + 40px);
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--color-dark) 0%,
        #0d2137 30%,
        #0a3052 60%,
        var(--color-dark-mid) 100%
    );
    background-size: 200% 200%;
    animation: hero-gradient-shift 10s ease infinite;
}

section.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 1;
    pointer-events: none;
}

section.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--color-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

section.hero .container {
    position: relative;
    z-index: 3;
}

section.hero h1 {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    font-family: var(--font-heading);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-white);
    margin-bottom: var(--space-4);
    animation: hero-fade-up 0.7s ease both;
}

section.hero p {
    font-size: var(--font-size-md);
    color: rgba(255,255,255,0.78);
    max-width: 580px;
    margin: 0 auto var(--space-6);
    line-height: var(--line-height-relaxed);
    animation: hero-fade-up 0.7s ease both;
    animation-delay: 0.1s;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    padding: var(--space-2) var(--space-4);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    animation: hero-fade-up 0.7s ease both;
    animation-delay: 0.2s;
}

.breadcrumb-item {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.65);
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--color-primary-light);
}

.breadcrumb-item.active {
    color: var(--color-primary-light);
    font-weight: var(--font-weight-medium);
}

.breadcrumb-separator {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.35);
    line-height: 1;
}

/* --- Referanslar Slider --- */
.references {
    padding: var(--space-20) 0;
    background: var(--color-bg);
}

.references-container {
    width: var(--container-width);
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.references h2 {
    font-size: var(--font-size-2xl);
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-bottom: var(--space-10);
    font-weight: var(--font-weight-bold);
}

.references-logos {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: var(--space-4) 0;
    /* Kenarlarda soluk geçiş efekti */
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logos-slider {
    display: inline-flex;
    align-items: center;
    animation: slide 25s linear infinite;
    gap: var(--space-10);
}

.reference-logo {
    width: 140px;
    height: 60px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.3s ease;
}

.reference-logo:hover {
    filter: grayscale(0%) opacity(1);
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        min-height: 520px;
        padding: var(--space-20) 0 calc(var(--space-20) + 40px);
    }

    .page-hero,
    section.hero {
        padding: var(--space-16) 0 calc(var(--space-16) + 30px);
    }

    .hero-stats {
        gap: var(--space-4);
    }

    .hero-stat-item {
        min-width: 100px;
        padding: var(--space-3) var(--space-4);
    }

    .hero-stat-number {
        font-size: var(--font-size-2xl);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .reference-logo {
        width: 110px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: var(--font-size-xs);
    }
}