/* ============================================================
   Teknovara Software Solutions — advanced custom CSS layer
   Hand-authored effects beyond Tailwind utilities.
   Loaded directly in layouts/app.blade.php (asset('assets/css/teknovara.css'))
   ============================================================ */

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* stagger helpers */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ---------- Hero carousel ---------- */
.hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    pointer-events: none;
}
.hero-slide.is-active {
    /* stay a full-width flex item so the slide fills the viewport
       on large desktops instead of shrinking to the .shell max-width */
    position: relative;
    flex: 1 0 100%;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}
.hero-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hero-slide.is-active .hero-slide__bg {
    animation: hero-kenburns 8s ease-out both;
}
@keyframes hero-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.09); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 36, 99, 0.94) 0%, rgba(11, 23, 48, 0.72) 60%, rgba(11, 23, 48, 0.55) 100%);
}

/* staggered entrance for active slide text */
.hero-slide.is-active [data-anim] {
    animation: hero-fadeup 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero-slide.is-active [data-anim="1"] { animation-delay: 0.10s; }
.hero-slide.is-active [data-anim="2"] { animation-delay: 0.20s; }
.hero-slide.is-active [data-anim="3"] { animation-delay: 0.30s; }
.hero-slide.is-active [data-anim="4"] { animation-delay: 0.40s; }
@keyframes hero-fadeup {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* dot indicators */
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.35s ease;
}
.hero-dot.is-active {
    width: 34px;
    background: #1DB954;
}

/* arrows */
.hero-arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}
.hero-arrow:hover {
    background: #1DB954;
    border-color: #1DB954;
    transform: scale(1.06);
}

/* ---------- Marquee (partners) ---------- */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Underline squiggle accent ---------- */
.squiggle {
    position: relative;
    display: inline-block;
}
.squiggle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35em;
    width: 100%;
    height: 0.5em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8 C 20 2, 40 12, 60 6 S 100 2, 118 8' fill='none' stroke='%231DB954' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Partner logo tiles ---------- */
.partner-tile {
    opacity: 1;
    transition: transform 0.3s ease;
}
.partner-tile:hover {
    transform: translateY(-3px);
}

/* ---------- Nav dropdown (desktop hover) ---------- */
.nav-group > .nav-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.22s ease;
}
@media (min-width: 1024px) {
    .nav-group:hover > .nav-panel,
    .nav-group:focus-within > .nav-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* animated nav underline indicator */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: #1DB954;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

/* ---------- Testimonials slider ---------- */
.testi-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Collage ---------- */
.collage-img {
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(10, 36, 99, 0.18);
    object-fit: cover;
}

/* ---------- Gradient blob ---------- */
.blob {
    filter: blur(46px);
    opacity: 0.55;
    border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-slide.is-active .hero-slide__bg { animation: none; }
    .marquee-track { animation: none; }
}
