
/* ==========================================
   TRUVA ANİMASYONLU WEB TASARIM İMZASI
========================================== */

.truva-web-imza,
.truva-web-imza * {
    box-sizing: border-box;
}

.truva-web-imza {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 0;
}

.truva-web-imza__link {
    position: relative;
    display: block;
    width: 260px;
    height: 62px;
    overflow: hidden;
    color: #ffffff !important;
    text-decoration: none !important;
    background: transparent;
}

/* Ortak sahne */
.truva-web-imza__web,
.truva-web-imza__logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WEB TASARIM sahnesi */
.truva-web-imza__web {
    gap: 12px;
    animation: truvaWebSahne 6.4s cubic-bezier(.65, 0, .35, 1) infinite;
}

.truva-web-imza__web-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    line-height: 1;
}

.truva-web-imza__web-text span:first-child {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
}

.truva-web-imza__web-text span:last-child {
    color: #ffffff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Orta minimal teknoloji simgesi */
.truva-web-imza__symbol {
    position: relative;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 4px;
}

.truva-web-imza__symbol::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    right: 7px;
    height: 7px;
    border: 2px solid rgba(255, 255, 255, 0.72);
}

.truva-web-imza__symbol::after {
    content: "</>";
    position: absolute;
    right: 5px;
    bottom: 5px;
    color: #ff001f;
    font-family: monospace;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
}

/* TRUVA logo sahnesi */
.truva-web-imza__logo {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
    animation: truvaLogoSahne 6.4s cubic-bezier(.65, 0, .35, 1) infinite;
}

.truva-web-imza__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 145px;
    max-height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.18));
}

/* Geçiş sırasında geçen kırmızı tarama çizgisi */
.truva-web-imza__scan {
    position: absolute;
    z-index: 5;
    top: 9px;
    left: -8px;
    width: 2px;
    height: 44px;
    opacity: 0;
    border-radius: 10px;
    background: #ff001f;
    box-shadow:
        0 0 7px rgba(255, 0, 31, 0.85),
        0 0 18px rgba(255, 0, 31, 0.42);
    animation: truvaScan 6.4s ease-in-out infinite;
}

/* Alt çizgi */
.truva-web-imza__line {
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 118px;
    height: 1px;
    overflow: hidden;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.10);
}

.truva-web-imza__line::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(
        90deg,
        transparent,
        #ff001f,
        transparent
    );
    animation: truvaAltCizgi 6.4s ease-in-out infinite;
}

/* Hover */
.truva-web-imza__link:hover {
    color: #ffffff !important;
}

.truva-web-imza__link:hover .truva-web-imza__logo img {
    transform: scale(1.035);
    transition: transform 0.3s ease;
}

/* ==========================================
   ANİMASYONLAR
========================================== */

@keyframes truvaWebSahne {
    0%,
    28% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    35% {
        opacity: 0;
        transform: translateY(-7px) scale(0.96);
    }

    36%,
    79% {
        opacity: 0;
        transform: translateY(7px) scale(0.96);
    }

    88%,
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes truvaLogoSahne {
    0%,
    31% {
        opacity: 0;
        transform: translateY(8px) scale(0.94);
    }

    40%,
    72% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    80%,
    100% {
        opacity: 0;
        transform: translateY(-8px) scale(0.94);
    }
}

@keyframes truvaScan {
    0%,
    25% {
        left: -8px;
        opacity: 0;
    }

    29% {
        left: 0;
        opacity: 1;
    }

    38% {
        left: calc(100% + 8px);
        opacity: 1;
    }

    39%,
    74% {
        left: calc(100% + 8px);
        opacity: 0;
    }

    77% {
        left: calc(100% + 8px);
        opacity: 1;
    }

    86% {
        left: -8px;
        opacity: 1;
    }

    87%,
    100% {
        left: -8px;
        opacity: 0;
    }
}

@keyframes truvaAltCizgi {
    0%,
    22% {
        transform: translateX(-110%);
    }

    40% {
        transform: translateX(110%);
    }

    41%,
    69% {
        transform: translateX(110%);
    }

    87%,
    100% {
        transform: translateX(-110%);
    }
}

/* Mobil */
@media (max-width: 480px) {
    .truva-web-imza__link {
        width: 235px;
        height: 58px;
    }

    .truva-web-imza__web-text span:first-child {
        font-size: 10px;
        letter-spacing: 3.4px;
    }

    .truva-web-imza__web-text span:last-child {
        font-size: 16px;
    }

    .truva-web-imza__symbol {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .truva-web-imza__logo img {
        max-width: 130px;
        max-height: 38px;
    }

    .truva-web-imza__scan {
        top: 8px;
        height: 41px;
    }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    .truva-web-imza__web,
    .truva-web-imza__scan,
    .truva-web-imza__line {
        display: none;
    }

    .truva-web-imza__logo {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

footer .footer-grid{grid-template-columns:1.35fr .8fr 1fr 1.1fr}footer .footer-brand>a{display:inline-block}footer .footer-location a{font-size:14px;line-height:1.8;color:#fff}footer .footer-location .map-action{margin-top:18px;color:#d0cfe5;font-weight:750}footer .footer-bottom{align-items:center}footer .truva-web-imza{width:auto;padding:0;margin-left:auto}footer .truva-web-imza__link{width:200px}footer .truva-web-imza__web-text span:first-child{color:#fff}footer .footer-grid p,footer .footer-grid a{color:#fff}@media(max-width:760px){footer .footer-grid{grid-template-columns:1fr 1fr}footer .footer-brand{grid-column:1/-1}footer .footer-bottom{flex-wrap:wrap;justify-content:center;text-align:center;gap:12px}footer .footer-bottom>span{max-width:none;width:100%}footer .truva-web-imza{margin:0}}

/* Brand signature always occupies the final centered row. */
footer .footer-signature-row{display:flex;justify-content:center;align-items:center;padding:8px 0 20px}
footer .footer-signature-row .truva-web-imza{width:100%;margin:0;justify-content:center}
footer .footer-bottom{justify-content:space-between;padding-bottom:12px}
footer .footer-back-top{white-space:nowrap;color:#fff;font-weight:650}
@media(max-width:760px){footer .footer-bottom{justify-content:space-between;text-align:left}footer .footer-bottom>span{width:auto;max-width:70%}footer .footer-signature-row{padding-bottom:16px}}
