/* ==========================================================================
   Tulp Group - 5 Miljard Mijlpaal - Custom Styles
   ========================================================================== */

/* --- Variables & Base --- */
:root {
    --tulp-orange: #ef6f0b;
    /* From provided CSS */
    --tulp-orange-dark: #b9561f;
    --tulp-blue: #1d1d1b;
    /* From provided CSS --bs-dark */
    --light-bg: #fcfcfc;
    /* From provided CSS --bs-body-bg */
    --border-color: #cececa;
    /* From provided CSS --bs-gray-200 */
    --delft-blue: #003399;
    /* For the tiles */
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
    font-family: 'Roboto', sans-serif;
    color: var(--tulp-blue);
    font-weight: 700;
}

.lead {
    font-weight: 400;
    /* Force normal weight instead of Bootstrap's default 300 */
}

.text-tulp {
    color: var(--tulp-orange) !important;
}

.bg-tulp {
    background-color: var(--tulp-orange) !important;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

/* --- Header --- */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.logo-text {
    font-size: 2rem;
    margin: 0;
    font-weight: 800;
}

/* --- Hero Section & Split Flap Counter --- */
.hero-section {
    background: linear-gradient(176deg, rgb(255 255 255 / 74%), rgb(255 255 255 / 95%)), url(confetti_background.png) center / cover no-repeat;
    padding: 120px 0;
    overflow: hidden;
}

@media (max-width: 576px) {
    .hero-section {
        padding: 50px 0 0 0;
    }
}

.confetti-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.split-flap-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--tulp-blue);
    padding: 20px 30px;
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

.ticker-box {
    background-color: #1a1a1a;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 4rem;
    font-weight: 700;
    width: 60px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    padding-top: 8px;
}

/* Flap line in the middle */
.ticker-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.ticker-dot {
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
    margin: 0 5px;
    line-height: 90px;
    align-self: flex-end;
}

@media (max-width: 992px) {
    .ticker-box {
        width: 45px;
        height: 70px;
        font-size: 3rem;
        padding-top: 6px;
    }

    .ticker-dot {
        font-size: 3rem;
        margin: 0 3px;
        line-height: 70px;
    }

    .split-flap-container {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .ticker-box {
        width: 32px;
        height: 50px;
        font-size: 2.1rem;
        padding-top: 4px;
    }

    .ticker-dot {
        font-size: 2.1rem;
        margin: 0 2px;
        line-height: 50px;
    }

    .split-flap-container {
        padding: 12px 15px;
        gap: 3px;
    }
}

@media (max-width: 576px) {
    .ticker-box {
        width: 20px;
        height: 32px;
        font-size: 1.3rem;
        padding-top: 2px;
    }

    .ticker-dot {
        font-size: 1.3rem;
        margin: 0 1px;
        line-height: 32px;
    }

    .split-flap-container {
        padding: 8px 10px;
        gap: 2px;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--tulp-blue);
}

/* --- Content Sections --- */
.bg-shape-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 400px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* --- Video Section --- */
.video-container {
    cursor: pointer;
    transform: translateZ(0);
    /* Hardware acceleration */
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.video-container:hover .overlay-dark {
    background: rgba(0, 0, 0, 0.2);
}

.play-btn {
    width: 120px;
    height: 120px;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hover-scale {
    transition: transform 0.2s ease;
}

.video-container:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- Oud Hollandse Tegeltjes --- */
.tegeltjes-sectie {
    background: url('https://www.transparenttextures.com/patterns/light-paper-fibers.png'), #f4f6f8;
}

.tegeltje {
    background: url('tegel.jpg') center/cover no-repeat;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 1px;
    position: relative;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tegeltje-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1;
    width: 100%;
}

.tegeltje-year {
    font-family: 'Georgia', serif;
    color: var(--delft-blue);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.1;
    margin: 0;
}

.tegeltje-text {
    font-family: 'Georgia', serif;
    color: var(--delft-blue);
    font-style: italic;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.swiper-outer-container {
    position: relative;
    padding: 0 60px;
    max-width: 100%;
}

.swiper-outer-container .swiper-button-next {
    right: 15px;
    left: auto;
}

.swiper-outer-container .swiper-button-prev {
    left: 15px;
    right: auto;
}

.swiper-outer-container .swiper-button-next,
.swiper-outer-container .swiper-button-prev {
    color: var(--tulp-orange) !important;
    top: 134px;
    transform: translateY(-50%);
    margin-top: 0;
}

@media (max-width: 576px) {
    .swiper-outer-container {
        padding: 0 35px;
    }

    .swiper-outer-container .swiper-button-next {
        right: 5px;
    }

    .swiper-outer-container .swiper-button-prev {
        left: 5px;
    }
}

.tegeltjesSwiper .swiper-pagination-bullet {
    background: #cccccc !important;
    opacity: 1;
}

.tegeltjesSwiper .swiper-pagination-bullet-active {
    background: var(--tulp-orange) !important;
    opacity: 1;
}

.heart-outline {
    fill: none;
    stroke: var(--tulp-orange);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
}

/* --- Hover Cards --- */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.hover-card .icon-wrapper {
    transition: background-color 0.3s ease;
}

.hover-card:hover .icon-wrapper {
    background-color: rgba(242, 108, 36, 0.1) !important;
}

/* --- Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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