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

html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


nav {
    position: fixed;
    top: 16px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

nav a {
    color: #555;
    font-size: 15px;
    font-style: italic;
    text-decoration: none;
    transition: color 0.2s, font-size 0.2s ease;
    letter-spacing: 0.01em;
    display: inline-block;
}

nav a:hover { color: #000; font-size: 20px; text-decoration: none; }
nav a.active { color: #000; font-weight: 600; font-size: 20px; }

.nav-btn {
    background: #000;
    color: #fff !important;
    font-style: normal !important;
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px !important;
    transition: background 0.2s !important;
}
.nav-btn:hover { background: #333; text-decoration: none !important; }


section { min-height: 100vh; }


#home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 0 40px;
    position: relative;
}

.avatar-wrap {
    position: relative;
    display: inline-block;
    width: 380px;
    flex-shrink: 0;
}

.avatar {
    width: 100%;
    display: block;
    transition: opacity 0.4s ease;
    animation: swag 3s linear infinite;
}
@keyframes swag {
    0%, 100% { transform: (0deg); }
    25%      { transform: rotate(2deg); }
    75%      { transform: rotate(-2deg); }
}


.avatar-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.avatar-wrap:hover .avatar-default { opacity: 0; }
.avatar-wrap:hover .avatar-hover   { opacity: 1; }

.hometext {
    max-width: 560px;
    text-align: center;
}
.hometext h1 {
    font-family: Garamond, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: bounce1 1.4s ease-in-out infinite;
}

@keyframes bounce1 {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(10px); }
}

.hometext p {
    font-size: 1.8rem;
    line-height: 1.55;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
}
.emoji { font-size: 24px; margin-top: 12px;  
    animation: bounce3 1.4s ease-in-out infinite;}

@keyframes bounce3 {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 15px;
    color: #888;
}

.scroll-indicator .arrow {
    font-size: 22px;
    margin-top: 6px;
    display: inline-block;
    animation: bounce 1.4s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%       { transform: translateY(10px); opacity: 0.5; }
}

#work {
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 60px;
}

.mainwork {
    max-width: 1024px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 6px;
    background: #fff;
}

.wrapperwork {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 16px;
}

.col_span4 { grid-column: span 4; }
.col_span2 { grid-column: span 2; }
.row_span2 { grid-row: span 2; }

.wrapperwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    transition: transform 0.3s ease;
}
.wrapperwork img:hover { transform: scale(1.04); }

/* ── ABOUT ── */
#about {
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 60px;
}

.mainabout {
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    padding: 10px;
    border-radius: 6px;
    background: #fff;
}

.wrapperabout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.sectionabout1 {
    font-family: Garamond, serif;
    font-weight: 400;
    font-size: 22px;
    padding: 20px;
    background: #fff;
    color: #333;
    border-radius: 5px;
    line-height: 1.6;
}
.sectionabout2, .sectionabout3 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.7;
    padding: 20px;
    background: #fff;
    color: #333;
    border-radius: 5px;
}

/* ── RESUME ── */
#resume {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 120px 20px 80px;
}

#resume h2 {
    font-family: Garamond, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2.5rem;
    color: #111;
}

#resume p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    color: #555;
    text-align: center;
    max-width: 480px;
    line-height: 1.6;
}

.resume-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 14px 36px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
    font-family: system-ui, sans-serif;
}
.resume-btn:hover { background: #333; }


#contact {
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 80px 20px;
    min-height: 50vh;
}

#contact h2 {
    font-family: Garamond, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2.5rem;
    color: #fff;
}
#contact p {
    font-family: 'Courier New', Courier, monospace;
    color: #aaa;
    font-size: 15px;
}
#contact a.contact-link {
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    text-decoration: underline;
}


@media (max-width: 768px) {
    nav { gap: 14px; padding: 8px 18px; top: 10px; right: 10px; }
    nav a { font-size: 13px; }

    #home {
        flex-direction: column;
        gap: 36px;
        padding: 110px 20px 60px;
        text-align: center;
    }
    .avatar-wrap { width: 240px; }
    .hometext h1 { font-size: 2rem; }
    .hometext p { font-size: 1.2rem; }

    .wrapperwork { grid-template-columns: 1fr 1fr; }
    .col_span4, .col_span2 { grid-column: span 2; }

    .wrapperabout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    nav { gap: 8px; padding: 6px 14px; }
    .nav-btn { padding: 5px 12px; }

    .wrapperwork { grid-template-columns: 1fr; }
    .col_span4, .col_span2, .row_span2 {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}