/* Theme: Zen - Day 26, letter Z: Inspired by minimalist Japanese gardens, stone pathways, bamboo groves, tranquil meditation, natural harmony, peaceful simplicity, balanced compositions, organic textures, serene aesthetics */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15.6px;
    line-height: 1.85;
    color: #2c2c2c;
    background: #f7f5f0;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 88% 12%, rgba(139, 123, 102, 0.035) 0%, transparent 48%),
        radial-gradient(circle at 12% 88%, rgba(106, 138, 106, 0.028) 0%, transparent 52%);
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent 0px, rgba(139, 123, 102, 0.008) 1px, transparent 2px, transparent 120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

#topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 245, 240, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 123, 102, 0.18);
    transition: all 0.4s ease;
}

#topnav.scrolled {
    background: rgba(247, 245, 240, 0.98);
    box-shadow: 0 2px 16px rgba(44, 44, 44, 0.06);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #4a4a4a;
    margin: 0;
    letter-spacing: 0.8px;
    position: relative;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 28px;
    height: 2px;
    background: #8b7b66;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.2rem;
}

.nav-menu li a {
    display: block;
    padding: 0.6rem 1.4rem;
    color: #5a5a5a;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.6px;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #8b7b66;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 70%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #2c2c2c;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid #8b7b66;
    color: #4a4a4a;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(139, 123, 102, 0.08);
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(139, 123, 102, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(106, 138, 106, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeUp 1.2s ease-out;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 3.6rem;
    font-weight: 500;
    line-height: 1.28;
    margin-bottom: 2.4rem;
    color: #2c2c2c;
    letter-spacing: -0.4px;
}

.hero-text h1 br {
    display: block;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: #5a5a5a;
    margin-bottom: 3.6rem;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.hero-buttons {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.96rem 2.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.35s ease;
    font-size: 0.92rem;
    letter-spacing: 0.8px;
    position: relative;
}

.btn-primary {
    background: #4a4a4a;
    color: #f7f5f0;
    border: 1px solid #4a4a4a;
}

.btn-primary:hover {
    background: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 44, 44, 0.18);
}

.btn-secondary {
    background: transparent;
    color: #4a4a4a;
    border: 1px solid #8b7b66;
}

.btn-secondary:hover {
    background: rgba(139, 123, 102, 0.08);
    border-color: #4a4a4a;
    transform: translateY(-2px);
}

.hero-image {
    animation: fadeUp 1.2s ease-out 0.2s both;
}

.profile-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    padding: 2.8rem;
    box-shadow: 0 12px 36px rgba(44, 44, 44, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(139, 123, 102, 0.16);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8b7b66 0%, #6a8a6a 100%);
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(44, 44, 44, 0.12);
}

.profile-card img {
    width: 100%;
    margin-bottom: 2.4rem;
    box-shadow: 0 8px 24px rgba(44, 44, 44, 0.1);
}

.profile-details h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.92rem;
    margin-bottom: 0.8rem;
    color: #2c2c2c;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.profile-details p {
    color: #5a5a5a;
    margin-bottom: 2.4rem;
    line-height: 1.75;
    font-weight: 300;
}

.social-links a {
    display: inline-block;
    padding: 0.88rem 2.4rem;
    background: #4a4a4a;
    color: #f7f5f0;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.8px;
    transition: all 0.35s ease;
}

.social-links a:hover {
    background: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 44, 44, 0.18);
}

section {
    padding: 96px 0;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5.6rem;
    position: relative;
}

.section-header::before {
    content: '◦';
    position: absolute;
    top: -64px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.8rem;
    color: #8b7b66;
    opacity: 0.4;
}

.section-header h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.3;
    color: #2c2c2c;
    letter-spacing: 0.2px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 2px;
    background: #8b7b66;
}

#experience {
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(24px);
}

.timeline {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 180px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(139, 123, 102, 0.3);
}

.timeline-item {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 5.2rem;
    margin-bottom: 5.2rem;
    position: relative;
}

.timeline-year {
    font-family: 'Noto Serif JP', serif;
    font-size: 3.2rem;
    font-weight: 400;
    color: #8b7b66;
    position: relative;
    z-index: 2;
    text-align: right;
    padding-right: 3.6rem;
    letter-spacing: 0.4px;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -72px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    background: #8b7b66;
    border: 3px solid #f7f5f0;
    box-shadow: 0 0 0 6px rgba(139, 123, 102, 0.12);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    padding: 3.2rem;
    transition: all 0.35s ease;
    box-shadow: 0 6px 20px rgba(44, 44, 44, 0.06);
    border: 1px solid rgba(139, 123, 102, 0.12);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #8b7b66;
}

.timeline-content:hover {
    transform: translateX(12px);
    box-shadow: 0 12px 32px rgba(44, 44, 44, 0.1);
}

.timeline-content h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.92rem;
    margin-bottom: 0.8rem;
    color: #2c2c2c;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.timeline-content h4 {
    color: #6a8a6a;
    font-size: 1.12rem;
    margin-bottom: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.timeline-content p {
    color: #5a5a5a;
    line-height: 1.85;
    margin: 0;
    font-weight: 300;
}

.timeline-content a {
    color: #6a8a6a;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.timeline-content a:hover {
    border-bottom-color: #6a8a6a;
}

#ai {
    background: linear-gradient(180deg, rgba(247, 245, 240, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(24px);
}

.ai-projects {
    display: grid;
    gap: 4.8rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    padding: 4rem;
    transition: all 0.35s ease;
    position: relative;
    box-shadow: 0 8px 28px rgba(44, 44, 44, 0.06);
    border: 1px solid rgba(139, 123, 102, 0.12);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b7b66 0%, #6a8a6a 100%);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(44, 44, 44, 0.1);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    margin-bottom: 1.6rem;
}

.project-header h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.4rem;
    color: #2c2c2c;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.project-client {
    color: #6a8a6a;
    font-weight: 500;
    font-size: 1.08rem;
    margin-bottom: 2.4rem;
    letter-spacing: 0.3px;
}

