/**
 * DW Advanced Interactions & Hover Effects
 * DevWharf Theme v5.1
 *
 * Modules:
 * 1. Text Hover Glitch — character-level scramble/dissolve on hover
 * 2. Scroll-Out Melt — text drips/melts when leaving viewport top
 * 3. FAQ Revamp — award-winning layered card reveal accordion
 * 4. Contact Form — cyberpunk-themed inline form
 * 5. Enhanced Card Hovers — magnetic glow trail + depth shift
 * 6. Button Hover Effects — scan-line sweep + glow pulse
 */

/* ========================================
   1. TEXT HOVER GLITCH
   Characters scramble, scatter, or dissolve
   on hover. Applied via .dw-hover-glitch
   ======================================== */

/* Container sets up perspective for 3D char transforms */
.dw-hover-glitch {
    cursor: default;
    position: relative;
}

/* Individual character spans injected by JS */
.dw-hover-glitch .dw-hchar {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.3s ease,
                filter 0.3s ease,
                color 0.3s ease;
    position: relative;
}

/* On parent hover — characters get individual random transforms via JS,
   but CSS handles the base transition timing */
.dw-hover-glitch:hover .dw-hchar {
    color: #00fff9;
    text-shadow: 0 0 8px rgba(0, 255, 249, 0.6),
                 0 0 20px rgba(0, 255, 249, 0.2);
}

/* Glitch pseudo-layers on hover chars */
.dw-hover-glitch .dw-hchar::before,
.dw-hover-glitch .dw-hchar::after {
    content: attr(data-char);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.dw-hover-glitch .dw-hchar::before {
    color: #ff3366;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.dw-hover-glitch .dw-hchar::after {
    color: #00ff9f;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

.dw-hover-glitch:hover .dw-hchar::before,
.dw-hover-glitch:hover .dw-hchar::after {
    opacity: 0.7;
    animation: dw-glitch-shift 0.3s steps(2) infinite alternate;
}

@keyframes dw-glitch-shift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-2px, 1px); }
    50%  { transform: translate(2px, -1px); }
    75%  { transform: translate(-1px, -1px); }
    100% { transform: translate(1px, 2px); }
}

/* ========================================
   2. SCROLL-OUT MELT / DRIP EFFECT
   Characters sag, blur, and drip upward
   as the section leaves the viewport.
   Applied per-section via GSAP ScrollTrigger.
   ======================================== */

/* Melting state classes applied by JS */
.dw-melt-active .dw-word,
.dw-melt-active .dw-char {
    will-change: transform, opacity, filter;
}

/* Drip pseudo-element on each melting character */
.dw-melt-active .dw-char::after,
.dw-melt-active .dw-word::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 2px;
    height: 0;
    background: currentColor;
    opacity: 0;
    filter: blur(2px);
    transform: translateX(-50%);
    transition: height 0.6s ease-out, opacity 0.4s ease;
    border-radius: 0 0 50% 50%;
}

.dw-melt-active.dw-melting .dw-char::after,
.dw-melt-active.dw-melting .dw-word::after {
    height: 12px;
    opacity: 0.4;
}

/* ========================================
   3. FAQ BLOCK ENHANCEMENTS
   Interaction-layer styles for the unified
   FAQ block. Base styles in landing-sections.css.
   ======================================== */

/* Hover glow on the entire block */
.dw-faq-block:hover {
    border-color: rgba(251, 191, 36, 0.25);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.05);
}

/* ========================================
   4. CONTACT FORM
   Cyberpunk-themed inline contact form
   with glowing inputs and animated submit
   ======================================== */

.dw-section-contact {
    position: relative;
}

/* Contact card — glass card with distinct background,
   shimmer accent, and separates form from 3D scene */
.dw-contact-card {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    background: rgba(10, 15, 30, 0.75);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    padding: 36px 32px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow:
        0 4px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(251, 191, 36, 0.06);
}

/* Connected variant — visually connected to the section text card above */
.dw-contact-card--connected {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top-color: transparent;
    margin-top: -2px;
}

/* Kill the bottom border-radius on the section text card when preceding a connected form */
.dw-section-contact .dw-section-text-card {
    margin-bottom: 0 !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

/* Animated gradient top accent */
.dw-contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #fbbf24 25%, #fde68a 50%, #fbbf24 75%, transparent 100%);
    background-size: 200% 100%;
    animation: dw-shimmer-border 4s linear infinite;
    opacity: 0.6;
    z-index: 2;
}

