/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Custom Cursor
   ========================================================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    z-index: 10000;
    pointer-events: none;
    mix-blend-mode: difference;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-dot {
    width: 30px;
    height: 30px;
    background-color: #C9B298;
    border-radius: 50%;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

/* Page Intro: Home (Overlay)
   ========================================================================== */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #2B2623;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

#intro-overlay.finished {
    transform: translateY(-100%);
    pointer-events: none;
}

.intro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2B2623;
    /* Creative Background: Image with dark gradient overlay to preserve text readability and theme */
    background-image: linear-gradient(to bottom, rgba(43, 38, 35, 0.92), rgba(43, 38, 35, 0.85)), url('../assets/images/dewi3.webp');
    background-size: cover;
    background-position: center 30%;
    background-blend-mode: overlay;
    transition: transform 4s ease-out;
    will-change: transform;
}

.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.intro-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: #F9F7F2;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.intro-text.active {
    opacity: 1;
    transform: translateY(0);
}

.intro-text.exit {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #C9B298;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.intro-sub.active {
    opacity: 1;
    transform: translateY(0);
}

.intro-sub.exit {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-line {
    width: 2px;
    height: 0;
    background-color: #C9B298;
    margin: 2rem auto 0;
    transition: height 1s ease;
}

.intro-text.active~.intro-line {
    height: 60px;
}

/* Page Intro: For You
   ========================================================================== */
.intro-for-you {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-for-you.finished {
    pointer-events: none;
}

.intro-for-you .intro-panel {
    position: absolute;
    left: 0;
    width: 100%;
    height: 51%;
    /* Slight overlap to prevent gap */
    background-color: #C9B298;
    /* Creative Background: Split image effect */
    background-image: url('../assets/images/dewi4.webp');
    /* Ensure image spans full viewport to align split perfectly */
    background-size: 100vw 100vh;
    /* Default fallback */
    background-position: center center;
    /* Blend mode for better visibility */
    background-blend-mode: hard-light;
    /* Reduced overlay to show more image (was 0.85) */
    box-shadow: inset 0 0 0 2000px rgba(201, 178, 152, 0.7);

    transition: transform 1.5s cubic-bezier(0.86, 0, 0.07, 1);
    z-index: 1;
    will-change: transform;
}

/* Mobile Fix for For-You: Prevent squishing by using auto height */
@media (max-width: 768px) {
    .intro-for-you .intro-panel {
        background-size: auto 100vh;
        /* Height fills screen, width scales naturally */
    }

    .intro-for-you .top-panel {
        background-position: center top;
    }

    .intro-for-you .bottom-panel {
        background-position: center bottom;
    }
}

.intro-for-you .top-panel {
    top: 0;
    transform-origin: top;
    background-position: center top;
}

.intro-for-you .bottom-panel {
    bottom: 0;
    transform-origin: bottom;
    background-position: center bottom;
}

.intro-for-you.finished .top-panel {
    transform: translateY(-100%);
}

.intro-for-you.finished .bottom-panel {
    transform: translateY(100%);
}

.intro-for-you .intro-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.intro-for-you .intro-content.active {
    opacity: 1;
    transform: scale(1);
}

.intro-for-you .intro-content.exit {
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.intro-for-you h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 5rem);
    color: #2B2623;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Page Intro: For Professionals
   ========================================================================== */
.intro-for-pros {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #8D7462;
    /* Creative Background: Circular Reveal Image */
    background-image: url('../assets/images/dewi5.webp');
    background-size: cover;
    background-position: center;
    /* Switched to hard-light to reveal more detail */
    background-blend-mode: hard-light;
    /* Reduced overlay to show more image (was 0.9) */
    box-shadow: inset 0 0 0 2000px rgba(141, 116, 98, 0.75);

    /* Hero color */
    clip-path: circle(150% at 50% 50%);
    transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.intro-for-pros.finished {
    clip-path: circle(0% at 50% 50%);
    pointer-events: none;
}

.intro-for-pros .intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.intro-for-pros .intro-content.active {
    opacity: 1;
    transform: translateY(0);
}

.intro-for-pros .intro-content.exit {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.intro-for-pros h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 8rem);
    color: #F9F7F2;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Decorative circles for Pros intro */
.intro-for-pros .circle-deco {
    position: absolute;
    border: 1px solid rgba(249, 247, 242, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 2s cubic-bezier(0.19, 1, 0.22, 1);
}

.intro-for-pros .intro-content.active~.circle-deco {
    transform: translate(-50%, -50%) scale(1);
}

.intro-for-pros .c1 {
    width: 40vw;
    height: 40vw;
    transition-delay: 0.1s;
}

.intro-for-pros .c2 {
    width: 60vw;
    height: 60vw;
    transition-delay: 0.2s;
}

.intro-for-pros .c3 {
    width: 80vw;
    height: 80vw;
    transition-delay: 0.3s;
}

/* Page Intro: For Sport
   ========================================================================== */
.intro-for-sport {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2B2623;
    /* Dark background */
    overflow: hidden;
}

.intro-for-sport.finished {
    pointer-events: none;
    background-color: transparent;
    transition: background-color 0.1s linear 1s;
    /* Delay to let panels move */
}

.intro-for-sport .sport-panel {
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    background-color: #2B2623;
    /* Creative Background: Split kinetic image */
    background-image: url('../assets/images/dewi7.webp');
    background-size: 500% 100%;
    /* Switched blend mode to reveal more */
    background-blend-mode: hard-light;
    /* Reduced overlay to show more image (was 0.85) */
    box-shadow: inset 0 0 0 2000px rgba(43, 38, 35, 0.7);

    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    border-right: 1px solid rgba(201, 178, 152, 0.1);
}

/* Mobile Fix for Sport: Ensure image isn't squished */
@media (max-width: 768px) {
    .intro-for-sport .sport-panel {
        background-size: auto 100vh;
        /* Height matches screen height, width scales naturally */
    }

    .intro-for-sport .sport-panel:nth-child(1) {
        background-position: 0% center;
    }

    .intro-for-sport .sport-panel:nth-child(2) {
        background-position: 25% center;
    }

    .intro-for-sport .sport-panel:nth-child(3) {
        background-position: 50% center;
    }

    .intro-for-sport .sport-panel:nth-child(4) {
        background-position: 75% center;
    }

    .intro-for-sport .sport-panel:nth-child(5) {
        background-position: 100% center;
    }
}

.intro-for-sport.finished .sport-panel {
    transform: translateY(-100%);
}

.intro-for-sport.finished .sport-panel:nth-child(even) {
    transform: translateY(100%);
}

.intro-for-sport .sport-panel:nth-child(1) {
    left: 0%;
    background-position: 0% center;
    transition-delay: 0.0s;
}

.intro-for-sport .sport-panel:nth-child(2) {
    left: 20%;
    background-position: 25% center;
    transition-delay: 0.1s;
}

.intro-for-sport .sport-panel:nth-child(3) {
    left: 40%;
    background-position: 50% center;
    transition-delay: 0.2s;
}

.intro-for-sport .sport-panel:nth-child(4) {
    left: 60%;
    background-position: 75% center;
    transition-delay: 0.3s;
}

.intro-for-sport .sport-panel:nth-child(5) {
    left: 80%;
    background-position: 100% center;
    transition-delay: 0.4s;
}

.intro-for-sport .intro-content {
    position: relative;
    z-index: 10;
    mix-blend-mode: difference;
    opacity: 0;
    transform: scale(1.5);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intro-for-sport .intro-content.active {
    opacity: 1;
    transform: scale(1);
}

.intro-for-sport .intro-content.exit {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.intro-for-sport h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 15vw, 12rem);
    color: #F9F7F2;
    line-height: 0.9;
    text-transform: uppercase;
    font-style: italic;
    /* Sporty feel */
}

/* Page Intro: For Children - Creative Cloud Reveal
   ========================================================================== */
.intro-for-kids {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #EBE5CE;
    /* Fallback color */
    overflow: hidden;
    /* New Creative Background: Gentle Full Screen Image */
    background-image: url('../assets/images/dewi9.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: hard-light;
    /* Strong overlay for initial mystery */
    box-shadow: inset 0 0 0 2000px rgba(235, 229, 206, 0.95);

    transition: box-shadow 2.5s ease;
}

/* Reveal image gently */
.intro-for-kids.active-reveal {
    box-shadow: inset 0 0 0 2000px rgba(235, 229, 206, 0.6);
}

.intro-for-kids.finished {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

/* Soft floating shapes instead of hectic bubbles */
.intro-for-kids .bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    filter: blur(40px);
    opacity: 0.6;
    transform: scale(0);
    animation: gentleFloat 6s infinite ease-in-out;
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

.intro-for-kids .b1 {
    width: 80vw;
    height: 80vw;
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.intro-for-kids .b2 {
    width: 60vw;
    height: 60vw;
    bottom: -10%;
    right: -10%;
    animation-delay: 2s;
}

.intro-for-kids .b3 {
    width: 40vw;
    height: 40vw;
    top: 30%;
    left: 40%;
    animation-delay: 4s;
    opacity: 0.4;
}

.intro-for-kids .intro-content {
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    /* Gentle rise */
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.intro-for-kids .intro-content.active {
    opacity: 1;
    transform: translateY(0);
}

.intro-for-kids .intro-content.exit {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-for-kids h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 12vw, 9rem);
    color: #2B2623;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.intro-for-kids.finished {
    opacity: 0;
    transition: opacity 0.8s ease 0.5s;
}

/* Page Intro: Contact
   ========================================================================== */
.intro-contact {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2B2623;
    /* Creative Background: Network/Connection Image */
    background-image: url('../assets/images/dewi6.webp');
    background-size: cover;
    background-position: center;
    /* Lighter blend to show more image details */
    background-blend-mode: hard-light;
    /* Reduced overlay opacity to 0.75 (was 0.92) to reveal more image */
    box-shadow: inset 0 0 0 2000px rgba(43, 38, 35, 0.75);

    overflow: hidden;
}

.intro-contact.finished {
    pointer-events: none;
}

.intro-contact .line {
    position: absolute;
    background-color: #C9B298;
    opacity: 0.2;
}

.intro-contact .l1 {
    width: 1px;
    height: 0;
    top: 0;
    left: 20%;
    animation: growDown 1.5s ease forwards;
}

.intro-contact .l2 {
    width: 1px;
    height: 0;
    bottom: 0;
    right: 20%;
    animation: growUp 1.5s ease forwards 0.2s;
}

.intro-contact .l3 {
    height: 1px;
    width: 0;
    top: 30%;
    left: 0;
    animation: growRight 1.5s ease forwards 0.4s;
}

.intro-contact .l4 {
    height: 1px;
    width: 0;
    bottom: 30%;
    right: 0;
    animation: growLeft 1.5s ease forwards 0.6s;
}

@keyframes growDown {
    to {
        height: 100%;
    }
}

@keyframes growUp {
    to {
        height: 100%;
    }
}

@keyframes growRight {
    to {
        width: 100%;
    }
}

@keyframes growLeft {
    to {
        width: 100%;
    }
}

.intro-contact .intro-content {
    position: relative;
    z-index: 10;
    opacity: 0;
    letter-spacing: 1em;
    /* Start wide */
    transition: opacity 1s ease, letter-spacing 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.intro-contact .intro-content.active {
    opacity: 1;
    letter-spacing: -0.05em;
    /* Snap together */
}

.intro-contact .intro-content.exit {
    opacity: 0;
    transform: scale(1.2);
    filter: blur(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.intro-contact h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 12vw, 10rem);
    color: #F9F7F2;
    line-height: 1;
    text-transform: uppercase;
}

.intro-contact.finished {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Animations for Hero Sections
   ========================================================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseSlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.15;
    }
}

.animate-slide-up {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 1.5s ease forwards;
}

.animate-spin-slow {
    animation: spinSlow 30s linear infinite;
}

.animate-pulse-slow {
    animation: pulseSlow 6s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* ==========================================================================
   IS THIS YOU? - CREATIVE LIST
   ========================================================================== */
.dl-blurbs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .dl-blurbs {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

.dl-blurbs dl {
    counter-reset: count;
    margin: 0;
    padding: 0;
}

/* Offset the second list for a staggered look on desktop */
@media (min-width: 768px) {
    .dl-blurbs dl:nth-child(2) {
        margin-top: 6rem;
        counter-reset: count 5;
        /* Start from 6 */
    }
}

.dl-blurbs dt {
    counter-increment: count;
    color: #2B2623;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 4rem;
    cursor: default;
    transition: all 0.4s ease;
}

.dl-blurbs dt::before {
    content: counter(count, decimal-leading-zero) ".";
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: #C9B298;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0;
    transition: all 0.4s ease;
}

/* Hover Effects */
.dl-blurbs dt:hover {
    transform: translateX(10px);
    color: #8D7462;
}

.dl-blurbs dt:hover::before {
    color: #2B2623;
    transform: scale(1.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .dl-blurbs dt {
        padding-left: 3rem;
        margin-bottom: 2rem;
    }

    /* Ensure continuous counting on mobile if stacked */
    .dl-blurbs dl:nth-child(2) {
        counter-reset: count 5;
    }
}
/* Animations */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}
.animate-pulse-slow {
    animation: pulse-slow 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
