/**
 * WordPress Hero Block - Frontend Styles
 * Clean, modern CSS for hero sections
 */

/* ========================================
   Base Hero Section
   ======================================== */

.whb-hero {
    width: 100%;
    min-height: 400px;
    padding: var(--whb-padding-top, 100px) 20px var(--whb-padding-bottom, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-block: 0 !important;
    margin-inline: 0 !important;
}

.whb-layout-split.whb-hero,
section.whb-layout-split,
section.whb-hero.whb-layout-split {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    line-height: 0;
    box-sizing: border-box !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
}

.whb-hero *,
.whb-hero *::before,
.whb-hero *::after {
    box-sizing: border-box;
}

/* Force remove all margins from split layout elements */
section.whb-hero.whb-layout-split,
section.whb-hero.whb-layout-split .whb-split-wrapper,
section.whb-hero.whb-layout-split .whb-image-column,
.whb-layout-split,
.whb-split-wrapper,
.whb-image-column {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-block: 0 !important;
    margin-inline: 0 !important;
}

section.whb-hero.whb-layout-split .whb-content-column,
.whb-content-column {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-block: 0 !important;
    margin-inline: 0 !important;
}

div.whb-split-wrapper {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

div.whb-content-column {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
}

div.whb-image-column {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding: 10px !important;
    border: none !important;
    outline: none !important;
}

/* ========================================
   Overlay
   ======================================== */

.whb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Overlay for split layouts - ensure full coverage */
.whb-layout-split .whb-overlay {
    z-index: 1;
}

/* Split wrapper needs to be above overlay */
.whb-layout-split .whb-split-wrapper {
    position: relative;
    z-index: 2;
}

/* ========================================
   Container
   ======================================== */

.whb-container {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ========================================
   Alignment Classes
   ======================================== */

.whb-align-left .whb-container {
    text-align: left;
}

.whb-align-center .whb-container {
    text-align: center;
}

.whb-align-right .whb-container {
    text-align: right;
}

.whb-align-left .whb-buttons {
    justify-content: flex-start;
}

.whb-align-center .whb-buttons {
    justify-content: center;
}

.whb-align-right .whb-buttons {
    justify-content: flex-end;
}

/* ========================================
   Typography
   ======================================== */

.whb-tagline,
.whb-hero .whb-tagline,
.whb-hero p.whb-tagline,
p.whb-tagline,
section.whb-hero .whb-tagline,
section.whb-hero p.whb-tagline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--whb-tagline-color, var(--whb-text-color, #ffffff)) !important;
    opacity: 0.7;
    margin: 0 0 16px !important;
    padding: 0 !important;
}

.whb-heading,
.whb-hero .whb-heading,
.whb-hero h1.whb-heading,
h1.whb-heading,
section.whb-hero .whb-heading,
section.whb-hero h1.whb-heading,
.whb-hero .whb-container h1.whb-heading,
section.whb-hero .whb-container h1.whb-heading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: var(--whb-heading-size, 56px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: var(--whb-text-color, #ffffff) !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}

.whb-subheading,
.whb-hero .whb-subheading,
.whb-hero p.whb-subheading,
p.whb-subheading,
section.whb-hero .whb-subheading,
section.whb-hero p.whb-subheading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: var(--whb-subheading-size, 20px) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: var(--whb-subheading-color, var(--whb-text-color, #ffffff)) !important;
    opacity: 0.85;
    margin: 0 0 32px !important;
    padding: 0 !important;
    text-transform: none !important;
}

.whb-subheading:last-child,
.whb-buttons:last-child,
.whb-heading:last-child {
    margin-bottom: 0;
}

/* ========================================
   Buttons
   ======================================== */

.whb-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.whb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.whb-btn:hover,
.whb-btn:focus,
.whb-btn:active {
    text-decoration: none !important;
}

.whb-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Primary Button */
.whb-btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.whb-btn-primary:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.whb-btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.whb-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.whb-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.whb-btn-secondary:active {
    transform: translateY(0);
}

/* Custom Color Buttons - Primary */
.whb-btn-primary.whb-btn-custom {
    border: none;
    box-shadow: none;
}

.whb-btn-primary.whb-btn-custom:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.whb-btn-primary.whb-btn-custom:active {
    filter: brightness(0.95);
    transform: translateY(0);
}

/* Custom Color Buttons - Secondary (transparent style) */
.whb-btn-secondary.whb-btn-custom {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.whb-btn-secondary.whb-btn-custom:hover {
    background: var(--whb-btn-hover-bg, rgba(255, 255, 255, 0.2));
    transform: translateY(-2px);
}

.whb-btn-secondary.whb-btn-custom:active {
    transform: translateY(0);
}

/* ========================================
   Dark Mode
   ======================================== */

.whb-dark-mode .whb-btn-secondary {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 0, 0, 0.4);
}

.whb-dark-mode .whb-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.6);
}

/* ========================================
   Split Layout (Image Left/Right)
   ======================================== */

.whb-layout-split {
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: 500px;
    max-height: 500px;
    display: block !important;
    overflow: hidden;
}

/* Universal margin reset for split layout */
.whb-layout-split *,
.whb-layout-split *::before,
.whb-layout-split *::after {
    margin-bottom: 0 !important;
}

.whb-split-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    width: 100% !important;
    max-width: 100% !important;
    height: 500px;
    margin: 0 !important;
    margin-block: 0 !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    border: none !important;
    gap: 0 !important;
    line-height: 0;
    align-items: stretch;
    box-sizing: border-box !important;
}

.whb-content-column {
    display: flex;
    align-items: center;
    padding: 40px !important;
    border: none !important;
    margin: 0 !important;
    margin-block: 0 !important;
    margin-inline: 0 !important;
    line-height: normal;
    height: 500px;
    max-height: 500px;
    overflow: hidden;
    box-sizing: border-box !important;
}

.whb-layout-split .whb-container {
    max-width: 600px;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    line-height: normal;
}

.whb-image-column {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: none !important;
    margin: 0 !important;
    margin-block: 0 !important;
    margin-inline: 0 !important;
    padding: 10px !important;
    line-height: 0;
    font-size: 0;
    height: 500px;
    max-height: 500px;
    box-sizing: border-box !important;
    position: relative;
}

.whb-image-column .whb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.whb-split-image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Additional reset for img tags inside hero */
.whb-hero img,
.whb-image-column img,
.whb-split-image,
img.whb-split-image {
    margin: 0 !important;
    margin-block: 0 !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    border: none !important;
    vertical-align: top;
    display: block;
    line-height: 0;
    font-size: 0;
}

/* Image Left Layout */
.whb-image-left .whb-split-wrapper {
    grid-template-columns: 1fr 1fr;
}

.whb-image-left .whb-image-column {
    order: 1;
}

.whb-image-left .whb-content-column {
    order: 2;
    justify-content: flex-start;
    padding-left: 60px;
}

.whb-image-left.whb-align-center .whb-content-column {
    justify-content: center;
}

.whb-image-left.whb-align-right .whb-content-column {
    justify-content: flex-end;
    padding-right: 60px;
}

/* Image Right Layout */
.whb-image-right .whb-image-column {
    order: 2;
}

.whb-image-right .whb-content-column {
    order: 1;
    justify-content: flex-end;
    padding-right: 60px;
}

.whb-image-right.whb-align-center .whb-content-column {
    justify-content: center;
}

.whb-image-right.whb-align-left .whb-content-column {
    justify-content: flex-start;
    padding-left: 60px;
}

/* Split Layout - Tablet */
@media (max-width: 992px) {
    .whb-split-wrapper {
        min-height: 400px;
    }
    
    .whb-image-column {
        min-height: 400px;
    }
    
    .whb-content-column {
        padding: 40px 30px;
    }
}

/* Split Layout - Mobile */
@media (max-width: 768px) {
    .whb-layout-split {
        min-height: auto;
    }
    
    .whb-split-wrapper {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }
    
    .whb-image-left .whb-split-wrapper,
    .whb-image-right .whb-split-wrapper {
        flex-direction: column;
    }
    
    .whb-content-column {
        padding: 40px 20px;
        order: 2 !important;
    }
    
    .whb-image-column {
        order: 1 !important;
        min-height: 250px;
        height: 250px;
        position: relative;
    }
    
    .whb-layout-split .whb-container {
        max-width: 100%;
    }
    
    .whb-image-left .whb-content-column,
    .whb-image-right .whb-content-column {
        justify-content: center;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ========================================
   Animations
   ======================================== */

/* Fade In */
.whb-fade-in .whb-container {
    opacity: 0;
    animation: whbFadeIn 0.8s ease-out forwards;
}

@keyframes whbFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide Up */
.whb-slide-up .whb-container {
    opacity: 0;
    transform: translateY(40px);
    animation: whbSlideUp 0.8s ease-out forwards;
}

@keyframes whbSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Left */
.whb-slide-left .whb-container {
    opacity: 0;
    transform: translateX(40px);
    animation: whbSlideLeft 0.8s ease-out forwards;
}

@keyframes whbSlideLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide Right */
.whb-slide-right .whb-container {
    opacity: 0;
    transform: translateX(-40px);
    animation: whbSlideRight 0.8s ease-out forwards;
}

@keyframes whbSlideRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered animation for child elements */
.whb-fade-in .whb-tagline,
.whb-slide-up .whb-tagline,
.whb-slide-left .whb-tagline,
.whb-slide-right .whb-tagline {
    animation-delay: 0.1s;
}

.whb-fade-in .whb-heading,
.whb-slide-up .whb-heading,
.whb-slide-left .whb-heading,
.whb-slide-right .whb-heading {
    animation-delay: 0.2s;
}

.whb-fade-in .whb-subheading,
.whb-slide-up .whb-subheading,
.whb-slide-left .whb-subheading,
.whb-slide-right .whb-subheading {
    animation-delay: 0.3s;
}

.whb-fade-in .whb-buttons,
.whb-slide-up .whb-buttons,
.whb-slide-left .whb-buttons,
.whb-slide-right .whb-buttons {
    animation-delay: 0.4s;
}

/* ========================================
   Responsive - Tablet
   ======================================== */

@media (max-width: 992px) {
    .whb-hero {
        min-height: 350px;
    }
    
    .whb-container {
        max-width: 700px;
    }
    
    .whb-heading,
    .whb-hero .whb-heading,
    .whb-hero h1.whb-heading,
    section.whb-hero .whb-heading,
    section.whb-hero h1.whb-heading {
        font-size: calc(var(--whb-heading-size, 56px) * 0.85) !important;
    }
    
    .whb-subheading,
    .whb-hero .whb-subheading,
    .whb-hero p.whb-subheading,
    section.whb-hero .whb-subheading {
        font-size: calc(var(--whb-subheading-size, 20px) * 0.95) !important;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */

@media (max-width: 768px) {
    .whb-hero {
        min-height: 300px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .whb-container {
        max-width: 100%;
    }
    
    /* Mobile alignment */
    .whb-mobile-align-center .whb-container {
        text-align: center;
    }
    
    .whb-mobile-align-left .whb-container {
        text-align: left;
    }
    
    .whb-mobile-align-center .whb-buttons {
        justify-content: center;
    }
    
    .whb-mobile-align-left .whb-buttons {
        justify-content: flex-start;
    }
    
    /* Typography sizes for mobile */
    .whb-heading,
    .whb-hero .whb-heading,
    .whb-hero h1.whb-heading,
    h1.whb-heading,
    section.whb-hero .whb-heading,
    section.whb-hero h1.whb-heading {
        font-size: var(--whb-heading-size-mobile, 36px) !important;
        margin-bottom: 16px !important;
    }
    
    .whb-subheading,
    .whb-hero .whb-subheading,
    .whb-hero p.whb-subheading,
    section.whb-hero .whb-subheading {
        font-size: var(--whb-subheading-size-mobile, 16px) !important;
        margin-bottom: 24px !important;
    }
    
    .whb-tagline,
    .whb-hero .whb-tagline,
    .whb-hero p.whb-tagline,
    section.whb-hero .whb-tagline {
        font-size: 12px !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 12px !important;
    }
    
    /* Button adjustments */
    .whb-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    /* Button stacking */
    .whb-buttons-stack-mobile .whb-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .whb-buttons-stack-mobile.whb-mobile-align-center .whb-buttons {
        align-items: center;
    }
    
    .whb-buttons-stack-mobile .whb-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* ========================================
   Accessibility - Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .whb-fade-in .whb-container,
    .whb-slide-up .whb-container,
    .whb-slide-left .whb-container,
    .whb-slide-right .whb-container {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .whb-btn {
        transition: none;
    }
}

/* ========================================
   Decorative Shapes - Base
   ======================================== */

/* Reset margins and borders on hero with shapes */
.whb-hero.whb-has-shape,
section.whb-hero.whb-has-shape,
.whb-has-shape {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-block: 0 !important;
    margin-inline: 0 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    box-shadow: none !important;
    overflow: visible !important; /* Allow shapes to extend beyond */
}

/* Remove any borders/outlines that themes might add */
.whb-hero.whb-has-shape::before,
.whb-hero.whb-has-shape::after,
section.whb-hero.whb-has-shape::before,
section.whb-hero.whb-has-shape::after {
    border: none !important;
    outline: none !important;
}

/* 
   DEBUG: Uncomment to see element boundaries
   .whb-hero { outline: 2px solid red !important; }
   .whb-shape { outline: 2px solid blue !important; }
*/

.whb-shape {
    position: absolute;
    width: 100%;
    pointer-events: none;
    z-index: 2;
    color: var(--whb-shape-color, #ffffff);
    opacity: var(--whb-shape-opacity, 0.3);
    mix-blend-mode: var(--whb-shape-blend-mode, normal);
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-block: 0 !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    line-height: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.whb-shape *,
.whb-shape svg {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    line-height: 0;
}

/* Force remove bottom margin from overlay and shape */
.whb-hero .whb-overlay,
.whb-hero .whb-shape,
section.whb-hero .whb-overlay,
section.whb-hero .whb-shape {
    margin: 0 !important;
    margin-bottom: 0 !important;
    margin-block-end: 0 !important;
}


/* Ensure content stays above shapes */
.whb-has-shape .whb-container {
    position: relative;
    z-index: 3;
}

/* ========================================
   Shape: Bottom Curve
   ======================================== */

.whb-shape-bottom-curve {
    bottom: var(--whb-shape-offset, 0px);
    left: 0;
    width: 100%;
    height: var(--whb-shape-height, 100px);
    background: currentColor;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Solid strip to cover any gap below the curve */
.whb-shape-bottom-curve::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: inherit;
}

/* ========================================
   Shape: Bottom Wave
   ======================================== */

.whb-shape-bottom-wave {
    bottom: var(--whb-shape-offset, 0px);
    left: 0;
    width: 100%;
    height: var(--whb-shape-height, 100px);
    overflow: visible;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.whb-shape-bottom-wave .whb-wave-svg {
    display: block;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    margin: 0 -5px -5px -5px !important;
    padding: 0 !important;
    border: none !important;
    color: var(--whb-shape-color, #ffffff);
}

/* Solid strip to cover any gap below the wave */
.whb-shape-bottom-wave::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: var(--whb-shape-color, #ffffff);
    opacity: var(--whb-shape-opacity, 0.3);
}

/* ========================================
   Shape: Top Wave
   ======================================== */

.whb-shape-top-wave {
    top: var(--whb-shape-offset, 0px);
    left: 0;
    width: 100%;
    height: var(--whb-shape-height, 100px);
    overflow: visible;
    margin: 0 !important;
    padding: 0 !important;
}

.whb-shape-top-wave .whb-wave-svg {
    display: block;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    margin: -5px -5px 0 -5px !important;
    padding: 0 !important;
    color: var(--whb-shape-color, #ffffff);
}

/* Solid strip to cover any gap above the wave */
.whb-shape-top-wave::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: var(--whb-shape-color, #ffffff);
    opacity: var(--whb-shape-opacity, 0.3);
}

/* ========================================
   Shape: Tilt Left
   ======================================== */

.whb-shape-tilt-left {
    bottom: var(--whb-shape-offset, 0px);
    left: 0;
    width: 100%;
    height: var(--whb-shape-height, 100px);
    background: currentColor;
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
    margin: 0 !important;
    padding: 0 !important;
}

.whb-shape-tilt-left::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: inherit;
}

/* ========================================
   Shape: Tilt Right
   ======================================== */

.whb-shape-tilt-right {
    bottom: var(--whb-shape-offset, 0px);
    left: 0;
    width: 100%;
    height: var(--whb-shape-height, 100px);
    background: currentColor;
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
    margin: 0 !important;
    padding: 0 !important;
}

.whb-shape-tilt-right::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: inherit;
}

/* ========================================
   Shape: Triangle Center
   ======================================== */

.whb-shape-triangle {
    bottom: var(--whb-shape-offset, 0px);
    left: 0;
    width: 100%;
    height: var(--whb-shape-height, 100px);
    background: currentColor;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    margin: 0 !important;
    padding: 0 !important;
}

.whb-shape-triangle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: inherit;
}

/* ========================================
   Shape: Arrow Down
   ======================================== */

.whb-shape-arrow-down {
    bottom: var(--whb-shape-offset, 0px);
    left: 0;
    width: 100%;
    height: var(--whb-shape-height, 100px);
    background: currentColor;
    clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%);
    margin: 0 !important;
    padding: 0 !important;
}

.whb-shape-arrow-down::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: inherit;
}

/* ========================================
   Shape: Zigzag
   ======================================== */

.whb-shape-zigzag {
    bottom: var(--whb-shape-offset, 0px);
    left: 0;
    width: 100%;
    height: var(--whb-shape-height, 100px);
    overflow: visible;
    margin: 0 !important;
    padding: 0 !important;
}

.whb-shape-zigzag .whb-zigzag-svg {
    display: block;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    margin: 0 -5px -5px -5px !important;
    color: var(--whb-shape-color, #ffffff);
}

.whb-shape-zigzag::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: var(--whb-shape-color, #ffffff);
    opacity: var(--whb-shape-opacity, 0.3);
}

/* ========================================
   Shape: Mountains
   ======================================== */

.whb-shape-mountains {
    bottom: var(--whb-shape-offset, 0px);
    left: 0;
    width: 100%;
    height: var(--whb-shape-height, 100px);
    overflow: visible;
    margin: 0 !important;
    padding: 0 !important;
}

.whb-shape-mountains .whb-mountains-svg {
    display: block;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    margin: 0 -5px -5px -5px !important;
    color: var(--whb-shape-color, #ffffff);
}

.whb-shape-mountains::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: var(--whb-shape-color, #ffffff);
    opacity: var(--whb-shape-opacity, 0.3);
}

/* ========================================
   Shape: Clouds
   ======================================== */

.whb-shape-clouds {
    bottom: var(--whb-shape-offset, 0px);
    left: 0;
    width: 100%;
    height: var(--whb-shape-height, 100px);
    overflow: visible;
    margin: 0 !important;
    padding: 0 !important;
}

.whb-shape-clouds .whb-clouds-svg {
    display: block;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    margin: 0 -5px -5px -5px !important;
    color: var(--whb-shape-color, #ffffff);
}

.whb-shape-clouds::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: var(--whb-shape-color, #ffffff);
    opacity: var(--whb-shape-opacity, 0.3);
}

/* ========================================
   Shape: Drops/Blobs
   ======================================== */

.whb-shape-drops {
    bottom: var(--whb-shape-offset, 0px);
    left: 0;
    width: 100%;
    height: var(--whb-shape-height, 100px);
    overflow: visible;
    margin: 0 !important;
    padding: 0 !important;
}

.whb-shape-drops .whb-drops-svg {
    display: block;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    margin: 0 -5px -5px -5px !important;
    color: var(--whb-shape-color, #ffffff);
}

.whb-shape-drops::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: var(--whb-shape-color, #ffffff);
    opacity: var(--whb-shape-opacity, 0.3);
}

/* ========================================
   Shape: Left Half-Circle
   ======================================== */

.whb-shape-half-circle-left {
    left: calc(-1 * var(--whb-shape-height, 100px) / 2 + var(--whb-shape-offset, 0px));
    top: 50%;
    transform: translateY(-50%);
    width: var(--whb-shape-height, 100px);
    height: calc(var(--whb-shape-height, 100px) * 1.5);
    border-radius: 0 100% 100% 0 / 0 50% 50% 0;
    background: currentColor;
}

/* ========================================
   Shape: Right Half-Circle
   ======================================== */

.whb-shape-half-circle-right {
    right: calc(-1 * var(--whb-shape-height, 100px) / 2 + var(--whb-shape-offset, 0px));
    top: 50%;
    transform: translateY(-50%);
    width: var(--whb-shape-height, 100px);
    height: calc(var(--whb-shape-height, 100px) * 1.5);
    border-radius: 100% 0 0 100% / 50% 0 0 50%;
    background: currentColor;
}

/* ========================================
   Shape: Tech Angular
   ======================================== */

.whb-shape-tech-angular {
    top: var(--whb-shape-offset, 0);
    right: 0;
    width: calc(var(--whb-shape-height, 100px) * 2.5);
    height: calc(var(--whb-shape-height, 100px) * 2.5);
    background: currentColor;
    clip-path: polygon(
        30% 0%, 
        100% 0%, 
        100% 70%, 
        70% 100%, 
        0% 100%, 
        0% 30%
    );
}

/* ========================================
   Shape: Tech Nodes (Floating Particles)
   ======================================== */

.whb-shape-tech-nodes {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.whb-shape-tech-nodes .whb-nodes-svg {
    width: 100%;
    height: 100%;
    color: var(--whb-shape-color, #ffffff);
}

/* Node pulse animation */
.whb-node {
    animation: whbNodePulse 3s ease-in-out infinite;
}

.whb-node-1 { animation-delay: 0s; }
.whb-node-2 { animation-delay: 0.2s; }
.whb-node-3 { animation-delay: 0.4s; }
.whb-node-4 { animation-delay: 0.6s; }
.whb-node-5 { animation-delay: 0.8s; }
.whb-node-6 { animation-delay: 1s; }
.whb-node-7 { animation-delay: 1.2s; }
.whb-node-8 { animation-delay: 1.4s; }
.whb-node-9 { animation-delay: 1.6s; }
.whb-node-10 { animation-delay: 1.8s; }
.whb-node-11 { animation-delay: 2s; }
.whb-node-12 { animation-delay: 2.2s; }
.whb-node-13 { animation-delay: 2.4s; }
.whb-node-14 { animation-delay: 2.6s; }
.whb-node-15 { animation-delay: 2.8s; }

@keyframes whbNodePulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ========================================
   Shape Animations
   ======================================== */

.whb-shape-animate {
    opacity: 0;
    animation: whbShapeFadeIn 1s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes whbShapeFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: var(--whb-shape-opacity, 0.3);
        transform: translateY(0);
    }
}

/* Specific animation adjustments for different shapes */
.whb-shape-half-circle-left.whb-shape-animate {
    animation: whbShapeFadeInLeft 1s ease-out forwards;
    animation-delay: 0.3s;
}

.whb-shape-half-circle-right.whb-shape-animate {
    animation: whbShapeFadeInRight 1s ease-out forwards;
    animation-delay: 0.3s;
}

.whb-shape-tech-angular.whb-shape-animate {
    animation: whbShapeFadeInRight 1s ease-out forwards;
    animation-delay: 0.3s;
}

.whb-shape-tech-nodes.whb-shape-animate {
    animation: whbShapeFadeIn 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

/* Animations for new shapes */
.whb-shape-tilt-left.whb-shape-animate,
.whb-shape-tilt-right.whb-shape-animate,
.whb-shape-triangle.whb-shape-animate,
.whb-shape-arrow-down.whb-shape-animate,
.whb-shape-zigzag.whb-shape-animate,
.whb-shape-mountains.whb-shape-animate,
.whb-shape-clouds.whb-shape-animate,
.whb-shape-drops.whb-shape-animate {
    animation: whbShapeFadeIn 1s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes whbShapeFadeInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-30px);
    }
    to {
        opacity: var(--whb-shape-opacity, 0.3);
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes whbShapeFadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: var(--whb-shape-opacity, 0.3);
        transform: translateX(0);
    }
}

/* ========================================
   Shape Responsive - Tablet
   ======================================== */

@media (max-width: 992px) {
    .whb-shape-tech-angular {
        width: calc(var(--whb-shape-height, 100px) * 2);
        height: calc(var(--whb-shape-height, 100px) * 2);
    }
    
    .whb-shape-half-circle-left,
    .whb-shape-half-circle-right {
        width: calc(var(--whb-shape-height, 100px) * 0.8);
        height: calc(var(--whb-shape-height, 100px) * 1.2);
    }
}

/* ========================================
   Shape Responsive - Mobile
   ======================================== */

@media (max-width: 768px) {
    .whb-shape-bottom-curve,
    .whb-shape-bottom-wave,
    .whb-shape-top-wave {
        height: calc(var(--whb-shape-height, 100px) * 0.6);
    }
    
    .whb-shape-tech-angular {
        width: calc(var(--whb-shape-height, 100px) * 1.5);
        height: calc(var(--whb-shape-height, 100px) * 1.5);
    }
    
    .whb-shape-half-circle-left,
    .whb-shape-half-circle-right {
        width: calc(var(--whb-shape-height, 100px) * 0.6);
        height: calc(var(--whb-shape-height, 100px) * 0.9);
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .whb-hero {
        background: #ffffff !important;
        color: #000000 !important;
        min-height: auto;
        padding: 40px 20px;
    }
    
    .whb-overlay {
        display: none;
    }
    
    .whb-shape {
        display: none;
    }
    
    .whb-heading,
    .whb-subheading,
    .whb-tagline {
        color: #000000 !important;
    }
    
    .whb-btn {
        border: 1px solid #000000;
        background: transparent !important;
        color: #000000 !important;
        box-shadow: none;
    }
}

