/* ============================================
   Portfolio — Blueish vibe
   ============================================ */

:root {
    --bg: #f5f8fc;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #475569;
    --accent: #1e40af;
    --accent-hover: #1e3a8a;
    --accent-bg: rgba(30, 64, 175, 0.1);
    --dotted: #1e40af;
    --border: #e2e8f0;
    --font-display: 'ABeeZee', Georgia, serif;
    --font-body: 'ABeeZee', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px 64px;
}

/* ----- Header ----- */
.header {
    text-align: center;
    margin-bottom: 56px;
}

.name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.name[role="link"] {
    cursor: pointer;
}

.name--link a {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

.intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 20px;
}

.contact {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Links – highlight-on-hover style (from example.css) */
.contact a,
.project-card p a,
.social-account a,
.contact-note a,
.social-links a,
.footer a,
.contact-page a,
.name--link a {
    text-decoration: none;
    white-space: nowrap;
    color: #121314;
    position: relative;
}

.name--link a {
    color: var(--text);
}

.contact a::after,
.project-card p a::after,
.social-account a::after,
.contact-note a::after,
.social-links a::after,
.footer a::after,
.contact-page a::after,
.name--link a::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 66%;
    left: -0.1em;
    right: -0.1em;
    bottom: 0;
    transition: top 200ms cubic-bezier(0, 0.8, 0.13, 1);
    background-color: rgba(30, 64, 175, 0.3);
}

.contact a:hover::after,
.project-card p a:hover::after,
.social-account a:hover::after,
.contact-note a:hover::after,
.social-links a:hover::after,
.footer a:hover::after,
.contact-page a:hover::after,
.name--link a:hover::after {
    top: 0%;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ----- Divider (dotted blue) ----- */
.divider {
    height: 0;
    border: none;
    border-top: 4px dotted var(--dotted);
    margin: 48px 0;
}

.divider--align-social {
    max-width: 480px;
    margin: 48px auto;
}

/* ----- Projects (5 cards: image, label, description – same layout) ----- */
.projects {
    margin-bottom: 48px;
}

/* 3 on top, 2 on bottom, all same size */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

/* Clickable image: wide rectangle (495×260), not square */
.project-img-link {
    display: block;
    line-height: 0;
    text-decoration: none;
    overflow: hidden;
    background: var(--border);
    aspect-ratio: 495 / 260;
}

.project-img-link:hover {
    opacity: 0.92;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-card h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    font-style: normal;
    color: var(--text);
    margin: 0;
    padding: 14px 20px 8px;
}

.project-card p {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.project-card a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
}

.project-card a:hover {
    color: var(--accent-hover);
    background: var(--accent-bg);
}

/* Image link: no text-style highlight */
.project-card .project-img-link::after {
    display: none !important;
}

/* ----- Social (centered like template) ----- */
.social-section {
    margin-bottom: 48px;
}

/* Active social: whole block centered, content aligned left */
.social-accounts-inner {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.social-accounts-inner h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    font-style: normal;
    color: var(--text);
    margin-bottom: 20px;
}

.social-account {
    text-align: left;
}

/* Other social: same width as active block, aligned with Facebook/Instagram */
.other-social-inner {
    max-width: 480px;
    margin: 48px auto 0;
    padding-top: 48px;
    border-top: 3px dotted var(--dotted);
    text-align: left;
}

.other-social-inner h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.other-social-inner > p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: left;
}

.social-account {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.social-icon i {
    font-size: 1.4rem;
}

.social-icon--facebook {
    color: #1e40af;
}

.social-icon--instagram {
    color: #1e40af;
}

.social-icon--email {
    color: #1e40af;
}

.social-account p {
    flex: 1;
    padding-top: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-note {
    margin: 16px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: left;
    padding-left: 50px; /* align with Facebook/Instagram text (36px icon + 14px gap) */
}

/* Social links: same width as social-accounts-inner, aligned with its <p> */
.social-section > .social-links {
    max-width: 480px;
    margin: 24px auto 0;
    list-style: disc;
    padding-left: 1.4em;
    text-align: left;
}

.other-social-inner .social-links {
    list-style: disc;
    padding-left: 1.4em;
    display: block;
    text-align: left;
    margin: 0;
}

.social-links li {
    margin-bottom: 8px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.other-social-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--accent);
}

.other-social-icon i {
    font-size: 1.125rem;
    width: 1em;
    text-align: center;
}

/* ----- Contact page ----- */
.contact-page-back {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: left;
}

.contact-page-back a {
    text-decoration: none;
    white-space: nowrap;
}

.contact-page {
    margin-bottom: 48px;
}

.contact-page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    margin-bottom: 16px;
}

.contact-page-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.post-list li {
    margin-bottom: 12px;
}

.post-list li p {
    margin: 0;
}

.contact-page-email {
    font-size: 1.25rem;
}

.contact-page-email a {
    font-weight: 500;
}

/* ----- Footer ----- */
.footer-heart {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    color: var(--accent);
}

.footer-heart i {
    font-size: 0.95em;
}

.footer-flag {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.footer-flag svg {
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
}

.footer {
    text-align: center;
    padding-top: 32px;
    border-top: 4px dotted var(--dotted);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px 48px;
    }

    .header {
        margin-bottom: 44px;
    }

    .name {
        font-size: 2.25rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-accounts-inner {
        max-width: 100%;
    }

    .social-account {
        flex-direction: row;
    }

    .divider {
        margin: 40px 0;
    }

    .social-links {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 32px 16px 40px;
    }

    .name {
        font-size: 2rem;
    }

    body {
        font-size: 16px;
    }

    .project-card h3 {
        font-size: 1.25rem;
    }

    .social-section h2 {
        font-size: 1.5rem;
    }
}
