/* ===========================
   Hero Section
   =========================== */

.hero {
    height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero__greeting,
.hero__subtitle {
    position: relative;
    z-index: 1;
}

.hero__greeting {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(32px);
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 520px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   About Section
   =========================== */

.about {
    text-align: center;
    background: var(--bg-about);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.about>.container {
    width: 100%;
}

.about__heading {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    text-align: center;
}

.about__divider {
    width: 40px;
    height: 3px;
    background: #0078d4;
    border-radius: 2px;
    margin: 0 auto 36px;
}

.about__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.about__tag {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.about__tag:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.about__lines {
    max-width: 640px;
    margin: 0 auto;
}

.about__lines p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

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

.about__lines a {
    color: #4caf50;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.about__lines a:hover {
    opacity: 0.8;
}

.about__lines .highlight {
    color: #4caf50;
    font-weight: 500;
}

/* ===========================
   Card Grid
   =========================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 8px 0;
}

/* ===========================
   Card
   =========================== */

.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;

    /* Fade-in animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card.visible:hover {
    transform: translateY(-4px);
}

.card__title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

.card__desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.card__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--tag-bg);
    color: var(--text-secondary);
    align-self: flex-start;
}

/* Stagger children */
.card:nth-child(1) {
    transition-delay: 0.05s;
}

.card:nth-child(2) {
    transition-delay: 0.10s;
}

.card:nth-child(3) {
    transition-delay: 0.15s;
}

.card:nth-child(4) {
    transition-delay: 0.20s;
}

.card:nth-child(5) {
    transition-delay: 0.25s;
}

.card:nth-child(6) {
    transition-delay: 0.30s;
}

.card:nth-child(7) {
    transition-delay: 0.35s;
}

.card:nth-child(8) {
    transition-delay: 0.40s;
}

.card:nth-child(9) {
    transition-delay: 0.45s;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 22px 18px;
    }

    .section {
        padding: 56px 0;
    }

    .section__title {
        margin-bottom: 20px;
    }
}