/* Global resets and smooth scrolling */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent unwanted word breaks globally */
h1, h2, h3, h4, h5, h6, .font-display {
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    overflow-wrap: break-word; /* Allows long words to break only if necessary to prevent overflow */
    word-break: normal; /* Prefer keeping words together */
}

/* 
   Geological Abstract Layers 
*/
.geo-layer {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(90px);
    will-change: transform;
}

/* Layer 1: The "Soil" base - rising from bottom */
.layer-1 {
    bottom: -20%;
    left: -10%;
    width: 70vw;
    height: 60vh;
    background: #CBD2C9; /* Slightly darker mineral green/grey */
    opacity: 0.8;
    animation: breathe 20s infinite alternate ease-in-out;
    z-index: 1;
}

/* Layer 2: The "Transition" - floating right */
.layer-2 {
    bottom: -10%;
    right: -10%;
    width: 80vw;
    height: 70vh;
    background: #E3E8E5; /* Light limestone */
    opacity: 0.7;
    animation: breathe 25s infinite alternate-reverse ease-in-out;
    z-index: 2;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* Gentle Animations */
@keyframes breathe {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(2%, -2%) scale(1.05);
    }
}

/* Typography Utility */
.text-balance {
    text-wrap: balance;
}

/* Ensure images don't overflow */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Glass Card styling for details */
.glass-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
