/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Solid Dark */
.btn--primary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--neutral-bg);
}
.btn--primary:hover {
    background-color: transparent;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Outline */
.btn--secondary {
    background-color: transparent;
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}
.btn--secondary:hover {
    background-color: var(--primary-dark);
    color: var(--neutral-bg);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Solid Yellow for CTA */
.btn--accent {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
    color: var(--primary-dark);
    padding: 1rem 3rem;
    font-size: 1.1rem;
}
.btn--accent:hover {
    background-color: transparent;
    color: var(--primary-accent);
}

/* --- Page Layout Components --- */

.page-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.page-header {
    background-color: var(--neutral-light);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 4rem;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-accent);
    border-radius: 2px;
}

.page-header p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

/* Card Styles */
.card {
    display: block;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Section Components */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-header .kicker {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-accent);
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-accent);
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 2px;
}

.section-header p:not(.kicker) {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* --- Interactive Components --- */

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    animation: zoomIn 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    user-select: none;
    transition: background-color 0.3s ease;
}

.lightbox-prev {
    left: 20px;
    border-radius: 3px;
}

.lightbox-next {
    right: 20px;
    border-radius: 3px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Slideshow */
.slideshow-container {
    max-width: 900px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.slides-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.slide img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transform-origin: center;
    animation: kenBurns 12s infinite alternate ease-in-out;
}


.prev-button,
.next-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 1.2rem 1.5rem;

    color: var(--neutral-bg);
    font-weight: bold;
    font-size: 1.8rem;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    user-select: none;
    transition: background-color 0.3s ease;
    z-index: 10;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
}

.slideshow-container:hover .prev-button,
.slideshow-container:hover .next-button {
    opacity: 1;
    visibility: visible;
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

.prev-button:hover,
.next-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-dots {
    text-align: center;
    padding: 1.5rem 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--primary-accent);
    transform: scale(1.3);
}

/* --- Interactive CTA --- */
.interactive-cta {
    max-width: 1100px;
    margin: 6rem auto;
    padding: 4rem;
    background-color: var(--neutral-light);
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.interactive-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.6;
    margin: 0 0 2rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cta-word-flipper {
    display: inline-block;
    position: relative;
    color: var(--primary-dark);
    border-bottom: 4px solid var(--primary-accent);
    padding-bottom: 0.2rem;
    line-height: 1;
    perspective: 400px;
    transition: width 0.3s ease-in-out;
    white-space: nowrap;
}

.cta-word {
    display: inline-block;
    opacity: 1;
    transform: rotateX(0deg);
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform-origin: bottom;
}

.cta-word.exit-flip {
    transform: rotateX(-90deg);
    opacity: 0;
}

.cta-word.enter-flip {
    transition-duration: 0s;
    transform: rotateX(90deg);
    opacity: 0;
}

@media (max-width: 768px) {
    .interactive-cta h2 {
        font-size: 2rem;
        line-height: 1.5;
    }
}
/*** To the top button ***/

#back-to-top-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;

    /* Styling */
    width: 50px;
    height: 50px;
    padding: 10px;
    background-color: var(--primary-dark);
    color: var(--primary-accent);
    border: 2px solid var(--primary-accent);
    border-radius: 50%;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

#back-to-top-btn:hover {
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

#back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}



/* Keyframe animations */
@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(10px, 10px);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillProgress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeInPage {
    from {
        opacity: .5;
    }
    to {
        opacity: 1;
    }
}


