/* Home page styles */

main {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
}

/* Hero Section Animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro {
    padding: 70px 0 50px;
}

.intro-label {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--button-bg);
    margin-bottom: 8px;
    animation: heroFadeIn 0.6s ease-out both;
}

.intro h1 {
    margin: 12px 0 16px;
    font-size: clamp(2rem, 5vw, 2.85rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    animation: heroFadeIn 0.6s ease-out 0.1s both;
}

.intro p {
    max-width: 680px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: heroFadeIn 0.6s ease-out 0.2s both;
}

.intro-link {
    animation: heroFadeIn 0.6s ease-out 0.3s both;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .intro-label,
    .intro h1,
    .intro p,
    .intro-link {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Projects Section with CSS Grid and Card Design */
.projects {
    padding: 30px 0 80px;
}

.projects h2 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--button-bg);
}

.project h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project p {
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tag,
.project span {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 10px;
    background-color: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 6px;
    margin-bottom: 16px;
}

.project .button {
    align-self: flex-start;
    margin-top: auto;
}

.weather {
    margin-bottom: 24px;
    padding: 24px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

.weather h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.weather p {
    margin: 0;
    color: var(--text-secondary);
}

.weather.is-ready {
    animation: heroFadeIn 0.6s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .weather.is-ready {
        animation: none;
    }
}