* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #020617;
    font-family: Arial, sans-serif;
    color: white;
}

.cursor-light {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.content {
    position: relative;
    max-width: 700px;
    margin: 20vh auto;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.circle-hand {
    position: relative;
    padding: 4px 6px;
}

.circle-hand::before {
    content: "";
    position: absolute;
    inset: -6px -8px;
    border: 2px solid #facc15;
    border-radius: 50% 45% 55% 50%;
    transform: rotate(-5deg);
    pointer-events: none;
}

.nav-cards {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.nav-cards-inner {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.nav-card {
    display: block;
    padding: 24px 20px;
    border: 2px solid #2563eb;
    border-radius: 12px;
    background: white;
    color: #111;
    text-decoration: none;
    transition: 0.15s ease;
}

.nav-card:hover {
    transform: translateY(-3px);
    border-color: #1d4ed8;
}

.nav-card h2 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
}

.nav-card p {
    margin: 0;
    color: #444;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .nav-cards-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .nav-cards-inner {
        grid-template-columns: 1fr;
    }
}

.back-btn {
    padding: 8px 18px;
    font-size: 12px;
    background-color: #f3f3f3;
    border: 2px solid #007bff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.back-btn:hover {
    background-color: #f3f3f3;
}

.underline {
    text-decoration: underline;
}

/** projects **/
.projects-section {
    max-width: 800px;
    margin: 0 auto;
    padding: -0.8rem 1.5rem 4rem;
}

.projects-header {
    margin-bottom: 2rem;
}

.projects-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.projects-header p {
    opacity: 0.8;
    line-height: 1.6;
}

.project-card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem 1.75rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.02);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

.project-header {
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
}

.project-meta {
    font-size: 0.85rem;
    opacity: 0.7;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.project-divider {
    opacity: 0.4;
}

.project-excerpt {
    margin: 0.75rem 0 0.9rem;
    line-height: 1.6;
    font-size: 0.98rem;
}

.project-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-tags li {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
}

.project-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease, opacity 180ms ease;
    opacity: 0;
    margin-top: 0.5rem;
}

.project-card.is-open .project-body {
    max-height: 1000px;
    opacity: 1;
}

.project-body h4 {
    margin-top: 0.75rem;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.project-body p,
.project-body li {
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-body ul {
    padding-left: 1.2rem;
    margin: 0.25rem 0 0.4rem;
}

.project-links-inline {
    margin-top: 0.4rem;
}

.project-links-inline a {
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.project-footer {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-start;
}

.project-toggle {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.8;
    border-bottom: 1px solid transparent;
}

.project-toggle::after {
    content: "▾";
    font-size: 0.8rem;
    transform-origin: center;
    transition: transform 150ms ease;
}

.project-card.is-open .project-toggle::after {
    transform: rotate(-180deg);
}

.project-toggle:hover {
    opacity: 1;
    border-bottom-color: currentColor;
}

@media (max-width: 600px) {
    .project-card {
        padding: 1.25rem 1.25rem 1rem;
    }

    .projects-section {
        padding-inline: 1rem;
    }
}

.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;       
    gap: 12px;          
    align-items: center;
    justify-content: flex-start;
}

.social-list li svg {
    width: 20px;
    height: 20px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.social-list li svg:hover {
    opacity: 1;
}
