/* ============================================================
   DECIPHER - Creative Animations & Micro-Interactions (2026)
   ============================================================ */

/* ---- GRADIENT BORDER GLOW ---- */
.glow-border {
    position: relative;
    border: none !important;
    background-clip: padding-box;
}
.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #2584f4, #00c4e0, #ef5523, #f7941e, #2584f4);
    background-size: 300% 300%;
    animation: gradient-rotate 6s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.glow-border:hover::before {
    opacity: 1;
}
.glow-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--dcs-bg-card, #fff);
    z-index: -1;
}

/* Glow-border on dark sections — semi-transparent light bg for contrast */
.section-dark .glow-border::after,
.particle-bg .glow-border::after,
[class*="section-dark"] .glow-border::after {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.section-dark .glow-border,
.particle-bg .glow-border {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ---- SHIMMER / SKELETON LOADING ---- */
.shimmer {
    position: relative;
    overflow: hidden;
}
.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer-slide 2.5s ease-in-out infinite;
}
@keyframes shimmer-slide {
    0% { left: -100%; }
    100% { left: 200%; }
}


/* ---- TEXT GRADIENT ANIMATION ---- */
.text-animate-gradient {
    background: linear-gradient(90deg, #2584f4, #00c4e0, #ef5523, #f7941e, #2584f4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-gradient-flow 4s linear infinite;
}
@keyframes text-gradient-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}


/* ---- MAGNETIC HOVER (Cards) ---- */
.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.magnetic-hover:hover {
    transform: translateY(-12px) scale(1.02);
}


/* ---- STAGGER ANIMATIONS FOR LISTS ---- */
[data-aos="stagger-up"] > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-aos="stagger-up"].aos-animate > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
[data-aos="stagger-up"].aos-animate > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
[data-aos="stagger-up"].aos-animate > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: none; }
[data-aos="stagger-up"].aos-animate > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: none; }
[data-aos="stagger-up"].aos-animate > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: none; }
[data-aos="stagger-up"].aos-animate > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: none; }


/* ---- PARALLAX TILT ON CARDS ---- */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s ease;
}
.tilt-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-8px);
}
.tilt-card .tilt-inner {
    transform: translateZ(20px);
}


/* ---- ORBIT ANIMATION (Decorative) ---- */
.orbit-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.orbit-ring {
    position: absolute;
    border: 1px dashed rgba(37, 132, 244, 0.15);
    border-radius: 50%;
    animation: orbit-spin 20s linear infinite;
}
.orbit-ring:nth-child(1) {
    width: 300px; height: 300px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.orbit-ring:nth-child(2) {
    width: 450px; height: 450px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 30s;
    animation-direction: reverse;
}
.orbit-ring:nth-child(3) {
    width: 600px; height: 600px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 40s;
}
.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--dcs-gradient);
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(37, 132, 244, 0.5);
}
@keyframes orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


/* ---- PARTICLE DOTS (Background) ---- */
.particle-bg {
    position: relative;
    overflow: hidden;
}
.particle-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(37,132,244,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    animation: particle-drift 20s linear infinite;
}
@keyframes particle-drift {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}


/* ---- MORPHING BLOB ---- */
.morph-blob {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
    0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
    25% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
    50% { border-radius: 30% 70% 55% 45% / 65% 35% 65% 35%; }
    75% { border-radius: 55% 45% 40% 60% / 35% 55% 45% 65%; }
}


/* ---- REVEAL ON SCROLL (Clip-path) ---- */
.reveal-clip {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-clip.revealed {
    clip-path: inset(0 0 0 0);
}


/* ---- UNDERLINE DRAW ANIMATION ---- */
.draw-underline {
    position: relative;
    display: inline;
}
.draw-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--dcs-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.draw-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* ---- ICON BOUNCE ---- */
.icon-bounce {
    transition: transform 0.3s ease;
}
.icon-bounce:hover {
    animation: icon-pop 0.4s ease;
}
@keyframes icon-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}


/* ---- NUMBER COUNTER GLOW ---- */
.counter-glow {
    text-shadow: 0 0 30px rgba(37, 132, 244, 0.3);
}


/* ---- SCROLL PROGRESS BAR ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--dcs-gradient);
    z-index: 99999;
    transition: width 0.1s linear;
}


/* ---- FLOATING BADGES ---- */
.float-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--dcs-border-light);
    border-radius: var(--dcs-radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dcs-dark);
    box-shadow: var(--dcs-shadow);
    animation: badge-float 3s ease-in-out infinite;
}
.float-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s infinite;
}
@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}


