/* Add your custom styles here */

/* Global Silk Background - limited to upper page area */
#global-silk-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    /* Limit to upper area only */
    clip-path: inset(0 0 40% 0);
}

/* Waves Background for Hero Section */
#hero-waves-background,
.hero-background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Use viewport height instead of 100% to avoid parent dependency */
    min-height: 100vh; /* Ensure minimum height */
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

/* Constrain the Three.js canvas to container bounds */
#global-silk-background canvas,
#hero-waves-background canvas,
.hero-background-canvas canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
    display: block !important;
    background: transparent !important;
}

/* Ensure parent containers have relative positioning for silk backgrounds */
.hero-section {
    position: relative;
    height: 100vh; /* Force immediate height calculation */
    min-height: 100vh; /* Fallback for min-h-screen */
}

/* Make sure content is above silk background */
.hero-section > *:not(#hero-waves-background) {
    position: relative;
    z-index: 2;
}
