@import url('https://fonts.googleapis.com/css2?family=Darumadrop+One&family=Averia+Libre:wght@400;700&family=Fredoka:wght@400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1A1A1A;
    background: #2A4735;
    padding: 40px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mode-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2A4735;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.mode-transition-overlay.visible {
    opacity: 1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #F0D9B0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(253, 229, 185, 0.5);
    pointer-events: none;
    z-index: 3;
}

.section {
    padding: 60px 70px;
    position: relative;
    z-index: 2;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('content/images/textures/paper_noise.png');
    background-repeat: repeat;
    background-size: 80%;
    background-attachment: scroll;
    opacity: 0.15;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('content/images/textures/paper_2.png');
    background-repeat: repeat;
    background-size: 80%;
    background-attachment: scroll;
    opacity: 0.2;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.section > * {
    position: relative;
    z-index: 1;
}

.section:last-child {
    border-bottom: none;
}

.hero {
    background: #2A4735;
    color: #F0D9B0;
    text-align: center;
    padding: 80px 70px;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('content/images/textures/paper_noise.png');
    background-repeat: repeat;
    background-size: 80%;
    background-attachment: scroll;
    opacity: 0.15;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('content/images/textures/paper_2.png');
    background-repeat: repeat;
    background-size: 80%;
    background-attachment: scroll;
    opacity: 0.2;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Darumadrop One', sans-serif;
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

h2 {
    font-family: 'Averia Libre', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 30px;
    color: #F3772A;
}

h3 {
    font-family: 'Averia Libre', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2A4735;
}

h3:has(+ .card-grid) {
    text-align: center;
}

.card-grid + h3 {
    margin-top: 40px;
}

.subtitle {
    font-size: 1.4em;
    margin-bottom: 10px;
    opacity: 0.95;
}

body:not(.slide-mode) .subtitle br {
    display: none;
}

.meta {
    font-size: 1em;
    opacity: 0.85;
}

.nav-tip {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(253, 229, 185, 0.15);
    border: 1px solid rgba(253, 229, 185, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.75em;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    width: auto;
    white-space: nowrap;
}

.nav-tip svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-tip span {
    line-height: 1.3;
}

p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #1A1A1A;
}

ul {
    list-style: none;
    margin-bottom: 30px;
}

ul li {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #1A1A1A;
}

ul li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: #F3772A;
    font-weight: bold;
    font-size: 1.3em;
}

.columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

#needs-section .columns {
    grid-template-columns: 1fr;
}

.column h3 {
    margin-bottom: 15px;
}

.breakdown-total strong {
    color: #F3772A;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

body:not(.slide-mode) .section .card-grid {
    grid-template-columns: repeat(3, 1fr);
}

body:not(.slide-mode) .pill-section .card-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: #F3772A;
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card h4 {
    font-family: 'Averia Libre', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    color: #F0D9B0;
    margin: 0;
    padding: 20px 20px 15px 20px;
    background: #2A4735;
    display: block;
}

.card p {
    font-size: 0.95em;
    color: #F0D9B0;
    margin: 0;
    opacity: 0.9;
    padding: 15px 20px 20px 20px;
    background: #F3772A;
    display: block;
}

.inspiration-card {
    background: #2A4735;
    border: 2px solid #2A4735;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.inspiration-card::after {
    content: "↗";
    position: absolute;
    top: 20px;
    right: 20px;
    color: #F0D9B0;
    font-size: 1.5em;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inspiration-card:hover::after {
    opacity: 1;
}

.inspiration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #F3772A;
    border-color: #F3772A;
}

.inspiration-card h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: #F0D9B0;
    margin-bottom: 0;
    padding: 20px 20px 15px 20px;
    background: #2A4735;
    transition: background 0.3s ease;
}

.inspiration-card:hover h4 {
    background: #F3772A;
}

.inspiration-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.inspiration-card:hover img {
    opacity: 0;
}

.inspiration-card-description {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95em;
    color: #F0D9B0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inspiration-card:hover .inspiration-card-description {
    opacity: 1;
}

.hover-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hover-card {
    background: #2A4735;
    border: 2px solid #2A4735;
    border-radius: 8px;
    padding: 30px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hover-card:hover {
    background: #F3772A;
    border-color: #F3772A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hover-card-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #F0D9B0;
    text-align: center;
    transition: opacity 0.3s ease;
}

.hover-card:hover .hover-card-title {
    opacity: 0;
}

.hover-card-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95em;
    color: #F0D9B0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-card:hover .hover-card-description {
    opacity: 1;
}

.carousel-section {
    padding: 0;
    position: relative;
    z-index: 2;
    background: #F0D9B0;
    overflow: hidden;
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('content/images/textures/paper_noise.png');
    background-repeat: repeat;
    background-size: 80%;
    background-attachment: scroll;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.carousel-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('content/images/textures/paper_2.png');
    background-repeat: repeat;
    background-size: 80%;
    background-attachment: scroll;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

body:not(.slide-mode) .carousel-section {
    padding-left: 32px;
    padding-right: 32px;
}

body:not(.slide-mode) .carousel-section > h2 {
    padding-left: 38px !important;
    padding-right: 38px !important;
}

.carousel-wrapper {
    padding-bottom: 30px;
    position: relative;
    z-index: 1;
}

.carousel-section > h2 {
    position: relative;
    z-index: 1;
    padding: 60px 70px 30px 70px;
    margin: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    pointer-events: none;
    z-index: 10;
}

.carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    pointer-events: none;
    z-index: 11;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    border-radius: 12px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background: #F0D9B0;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.carousel-subtitle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(42, 71, 53, 0.95);
    color: #F0D9B0;
    padding: 16px 24px;
    font-size: 1.1em;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.carousel-slide:hover .carousel-subtitle {
    transform: translateY(0);
}

.carousel-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(253, 229, 185, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(253, 229, 185, 0.5);
}

.carousel-dot.active {
    background: #F3772A;
    width: 24px;
    border-radius: 4px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    background: rgba(42, 71, 53, 0.95);
    border-radius: 50px;
    padding: 12px 24px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.carousel-arrow {
    background: transparent;
    color: #F0D9B0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(253, 229, 185, 0.1);
}

.timeline {
    margin: 50px 0;
}

.timeline-track-wrapper {
    position: relative;
    margin: 0 80px 40px 80px;
}

.timeline-track {
    height: 4px;
    background: #2A4735;
    border-radius: 2px;
    position: relative;
}

.timeline-nodes {
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-node-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.timeline-node {
    width: 20px;
    height: 20px;
    background: #F0D9B0;
    border: 4px solid #2A4735;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.timeline-node-wrapper:hover .timeline-node {
    transform: scale(1.15);
}

.timeline-node-wrapper.active .timeline-node {
    background: #F3772A;
    border-width: 4px;
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(243, 119, 42, 0.2);
}

.timeline-node-wrapper.active:hover .timeline-node {
    transform: scale(1.35);
}

.timeline-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin: 0 40px 200px 40px;
}

.timeline-btn {
    flex: 1;
    padding: 12px 24px;
    border: 2px solid #2A4735;
    background: transparent;
    color: #2A4735;
    font-family: 'Averia Libre', sans-serif;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-btn:hover {
    background: rgba(42, 71, 53, 0.1);
}

.timeline-btn.active {
    background: #F3772A;
    color: #F0D9B0;
    border-color: #F3772A;
}

.timeline-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: #2A4735;
    color: #F0D9B0;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    max-width: 400px;
    z-index: 10;
    text-align: center;
}

.timeline-btn.active .timeline-tooltip {
    display: block;
}

.timeline-tooltip-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #2A4735;
}

.timeline-tooltip .timeline-date {
    font-size: 1.1em;
    font-weight: 600;
    color: #F3772A;
    margin-bottom: 15px;
}

.timeline-tooltip p:not(.timeline-date) {
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
    color: #F0D9B0;
}

.timeline-content {
    position: relative;
    min-height: 150px;
}

.timeline-panel {
    display: none;
    text-align: center;
}

.timeline-panel.active {
    display: block;
}

.timeline-panel h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #F3772A;
}

.timeline-date {
    font-size: 1.2em;
    font-weight: 600;
    color: #2A4735;
    margin-bottom: 20px;
}

.timeline-mobile-cards {
    display: none;
}

.timeline-panel p:not(.timeline-date) {
    font-size: 1.1em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section > .pill-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.pill-section {
    margin: 30px 0;
}

.pill-section h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #2A4735;
    text-align: center;
}

.pill-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.column .pill-container {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
}

.column .pill {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

.pill {
    font-family: 'Averia Libre', sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 1em;
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.pill.inspiration {
    color: #F0D9B0;
    background: #2A4735;
}

.pill.inspiration:hover {
    background: #F3772A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pill.inspiration::after {
    content: "↗";
    margin-left: 6px;
    font-size: 0.85em;
    opacity: 0.8;
}

.pill.feature {
    background: #F3772A;
    color: #F0D9B0;
}

.pill.feature:hover {
    background: #2A4735;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pill.feature.active {
    background: #2A4735;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-description {
    margin-top: 30px;
    padding: 25px;
    background: rgba(42, 71, 53, 0.08);
    border-left: 4px solid #F3772A;
    border-radius: 4px;
    display: none;
}

.feature-description.active {
    display: block;
}

.feature-description p {
    margin: 0;
}

strong {
    color: #2A4735;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.profile-image-link {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    display: block;
    border-radius: 50%;
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle, white 99%, transparent 100%);
    mask-image: radial-gradient(circle, white 99%, transparent 100%);
}

.profile-image-link:hover {
    transform: translateY(-2px);
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #2A4735;
    box-shadow:
            inset 0 0 0 1px #2A4735,
            0 8px 24px rgba(0, 0, 0, 0.15);
    display: block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
    image-rendering: auto;
}

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(42, 71, 53, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-mask-image: radial-gradient(circle, white 99%, transparent 100%);
    mask-image: radial-gradient(circle, white 99%, transparent 100%);
}

.profile-image-link:hover .profile-image-overlay {
    opacity: 1;
}

.profile-image-overlay::after {
    content: "↗";
    color: #F0D9B0;
    font-size: 3em;
    font-weight: bold;
}

.profile-text {
    flex: 1;
}

/* Slide Mode */
body.slide-mode {
    padding: 0;
    overflow: hidden;
}

body.slide-mode .container {
    max-width: 100vw;
    height: 100vh;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
}

body.slide-mode .container::after {
    border-radius: 0;
}

body.slide-mode .section::before,
body.slide-mode .section::after,
body.slide-mode .carousel-section::before,
body.slide-mode .carousel-section::after,
body.slide-mode .hero::before,
body.slide-mode .hero::after {
    background-size: 40%;
}

body.slide-mode .slides-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    position: relative;
}

body:not(.slide-mode) .slides-track {
    display: block;
}

.section,
.carousel-section,
.hero {
    transition: opacity 0.3s ease-in-out;
}

body:not(.slide-mode) .section,
body:not(.slide-mode) .carousel-section,
body:not(.slide-mode) .hero {
    display: block;
}

body:not(.slide-mode) .nav-tip {
    display: none;
}

body.slide-mode .section,
body.slide-mode .carousel-section,
body.slide-mode .hero {
    display: none;
    min-width: 100vw;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

body.slide-mode .slides-track .section,
body.slide-mode .slides-track .carousel-section,
body.slide-mode .slides-track .hero {
    display: flex;
}

body.slide-mode .section,
body.slide-mode .carousel-section {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding: 80px 0;
    overflow-y: hidden;
}

body.slide-mode .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 80px 100px;
}

body.slide-mode .section > *,
body.slide-mode .carousel-section > * {
    max-width: 1200px;
    width: 100%;
    padding-left: 100px;
    padding-right: 100px;
    margin-left: auto;
    margin-right: auto;
}

body.slide-mode .hero > * {
    max-width: 800px;
    width: 100%;
}

body.slide-mode .hero > .nav-tip {
    max-width: none;
    width: auto;
}

body.slide-mode .funding-breakdown.open .breakdown-content {
    max-height: 500px;
}

body.slide-mode p {
    font-size: 1.3em;
}

body.slide-mode ul li {
    font-size: 1.3em;
}

body.slide-mode h2 {
    font-size: 2.5em;
}

body.slide-mode .pill {
    font-size: 1em;
    padding: 12px 24px;
}

body.slide-mode h3 {
    font-size: 1.8em;
}

body.slide-mode .section h3,
body.slide-mode .carousel-section h3 {
    font-size: 1.6em;
}

body.slide-mode .card h4 {
    font-size: 1.3em;
}

body.slide-mode .card p {
    font-size: 1em;
}

body.slide-mode .inspiration-card h4 {
    font-size: 1.3em;
}

body.slide-mode .inspiration-card-description {
    font-size: 1em;
}

body.slide-mode .inspiration-card {
    max-width: 280px;
}

body.slide-mode .inspiration-card img {
    height: 160px;
}

body.slide-mode .timeline,
body.slide-mode .card-grid,
body.slide-mode .pill-section {
    align-self: center;
    width: 100%;
}

body.slide-mode .timeline-track-wrapper {
    margin: 0 120px 50px 120px;
}

body.slide-mode .timeline-track {
    height: 6px;
}

body.slide-mode .timeline-node {
    width: 24px;
    height: 24px;
    border-width: 5px;
}

body.slide-mode .timeline-toggle {
    margin: 0 80px 250px 80px;
}

body.slide-mode .timeline-btn {
    font-size: 1em;
    padding: 14px 28px;
}

body.slide-mode .timeline-tooltip {
    min-width: 350px;
    max-width: 500px;
    padding: 25px 35px;
}

body.slide-mode .timeline-tooltip .timeline-date {
    font-size: 1.2em;
    margin-bottom: 15px;
}

body.slide-mode .timeline-tooltip p:not(.timeline-date) {
    font-size: 1.1em;
}

body.slide-mode .timeline-panel h3 {
    font-size: 2em;
}

body.slide-mode .timeline-date {
    font-size: 1.4em;
}

body.slide-mode .timeline-panel p:not(.timeline-date) {
    font-size: 1.3em;
}

body.slide-mode h3:has(+ .card-grid) {
    text-align: center;
    align-self: center;
    width: 100%;
    margin-bottom: 15px;
}

body.slide-mode .card-grid {
    margin-bottom: 20px;
}

body.slide-mode .card-grid + h3 {
    margin-top: 25px;
}

body.slide-mode .pill-section h3 {
    text-align: center;
}

/* Timeline section specific adjustments for slide mode */
body.slide-mode .section:has(.timeline) .columns {
    gap: 30px;
    margin-bottom: 20px;
}

body.slide-mode .section:has(.timeline) h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

body.slide-mode .section:has(.timeline) ul li {
    font-size: 1.05em;
    margin-bottom: 8px;
}

body.slide-mode .section:has(.timeline) .timeline {
    margin: 30px 0 0 0;
}

body.slide-mode .section:has(.timeline) .timeline-toggle {
    margin: 0 80px 180px 80px;
}

body.slide-mode .section:has(.timeline) .timeline-track-wrapper {
    margin: 0 120px 35px 120px;
}

body.slide-mode .section:has(.timeline) .timeline-nodes {
    top: -9px;
}

.view-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    background: rgba(42, 71, 53, 0.95);
    border-radius: 50px;
    padding: 8px;
    display: flex;
    gap: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.view-toggle button {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #F0D9B0;
    font-family: 'Averia Libre', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-toggle button:hover {
    background: rgba(253, 229, 185, 0.1);
}

.view-toggle button.active {
    background: #F3772A;
    color: #F0D9B0;
    box-shadow: 0 2px 8px rgba(243, 119, 42, 0.3);
}

.view-toggle button svg {
    width: 18px;
    height: 18px;
}

.volume-control {
    position: relative;
}

.volume-slider {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(42, 71, 53, 0.95);
    border-radius: 25px;
    padding: 20px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.volume-slider.visible {
    opacity: 1;
    pointer-events: all;
}

.volume-slider-inner {
    position: relative;
    width: 24px;
    height: 120px;
}

.volume-slider input[type="range"] {
    position: absolute;
    width: 120px;
    height: 24px;
    left: 50%;
    top: 50%;
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center center;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    cursor: pointer;
}

.volume-slider input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(253, 229, 185, 0.3);
    border-radius: 2px;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #F3772A;
    cursor: pointer;
    border-radius: 50%;
    margin-top: -5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.volume-slider input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: rgba(253, 229, 185, 0.3);
    border-radius: 2px;
    border: none;
}

.volume-slider input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #F3772A;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-nav {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: rgba(42, 71, 53, 0.95);
    border-radius: 50px;
    padding: 12px 24px;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

body.slide-mode .slide-nav {
    display: flex;
}

.slide-nav button {
    background: transparent;
    border: none;
    color: #F0D9B0;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-nav button:hover:not(:disabled) {
    background: rgba(253, 229, 185, 0.1);
}

.slide-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slide-nav button#autoScrollBtn.active {
    background: rgba(243, 119, 42, 0.3);
}

.auto-scroll-control {
    display: none;
}

.slide-nav button#autoScrollBtn {
    position: relative;
}

