.intro {
    min-height: 100vh;
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
}

/* Animation Keyframes */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

/* Initial hidden state for animated elements - all elements start invisible */
.intro .header {
    opacity: 0;
}

.intro .cf-icon {
    opacity: 0;
}

.intro .enter-button {
    opacity: 0;
}

.intro .quotes-container {
    opacity: 0;
}

/* Animation classes */
.intro.animate .header {
    animation: slideInFromTop 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.6s;
}

.intro.animate .cf-icon {
    animation: fadeInSlideFromBottom 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0s;
}

.intro.animate .enter-button {
    animation: fadeInSlideDown 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0s;
}

.intro.animate .quotes-container {
    animation: fadeInSlideUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1.0s;
}

/* Header */
.header {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-image {
    width: 344.75px;
    height: 19.023px;
    margin-bottom: 15.79px;
}

.logo-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.living-archive-text {
    font-family: 'Times', 'Times New Roman', serif;
    color: var(--theme-color-primary);
    font-size: 18px;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 198.109px;
}

.living-archive-text p {
    line-height: 1.2;
}

/* Center Section */
.center-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure center section children animate independently */
.intro.animate .center-section {
    animation: none; /* Don't animate the container itself */
}

.cf-icon {
    width: 284px;
    height: 188px;
    margin-bottom: 30px;
}

.cf-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.enter-button {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--theme-color-primary);
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    user-select: none;
}

.enter-button:hover {
    opacity: 0.7;
}

.enter-button.under-construction-disabled {
    cursor: default !important;
    pointer-events: auto; /* Allow text selection */
    user-select: text;
}

.enter-button.under-construction-disabled:hover {
    opacity: 1 !important; /* No hover effect */
}

.enter-button.under-construction-disabled p {
    user-select: text;
    cursor: text;
}

.enter-button p {
    line-height: 1.2;
}

/* Quotes Container */
.quotes-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-left: 50px;
    padding-right: 50px;
    gap: 40px;
}

.quote-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: fit-content;
    flex-shrink: 0;
    flex-grow: 0;
    font-family: 'Times', 'Times New Roman', serif;
    color: var(--theme-color-primary);
    font-size: 32px;
    letter-spacing: 2px;
    text-align: center;
}

.quote-left p {
    line-height: 1.1;
    margin-bottom: 28px;
}

.quote-left p span {
    line-height: 0.7;
}

.quote-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.quote-right img {
    display: block;
    width: 386.02px;
    height: 54.567px;
    margin-bottom: 6.968px;
    object-fit: contain;
}

/* Handwritten SVG Styles */
.handwritten-svg-container {
    display: block;
    width: 386.02px;
    height: 54.567px;
    margin-bottom: 6.968px;
    color: var(--theme-color-primary);
}

.handwritten-svg-container svg {
    display: block;
    width: 100%;
    height: 100%;
}

.handwritten-svg-container path {
    fill: #2E5B2A;
    stroke: #2E5B2A;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0;
    transition: stroke-dashoffset 0.8s ease-in-out, opacity 0.3s ease-in-out;
}

.handwritten-svg-container path.animating {
    stroke-dashoffset: 0;
    opacity: 1;
}

/* Attribution */
.attribution-author {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--theme-color-primary);
    text-align: center;
    line-height: 1.6;
}

.attribution-name {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--theme-color-primary);
    text-align: center;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .intro {
        padding-left: 20px;
        padding-right: 20px;
    }

    .logo-image {
        width: min(344.75px, 80vw);
        height: auto;
        margin-bottom: 12px;
    }

    .living-archive-text {
        font-size: 16px;
    }

    .cf-icon {
        width: min(284px, 60vw);
        height: auto;
        margin-bottom: 24px;
    }

    .enter-button {
        font-size: 14px;
    }

    .quotes-container {
        flex-direction: column;
        align-items: center;
        padding-left: 20px;
        padding-right: 20px;
        gap: 32px;
    }

    .quote-left {
        font-size: 24px;
        width: 100%;
    }

    .quote-left p {
        margin-bottom: 16px;
    }

    .quote-right {
        width: 100%;
    }

    .quote-right img {
        width: min(386.02px, 90vw);
        height: auto;
        margin-bottom: 12px;
    }

    .handwritten-svg-container {
        width: min(386.02px, 90vw);
        height: auto;
        margin-bottom: 12px;
    }

    .attribution-author {
        margin-bottom: 20px;
    }

    .attribution-author,
    .attribution-name {
        font-size: 12px;
    }
}

