/* UI Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #FF9B4A;
    border-radius: 10px;
}

.timeline-line-container {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e5e7eb;
    z-index: 0;
}

.dark .timeline-line-container {
    background: #374151;
}

@media (min-width: 768px) {
    .timeline-line-container {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #FFD86B, #FF9B4A, #C75D7E);
    transition: height 0.3s ease-out;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.safe-bottom {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.chip-active {
    background: linear-gradient(135deg, #FF9B4A, #FFD86B);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 155, 74, 0.4);
    transform: scale(1.05);
}

.section-header {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #FF9B4A;
    border-radius: 2px;
}

.hero-card {
    background: linear-gradient(145deg, #ffffff, #fff8f0);
}

.dark .hero-card {
    background: linear-gradient(145deg, #1F2937, #111827);
}

.hero-card:hover .hero-overlay {
    opacity: 0.3;
}

body,
header,
.bg-white,
.text-gray-900,
.text-gray-500 {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Odometer / Falling Numbers Animation */
.odometer-wrapper {
    display: inline-flex;
    overflow: hidden;
    height: 1.1em;
    /* Matches font-size/line-height */
    align-items: flex-start;
    /* Important for translateY logic */
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.digit-column {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform 4s cubic-bezier(0.12, 0.8, 0.33, 1);
    will-change: transform;
}

.digit-char,
.static-char {
    height: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Calendar Page Turn Animation */
.calendar-wrapper {
    perspective: 1500px;
    overflow: hidden;
}

.calendar-page {
    transform-style: preserve-3d;
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.6s ease;
    backface-visibility: hidden;
}

.page-exit {
    transform: rotateX(90deg);
    opacity: 0;
}

.page-enter {
    transform: rotateX(-90deg);
    opacity: 0;
}

.page-active {
    transform: rotateX(0deg);
    opacity: 1;
}

/* Calendar Grid Styles */
.calendar-cell {
    min-height: 100px;
    display: flex;
    /* Helps align the text and image */
    flex-direction: column;
}

@media (min-width: 768px) {
    .calendar-cell {
        min-height: 130px;
    }
}

.layout-btn-active {
    background-color: #FF9B4A;
    color: white;
}

.dark .layout-btn-active {
    color: white;
}