/* ==========================================================================
   HOME PAGE STYLES
   ========================================================================== */

/* Layout Components */
.intro {
    margin: 48px auto;
    max-width: 800px;
    padding: 5rem 0 0;
    text-align: center;
}

.intro p:last-child {
    margin-bottom: 0;
}

/* Project Components */
.project-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.project {
    border-top: 1px solid #0000FF;
    font-size: var(--base-font-size);
    position: relative;
    transition: all 0.3s ease;
}

.project:first-child {
    border-top: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    cursor: pointer;
}

.project-header span:first-child {
    font-weight: 600;
    transition: font-weight 0.1s ease;
}

.project-content {
    display: none;
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project.active .project-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.project-title span {
    font-weight: 400;;
}

.project.active .project-title span {
    font-weight: 700;
}

.projects {
    display: flex;
    flex-direction: column;
    margin: 3rem 0;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.projects-header h4 {
    margin: 0;
}

.projects-header p {
    margin: 0;
}

/* ==========================================================================
   COVER & MOON ANIMATION
   ========================================================================== */
.cover {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #0000FF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    padding: 4rem 0;
    color: white;
}

.cover-link {
    font-size: var(--base-font-size);
    color: white;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.cover-link:visited {
    color: white;
}

.cover .moon {
    position: fixed;
    top: 0;
    left: 0;
}

/* ==========================================================================
   RESEARCH SLIDESHOW
   ========================================================================== */
.slideshow {
    width: 100vw;
    min-height: 100vh;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #FFF8F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide-content {
    max-width: 600px;
    width: 100%;
    text-align: left;
    font-size: var(--base-font-size);
    line-height: 1.4;
    margin-bottom: 4rem;
}

.slide-title {
    font-size: var(--base-font-size);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0000FF;
    opacity: 0.3;
}

.dot.active {
    opacity: 1;
}

/* ==========================================================================
   POST PAGES
   ========================================================================== */
body:has(.post) {
    background: white;
    color: #0000FF;
}

.post {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: white;
    z-index: 10;
    -webkit-mask-image: none;
    mask-image: none;
}

.post-title {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--base-font-size);
    font-weight: 600;
    color: #0000FF;
}

.post-title.typing::after {
    content: '|';
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

.post-content {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 96px 32px 32px;
}

.post-content p {
    font-size: var(--base-font-size);
    line-height: 1.4;
    margin-bottom: 32px;
}

.post-content hr {
    border: 1px solid #0000FF;
    width: 100%;
    margin: 32px 0;
}

.post-cta {
    margin-top: 4rem;
    text-align: center;
}

.post-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 1px solid #0000FF;
    border-radius: 50%;
    text-decoration: none;
    color: #0000FF;
    background: white;
    font-size: 32px;
    position: relative;
}

.post-cta a::before {
    content: '→';
    transition: transform 0.3s ease;
}

.post-cta a span {
    display: none;
}

.post-cta a:hover::before {
    transform: translateX(4px);
}
