/* ============================================================
   iPhone bildirim tarzı istatistik kartı (hero altı)
   ============================================================ */
.stats-band {
    padding: 0 0 0;
    margin-top: -80px;
    position: relative;
    z-index: 5;
}

.stats-notification {
    max-width: 920px;
    margin: 0 auto;
    border-radius: 22px;
    padding: 18px 22px 22px;
    color: #fff;

    /* iOS bildirim efekti — hafif şeffaf */
    background: rgba(20, 28, 42, 0.55);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 0.5px solid rgba(255,255,255,0.18);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.45),
        0 4px 14px rgba(0,0,0,0.2),
        inset 0 0.5px 0 rgba(255,255,255,0.15);
}

.stats-notification__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 0.5px solid rgba(255,255,255,0.14);
}
.stats-notification__app {
    display: flex; align-items: center; gap: 12px;
}
.stats-notification__icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: grid; place-items: center;
    padding: 6px;
    overflow: hidden;
}
.stats-notification__icon img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    filter: brightness(1.2);
}
.stats-notification__app-name {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.1;
}
.stats-notification__app-sub {
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    margin-top: 3px;
}
.stats-notification__time {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
}

.stats-notification__items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stats-notification__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 4px;
}
.stats-notification__num {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
    line-height: 1;
    background: linear-gradient(180deg, #fff 0%, #9ac2e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stats-notification__label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    line-height: 1.3;
}

@media (max-width: 720px) {
    .stats-band { margin-top: -60px; }
    .stats-notification__items {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }
    .stats-notification__num { font-size: 1.4rem; }
    .stats-notification__label { font-size: 0.64rem; }
}

/* ============================================================
   Sektörel 3D animasyon bölümü (Hizmetler sonrası)
   ============================================================ */
.sector-3d {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(0,105,174,0.25), transparent 55%),
        linear-gradient(180deg, #040810 0%, #081220 100%);
}
.sector-3d::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(63,163,224,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(63,163,224,0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}

.sector-3d__inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.sector-3d__text {
    max-width: 520px;
}

/* 3D sahne tabanı */
.stage3d {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 560px;
    margin-left: auto;
    perspective: 1400px;
    perspective-origin: 50% 40%;
}
.stage3d__scene {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(55deg) rotateZ(-35deg);
    animation: stageSpin 24s linear infinite;
}
@keyframes stageSpin {
    0%   { transform: rotateX(55deg) rotateZ(-35deg); }
    100% { transform: rotateX(55deg) rotateZ(325deg); }
}

/* Taban plakası */
.stage3d__floor {
    position: absolute;
    top: 50%; left: 50%;
    width: 300px; height: 300px;
    margin: -150px 0 0 -150px;
    transform: translateZ(-2px);
    background:
        linear-gradient(rgba(63,163,224,0.2) 1px, transparent 1px) 0 0 / 30px 30px,
        linear-gradient(90deg, rgba(63,163,224,0.2) 1px, transparent 1px) 0 0 / 30px 30px,
        linear-gradient(135deg, rgba(0,105,174,0.18), rgba(0,0,0,0.4));
    border: 1px solid rgba(63,163,224,0.35);
    box-shadow: 0 0 60px rgba(0,105,174,0.4);
}

/* Ortak kutu (face sistemi) */
.cube {
    position: absolute;
    transform-style: preserve-3d;
}
.cube__face {
    position: absolute;
    background: linear-gradient(135deg, rgba(0,105,174,0.55), rgba(0,105,174,0.25));
    border: 1px solid rgba(100,190,255,0.65);
    box-shadow: inset 0 0 20px rgba(100,190,255,0.15);
}

/* ===== İNŞAAT — katman katman yükselen bina ===== */
.sector-3d--insaat .stage3d__scene { /* override */ }

.insaat-building {
    position: absolute;
    top: 50%; left: 50%;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
}
.insaat-floor {
    position: absolute;
    left: -60px;
    width: 120px; height: 120px;
    transform-style: preserve-3d;
    opacity: 0;
    animation: insaatFloorRise 9s infinite;
}
.insaat-floor__side {
    position: absolute;
    background: linear-gradient(135deg, rgba(0,105,174,0.85), rgba(0,80,140,0.65));
    border: 1px solid rgba(100,190,255,0.9);
    box-shadow: inset 0 0 20px rgba(100,190,255,0.3);
}
.insaat-floor__side--top {
    width: 120px; height: 120px;
    transform: translateZ(25px);
    background:
        linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(135deg, rgba(0,105,174,0.75), rgba(0,80,140,0.55));
}
.insaat-floor__side--bottom {
    width: 120px; height: 120px;
    transform: translateZ(-25px) rotateY(180deg);
}
.insaat-floor__side--front {
    width: 120px; height: 50px;
    transform: translateY(-25px) rotateX(90deg) translateZ(25px);
}
.insaat-floor__side--back {
    width: 120px; height: 50px;
    transform: translateY(95px) rotateX(90deg) translateZ(25px);
}
.insaat-floor__side--left {
    width: 50px; height: 120px;
    transform: translateX(-25px) rotateY(90deg) translateZ(25px);
}
.insaat-floor__side--right {
    width: 50px; height: 120px;
    transform: translateX(95px) rotateY(90deg) translateZ(25px);
}

@keyframes insaatFloorRise {
    0%, 100% { opacity: 0; transform: translateZ(-80px) scale(0.85); }
    8%, 88%  { opacity: 1; transform: translateZ(var(--z, 0)) scale(1); }
}
.insaat-floor:nth-child(1) { --z:   0px; animation-delay: 0s; }
.insaat-floor:nth-child(2) { --z:  50px; animation-delay: 0.5s; }
.insaat-floor:nth-child(3) { --z: 100px; animation-delay: 1.0s; }
.insaat-floor:nth-child(4) { --z: 150px; animation-delay: 1.5s; }
.insaat-floor:nth-child(5) { --z: 200px; animation-delay: 2.0s; }

/* ===== CEPHE — panel panel uçuşan cephe ===== */
.cephe-facade {
    position: absolute;
    top: 50%; left: 50%;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
}
.cephe-panel {
    position: absolute;
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(100,190,255,0.85), rgba(0,105,174,0.55));
    border: 1px solid rgba(155,220,255,0.95);
    box-shadow:
        inset 0 0 20px rgba(255,255,255,0.25),
        0 0 12px rgba(100,190,255,0.5);
    transform-style: preserve-3d;
    backface-visibility: visible;
    animation: panelFly 10s infinite var(--ease-out);
    opacity: 0;
}
@keyframes panelFly {
    0% { opacity: 0; transform: translate3d(var(--sx, -400px), var(--sy, -300px), -200px) rotateY(60deg); }
    10% { opacity: 1; }
    40%, 75% { opacity: 1; transform: translate3d(var(--dx), var(--dy), var(--dz)) rotateY(0); }
    100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), var(--dz)) rotateY(0); }
}

