﻿/* =============================================
   Vectiform Homepage Interactions
   ============================================= */

/* ---------- Custom cursor (removed) ---------- */

/* ---------- Hero text entrance ---------- */
.hero .h1-heading,
.hero p,
.hero .hero__btn {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero .vf-hero-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ---------- Scroll reveal base states ---------- */
.vf-reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.vf-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.vf-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.vf-reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.vf-revealed {
    opacity: 1 !important;
    transform: none !important;
}

/* stagger siblings */
.vf-reveal:nth-child(2), .vf-reveal-up:nth-child(2) { transition-delay: 0.1s; }
.vf-reveal:nth-child(3), .vf-reveal-up:nth-child(3) { transition-delay: 0.2s; }
.vf-reveal:nth-child(4), .vf-reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Benefit cards ---------- */
.benefit-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.benefit-card.vf-revealed {
    opacity: 1;
    transform: translateY(0);
}
.benefit-card:nth-child(2) { transition-delay: 0.12s; }
.benefit-card:nth-child(3) { transition-delay: 0.24s; }

.benefit-card h3 {
    transition: color 0.4s ease;
}
.benefit-card:hover h3 {
    color: #2563eb !important;
}

/* ---------- Service rows ---------- */
.service-row {
    opacity: 0;
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-row.vf-revealed { opacity: 1; transform: none !important; }

.service-row .service-text { transition: transform 0.5s ease; }
.service-row:hover .service-text { transform: translateX(6px); }

/* service row image overlay */
.service-row .img-wrap {
    overflow: hidden;
    position: relative;
}
.service-row .img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.0);
    transition: background 0.4s ease;
    pointer-events: none;
}
.service-row:hover .img-wrap::after {
    background: rgba(37, 99, 235, 0.08);
}

/* ---------- Stats section ---------- */
.vf-stats-section {
    background: #1a1a2e;
    padding: 80px 30px;
    text-align: center;
    color: white;
}
.vf-stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}
.vf-stat-item {
    min-width: 160px;
}
.vf-stat-item .vf-counter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 300;
    color: #fff;
    line-height: 1;
    display: block;
}
.vf-stat-item .vf-stat-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 10px;
    display: block;
}
.vf-stats-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: white;
    margin-bottom: 60px;
    letter-spacing: 0.04em;
}

/* ---------- CTA section ---------- */
#contact-cta {
    overflow: hidden;
}

/* ---------- Hero button polish ---------- */
.hero .hero__btn {
    position: relative;
    overflow: hidden;
    transition: color 0.3s, box-shadow 0.3s,
                opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.hero .hero__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #2563eb;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}
.hero .hero__btn:hover::before { transform: scaleX(1); }
.hero .hero__btn:hover { color: white !important; box-shadow: 0 8px 24px rgba(37,99,235,0.35); }
.hero .hero__btn span, .hero .hero__btn { position: relative; z-index: 1; }

/* ---------- Section title accent line ---------- */
.things-we-do .col-12 {
    position: relative;
}
.things-we-do .col-12::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2563eb;
    margin-top: 20px;
    transition: width 0.6s ease;
}
.things-we-do .col-12:hover::after { width: 120px; }

/* fix: header always above hero overlay */
.header { z-index: 1001 !important; }
.nav    { z-index: 1000 !important; }