/* ---- GRID LINE BACKGROUND ---- */
.grid-bg {
    position: relative;
}
.grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 132, 244, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 132, 244, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}


/* ---- SPLIT REVEAL TEXT ---- */
.split-reveal {
    overflow: hidden;
}
.split-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.split-reveal.active span {
    transform: translateY(0);
}


/* ---- PAGE HERO (Inner pages) ---- */
.page-hero {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--dcs-gradient-hero);
}
.page-hero .hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.page-hero .container {
    position: relative;
    z-index: 2;
}
.page-hero h1 {
    font-weight: 800;
    margin-bottom: 16px;
}
.page-hero .lead {
    max-width: 640px;
}
.page-hero .breadcrumb-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.8125rem;
}
.page-hero .breadcrumb-nav a {
    color: var(--dcs-text-muted);
    text-decoration: none;
}
.page-hero .breadcrumb-nav a:hover {
    color: var(--dcs-accent);
}
.page-hero .breadcrumb-nav .sep {
    color: var(--dcs-text-light);
}
.page-hero .breadcrumb-nav .current {
    color: var(--dcs-accent);
    font-weight: 600;
}


/* ---- TIMELINE ---- */
.timeline {
    position: relative;
    padding: 24px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--dcs-accent), var(--dcs-ai));
}
.timeline-item {
    position: relative;
    padding-left: 64px;
    margin-bottom: 48px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: 14px;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--dcs-gradient);
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(37, 132, 244, 0.15);
}
.timeline-item h4 {
    margin-bottom: 8px;
}
.timeline-item p {
    margin-bottom: 0;
}


/* ---- FEATURE LIST WITH ICONS ---- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dcs-border-light);
    align-items: flex-start;
}
.feature-list li:last-child {
    border-bottom: none;
}
.feature-list .fl-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(37, 132, 244, 0.1);
    color: var(--dcs-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}
.feature-list .fl-text h6 {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--dcs-dark);
    margin-bottom: 2px;
    text-transform: none;
    letter-spacing: 0;
}
.feature-list .fl-text p {
    font-size: 0.8125rem;
    margin-bottom: 0;
    line-height: 1.5;
}


/* ---- TEAM CARD ---- */
.team-card {
    text-align: center;
    transition: all var(--dcs-transition);
}
.team-card:hover {
    transform: translateY(-8px);
}
.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid var(--dcs-border-light);
    transition: border-color var(--dcs-transition);
}
.team-card:hover img {
    border-color: var(--dcs-accent);
}
.team-card h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}
.team-card p {
    font-size: 0.8125rem;
    margin-bottom: 0;
}


/* ---- CONTACT FORM STYLES ---- */
.contact-form .form-floating {
    margin-bottom: 20px;
}
.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid var(--dcs-border);
    border-radius: var(--dcs-radius);
    padding: 16px;
    font-size: 0.938rem;
    font-family: var(--dcs-font);
    transition: all var(--dcs-transition);
    background: var(--dcs-bg);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--dcs-accent);
    box-shadow: 0 0 0 4px rgba(37, 132, 244, 0.1);
    outline: none;
}
.contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}
.contact-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dcs-text);
    margin-bottom: 6px;
}

/* Contact info card */
.contact-info-card {
    padding: 28px;
    border-radius: var(--dcs-radius-lg);
    background: var(--dcs-bg-soft);
    border: 1px solid var(--dcs-border-light);
    margin-bottom: 16px;
    transition: all var(--dcs-transition);
}
.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dcs-shadow);
}
.contact-info-card .cic-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--dcs-radius);
    background: rgba(37, 132, 244, 0.1);
    color: var(--dcs-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin-bottom: 16px;
}
.contact-info-card h6 {
    font-size: 0.75rem;
    margin-bottom: 4px;
}
.contact-info-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
}
.contact-info-card a {
    color: var(--dcs-text);
    text-decoration: none;
    font-weight: 500;
}
.contact-info-card a:hover {
    color: var(--dcs-accent);
}


/* ---- VALUE PROPOSITION ROW ---- */
.value-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.value-item {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--dcs-radius-lg);
    background: var(--dcs-bg-card);
    border: 1px solid var(--dcs-border-light);
    transition: all var(--dcs-transition);
}
.value-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--dcs-shadow-lg);
    border-color: transparent;
}
.value-item .vi-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}
.value-item h5 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}
.value-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .value-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .timeline::before {
        left: 16px;
    }
    .timeline-item {
        padding-left: 48px;
    }
    .timeline-dot {
        left: 6px;
    }
    .page-hero {
        padding: 120px 0 60px;
    }
}
