/* ===========================
   PRELOADER
   =========================== */
.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--theme-border);
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: preloaderSpin 0.7s linear infinite;
}

@keyframes preloaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   SAYFA GEÇİŞ ANİMASYONU
   =========================== */
.page-fade-in {
    animation: pageFadeIn 0.6s ease both;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===========================
   GLOBAL HOVER EFEKTLERİ
   =========================== */

/* Link underline reveal */
.nxt-footer-links a,
.news-card .news-title,
.breadcrumb a {
    position: relative;
    transition: color 0.3s ease;
}

.nxt-footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nxt-footer-links a:hover::after {
    width: 100%;
}

/* Card lift - global */
.news-card,
.proje-preview-card,
.urun-vitrin-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
}

/* Button press effect */
.green-btn,
.btn-about-more,
.btn-parallax-cta,
.btn-news-all,
.urun-vitrin-more a,
.projeler-preview-more a {
    transition: all 0.3s ease;
}

.green-btn:active,
.btn-about-more:active,
.btn-parallax-cta:active,
.btn-news-all:active,
.urun-vitrin-more a:active,
.projeler-preview-more a:active {
    transform: scale(0.96);
}

/* Image zoom on hover - global */
.news-card-image-wrap img {
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image-wrap img {
    transform: scale(1.05);
}

/* ===========================
   SMOOTH SCROLL
   =========================== */
html {
    scroll-behavior: smooth;
}

/* ===========================
   FOCUS STATES (A11Y)
   =========================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--theme-primary);
    outline-offset: 2px;
}

/* ===========================
   SUBTLE SECTION DIVIDERS
   =========================== */
.urun-vitrin-section+.about-creative-section,
.about-creative-section+.projeler-preview-section {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===========================
   RESPONSIVE MOTION REDUCTION
   =========================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .site-preloader {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}