.dw-contact-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow:
        0 6px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(251, 191, 36, 0.06),
        inset 0 1px 0 rgba(251, 191, 36, 0.1);
}

/* Shimmer keyframe reuse (defined in landing-sections.css) */
@keyframes dw-shimmer-border {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Legacy wrapper fallback */
.dw-contact-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.dw-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form field group */
.dw-form-group {
    position: relative;
}

.dw-form-group label {
    display: block;
    font-family: var(--gits-font-mono, 'JetBrains Mono', monospace), monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fbbf24;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.dw-form-group label .dw-label-prefix {
    color: #fde68a;
    opacity: 0.5;
    margin-right: 4px;
}

/* Input + Textarea shared styles */
.dw-form-input,
.dw-form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--gits-font-mono, 'JetBrains Mono', monospace), monospace;
    font-size: 0.95rem;
    color: #fef3c7;
    background: rgba(8, 12, 24, 0.7);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 8px;
    outline: none;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dw-form-input::placeholder,
.dw-form-textarea::placeholder {
    color: rgba(253, 230, 138, 0.3);
    font-style: italic;
}

.dw-form-input:focus,
.dw-form-textarea:focus {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(8, 12, 24, 0.85);
    box-shadow:
        0 0 0 3px rgba(251, 191, 36, 0.08),
        0 0 20px rgba(251, 191, 36, 0.06),
        inset 0 0 20px rgba(251, 191, 36, 0.02);
}

/* Focus glow line under input */
.dw-form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 1px;
}

.dw-form-group:focus-within::after {
    width: 100%;
}

.dw-form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Two-column row for name + email */
.dw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Submit button */
.dw-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: center;
    padding: 14px 36px;
    font-family: var(--gits-font-mono, 'JetBrains Mono', monospace), monospace;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #0a0f1e;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}

.dw-form-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 24px rgba(251, 191, 36, 0.3),
        0 0 40px rgba(251, 191, 36, 0.1);
}

.dw-form-submit:active {
    transform: translateY(0);
}

/* Scan-line sweep on submit hover */
.dw-form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.dw-form-submit:hover::before {
    left: 100%;
}

/* Submit icon — inside a flex container, use inline-flex so
   the SVG sits on the same line as the text. The parent
   .dw-form-submit uses inline-flex + align-items:center + gap. */
.dw-form-submit-icon,
.dw-form-submit svg,
.dw-form-submit .material-symbols-outlined {
    width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    flex-shrink: 0;
    vertical-align: middle;
    transition: transform 0.3s ease;
    /* Kill any inherited offsets */
    position: static;
    top: auto;
    margin: 0;
    padding: 0;
}

.dw-form-submit:hover .dw-form-submit-icon,
.dw-form-submit:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* Status message */
.dw-form-status {
    font-family: var(--gits-font-mono, 'JetBrains Mono', monospace), monospace;
    font-size: 0.9rem;
    padding: 12px 18px;
    border-radius: 8px;
    display: none;
    align-items: center;
    gap: 8px;
}

.dw-form-status.dw-status-success {
    display: flex;
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.dw-form-status.dw-status-error {
    display: flex;
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.dw-form-status.dw-status-sending {
    display: flex;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.15);
}

/* ========================================
   5. ENHANCED CARD HOVERS
   Magnetic glow cursor trail + depth shift
   ======================================== */

/* Glow cursor follower — positioned by JS */
.dw-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    mix-blend-mode: soft-light;
}

/* Per-section glow colors */
.dw-vision-card .dw-card-glow { background: radial-gradient(circle, rgba(125, 211, 252, 0.15), transparent 70%); }
.dw-method-card .dw-card-glow { background: radial-gradient(circle, rgba(167, 139, 250, 0.15), transparent 70%); }
.dw-growth-card .dw-card-glow { background: radial-gradient(circle, rgba(52, 211, 153, 0.15), transparent 70%); }
.dw-tech-card .dw-card-glow   { background: radial-gradient(circle, rgba(125, 211, 252, 0.15), transparent 70%); }
.gits-site-card .dw-card-glow  { background: radial-gradient(circle, rgba(0, 255, 159, 0.15), transparent 70%); }
.dw-card .dw-card-glow         { background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%); }
.dw-link-card .dw-card-glow    { background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%); }

