/* Custom CSS overrides en aanvullingen voor TT Clinics */

/* Font definities voor de zekerheid toegevoegd als fallback */
.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* Hero Section Background met batje en oranje bal */
.hero-bg {
    background-image: url('../images/hero-batje.jpg');
    background-position: 75% center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Vloeiende scroll voor anker links */
html {
    scroll-behavior: smooth;
}

/* Je kunt hier je eigen custom CSS toevoegen als je niet alles met Tailwind wilt doen */
/* Bijvoorbeeld: */
.btn-primary:active {
    transform: scale(0.95);
}

/* Dynamische Sectie Overgangen */
.slant-top {
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -4vw;
    padding-top: calc(4rem + 4vw);
}
@media (min-width: 768px) {
    .slant-top {
        padding-top: calc(5rem + 4vw);
    }
}

.slant-top-footer {
    clip-path: polygon(0 0, 100% 6vw, 100% 100%, 0 100%);
    margin-top: -11rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Knoppen met Snelheid (Hover Sweep) */
.btn-speed {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-speed::after {
    content: '';
    position: absolute;
    top: 0; 
    left: -150%; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn-speed:hover::after {
    left: 150%;
}


/* Header: diagonale streep met taps toelopend oranje accent (zoals footer) */
.header-swoosh-wrap {
    background: #FF6B00;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 4vw));
}
.header-swoosh {
    padding-bottom: calc(4vw + 2.5rem);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 0 calc(100% - 4vw));
}

/* Stuiterend pingpongballetje over de schuine rand */
.header-outer {
    position: relative;
    margin-bottom: 2rem;
}
.tt-ball-track {
    position: absolute;
    z-index: 30;
    pointer-events: none;
    animation: tt-ball-travel 7s linear infinite;
}
.tt-ball-shadow {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 28px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 72%);
    transform: translateX(-50%);
    animation: tt-ball-shadow-pulse .7s infinite;
}
.tt-ball {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffffff 0%, #fff0e6 16%, #ff8a33 38%, #ff6b00 70%, #b83d00 100%);
    box-shadow: 0 5px 14px rgba(0,0,0,.4),
                inset -2px -3px 6px rgba(130, 40, 0, 0.55),
                inset 2px 2px 5px rgba(255, 255, 255, 0.85);
    transform-origin: 50% 100%;
    transform: translateX(-50%);
    animation: tt-ball-bounce .7s infinite;
}

@media (min-width: 768px) {
    .tt-ball {
        width: 36px;
        height: 36px;
    }
    .tt-ball-shadow {
        width: 34px;
        height: 9px;
    }
}

/* Volgt de schuine rand: links 4vw hoog, rechts 14px (bovenkant oranje wig) */
@keyframes tt-ball-travel {
    0%   { left: 2%;  bottom: calc(4vw * 0.98 + 14px * 0.02); opacity: 0; }
    6%   { opacity: 1; }
    94%  { opacity: 1; }
    100% { left: 98%; bottom: calc(4vw * 0.02 + 14px * 0.98); opacity: 0; }
}
@keyframes tt-ball-bounce {
    0%   { transform: translate(-50%, 0) scale(1.15, .85); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
    10%  { transform: translate(-50%, -6px) scale(1, 1); }
    50%  { transform: translate(-50%, -68px) scale(1, 1); animation-timing-function: cubic-bezier(.6,0,.8,.3); }
    100% { transform: translate(-50%, 0) scale(1.15, .85); }
}
@keyframes tt-ball-shadow-pulse {
    0%   { transform: translateX(-50%) scale(1.15, 1.15); opacity: 0.55; }
    50%  { transform: translateX(-50%) scale(0.4, 0.4); opacity: 0.12; }
    100% { transform: translateX(-50%) scale(1.15, 1.15); opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
    .tt-ball-track, .tt-ball, .tt-ball-shadow { animation: none; }
    .tt-ball-track { display: none; }
}

/* Responsive menubalk hoogte voor naadloze ankerlinks */
:root {
    --navbar-height: 82px;
}
@media (min-width: 768px) {
    :root {
        --navbar-height: 152px;
    }
}
@media (min-width: 1024px) {
    :root {
        --navbar-height: 212px;
    }
}

/* Ankerlinks landen exact en consistent onder de sticky menubalk */
section[id], div[id].anchor-target {
    scroll-margin-top: var(--navbar-height);
}

/* Sectie Prijzen heeft een schuine overgang (-4vw); compenseer voor exact identieke witruimte */
#prijzen {
    scroll-margin-top: calc(var(--navbar-height) - 4vw);
}

/* 3D Tafeltennisbal Icoon Badge (identiek spiegeleffect aan de stuiterende bal, 100% recht) */
.tt-icon-ball {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffffff 0%, #fff0e6 16%, #ff8a33 38%, #ff6b00 70%, #b83d00 100%);
    box-shadow: 0 8px 22px rgba(255, 107, 0, 0.35),
                inset -2px -3px 6px rgba(130, 40, 0, 0.55),
                inset 2px 2px 5px rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    position: relative;
    transform: none !important;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.tt-icon-ball svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    transform: none !important;
}
.group:hover .tt-icon-ball {
    transform: scale(1.08) !important;
    box-shadow: 0 12px 28px rgba(255, 107, 0, 0.45),
                inset -2px -3px 6px rgba(130, 40, 0, 0.55),
                inset 2px 2px 5px rgba(255, 255, 255, 0.85);
}


/* Twee 3D tafeltennisballetjes die stil liggen op de basislijn */
.tt-sphere {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    box-sizing: border-box;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f7f7f7 35%, #e1e1e1 70%, #b8b8b8 100%);
    box-shadow: inset -4px -6px 12px rgba(0,0,0,0.16),
                inset 3px 3px 6px rgba(255,255,255,0.95);
}

.tt-sphere-back {
    width: 104px;
    height: 104px;
}

.tt-sphere-front {
    width: 120px;
    height: 120px;
    box-shadow: inset -4px -6px 12px rgba(0,0,0,0.16),
                inset 3px 3px 6px rgba(255,255,255,0.95),
                4px 6px 14px -2px rgba(0,0,0,0.15);
}

/* Natuurlijke zachte slagschaduwen onder de stilliggende balletjes */
.tt-shadow-back {
    position: absolute;
    left: 164px;
    bottom: 5px;
    width: 92px;
    height: 18px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0) 75%);
    filter: blur(4px);
    pointer-events: none;
}

.tt-shadow-front {
    position: absolute;
    left: 68px;
    bottom: 4px;
    width: 106px;
    height: 22px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.12) 45%, rgba(0,0,0,0) 75%);
    filter: blur(5px);
    pointer-events: none;
}

/* Subtiel contactschaduw precies onder het raakpunt van de bal met de ondergrond */
.tt-contact-back {
    position: absolute;
    left: 164px;
    bottom: 7px;
    width: 44px;
    height: 6px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 75%);
    filter: blur(1.5px);
    pointer-events: none;
}

.tt-contact-front {
    position: absolute;
    left: 68px;
    bottom: 7px;
    width: 52px;
    height: 7px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0) 75%);
    filter: blur(1.5px);
    pointer-events: none;
}