.project-card > p {
    color: #5a5a5a;
    line-height: 1.85;
    margin-bottom: 2.8rem;
    font-weight: 300;
}

.project-impact {
    background: rgba(139, 123, 102, 0.06);
    padding: 2rem;
    color: #2c2c2c;
    line-height: 1.85;
    border-left: 3px solid #8b7b66;
}

.project-impact strong {
    color: #4a4a4a;
    font-weight: 500;
}

#speaking {
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(24px);
}

.speaking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4.8rem;
}

.year-section {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    padding: 3.2rem;
    transition: all 0.35s ease;
    box-shadow: 0 8px 28px rgba(44, 44, 44, 0.06);
    border: 1px solid rgba(139, 123, 102, 0.12);
}

.year-section:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(44, 44, 44, 0.1);
}

.year-section h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.8rem;
    margin-bottom: 2.8rem;
    color: #4a4a4a;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 123, 102, 0.2);
    font-weight: 500;
    letter-spacing: 0.4px;
}

.year-section.books {
    grid-column: span 2;
    background: #4a4a4a;
    border: none;
}

.year-section.books h3 {
    color: #f7f5f0;
    border-bottom-color: rgba(247, 245, 240, 0.2);
}

.achievements {
    list-style: none;
}

.achievements li {
    padding: 1.4rem 0;
    color: #5a5a5a;
    border-bottom: 1px solid rgba(139, 123, 102, 0.12);
    line-height: 1.85;
    position: relative;
    padding-left: 2.8rem;
    font-weight: 300;
}

.achievements li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 1.4rem;
    color: #8b7b66;
    font-weight: 400;
}

.year-section.books .achievements li {
    color: rgba(247, 245, 240, 0.92);
    border-bottom-color: rgba(247, 245, 240, 0.16);
}

.year-section.books .achievements li::before {
    color: rgba(247, 245, 240, 0.6);
}

.achievements li:last-child {
    border-bottom: none;
}

.achievements strong {
    color: #2c2c2c;
    font-weight: 500;
}

.year-section.books .achievements strong {
    color: #f7f5f0;
}

#personal {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(247, 245, 240, 0.6) 100%);
    backdrop-filter: blur(24px);
}

#contact {
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(24px);
}

.contact-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    padding: 7.2rem 6.4rem;
    text-align: center;
    box-shadow: 0 16px 48px rgba(44, 44, 44, 0.08);
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid rgba(139, 123, 102, 0.16);
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #8b7b66 50%, transparent 100%);
}

.contact-card h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 4rem;
    margin-bottom: 2.8rem;
    color: #2c2c2c;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.contact-card > p {
    font-size: 1.16rem;
    color: #5a5a5a;
    line-height: 1.85;
    margin-bottom: 4.8rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3.2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.8rem 4.4rem;
    background: #4a4a4a;
    color: #f7f5f0;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.8px;
    transition: all 0.35s ease;
    box-shadow: 0 8px 28px rgba(44, 44, 44, 0.14);
    position: relative;
}

.contact-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(44, 44, 44, 0.2);
    background: #2c2c2c;
}

.contact-link .icon {
    font-size: 1.8rem;
}

#footer {
    background: #2c2c2c;
    backdrop-filter: blur(16px);
    padding: 4.8rem 0;
    text-align: center;
    color: rgba(247, 245, 240, 0.7);
    border-top: 1px solid rgba(139, 123, 102, 0.2);
}

#footer a {
    color: #8b7b66;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #f7f5f0;
}

@media screen and (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4.8rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 520px;
        margin: 0 auto;
    }

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

    .year-section.books {
        grid-column: span 1;
    }
}

@media screen and (max-width: 900px) {
    .nav-container {
        padding: 0 2.4rem;
        height: 64px;
    }

    html {
        scroll-padding-top: 64px;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(247, 245, 240, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 4.8rem;
        gap: 0;
        box-shadow: 0 16px 48px rgba(44, 44, 44, 0.12);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        border-bottom: 1px solid rgba(139, 123, 102, 0.2);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        width: 100%;
        text-align: center;
        padding: 1.4rem;
        border-bottom: 1px solid rgba(139, 123, 102, 0.12);
    }

    .mobile-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }

    .timeline::before {
        left: 32px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 2.8rem;
        margin-bottom: 5.6rem;
        padding-left: 7.2rem;
    }

    .timeline-year {
        text-align: left;
        padding-right: 0;
    }

    .timeline-year::after {
        left: -72px;
        right: auto;
    }

    .contact-card {
        padding: 6.4rem 4.8rem;
    }
}

@media screen and (max-width: 600px) {
    .container {
        padding: 0 2rem;
    }

    .nav-container {
        padding: 0 2rem;
        height: 60px;
    }

    html {
        scroll-padding-top: 60px;
    }

    #hero {
        padding: 120px 0 80px;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.08rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 4.8rem;
    }

    .section-header h2 {
        font-size: 2.4rem;
    }

    .profile-card {
        padding: 2.8rem;
    }

    .timeline-item {
        padding-left: 5.6rem;
    }

    .timeline-content {
        padding: 2.8rem;
    }

    .project-card {
        padding: 3.2rem 2.8rem;
    }

    .contact-card {
        padding: 5.6rem 2.8rem;
    }

    .contact-card h2 {
        font-size: 3.2rem;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-link {
        justify-content: center;
        padding: 1.4rem 3.2rem;
        font-size: 0.88rem;
    }
}