/* =========================================================
   CyneForm Group — Shared Stylesheet
   Consolidated from all 15 Stitch-designed pages so every
   page looks and behaves consistently.
   ========================================================= */

body {
    background-color: #f7f9fb;
    color: #191c1e;
    -webkit-font-smoothing: antialiased;
}

/* Material Symbols icon font */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
}

/* Header blur */
.nav-blur,
.glass-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Hero overlays / gradients */
.hero-overlay {
    background: linear-gradient(to right, rgba(23, 28, 39, 0.95) 0%, rgba(23, 28, 39, 0.8) 50%, rgba(23, 28, 39, 0.4) 100%);
}
.navy-gradient {
    background: linear-gradient(135deg, #171C27 0%, #004e5e 100%);
}
.hero-gradient {
    background: linear-gradient(135deg, #171C27 0%, #001f27 100%);
}
.text-gradient {
    background: linear-gradient(135deg, #006579 0%, #0F98B5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scroll reveal animations */
.reveal,
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active,
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in { animation: fadeIn 0.8s ease-out forwards; }
.slide-up { animation: slideUp 0.8s ease-out forwards; opacity: 0; }
.slide-in-right { animation: slideInRight 0.3s ease-out forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes subtle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float-element {
    animation: subtle-float 6s ease-in-out infinite;
}

/* Hover helpers */
.hover-lift { transition: transform 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); }

.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-bottom: 4px solid #0F98B5;
}

.step-card:hover .step-number {
    transform: scale(1.1);
    background-color: #007f99;
}

/* Underline link transitions */
.link-underline { position: relative; }
.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}
.link-underline:hover::after { width: 100%; }

.nav-underline { position: relative; }
.nav-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}
.nav-underline:hover::after { width: 100%; }

/* Glass cards (unified translucent style used across pages) */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(31, 38, 52, 0.08);
}
/* Dark variant for glass cards on navy backgrounds (Philosophy page) */
.navy-gradient .glass-card,
.deep-navy-alt .glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Continuous marquee (trust-logo strip on homepage) */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 30s linear infinite; }
.animate-marquee-slow { animation: marquee 60s linear infinite; }
.animate-marquee-slow:hover { animation-play-state: paused; }

/* Service icon sprite crops (homepage 6-department grid) */
.service-icon {
    object-fit: none;
    width: 80px;
    height: 80px;
}
.icon-mgmt { object-position: 10% 15%; }
.icon-creative { object-position: 45% 15%; }
.icon-tech { object-position: 85% 15%; }
.icon-design { object-position: 10% 80%; }
.icon-marketing { object-position: 45% 80%; }
.icon-content { object-position: 85% 80%; }

/* Portfolio page */
.confidential-badge {
    background: rgba(0, 101, 121, 0.9);
    backdrop-filter: blur(4px);
    border: 2px solid #b1ecff;
    clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
}
.portfolio-card-blur {
    filter: blur(20px);
    transform: scale(1.1);
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-card-blur {
    transform: scale(1.05);
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * 6 - 24px * 6)); }
}
.carousel-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scroll 60s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-item { width: 400px; flex-shrink: 0; }
.carousel-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Who We Work With bento grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

/* Legal pages (Privacy Policy / Terms of Service) */
.privacy-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #171C27;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.privacy-content p {
    margin-bottom: 1.25rem;
    color: #3e484c;
}

/* Hide scrollbar (used on a couple of pages originally; applied site-wide for a cleaner look) */
::-webkit-scrollbar { display: none; }
html { -ms-overflow-style: none; scrollbar-width: none; }

/* =========================================================
   Floating WhatsApp Button (site-wide)
   ========================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}
.whatsapp-float svg {
    width: 32px;
    height: 32px;
}
.whatsapp-float .whatsapp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #25D366;
    animation: whatsappPulse 2.2s ease-out infinite;
    z-index: -1;
}
@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}
@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Active nav link */
.nav-link-active {
    color: #68d4f3 !important;
    font-weight: 600;
}
