/* ============================================================
   Northshine — Animasyon Sistemi
   ============================================================ */

/* ── Sayfa Yükleme Animasyonu ────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes revealLine {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ── Hero Animasyonları ──────────────────────────────────── */
.hero-animated .hero-label {
    animation: fadeInUp 0.8s cubic-bezier(0.0, 0.0, 0.2, 1) 0.4s both;
}

.hero-animated .hero-title .line-inner {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-animated .hero-title .line:nth-child(1) .line-inner { animation-delay: 0.5s; }
.hero-animated .hero-title .line:nth-child(2) .line-inner { animation-delay: 0.65s; }
.hero-animated .hero-title .line:nth-child(3) .line-inner { animation-delay: 0.8s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(110%); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-animated .hero-subtitle {
    animation: fadeInUp 0.8s cubic-bezier(0.0, 0.0, 0.2, 1) 1.0s both;
}

.hero-animated .hero-actions {
    animation: fadeInUp 0.8s cubic-bezier(0.0, 0.0, 0.2, 1) 1.15s both;
}

.hero-animated .hero-scroll {
    animation: fadeIn 1s ease 1.6s both;
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal-fade {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.reveal-up {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.9s cubic-bezier(0.0, 0.0, 0.2, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-48px);
    transition: opacity 0.9s cubic-bezier(0.0, 0.0, 0.2, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 0.9s cubic-bezier(0.0, 0.0, 0.2, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.9s cubic-bezier(0.0, 0.0, 0.2, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.in-view,
.reveal-up.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-scale.in-view {
    opacity: 1;
    transform: none;
}

/* Stagger delays */
[data-delay="100"] { transition-delay: 0.1s !important; }
[data-delay="150"] { transition-delay: 0.15s !important; }
[data-delay="200"] { transition-delay: 0.2s !important; }
[data-delay="250"] { transition-delay: 0.25s !important; }
[data-delay="300"] { transition-delay: 0.3s !important; }
[data-delay="400"] { transition-delay: 0.4s !important; }
[data-delay="500"] { transition-delay: 0.5s !important; }

/* ── Number Counter Animation ────────────────────────────── */
.counter-num {
    display: inline-block;
    transition: none;
}

/* ── Product Card Hover Animations ───────────────────────── */
.product-card {
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.product-card:hover {
    box-shadow: 0 20px 60px rgba(26,23,20,0.12);
    z-index: 1;
}

.product-card .product-card-img img {
    will-change: transform;
}

/* ── Magnetic Button (JS assisted) ──────────────────────────*/
.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* ── Nav Underline Animation ─────────────────────────────── */
.nav-link::after {
    will-change: width;
}

/* ── Category Card Animations ────────────────────────────── */
.category-card {
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.category-card:hover {
    box-shadow: 0 20px 50px rgba(26,23,20,0.2);
    z-index: 1;
}

/* ── Blog Card Hover ─────────────────────────────────────── */
.blog-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
    transform: translateY(-6px);
}

/* ── Page Transition Overlay ─────────────────────────────── */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--off-white);
    z-index: 9998;
    transform-origin: bottom;
    transform: scaleY(0);
    pointer-events: none;
}

.page-transition.leaving {
    animation: pageLeave 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-transition.entering {
    animation: pageEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageLeave {
    from { transform: scaleY(0); transform-origin: bottom; }
    to   { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes pageEnter {
    from { transform: scaleY(1); transform-origin: top; }
    to   { transform: scaleY(0); transform-origin: top; }
}

/* ── Tilt Card Effect ────────────────────────────────────── */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

/* ── Shimmer Placeholder Animation ──────────────────────── */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.placeholder-shimmer {
    background: linear-gradient(
        90deg,
        var(--light) 0%,
        var(--border) 50%,
        var(--light) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ── Accent Line Draw Animation ──────────────────────────── */
.accent-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent);
    transform-origin: left;
    animation: drawLine 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes drawLine {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ── Cursor Custom ───────────────────────────────────────── */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--text-black);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: multiply;
}

.custom-cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(26,23,20,0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease;
}

.custom-cursor.cursor-hover {
    width: 16px;
    height: 16px;
    background: var(--accent);
}

.custom-cursor-ring.cursor-hover {
    width: 56px;
    height: 56px;
    border-color: var(--accent);
}

@media (hover: none) {
    .custom-cursor, .custom-cursor-ring { display: none; }
}

/* ── Floating WhatsApp Pulse ─────────────────────────────── */
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ── Value Icon Float ────────────────────────────────────── */
.value-card:hover .value-icon {
    animation: iconFloat 0.6s ease forwards;
}

@keyframes iconFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(-4px); }
}

/* ── Section Transition Separator ───────────────────────── */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    border: none;
}