/* ===== STEELCO — çelik profil inşası ===== */
.steelco-frame {
    position: absolute;
    top: 50%; left: 50%;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
}
.steel-beam {
    position: absolute;
    background: linear-gradient(180deg, #5fa5d8, #0069ae);
    border: 1px solid rgba(155,220,255,0.9);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.35),
        0 0 18px rgba(0,105,174,0.6);
    transform-style: preserve-3d;
    animation: beamIn 6s infinite var(--ease-out);
    opacity: 0;
}
@keyframes beamIn {
    0% { opacity: 0; transform: translate3d(0,0,-200px) scaleY(0); }
    25% { opacity: 1; transform: translate3d(0,0,0) scaleY(1); }
    80% { opacity: 1; transform: translate3d(0,0,0) scaleY(1); }
    100% { opacity: 0; transform: translate3d(0,0,0) scaleY(1); }
}

/* Spark / welding effect */
.steel-spark {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #ffd866;
    box-shadow: 0 0 16px #ffb020, 0 0 30px #ff9020;
    animation: sparkle 1.2s ease-in-out infinite;
}
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    40% { opacity: 1; transform: scale(1.5); }
    60% { opacity: 0.6; transform: scale(1); }
}

@media (max-width: 900px) {
    .sector-3d__inner { grid-template-columns: 1fr; }
    .stage3d { margin: 0 auto; max-width: 420px; }
    .sector-3d { padding: 80px 0; }
}

/* ============================================================
   Site geçiş animasyonu (tıklanınca overlay)
   ============================================================ */
.page-transition {
    position: fixed; inset: 0;
    z-index: 9999;
    pointer-events: none;
    display: grid; place-items: center;
    background: radial-gradient(ellipse at center, #0069ae 0%, #001f3f 100%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}
.page-transition.is-entering {
    opacity: 1; pointer-events: auto;
}
.page-transition__logo {
    max-width: 280px;
    max-height: 120px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s var(--ease-out) 0.1s;
    filter: brightness(1.2);
}
.page-transition.is-entering .page-transition__logo {
    opacity: 1; transform: scale(1);
}
.page-transition__label {
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 28px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s var(--ease-out) 0.3s;
}
.page-transition.is-entering .page-transition__label {
    opacity: 0.8; transform: none;
}
.page-transition__bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px; width: 0;
    background: #fff;
    transition: width 0.6s var(--ease-out) 0.2s;
}
.page-transition.is-entering .page-transition__bar {
    width: 100%;
}