/* Show glow on hover */
.dw-vision-card:hover .dw-card-glow,
.dw-method-card:hover .dw-card-glow,
.dw-growth-card:hover .dw-card-glow,
.dw-tech-card:hover .dw-card-glow,
.gits-site-card:hover .dw-card-glow,
.dw-card:hover .dw-card-glow,
.dw-link-card:hover .dw-card-glow {
    opacity: 1;
}

/* ========================================
   6. BUTTON HOVER ENHANCEMENTS
   ======================================== */

/* Hero CTA buttons — glitch scan on hover */
.dw-section-hero .wp-block-button__link,
.dw-section-cta .wp-block-button__link {
    position: relative;
    overflow: hidden;
}

.dw-section-hero .wp-block-button__link::after,
.dw-section-cta .wp-block-button__link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: none;
}

.dw-section-hero .wp-block-button__link:hover::after,
.dw-section-cta .wp-block-button__link:hover::after {
    animation: dw-btn-scan 0.6s ease-out;
}

@keyframes dw-btn-scan {
    0%   { left: -50%; }
    100% { left: 150%; }
}

/* Quick Access BROWSE/READ/EXPLORE buttons */
.gits-site-card .wp-block-button__link {
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.gits-site-card .wp-block-button__link:hover {
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ========================================
   7. TECH TAG HOVER ENHANCEMENT
   Elevated hover with ripple pulse
   ======================================== */
.dw-tech-tag {
    position: relative;
    overflow: hidden;
    --dw-tag-x: 50%;
    --dw-tag-y: 50%;
}

.dw-tech-tag::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--dw-tag-x, 50%) var(--dw-tag-y, 50%),
                rgba(125, 211, 252, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dw-tech-tag:hover::after {
    opacity: 1;
}

/* ========================================
   8. SECTION HEADING HOVER — subtle glitch
   ======================================== */
.dw-section-heading {
    cursor: default;
    transition: text-shadow 0.3s ease;
}

.dw-section-heading:hover {
    text-shadow:
        0 0 20px currentColor,
        0 0 60px currentColor,
        0 0 100px rgba(125, 211, 252, 0.2) !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .dw-form-row {
        grid-template-columns: 1fr;
    }

    .dw-faq-trigger {
        grid-template-columns: 28px 1fr 24px !important;
        padding: 16px 16px;
        gap: 10px;
    }

    .dw-faq-number {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px;
        font-size: 0.65rem;
    }

    .dw-faq-chevron {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px;
        max-width: 24px;
    }

    .dw-faq-question {
        font-size: 0.88rem;
    }

    .dw-faq-answer p {
        padding: 4px 16px 16px 48px;
        font-size: 0.92rem !important;
    }

    .dw-form-submit {
        width: 100%;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .dw-hover-glitch .dw-hchar,
    .dw-melt-active .dw-word,
    .dw-melt-active .dw-char {
        transition: none !important;
        animation: none !important;
    }

    .dw-faq-item::before {
        animation: none;
    }

    .dw-faq-answer::before {
        animation: none;
    }

    .dw-card-3d-tilt,
    .dw-vision-card,
    .dw-method-card,
    .dw-growth-card,
    .dw-tech-card,
    .gits-site-card,
    .dw-section-text-card {
        transform: none !important;
    }
}

/* ========================================
   9. 3D TILT CARDS
   Perspective container + tilt transform
   driven by --rotate-x / --rotate-y CSS vars
   set by JS on mousemove
   ======================================== */

/* Perspective on card parents (columns) */
.dw-vision-cards > .wp-block-column,
.dw-method-grid > .wp-block-column,
.dw-growth-cards > .wp-block-column,
.dw-tech-grid > .wp-block-column,
.dw-scroll-section:last-child .wp-block-columns > .wp-block-column,
.dw-scroll-section {
    perspective: 800px;
}

/* Section text cards get CSS-variable-driven 3D tilt
   (inner cards like .dw-vision-card etc. use reactive-shader-text.js
   inline transform — no CSS custom property approach for those) */
.dw-section-text-card {
    --rotate-x: 0deg;
    --rotate-y: 0deg;
    --pointer-x: 50%;
    --pointer-y: 50%;
    transform-style: preserve-3d;
}

.dw-section-text-card.dw-tilt-active {
    transition: transform 0.08s ease-out,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
}

/* ========================================
   10. HOLOGRAPHIC SHIMMER OVERLAY
   Pointer-following radial gradient on cards
   ======================================== */
.dw-holo-shimmer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(
        300px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
        rgba(125, 211, 252, 0.08) 0%,
        rgba(167, 139, 250, 0.04) 25%,
        rgba(0, 255, 159, 0.03) 50%,
        transparent 70%
    );
    mix-blend-mode: screen;
}

.dw-vision-card:hover .dw-holo-shimmer,
.dw-method-card:hover .dw-holo-shimmer,
.dw-growth-card:hover .dw-holo-shimmer,
.dw-tech-card:hover .dw-holo-shimmer,
.gits-site-card:hover .dw-holo-shimmer {
    opacity: 1;
}

/* Per-section shimmer color variants */
.dw-method-card .dw-holo-shimmer {
    background: radial-gradient(
        300px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
        rgba(167, 139, 250, 0.1) 0%,
        rgba(196, 181, 253, 0.05) 25%,
        rgba(125, 211, 252, 0.03) 50%,
        transparent 70%
    );
}

.dw-growth-card .dw-holo-shimmer {
    background: radial-gradient(
        300px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
        rgba(52, 211, 153, 0.1) 0%,
        rgba(110, 231, 183, 0.05) 25%,
        rgba(0, 255, 159, 0.03) 50%,
        transparent 70%
    );
}

/* ========================================
   11. CORNER ACCENT BRACKETS
   Cyberpunk corner decorations on cards
   ======================================== */
.dw-corner-accent {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease, width 0.3s ease, height 0.3s ease;
}

/* Position corners */
.dw-corner-tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.dw-corner-tr { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.dw-corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.dw-corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

/* Show on hover */
.dw-vision-card:hover .dw-corner-accent,
.dw-method-card:hover .dw-corner-accent,
.dw-growth-card:hover .dw-corner-accent,
.dw-tech-card:hover .dw-corner-accent,
.gits-site-card:hover .dw-corner-accent {
    opacity: 1;
    width: 22px;
    height: 22px;
}

/* Corner color per section */
.dw-vision-card .dw-corner-accent { border-color: rgba(125, 211, 252, 0.6); }
.dw-method-card .dw-corner-accent { border-color: rgba(167, 139, 250, 0.6); }
.dw-growth-card .dw-corner-accent { border-color: rgba(52, 211, 153, 0.6); }
.dw-tech-card .dw-corner-accent { border-color: rgba(125, 211, 252, 0.6); }
.gits-site-card .dw-corner-accent { border-color: rgba(0, 255, 159, 0.6); }

/* ========================================
   12. UNIQUE CARD DESIGN PATTERNS
   Distinct visual identity per card type
   ======================================== */

/* Vision cards — diagonal light streak */
.dw-vision-card::after {
    background:
        linear-gradient(135deg, rgba(125, 211, 252, 0.03) 0%, transparent 50%, rgba(125, 211, 252, 0.02) 100%),
        repeating-linear-gradient(
            0deg, transparent, transparent 2px,
            rgba(125, 211, 252, 0.015) 2px, rgba(125, 211, 252, 0.015) 4px
        ) !important;
    opacity: 0.3;
}
.dw-vision-card:hover::after { opacity: 1; }

/* Method cards — bottom-edge gradient accent */
.dw-method-card {
    border-bottom: 2px solid transparent !important;
}
.dw-method-card:hover {
    border-bottom-color: rgba(167, 139, 250, 0.4) !important;
}

/* Growth cards — diagonal scan-line pattern */
.dw-growth-card::after {
    background:
        repeating-linear-gradient(
            -45deg,
            transparent, transparent 4px,
            rgba(52, 211, 153, 0.012) 4px, rgba(52, 211, 153, 0.012) 8px
        ) !important;
    opacity: 0.4;
}
.dw-growth-card:hover::after { opacity: 1; }

/* Tech cards — circuit-board dot pattern */
.dw-tech-card::after {
    background:
        radial-gradient(circle, rgba(125, 211, 252, 0.03) 1px, transparent 1px),
        repeating-linear-gradient(
            0deg, transparent, transparent 2px,
            rgba(125, 211, 252, 0.015) 2px, rgba(125, 211, 252, 0.015) 4px
        ) !important;
    background-size: 20px 20px, auto !important;
    opacity: 0.3;
}
.dw-tech-card:hover::after { opacity: 1; }

/* Site cards — hex grid subtle pattern */
.gits-site-card::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    border-radius: inherit !important;
    background:
        radial-gradient(circle, rgba(0, 255, 159, 0.025) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
    pointer-events: none !important;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gits-site-card:hover::after { opacity: 1; }

/* ========================================
   13. TITLE HOVER — SPLIT REVEAL EFFECT
   Inspired by CSS-Text-Hover-Effects:
   Text splits into top/bottom halves that
   separate, revealing an accent bar.
   ======================================== */
.dw-title-split-container {
    position: relative;
    display: inline-block;
    cursor: default;
}

.dw-title-split-top,
.dw-title-split-bottom {
    display: block;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.dw-title-split-top {
    clip-path: polygon(0 0, 100% 0, 100% 52%, 0 52%);
}

.dw-title-split-bottom {
    position: absolute;
    top: 0; left: 0; right: 0;
    clip-path: polygon(0 48%, 100% 48%, 100% 100%, 0 100%);
}

.dw-title-split-bar {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    transform: translateY(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
    border-radius: 2px;
}

/* Hover states */
.dw-title-split-container:hover .dw-title-split-top {
    transform: translateY(-4px);
}

.dw-title-split-container:hover .dw-title-split-bottom {
    transform: translateY(4px);
}

.dw-title-split-container:hover .dw-title-split-bar {
    transform: translateY(-50%) scaleX(1);
}

/* Bar colors per section */
.dw-section-hero .dw-title-split-bar { background: #7dd3fc; box-shadow: 0 0 12px rgba(125, 211, 252, 0.6); }
.dw-section-growth .dw-title-split-bar { background: #34d399; box-shadow: 0 0 12px rgba(52, 211, 153, 0.6); }
.dw-section-vision .dw-title-split-bar { background: #7dd3fc; box-shadow: 0 0 12px rgba(125, 211, 252, 0.6); }
.dw-section-methodology .dw-title-split-bar { background: #a78bfa; box-shadow: 0 0 12px rgba(167, 139, 250, 0.6); }
.dw-section-tech .dw-title-split-bar { background: #7dd3fc; box-shadow: 0 0 12px rgba(125, 211, 252, 0.6); }
.dw-section-faq .dw-title-split-bar { background: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, 0.6); }
.dw-section-cta .dw-title-split-bar { background: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, 0.6); }
.dw-section-contact .dw-title-split-bar { background: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, 0.6); }

/* ========================================
   14. ENHANCED SCROLL REVEAL ANIMATIONS
   Dramatic entrance for cards and text
   ======================================== */

/* Cards stagger in with scale + rotation */
@keyframes dw-card-entrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.92) rotateX(8deg);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

/* Text blocks type in from left */
@keyframes dw-text-slide-in {
    0% {
        opacity: 0;
        transform: translateX(-20px);
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
}

/* Card hover glow pulse */
@keyframes dw-card-glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(125, 211, 252, 0.05); }
    50% { box-shadow: 0 0 30px rgba(125, 211, 252, 0.12), 0 0 60px rgba(125, 211, 252, 0.04); }
}

/* Applied by JS when elements enter viewport */
.dw-entrance-card {
    animation: dw-card-entrance 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dw-entrance-text {
    animation: dw-text-slide-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ========================================
   15. CARD HEADER TITLE HOVER EFFECT
   Subtle glow intensification on card titles
   ======================================== */
.dw-card-header {
    transition: transform 0.3s ease;
}

.dw-vision-card:hover .dw-card-header,
.dw-method-card:hover .dw-card-header,
.dw-growth-card:hover .dw-card-header,
.dw-tech-card:hover .dw-card-header,
.gits-site-card:hover .dw-card-header {
    transform: translateX(4px);
}

.dw-card-title {
    transition: text-shadow 0.3s ease, letter-spacing 0.3s ease;
}

.dw-vision-card:hover .dw-card-title,
.dw-method-card:hover .dw-card-title,
.dw-growth-card:hover .dw-card-title,
.dw-tech-card:hover .dw-card-title,
.gits-site-card:hover .dw-card-title {
    letter-spacing: 0.02em;
    text-shadow:
        0 0 16px currentColor,
        0 0 32px currentColor;
}

/* ========================================
   16. CARD PARAGRAPH REVEAL ON SCROLL
   Text inside cards animates in word-by-word
   ======================================== */
.dw-card-text-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.dw-card-text-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   17. CARD FLASHLIGHT & LIFT
   (Moved to landing-sections.css v7.0 —
   now integrated with scroll-driven 3D fly-in)
   ======================================== */

/* ========================================
   18. ICON ANIMATION
   (Moved to landing-sections.css v7.0)
   ======================================== */