.speed-selector {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(42, 71, 53, 0.95);
    border-radius: 25px;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1002;
}

.speed-selector.visible {
    opacity: 1;
    pointer-events: all;
}

.speed-option {
    min-width: 45px;
    height: 40px;
    border-radius: 20px;
    background: transparent;
    border: 2px solid rgba(253, 229, 185, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #F0D9B0;
    padding: 0 12px;
}

.speed-option:hover {
    background: rgba(253, 229, 185, 0.1);
    border-color: rgba(253, 229, 185, 0.5);
}

.speed-option.active {
    background: #F3772A;
    border-color: #F3772A;
}

.auto-scroll-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    pointer-events: none;
}

.auto-scroll-progress circle {
    fill: none;
    stroke: #F3772A;
    stroke-width: 2;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.1s linear;
}

.slide-nav button svg {
    width: 24px;
    height: 24px;
}

.slide-counter {
    color: #F0D9B0;
    font-size: 0.95em;
    min-width: 60px;
    text-align: center;
}

.slide-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(253, 229, 185, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot:hover {
    background: rgba(253, 229, 185, 0.5);
}

.slide-dot.active {
    background: #F3772A;
    width: 24px;
    border-radius: 4px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .section {
        padding: 40px 30px;
    }

    .hero {
        padding: 60px 30px;
    }

    .nav-tip {
        display: none;
    }

    body.slide-mode .nav-tip {
        display: none;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.8em;
        text-align: center;
    }

    h3 {
        font-size: 1.3em;
        text-align: center;
    }

    .card-grid + h3 {
        margin-top: 40px;
    }

    /* Hide layout toggle buttons on mobile, keep audio controls */
    .view-toggle #websiteBtn,
    .view-toggle #slideBtn {
        display: none !important;
    }

    /* Force disable slide mode on mobile */
    body.slide-mode {
        padding: 20px 10px;
        overflow: auto;
    }

    body.slide-mode .container {
        max-width: 100%;
        height: auto;
        border-radius: 16px;
        margin: 0 auto;
        overflow: visible;
    }

    body.slide-mode .slides-track {
        display: block;
    }

    body.slide-mode .section,
    body.slide-mode .carousel-section,
    body.slide-mode .hero {
        display: block;
        min-width: auto;
        height: auto;
        padding: 40px 30px;
        overflow-y: visible;
    }

    body.slide-mode .hero {
        padding: 60px 30px;
    }

    body.slide-mode .section > *,
    body.slide-mode .carousel-section > * {
        padding-left: 0;
        padding-right: 0;
    }

    body.slide-mode p,
    body.slide-mode ul li,
    body.slide-mode h2,
    body.slide-mode h3,
    body.slide-mode .section h3,
    body.slide-mode .carousel-section h3,
    body.slide-mode .card h4,
    body.slide-mode .card p,
    body.slide-mode .pill,
    body.slide-mode .timeline-btn,
    body.slide-mode .timeline-panel h3,
    body.slide-mode .timeline-date,
    body.slide-mode .timeline-panel p:not(.timeline-date) {
        font-size: inherit;
    }

    /* Hide slide navigation on mobile */
    .slide-nav {
        display: none !important;
    }

    /* Single column card grids - stacked vertically */
    .card-grid,
    body:not(.slide-mode) .section .card-grid,
    body:not(.slide-mode) .pill-section .card-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
        margin: 0;
    }

    .card-grid::before,
    .card-grid::after {
        display: none;
    }

    .card-grid::-webkit-scrollbar {
        display: none;
    }

    .card,
    .inspiration-card {
        min-width: auto;
        width: 100%;
    }

    /* Horizontal scrolling pills */
    .pill-container,
    .section > .pill-container,
    .column .pill-container {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 15px 30px;
        margin-left: -30px;
        margin-right: -30px;
        position: relative;
    }

    .pill-container::before,
    .pill-container::after {
        content: '';
        position: sticky;
        width: 30px;
        height: 100%;
        top: 0;
        pointer-events: none;
        z-index: 1;
        flex-shrink: 0;
    }

    .pill-container::before {
        left: 0;
        background: linear-gradient(to right, #F0D9B0 0%, transparent 100%);
        margin-right: -30px;
    }

    .pill-container::after {
        right: 0;
        background: linear-gradient(to left, #F0D9B0 0%, transparent 100%);
        margin-left: -30px;
    }

    .pill-container::-webkit-scrollbar {
        display: none;
    }

    .pill {
        flex-shrink: 0;
        position: relative;
        z-index: 2;
        min-width: fit-content;
    }

    /* Timeline adjustments for mobile */
    .timeline-track-wrapper {
        display: none;
    }

    .timeline-nodes {
        display: none;
    }

    .timeline-toggle {
        display: none;
    }

    .timeline-btn {
        display: none;
    }

    .timeline-node-card {
        display: block !important;
        background: #F3772A;
        border-radius: 8px;
        padding: 0;
        margin-bottom: 20px;
        overflow: hidden;
    }

    .timeline-node-card h4 {
        font-size: 1.2em;
        font-weight: 600;
        color: #F0D9B0;
        margin: 0;
        padding: 20px 20px 15px 20px;
        background: #2A4735;
    }

    .timeline-node-card .timeline-date {
        color: #F0D9B0;
        font-size: 0.9em;
        opacity: 0.9;
        padding: 0 20px 15px 20px;
        background: #2A4735;
        margin: 0;
    }

    .timeline-node-card p {
        font-size: 0.95em;
        color: #F0D9B0;
        margin: 0;
        opacity: 0.9;
        padding: 15px 20px 20px 20px;
        background: #F3772A;
    }

    .timeline-mobile-cards {
        display: block;
        margin-top: 20px;
    }

    .timeline-tooltip {
        display: none;
    }

    .timeline-tooltip-arrow {
        display: none;
    }

    /* Profile container stacks vertically */
    .profile-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    /* Columns become single column */
    /* Columns become single column */
    .columns {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .column {
        width: 100%;
    }
}